The 5e PHB states:     While you're mounted, you have two options. You can either control the mount or allow it to act independently.    It then describes a number of situations where that choice is made for you (e.g. you cannot control an intelligent mount nor a mount that refuses a rider).    There don't seem to be any situations in which you are required to not choose to let your mount act independently.  For example, you could allow your warhorse to act on its own initiative, potentially granting you extra attacks and other options.  Is this correct? There seems to be resistance to the idea that non-intelligent mounts can be allowed to act independently.


A bounded Lebesgue measurable function and integral.

I honestly have no idea where to even begin with this question:  Let $f: [0,1]\rightarrow \mathbb{R}$ be bounded and Lebesgue measurable. Suppose that for every $0\leq a<b\leq 1$, we have $$ \int_a^b f(x)\ \mathsf dx=0. $$ Prove that $f=0$ almost everywhere.


Since java is pass by value.In below code we are passing a value to appendStringMethod not a reference, then why in main method we get HelloWorld not just Hello after calling appendStringMethod() in main.   public class test {     public static void main(String args[]) {          StringBuilder str = new StringBuilder("Hello");         appendStringMethod(str);         System.out.println(str);     }      static void appendStringMethod(StringBuilder s) {         s.append("World");     } }   However in below code, values are not swapped.  public class Mock {   public static void main(String args[]) {     StringBuilder str1 = new StringBuilder("Hello");     StringBuilder str2 = new StringBuilder("World");     swap(str1, str2);    System.out.println(str1);    System.out.println(str2);     }    static void swap(StringBuilder s1, StringBuilder s2) {    StringBuilder s= s1;    s1=s2;     s2=s1;    } }


You're stronger than I am vs You're stronger than me

Those things are correct gramatically? What's the difference?  My girlfriend and I went to the beach and I threw her in the water and she said  "You're stronger than I am."   I think that "You're stronger than me." is always correct gramatically..


if we have something like this:  var foo=$('.foo'); var boo=$('.boo'); var koo=$('.koo');   Then is there any possibility to put foo,boo and koo in one JQuery object with $ function ?  I Tried these:  $(foo,koo,boo).removeClass('someClass'); // nothing happened $([foo,koo,boo]).removeClass('someClass'); // nothing happened   But nothing happend.  PS. I know I can use direct selector with $('.foo,.boo,.koo') but this is not what I'm looking for


How can I create readonly user for backups in PostgreSQL?

Is it true that it is IMPOSSIBLE to create a readonly backup user in PostgreSQL?  I've been advised on an IRC channel that you simply can't have a backup only user with no ownership privileges.  I find it very strange so I want to make sure I'm not missing something.  Below is what I tried but it doesn't give me the results I'm looking for.  When I do pg_dump on a given table I'm getting Permission denied for relation...:  GRANT SELECT ON ALL TABLES IN SCHEMA public TO backup;  ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO backup;  GRANT SELECT, USAGE ON ALL SEQUENCES IN SCHEMA public TO backup; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT, USAGE ON SEQUENCES TO backup;   Any help would be greatly appreciated!


When I set up Ubuntu system for the first time, and create first user, will that user be root? I would like to use sudo user, so how to add it if first user is root? Also is it possible to create sudo user withoute root user?


why the nvidia drivers are never up to date?

Just out of curiosity. Maybe there are some technical reasons why the drivers are not up to date.  14.04 64b In additional drivers I have 331, but at the nvidia website they have 340. I'm coming back now to ubuntu, but before, lets say 6 months or 1 year ago was the same. The repositories were always behind.


Proving that GCD of $3$ numbers is same as the GCD of GCD of $2$ numbers and the third.

Here's the problem:   Prove that $(a,b,c) = ((a,b),c)$, where $(\cdot)$ denotes the GCD.  This problem looks so trivial at staring, but rigorously proving it turns out to be difficult task for me. I know of $2$ ways of defining GCD (of, say $b$ and $c$): The least positive value of $(bx_1 + cy_1)$; or the common divisor which is divisible by every other common divisor. This definition can extend to more than $2$ numbers also. So, I let $g$ be any common divisor of $a$, $b$ and $c$, and $G$ be the greatest of them. Hence, matters are left to merely proving $G = ((a,b),c)$. It is quite easily seen that $G|(a,b)$ and $G|c$. Hence, $G|((a,b),c)$. But it leaves the proof to: $((a,b),c)|G$, which I can't prove. Perhaps it is proving: $g|((a,b),c)$, for any $g$ (which is defined above). This can lead to another proof, but I didn't find a way out! Please help!


Is there a way to re-enable "old-style" quit in Chrome?

I've just turned on my old Macbook for the first time in a couple years and found that now I have to hold command + Q in order to quit Chrome, whereas I used to be able to just tap it. I prefer the old way. Is there a way to re-enable that?


Handling null pointer exception is not working

Am writing spring boot rest api to fetch records from elastic search by id. While am getting response from elastic search few keys having null object. So, how I can do the null check while setting value for Product (POJO class).  Am handling this exception with the below line of code, but still the error is persisting product.setExpiration_date(sourceAsMap.get("expiration_date").toString() != null ? sourceAsMap.get("expiration_date").toString() : "");.  Am not sure whether my approach is correct or not.   Please find the full code below.  SearchResponse searchResponse = null;     try {          searchResponse = restHighLevelClient.search(searchRequest);     } catch (IOException e) {         e.getLocalizedMessage();     }     // read the response     String productName = null;     Product product = null;     SearchHit[] searchHits = searchResponse.getHits().getHits();     for (SearchHit hit : searchHits) {         // get each hit as a Map         Map<String, Object> sourceAsMap = hit.getSourceAsMap();         product=new Product();         product.setName(sourceAsMap.get("name").toString());         product.setCatalog_id(sourceAsMap.get("catalog_id").toString());         product.setCode(sourceAsMap.get("code").toString());     product.setExpiration_date(sourceAsMap.get("expiration_date").toString() != null ?                  sourceAsMap.get("expiration_date").toString() : ""); // Error throwing in this line.         product.setIs_visible(sourceAsMap.get("is_visible").toString());      }   Please find my error below :  2018-05-23 22:59:13.216 ERROR 9948 --- [nio-8594-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause  java.lang.NullPointerException: null at com.sun.searchengine.dao.ProductDao.getProductById(ProductDao.java:105) ~[classes/:na] at com.sun.searchengine.controller.ProductController.getProductById(ProductController.java:24) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]


In RPM, there is a (much maligned, but nonetheless it is there) field called EPOCH, used to override a version stream with lower numbering.  It is a source of constant trouble, but in the cases where it is needed, EPOCH is often the only way to go.  Does the DEB package format have a similar field?


Why is my Nikon 50mm f/1.8 giving me an fEE error?

I have a AF Nikkor 50mm f/1.8. When I have the aperture setting on the lens to 22 I can take photos. But when I change the dial to anything other than 22(lowest f/stop) then I get a flashing fEE message and r09 where the number of exposure left is.  I don't have the manual for this lens but am just wondering if anyone knows what the issue is here.  My camera is a Nikon D70S.


Is real multithreading possible with Blender scripting api (Windows)?

I'm trying to use multiprocessing module on Windows to run work in parallel. Problem is that on windows, each thread spawns new instance of Blender. Is there a workaround to this? I'm not looking into having co-currency but real multithreading utilizing cpu cores to run tasks.


How to efficiently search vectors in C++

I need to find whether a vector<unsigned> searchvec; is present in a vector<vector<unsigned> > containerVec;. One way to do the same is to iterate over vector<vector<unsigned> > containerVec; and see whether searchVec is present in containerVec. Is there any build in c++ function which can help me do the same.  Also my searchVec is of size 1 million vector  For example if my searchVec is (9,28,4,2) and my containerVec is ((1,3,678,27),(9,28,4,2), (595,85,52)). Then searchVec (9,28,4,2) is present in ((1,3,678,27),(9,28,4,2), (595,85,52)). However if my searchVec is (23,84,25,11) then it is not present in containerVec.  EDIT: I tried std::find but perf tool shows it takes the most time. Is there any other data structure which I can use.  This is not a duplicate. As I am mentioned in my question std::find is giving poor performance. Also the duplicate which u have marked nowhere talks about performance issue


Is there a way to insert Keyboard Glyphs in Google Docs?

Here on the StackExchange framework we have a nice feature, which is apparently called "Keyboard Glyphs" (cf. ):     CTRL+Z   Is there a way (e.g. with an Add-On) to do the same in Google Docs? I browsed the Add-Ons but did not find anything, maybe it's hidden somewhere different (e.g. in a Code Formatting Plugin).


Location of the extrema of the sinc function

provides the following expression for the location of the extrema of the sinc function:  $$x_n=q-q^{-1}-\dfrac{2q^{-3}}{3}-\dfrac{13q^{-5}}{15}-\dfrac{146q^{-7}}{105}...$$  with $q =\left(n + \dfrac 12\right)\pi$  However, I have not been able to find this expression in the literature. Can anyone please provide some references where this expansion is derived, or at least mentioned?


Why is the mesh not colliding with cloth simulation?

Why is the Suzanne falling through the carpet? Suzanne has collision and rigid body physics and the floor has cloth physics with collision. I want Suzanne to fall on the cloth and it should slide on the cloth. what am I doing wrong?


I don't know too much about replacing outlets, only what I've read online or through YouTube videos. The house was built in the early 50s. Some outlets have been replaced (brand new kitchen)  but some are still the old 2 prong. I bought a receptacle tester and tested the newer style outlets, which all tested as correct wiring. Upon opening and inspecting, none of these new 3 prong outlets had no ground wires. Does this mean the boxes are already somehow grounded? I'm even more confused now that the receptacle tester said that they were correct. Please help!


Apply command to every line in bash terminal

I've accidentally discovered the lolcat package today.    The first thing that I though about is: it would be fantastic if i could pipe everything that comes from stdout to the terminal through lolcat to get those rainbow effects. Just imagine the pranking possibilities.  Essentially what I'm asking for is a way to apply a command to every line that comes out of a bash prompt to stdout.


Ubuntu 16.04 Search cannot find applications

I "upgraded" to Ubuntu 16.04 and am sorry I did. Problems abound,  I will only list one here.  The Dash now cannot now find any applications. Nothing shows up in any category except for the "Dash plugins", and "Files and Folders".  I can still run applications using F2 or from the terminal or launchpad.  Any help would be appreciated. Windows is looking less bad now.


Check whether the expression shows periodic motion or simple harmonic motion

How can you check whether the given expression shows simple harmonic motion or not?And also how to calculate angular frequency of the given equation?


Can there be more than one pending edit to a single post?

When there is a suggested edit for a post, we see something like this:        Since another edit can't be suggested, how exactly can there be more than one pending edit?  If the answer is, as I expect, "there can't be" I suggest changing the design to put some character or different color to the link instead of showing (1) e.g.        I think that in the past the number used to show number of reviews already done on the suggested edit but changed at some point, so also worth changing back as this might be interesting stat.


Grub doesn't show up, just grey screen for seconds instead!

I tried Ubuntu Gnome and liked it and I want to stay on it but It directly boots without Grub screen, But a Grey background with slightly darker borders appear while booting, It takes a lot of time. how can I bring the grub menu back?


Vector Applications in Euclidean Geometry

Pentagon $ABCDE$ is inscribed in a circle. For any edge of $ABCDE$, we can draw the line perpendicular to that edge that contains the centroid of the remaining three vertices. Show that these 5 lines are concurrent.  We just finished a unit on vectors in my Pre-Calculus class but I have no idea on how to do this final problem. Any help would be greatly appreciated!


How to show items of a folder on home page

I have a library with a folder which has few items. I want to display the items of this folder to be displayed on home page.  We can show all items in the library but is there any way to show items of a folder in library.


multiple regression coefficients - Standard error of intercept

I am implementing an R-type summary() function in python with the restriction to exclude use of scientific libraries. (assignment) I found this  material explaining the calculation of standard errors of coefficients. As I already had a multiple linear model coded with gradient descent, I was able to code the standard error of coefficients, except the intercept. I just do not understand how to calculate $S{_b}_0$ based on the below equation:   I can calculate $R^{2}{_X}_k{_G}_k$ for k>0, but not for k=0  The following code piece works already, but I need something for the (z=-1) below, which would fill the coeff_stderr[0] element:          for z in range(len(X[0])):             xk_vector = get_matrix_column(X, z)             var_xk = variance(xk_vector)             RRxk = coefficient_of_determination_Xk(X, z, num_iters, alpha)             coeff_stderr[z+1] = RSE / sqrt((1-RRxk)*var_xk*(len(X)-1))   what is $X_0$? The intercept term - the column with 1s? Then it's variance is 0, and I would divide with 0...


This has been happening for a while, and it's starting to drive me up the wall. It is very quiet, but can still be heard.  Is it possible the speakers are picking up radio, because they are older (like from 2007-ish) and they have analog cable, and not USB one?  EDIT: I specifically would like to know if it's possible the problem to be related to the nature of the cable (analog), and if USB cables would not have this problem.


$(X^m-Y^n)$ is a prime ideal in $A[X,Y]$ iff $m, n$ are coprime

Let $A$ be an integral domain and $A[X,Y]$ the polynomial   ring in two variables with coefficients in $A$. Let $m, n ∈ \mathbb Z_{≥1}$ be positive integers. Claim: the ideal $(X^m − Y^n)$ is prime in $A[X, Y ]$ iff $m$ and $n$ are coprime.   I got the following hint but I couldn't figure out how to proceed the proof. Please give me a more details hints. "For the ”if” direction: Show that the map $ϕ : A[X, Y ] → A[T], f(X, Y ) → f(T^n, T^m)$ is a ring homomorphism, which factors over a ring homomorphism $\bar ϕ : A[X, Y ]/(X^m − Y^n) → A[T]$. Then show that $\bar \phi$ is injective."


I am using mysql_real_escape_string and strip_tags as follows:  strip_tags(mysql_real_escape_string($postvariable));   I just want to know if this makes sense. Will strip_tags still work, aka remove  tags and html tags after the string has been filtered by mysql_real_escape_string ?


Marvin the Martian vs. the Death Star: how much energy will they actually need to disintegrate the Earth?  According to ,  will require $1.711 \cdot 10^{32}~\text{J}$ to shatter the Earth into a gravitationally unbound primordial dust cloud.  However, this energy is over 30% lower than the gravitational binding energy derived from the average density model .  Which seems irrational:  if the Earth were in a lower energy state at a uniform density distribution, how did its density gradient evolve in the first place – wouldn’t it be evolving to a homogenous density distribution in that case?  Curtis Sexton and  seem to agree with my reasoning on this point:   the ’s beam weapon output would have to exceed $2.4 \cdot 10^{32}~\text{J}$ to impart escape speed to all of the matter comprising an Earth-like planet.  They can’t both be right, so who wins?  My money’s on the Death Star, but I haven’t found the mistake in Dave’s calculations for Marvin yet.  Does anyone here have the analytical chops to see where he went wrong, or alternatively, where I’ve spaced out?  Here's Dave's mathematical estimate for Marvin:  First he offers an equation for compiling the layers of various densities from the  into a sum of     where $r$ is the radial distance from the Earth’s center and     the various constants are noted below:  $i$. Layer; Height $h_i$ (m); $a_i$ ($kg \cdot m^{-5}$); $b_i$ ($kg \cdot m^{-4}$); $c_i$ ($kg \cdot m^{-3}$)  1  Inner core; 1.2215×10$^{6}$; -2.1773×10$^{-10}$     1.9110×10$^{-8}$ 1.3088×10$^{4}$  2  Outer core; 3.4800×10$^{6}$; -2.4123×10$^{-10}$;    1.3976×10$^{-4}$;  1.2346×10$^{4}$  3  D'' layer; 3.6300×10$^{6}$; 0.00; -5.0007×10$^{-4}$; 7.3067×10$^{3}$  4  Lower Mantle; 5.7010×10$^{6}$; -3.0922×10$^{-11}$; -2.4441×10$^{-4}$; 6.7823×10$^{3}$  5  Inner transition zone 1; 5.7710×10$^{6}$; 0.00; -2.3286×10$^{-4}$; 5.3197×10$^{3}$  6  Inner transition zone 2; 5.9710×10$^{6}$; 0.00; -1.2603×10$^{-3}$; 1.1249×10$^{4}$  7  Outer transition zone; 6.1510×10$^{6}$; 0.00; -5.9706×10$^{-4}$; 7.1083×10$^{3}$  8  Low velocity zone & lid; 6.3466×10$^{6}$; 0.00; 1.0869×10$^{-4}$; 2.6910×10$^{3}$  9  Inner crust; 6.3560×10$^{6}$; 0.00; 0.00; 2.9000×10$^{3}$  10  Outer crust; 6.3680×10$^{6}$; 0.00; 0.00; 2.6000×10$^{3}$  11  Ocean; 6.3710×10$^{6}$; 0.00; 0.00; 1.0200×10$^{3}$  Using the real density distributions for each shell layer:    And calculating for each point $h$ at any given radial distance from the outside in, with the inner and upper bounds $h_1$ and $h_2$ respectively, gives:    So for each $i^{th}$ layer:   And for each point at a radial distance of $r$ we have:   where $ΔU_0$ = 0 and the indexed constants for each piece of the function are described in the table above.  This yields:  -1.711×10$^{32}~\text{J}$  Many thanks to anyone who can explain how this came out wrong!


difference between dimension and scale in blender

First time in metric system and I can't figure out what is the dimension in blender, first of all the scale of a cube is one and the dimension is 2:  scaling the edge of only one edge up in edit mode turns up the dimension of the whole object to the size of the scale of the edge, and not the object in an average:     So, I'm a bit confused, about what the dimension in blender actually refer to, and what the difference between it and scale is?     EDIT:  What if the bounding box length and the edge are of equal size:


Can I boot Ubuntu from a DVD and which version should I use?

I have a Toshiba Satellite L455D-S5976 that had Win7 Premium installed. I did a “refresh” on the machine, and installed Win10. Then I left it alone for several weeks, went to start it and it wouldn’t recognize password or Identification answers.  I have used Ubuntu in the past but the only DVD I have is a Mac version. Can I download Ubuntu and copy it to a DVD? Bios will allow boot from DVD or HDD but not from a thumb drive. Any version?


Prove that 6 | (a+b+c) if and only if 6 | (a^3 + b^3 +c^3).

I have tried the question but not sure if my solution is correct or not... My try..  a^3 + b^3 + c^3 = (a+b+c)^3 - 3(a+b)(b+c)(c+a)  So , if   6 |(a^3 + b^3 + c^3)  Then,  6 | [(a+b+c)^3 - 3(a+b)(b+c)(c+a)]  So, also  6 | (a+b+c)^3  6 | (a+b+c)(a+b+c)(a+b+c)  So,  6|(a+b+c)  Is my solution correct ?


How to show that $\int_0^1x^{-x}dx = \sum_{n=1}^\infty n^{-n}$?

How would I go about showing that $\int_0^1x^{-x}dx = \sum_{n=1}^\infty n^{-n}$  Right now my numerical analysis class is covering gaussian quadrature but we have also covered interpolation. I'm not sure how to prove this equality without using an estimation for the lefthand integral


Dynamically add validator method not working well

The method0~method4 work not well. I add this into validator of jQuery. The wired result shows. How can I fix it.   var conditions = [     {         "regexp": ".{8,}",         "message": ""     },     {         "regexp": "[A-Z]",         "message": ""     },     {         "regexp": "[0-9]",         "message": ""     },     {         "regexp": "(.)\\1{3}",         "message": ""     },     {         "regexp": "[a-z]",         "message": ""     } ];      for (var i in conditions) {         var methodName = "method" + i;         pwdRules[methodName] = true;         pwdMsgs[methodName] = conditions[i].message;          $.validator.addMethod(             methodName,             function(value, element) {                 return value.match(conditions[i].regexp) != null;             },             conditions[i].message         );     }


What is the maximum number of AVP points you can get?

I started the game a while back, played for 60h or so then took a break (to finish other games :) ).  Anyway... at launch there were a ton of posts saying AVP is limited to 20. After I started again (last week, so there were a few patches) I hit 20... then 21... then 22. And it all worked well. So I just guessed they raised the cap.  Now I did the Meridian mission and got 2 more levels (24). But... immediately after I checked screen they went back to 22 (press esc, see 24, then press esc see 22 again). So... I did what any other normal person would do and loaded back the game, ran to AVP console and allocated all pods. Then pressed esc and seen 22 points again, but the pods were already allocated (and they remained like that). This is obviously a bug.  My question is... did they raise the cap (and the bug is that the points disappeared), or they didn't raise the cap and the bug is that I got those points in the first place?  All threads I find saying the cap is 20 are old. Does anyone know any new post regarding that? Or any change log?


How can the following equation be proven?     $$ \forall n > 2 : \sum_{p \le n}{\frac1{p}} = C + \ln\ln n + O\left(\frac1{\ln n}\right), $$  where $p$ is a prime number.   It's not homework; I just don't understand from where should I start.


Sorting a list of objects based on a nullable ArrayList attribute of that object using java 8

I am trying to sort a list based on a nullable ArrayList in java 8. List as follows Patient1  visits = [02/15/2010, 02/10/2010] Patient2  visits = [02/16/2010] Patient3  visits = [02/17/2010, 02/10/2010] Patient4  visits = null  I am trying to sort the Patient objects based on the descending order of their date of visit (first element in the visits list) using streams sort. The nulls should be placed last. The final result must be Patient3  visits = [02/17/2010, 02/10/2010] Patient2  visits = [02/16/2010] Patient1  visits = [02/15/2010, 02/10/2010] Patient4  visits = null   Patient {   String name;   List<Date> visits; }  I have tried the following approach but ends up in null pointer exception even after null check.    list.stream()     .sorted(Comparator.nullsLast((Comparator.comparing(s -> s.getVisits() == null ? null : s.getVisits().get(0), Collections.reverseOrder()))))     .collect(Collectors.toList());


I am new here & trying to ask a question about C++ on Stack Overflow.   The question contains a long code & I don't know how to add it in short time. I tried to use code sample tool provided there but it added only a line at a time. So, please help me with this.


I had a couple Logitech mice lying around that I plugged into my new mac book air. It takes the scroll wheel at least a few "clicks" to scroll by one unit. Any idea how to reduce the number of increments or physical clicks required to scroll to one?


I have broken open a few circuits of some electronics (DVD player, handheld game device) and I can see the microcontrollers in them. However, I have no idea how they get their programs onto them! There is no micro usb or usb plug anywhere on them! How would they have gotten their program onto there?


So I have the following code:   <a onclick="return confirm('Are you sure?');" href="<?php echo wp_nonce_url( add_query_arg( array( 'action' => 'my-delete-product', 'product_id' => $post->ID ), my_get_navigation_url('products') ), 'my-delete-product' ); ?>"><?php _e( '삭제', 'my' ); ?> |    It is a simple button.  I want to make this into a shortcode so that I can use it anywhere where appropriate.  Any suggestions?  Thanks.


Merge [post] into [http-post], [get] into [http-get]

Currently on SO there are 2 identical pairs of 2 identical tags:    (11,957)      POST is one of the HTTP protocol methods;      (2,195)      POST is one of the HTTP protocol methods   Please merge and synonymize [post] into [http-post].  Same for  (4,720):     HTTP GET is a request method   and  (456):     GET is one of many request methods supported by the HTTP protocol.   I think http-* is more readable thus should be a master tag.


Why does Bash's source not need the execution bit?

With Bash's source it is possible to execute a script without an execution bit set. This is documented and expected behaviour, but isn't this against the use of an execution bit?  I know, that source doesn't create a subshell.


temporary table and table variable in SQL server

Why there are temporary table and table variable concepts in SQL server, when both of them provide the same functionality.  As table variable and temporary table uses the temp DB and have almost identical features.


Can glueballs, consisting of massles gluons, get a mass without reference to a Higgs field?

Glueballs, the by the standard model predicted combinations of short-lived combinations of massless gluons, have a mass between 1.4 and 5 (MeV). But where is this mass coming from? From interaction with a Higgs field, or entirely from potential energy provided by the strong force between them?


Is there a way to classify simple non-spectral images in ArcGIS?

I was wondering whether there's a way to classify simple non-spectral TIFF images in ArcGIS (maybe based on similar colour values of image pixels like graphic software applications such as Photoshop can do)?


Having Issues in calculating Sum of digits in C#

I have a task to calculate sum of digits in C#. In this case as an example. I like to calculate the sum of "12345" which is: 1+2+3+4+5 = 15. But the result coming after the execution of code is: 53. What is the mistake in the code?  static void Main(string[] args) {     string inputNumber = "12345";      int sum =0;     Console.WriteLine("Please Enter Your Desired Number");      for (int i = 0; i < 5; i++)     {         Console.WriteLine(inputNumber[i]);         sum = sum + Convert.ToInt32(inputNumber[i]);          Console.WriteLine(sum);     } }


How do I setup OpenVPN so I can securely use the internet from an unsecured hotspot?

Goal: I want to be able to securely use the internet via my home PC while my notebook is connected to an open hotspot/access point.  I do know that I can use a SSH tunnel/SOCKS proxy, but I don't want to fiddle around with applications (making them use it, if even possible). I guess what I need is an OpenVPN setup, so I'm looking for a detailed guide on how to:   Install and setup the OpenVPN server Setup the OpenVPN client (NetworkManager)   Ubuntu versions this should work on are 10.10 and 11.04.


I get this error: Site-level fields created by the Community Site features and its dependencies must not be removed.  when trying to create a Community Site or Active the Community Site Feature, anyone no how to fix?  regards Martin


Bash PS1 dissappears after history browsing

I have been configuring my new fresh Arch installation. I just finished with my PS1 in Bash and realized about an error I do not know how to solve. This is the code: PS1='\n\[\e[30;44m \u@\h \]\[\e[34;45m\]\[\e[30;45m \w \]\[\e[35;46m\]\[\e[30;46m $(__git_ps1 "(%s)") \]\[\e[0;36m\]\[\e[0m\]\n\[\e[0;42m \# \]\[\e[32;41m\]\[\e[0;41m \$ \]\[\e[0;31m\]\[\e[0m\] '  And I get this:  Then I continued with my config time and realized that if I use any of the upwards arrow key or downwards arrow key (to browse through history) twice, I get this:  Also this happens when doing recursive search:


Question: Prove that $\sin x+2x\ge\frac{3x(x+1)}{\pi}$ for all $x\in [0,\frac{\pi}{2}]$  How did $\pi$ come in the expression?  This is how I tried to solve.  $\sin x\le x$ so $\sin 2x\le 2x$  $\sin x+2x\le 3x$.  Applying AM GM inequality: $\sin x+2x\ge 2\sqrt{2x\sin x}$  $3x\ge 2\sqrt{2x\sin x}$  This how far I can go.


Is there a free tool that can set the file time to match the camera time in jpg meta data?

I have a bunch of pictures for which something went wrong during the import (I used Image Capture on Mountain Lion) went wrong and the file time is completely random. The correct time when the picture was taken is stored in the meta data. Since Picasa orders photos by file time rather than what is set in the meta data, they are ordered incorrectly now.  Is there a free tool that can modify the file time to match the camera time in the meta data for all these pictures easily?


How can one verify pdf using Selenium + Java?  Until recently, I was verifying pdf using Firefox (making sure that the pdf file wasn't empty). This was nice and working fine, but it's not multi-platform.   I now need to verify pdf using chrome, edge, safari, etc... So doing something platform specific isn't really an option anymore.   Here is what I was doing so far using Firefox:   Click on the pdf link Wait for the new window to appear Switch to the new window Verify the presence of class "page" and of id "viewer" Close the new window and go back to the old one   However, the class "page" and the id "viewer" are specific to how Firefox displays pdf and this same code doesn't work with chrome.   So, how can I verify a pdf using Selenium + Java?


Recover Gmail password from iPhone or phone number?

My laptop has just died and I don't know my Gmail password. I do however have Gmail set up on my iPhone. Can I recover the password from this somehow? I was thinking either finding what the password is or being sent the password to the email account.  I know I've entered my phone number for some Google product. Can I be texted the password or recovery instructions?


Computing limits which involve square roots, such as $\sqrt{n^2+n}-n$

Is there a general strategy for this? For example I'm working on the limit $$\lim_{n\rightarrow\infty}\sqrt{n^2 + n} - n $$    I have a simple argument to show that this limit is less than or equal to 1/2, but I can't get much further because it's difficult for me to manipulate the square root symbol. Here is the argument: $\sqrt{n^2 + n} - n \lt \sqrt{n^2 +n + \frac{1}{4}} - n = n+\frac{1}{2} - n = 1/2$


How come more interest than principal is paid at the start of repayment?

How come more interest than principal is paid at the start of home loan repayment? What's the rationale?


How would primordial black hole forms if expansion of space overwhelms gravity?

I read that density is quite high in the early universe and many speculate that primordial black hole can form and would probably have a mass similar to a human ovum(egg cell). Usually black hole only forms during gravitational collapse of massive star, we know gravitational force is extremely weak and so there should be not enough time for matter or energy to gather into a tiny region of space and produce black hole. So what created these primordial black holes?


Number of synchronous concurrent requests for long-running requests that last longer than 5 seconds for each organization

The title is one of the limits of salesforce.   Link :   but I'm not understanding in a full way the meaning of this limit and I'm not finding enougth use-cases explanation on the web...  anyone can give me some examples to understand this limit:    For example what mean exactly "concurrent requests",  mean any server operation type ? In the 5 seconds what is considered ? Apex code after the request, Trigger operations? Query time execution, Callout transaction time? How Salesforce understand that one transaction is going to take more than 5 seconds? What time of best practises must be considered to avoid this limit?   Thnks,  Klodjan


How does Community have a hat on? On site to site, it changes, but how?


Why does "Why doesn't it work?" become "Why does it not work?"

When you uncontract doesn't in "Why doesn't it work?" the not moves to "Why does it not work?"  This confuses me even more when I use a longer phrase instead of the pronoun it like below:     Why doesn't this simple code example work?   Why does the word order change when we use a contraction?


Prove for sets $A,B,C$ that $A\times (B\setminus C) = A\times B \setminus A\times C$

I tried to solve it as follows: We have  $$(x,y) \in A\times (B \setminus C) \iff$$ $$x \in A \ \text{and} \  y \in (B \setminus C) \iff$$ $$(x \in  A) \ \text{and} \  (y \in  B \ \text{and} \  y \notin C) $$ $$(x \in A) \ \text{and} \ (y \in B \ \text{or} \ y \in C')$$ $$[(x \in A) \ \text{and} \ (y \in  B)]\ \text{or}\ [(x \in A) \ \text{and} \ (y \in C')] $$ $$(x,y)  \in A\times B \ \text{or}\ [(x \in A) \ \text{and} \ (y \in C')]$$  But beyond this not able to proceed.


Are there are shortcuts for exporting polygon vertex location as a table

Someone came to ask me how he can export the X and Y locations of vertices from his polygon shapefile to excel.  So I told him to convert it to points, add columns, calculate geometry, and then export the attribute table. This isn't too difficult but I found it was quite a long explanation to give for what seems a simple task.  Are there any shortcuts like a tool that will do this in one step? I had a tool through xtools pro and ET Geo-wizards but didn't find anything obvious.


C++ Virtual Inheritance of virtual method

struct A {     virtual void foo() { std::cout << "a";}; };  struct B:public virtual A {     void foo() { std::cout << "b";} };  struct C:public virtual A {     void foo() { std::cout << "c";} };  struct D:public B, public C {  }; int main() {     return 0; }   So this one while compiling gives us the following error:   \main.cpp:16:8: error: no unique final overrider for 'virtual void A::foo()' in 'D'  struct D:public B, public C {   If we would make the inheritance of B and C structs non-virtual, the code is compiling just right without any errors (but of course the error happens if we're calling dd.foo()). So what's the difference? Why do we have an error when we inherit our class virtually and no error if we do it straight?


Can all real polynomials be factored into quadratic and linear factors?

So I understand how to do integration on rational functions with a linear and a quadratic denominator, and I understand how to do a partial fraction decomposition, but I was wondering what happens if the polynomial is higher degree and can't be factored. Later in the page, it says this:     However, it can be shown that any polynomial with real coefficients is a product of linear and/or irreducible quadratic factors with real coefficients.   And I was wondering, how do we know this and is this definitely true?


Call of Duty 4 single player crash to desktop

I just installed Call of Duty 4 and when I try to run the single player mode nothing happens. I just see a quick flicker on the desktop but the game doesn't launch. When I try to run it again, it gives me this message:      It appears that cod4 did not quit properly the last time it ran. Do you want to run the game in safe mode?    Multiplayer seems to work fine and when I try to switch to single player from the multiplayer menu the same thing happens, it just goes back to my desktop and that message shows up again


My brother is sending me a check from Germany. Can I cash that foreign check at any United State Bank?  I have tried to research all the possibilities.


How much is a sim card at heathrow, and what network should i use

Travelling into heathrow in April , Have an IPhone 6 4g how much will a sim card cost,  pay as you go. Data calls and text. will it have a uk tel number?


Warning "You haven't voted question for a long time" disappears too fast

I recently got warnings just after having upvoted an answer. It said something about the fact that I haven't voted for a question for a long time and that questions need votes too.   The problem is that it disappeared so fast that the first time I could not read it at all. Well, ok, to be honnest I could probably read the 2-3 first words :-) but not more.  Could not this message stay a little longer on the page ?


Proving the non-differentiability of $|x| + x$.

For the function $f(x) = |x| + x$, how can one prove that it is not differentiable at the point $x = 0$? Specifically, I wish to use the Definition of the Derivative   $$\lim_{\Delta x \to 0}\frac{f(x + \Delta x) - f(x)}{\Delta x}$$  to attain two non-equal limiting values by taking $\Delta x$ to be first positive, and then negative.  It was my original thought to rewrite $f(x)$ as   $$ f(x) = \begin{cases}  2x&\text{if}\, x\geq 0\\  0&\text{if}\, x < 0 \end{cases} $$  and then take the derivative for each separate case and show that they aren't equal, but I wish to use the above definition with both a positive and a negative $\Delta x$, and so the cases method would fall out of line with that.  Thank you.


What happens if a French citizen goes to Poipet's strip of casinos and hotels between the Cambodian and Thai passport control counters?

Given that , I wonder what happens if a French citizen goes to 's strip of casinos and hotels between the Cambodian and Thai passport control counters, assuming that they do not have any special visas to enter Cambodia or Thailand. Are they stuck in the strip of casinos and hotels?  To save some time for people going through answers in the dupe question, assuming one enters from Thailand: one can enter back Thailand and the Thai departure stamp gets :  No idea whether this still applies during the COVID-19 travel restrictions.


Evaluate $\lim_{x\to 0} \frac{ e - (1+x)^{\frac 1x}}{\tan x}$

$$=\lim_{x\to 0} \frac{e}{\tan x} - \frac{(1+x)^{\frac 1x}}{\tan x}$$ $$=\lim_{x\to 0} \frac{e}{\tan x} -\lim_{x\to 0} \frac{e}{\tan x}$$ Since $$\lim_{x\to 0} (1+x)^{\frac 1x} =e$$ So the final answer is $0$ I know that evaluating the limits separately is the reason for errors in my answers, but that’s the only thing I could think of doing The right answer is $\frac e2$


is there a stable Note 3 mod utilizing S-pen?

Is there a stable Mod that does not compromise on the S-pen of Note 3? Since a mod could better utilize the raw power of the device.


list initialization VS list clear in python

Actually I wrote a code to find a character from the list and print the index but am not getting the difference between these two codes please help me out:  #My list: l = ["MA-%78*%%1","MA%-78*%1","MA%%-%78*1","M%A#-78*%%1"]  search(l,"%")   Code 1:  def search(string_list,search_character):     sl = string_list     char1 = search_character     l1 = list()     l11 = list()     for j in range(len(string_list)):         l1.clear()         s1 = string_list[j]         for i in range(len(s1)):             if s1[i] == search_character:                 l1.append(i+1)         l11.append(l1)     return l11   This yields the output: [[1, 8, 9], [1, 8, 9], [1, 8, 9], [1, 8, 9]]  Code 2:  def search(string_list,search_character):     sl = string_list     char1 = search_character     l11 = list()     for j in range(len(string_list)):         l1 = list()         s1 = string_list[j]         for i in range(len(s1)):             if s1[i] == search_character:                 l1.append(i+1)         l11.append(l1)     return l11   I get correct output when I initialized the list again without clearing it:  [[4, 8, 9], [3, 8], [3, 4, 6], [2, 9, 10]]  I didn't understood what is wrong with l1.clear() function.


Microcontroller vs Microprocessor [Driving External Hardware]

I went through a video on  [2:42], that described "key difference" between a microcontroller and microprocess, apart from other differences, is that "microcontroller has a strong I/O capability so that they can derive external hardware directly, while microprocessor has weak I/O which needs  transisitors to drive external hardware"  I really didnt understand why is that. Both microcontroller and microprocessor require transistors to drive external hardware. What am I missing?    This question is not pertaining to mere microcontrollers vs microprocessors, it is focused on a single distinction of "proficiency of driving external hardware"


How to write a perfect equation parameters description?

Equation's symbols or parameters description are shown below, however, the = and the details of parameter are not aligned.     I want to make a parameters list for a equation like this, in which symbols, = and detail information are aligned in terms of vertical position.  where    ...    P   =   notional permeability factor    N   =   number of waves    Sd  =   damage level    ...   A tabular environment will produce more spacing before and after text. So how to make the = vertical aligned?   The codes is provided:  \begin{equation} \frac{H_s}{\Delta D_{n50} } = 1.0~ P^{0.13}~ \left(\frac{S_d}{N} \right)^{0.2} \xi_m^P~ \sqrt{\cot \alpha} \end{equation} where:   $H_s$ = significant wave height, equal to the average of the highest 1/3 of the waves  $\Delta$  = relative buoyant density, equal to $\rho_r / \rho_w - 1$, where     $\rho_w$ is the water density  $D_{n50}$ = nominal  diameter defined in Equation (2)  $P$ = notional permeability factor  $S_d$ = damage level   $N$ = number of waves  $\xi_m$ = breaker parameter based on mean wave period $T_m$  $\alpha$ = slope angle


Why is $\mathbb{Q}(\sqrt{2})$ not isomorphic to $\mathbb{Q}(\sqrt{3})$?

The question first asks to show that $\sqrt{3}$ has a root in $\mathbb{Q}(\sqrt{3})=\{a+b\sqrt{3}|a,b \in \mathbb{Q}\}$ but not in $\mathbb{Q}(\sqrt{2})$. This is I solved by assuming, towards a contradiction, that $\exists a,b\in \mathbb{Q}$ such that $a+b\sqrt{2} = \sqrt{3}$, so $b = \frac{\sqrt{3} - a}{\sqrt{2}}$. Clearly this is a contradiction since $\frac{\sqrt{3}}{\sqrt{2}}$ is irrational, and $\frac{a}{\sqrt{2}}$ is either zero or irrational, so their difference must be irrational.  Then the queestion asks me to explain why this implies that $\mathbb{Q}(\sqrt{2})$ is not isomorphic to $\mathbb{Q}(\sqrt{3})$. In previous questions, I showed that $\mathbb{Q}(\sqrt{2})$ is isomorphic to $\mathbb{Q}[x]/\mathopen{<}x^{2}-2\mathclose{>}$, where the latter is the set of congruence classes modulo $x^2 - 2$, and the same for root 3. I'm guessing that we come to some contradiction if we assumed that a field not containing $\sqrt{3}$ is isomorphic to $\mathbb{Q}[x]/\mathopen{<}x^{2}-3\mathclose{>}$, but I don't see how.   Any hints or suggestions would be appreciated. Thanks!


Is $\mathbb Z[ \sqrt{-3}]$ UFD ? If so , why $$4=2 \times 2 = (1+\sqrt{-3}) \times (1-\sqrt{-3} )$$ and every terms are irreducible ?


Reading through my textbook I came across the following problem, and I am looking for some help solving it. In the back of the textbook they have shown the final answer but I'm not quite sure how to get there. If I could get some help that would be great, thanks!  Find,  $$\sum_{k=0}^{n}4^k \binom{n}{k}$$  The solution given is,  $$C(7,1)C(4,1)+C(7,2)C(4,2)+C(7,3)C(4,3)+C(7,4)C(4,4)$$


I am looking for some clarification regarding the use of e.g. My question is: when we list something after e.g., should I use 'and' at the end. For example, There are many different flavors of ice cream (e.g. chocolate, vanilla and strawberry). Or without and: There are many different flavors of ice cream (e.g. chocolate, vanilla, strawberry).


how do i do the derivative of frobenius norm

I am trying to do matrix factorization.  $ \frac{1}{2} \vert\vert X - WZ ^T \vert\vert ^2_F $  How do I find the derivative wrt W ?  I am just told that it is $  W^T = (Z^TZ + \lambda I_K)^{-1}Z^TX^T $  I come from a lousy school please help show me the way.


How to transform all the images from the current directory to a video in FFmpeg?

I’d like to use  to transform all images from the current directory to a video. The image file name is not like, image1.jpg and image2.jpg.


How can I set up a permanent compile loop that keeps trying even when there are errors? I'm using latexmk with a remote compile setup as discussed  and . However, if I save a document with a bug (either a legitimate bug, or I save it before closing a tag), then latexmk halts. Any suggests how I can have it pause, try again, and keep trying again, for ever and ever?


Windows (7, 8, 10) - Is a clean install better than an upgrade and if so why? (be specific)

I'd like to know if given an existing Windows PC, are there any concrete reasons why a clean install should be performed over an update.  Articles like  refer to "bloatware" and "clutter" on the PC and rightly suggest that this might not be something that you want on the upgraded PC.  refers to "crashes" and upgrades being "problematic". Both are fairly non specific as to what these problems might be though.  If I'm happy that there is no bloatware or clutter on the PC prior to the upgrade, are there any specific known issues that can cause specific problems when upgrading rather than clean installing?  Or is it just a case of being sure?


Ubuntu 17.10: How to display dock on-hover when mouse is on the left side of the screen?

i have installed ubuntu 17.10 and i am trying to get my dock to be displayed when hovering on the left side of the screen instead of making it fixed or displayed only when pressing the super btn (this is the current setting).   EDIT: for @pomsky


Can I take a screenshot of a virtual console?

Is there a way for me to take a screenshot in a virtual console?


How to receive email notification of new Facebook messages?

I would like to receive an email when someone sends me a message on Facebook. This used to happen by default.  Is it still possible to set it up somehow?  Update (Dec/12):  Mehper C. Palavuzlar's solution stopped working for me (and apparently for at least some other users) AND I have stopped receiving email notifications AGAIN.  Are email notifications still available?   The screen now looks this way:


A 3 × 3 matrix $A$ is such that for $X = [2, 3, 4]^\top$, $AX = 0$. Show that $\det(A) = 0$.


Understanding Python super() with __init__() methods

I'm trying to understand the use of super(). From the looks of it, both child classes can be created, just fine.   I'm curious to know about the actual difference between the following 2 child classes.  class Base(object):     def __init__(self):         print "Base created"  class ChildA(Base):     def __init__(self):         Base.__init__(self)  class ChildB(Base):     def __init__(self):         super(ChildB, self).__init__()  ChildA()  ChildB()


Being born to James and Lily, how can Harry be called a half-blood?  It is said that admission in Hogwarts is given to children of Muggles when they show magical talents as a child, and Lily was no exception to this. This makes Lily a witch, so why is Harry half-blooded?


I'd like double bars over my X, that I can get using these overline symbols  \[\overline{\overline{X}}\]   I also tried the bar symbols, but they're misaligned over the X.  \[\bar{\bar{X}}\]   What I end up with is two bars, but the spacing seems too large between the bars. How do I decrease the spacing with double bars?


Induction proof: $S$ contains powers of 2 and predecessors implies $S={\bf N}$

Let $S$ be a subset of $\mathbb{N}$ such that $$2^k\in S\quad\forall\ k\in\mathbb N$$ and, $$k\in S\Rightarrow k-1\in S\quad\forall\ k\ge2,k\in\mathbb N$$  Show by induction that $S=\mathbb N$.


How to make equally sized windows in corners of the screen?

I recently saw  to a great question, and I wondered, is this also possible on Ubuntu GNOME 15.10 with GNOME 3.18 and GDM, as well as on Compiz as the answer to that question shows?  But the keyboard shortcuts aren't so important for me, I just really want to be able to drag windows into the corners and have them automatically resize into those corners rather than on the sides when I release my mouse.


Can there be a pressure gradient in a large enough closed container?

If we had an airtight container that was large enough, say extended out to the Karman line, would there still be a pressure gradient? If we assume that the pressure at the bottom was $1\ \mathrm{atm}$, would it have the same exact pressure gradient at 6 miles up on the outside? This is assuming that the gravity is still $9.8\ \mathrm{m/s^2}$.


As of today I only knew about ubuntu-bug which I could use to report bugs about a specific program. But now I learned about apport-collect and apport-bug which basically are:  apport-bug - Reports problems to launchpad using Apport to collect a lot of information about your system to help the developers fix the problem and avoid unnecessary questions and answers.  apport-collect - Works as apport-bug but it send the information to an already existing bug report. In my case it was apport-collect 1060268 Thanks to Brad Figg in Launchpad.  Are there any other tools to report bugs?


Decision Split not evaluated correctly for multiple entries to data extension (Contact Data entry event)

Scenario  I created a journey with a Contact Data entry event that is triggered via the API. A subscriber should be able to be injected multiple times and the values in the data extension are updated while the subscriber is in the journey. The updated values should determine the path the subscriber follows.  Setup  As changed data needs to be evaluated and the contactkey cannot be used as primary key, I added a random id as primary key and created an attribute group for the data extension in Data Designer. The data extension is linked to the contact's contactkey using a one-to-many relationship as a contact should be able to enter the journey multiple times.  In the journey I'm using a decision split that is configured to use contact data from the created attribute group and has two branches (as it checks a boolean value).  Problem  For multiple entries the decision split doesn't evaluate correctly and always leads to same branch (value equals false). I suppose the problem is that journey builder doesn't use the primary key to identify the correct row in the data extension. Is there any way to make sure the row is matched using this id and not the contactkey as this leads to some strange behaviour as described here:


How do you compute with decimal numbers on a computer?

I came across something this morning which made me think... If you store a variable in Python, and I assume most languages, as x = 0.1, and then you display this value to 30 decimal places you get: '0.100000000000000005551115123126' I read an article online which explained that the number is stored in binary on the computer and the discrepancy is due to base conversion. My question is how do physicists and nano-scientists get around this problem when they do computation? I always thought that if I input data into my calculator using scientific-notation it will give me a reliable accurate result but now I am wondering if this is really the case? There must be a simple solution? Thanks.


What exactly is a module? What is the difference between a module, a class and a function? How can I access a module in C#?  I am asking this because I want to calculate a checksum of the IL code of only some particular functions, at runtime (without using code signing).


Emoji turns to '?' while commenting (laravel+mysql+html)

In my project a user can comment on posts and images, but when a user comments emojis, it turns to '?' (question mark). Can someone help me with this issue .  'mysql' => [             'driver' => 'mysql',             'host' => env('DB_HOST', '127.0.0.1'),             'port' => env('DB_PORT', '3306'),             'database' => env('DB_DATABASE', 'forge'),             'username' => env('DB_USERNAME', 'forge'),             'password' => env('DB_PASSWORD', ''),             'unix_socket' => env('DB_SOCKET', ''),             'charset' => 'utf8mb4',             'collation' => 'utf8mb4_unicode_ci',             'prefix' => '',             'prefix_indexes' => true,             // 'strict' => true,             'strict' => false,             'engine' => null,             'options' => extension_loaded('pdo_mysql') ? array_filter([                 PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),             ]) : [],         ],


Grub error: /usr/sbin/grub-mkconfig: 7: /etc/default/grub: splash: not found

Yesterday I'd installed new driver for my sound card and today the Sound doesn't work. I'd found an answer for this problem and fixed it in /etc/default/grub, but now when I try sudo update-grub it comes this error:  /usr/sbin/grub-mkconfig: 7: /etc/default/grub: splash: not found   This is my grub file:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  # MANUELL EINGEFUGT GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash pci=use_crs“  GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="splash quiet"  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that  obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD .  ..) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports  via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter  to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"   I add this line:  GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash pci=use_crs“   And I commented this line out:  #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"   I am using Ubuntu 16.04 LTS.


Why do we use residuals to test the assumptions on errors in regression?

Suppose that we have a model $Y_i = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \dots + \beta_kX_{ik} + \epsilon_i$.  Regression has a number of assumptions, such as that the errors $\epsilon_i$ should be normally distributed with mean zero and constant variance. I have been taught to check these assumptions using a normal QQ plot to test for normality of the residuals $e_i = Y_i - \hat{Y}_i$ and a residuals vs. fitted plot to check that the residuals vary around zero with constant variance.  However, these tests are all on the residuals, not the errors.  From what I understand, the errors are defined as the deviation of each observation from their 'true' mean value. So, we can write $\epsilon_i = Y_i - \mathbb{E}[Y_i]$. These errors cannot be observed by us. *  My question is this: how good of a job do the residuals do in mimicking the errors?   If the assumptions appear to be satisfied on the residuals, does this mean they are satisfied on the errors too? Are there other (better) ways to test the assumptions, like fitting the model to a testing dataset and getting the residuals from there?    * Furthermore, does this not require that the model is specified correctly? That is, that the response really does have a relationship with the predictors $X_1, X_2,$ etc. in the way specified by the model.  If we are missing some predictors (say, $X_{k+1}\ \text{to}\ X_p$), then the expectation $\mathbb{E}[Y_i] = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \dots + \beta_kX_{ik}$ would not even be the true mean, and further analysis on an incorrect model seems pointless.  How do we check whether the model is a correct one?


How area under Velocity-Time graph represents magnitude of displacement?

I understand that if the velocity is constant (acceleration=$0$) throughout the course of motion (where graph shows a rectangle) then it would simply be like playing with equation:  (1). velocity=displacement/time  (2). displacement=velocity $\times$ time                                =area of rectangle                                =Velocity-axis $\times$ time-axis,   putting the value of velocity and time, then getting out the displacement.  But what if the acceleration is constant instead of $0$ (where graph shows a triangle) ? I know it would be $\frac{1}{2}$ velocity $\times$ time, but how we can put a value of velocity in (1) displacement=velocity $\times$ time When velocity is changing all time due to uniformly accelerated motion?


Compare two similar Postgres databases for differences

I occasionally download publicly available data sets in the form of Postgres dBs.   These datasets are updated/modified/expanded over time by the repository host.    Is there a Postgres command or tool (ideally FOSS) that can show the differences between an OLD and NEW Postgres database ?  (A working assumption is that 95% of the entries are unchanged and that the tables and relationships also do not change).


Here is my code:  if [ -f /Applications/xml[0-9].pl ]   I also tried with -f =~ and double brackets but none seem to work.  I first though that the regex might be faulty but I tried this.  echo h1 | sed 's/h[0-9]/h/'   And that worked. What am I doing wrong here?


Is it possible to cultivate Hops in Dehradun District of Uttarakhand, if affirmative, from where I can procure Rhizomes/seeds in India?


I have a Dell Studio 17. It's a few years old, and I wanted to upgrade the processor. It currently has an Intel Core 2 Duo T5750 @ 2.00GHz  My question is how can I find out which processors are compatible?


Using Regex to generate Strings rather than match them

I am writing a Java utility which helps me to generate loads of data for performance testing.  It would be really cool to be able to specify a regex for Strings so that my generator spits out things which match this.  Is there something out there already baked which I can use to do this?  Or is there a library which gets me most of the way there?  Thanks


Why is the $dx$ right next to the integral sign in QFT literature?

I've noticed that in QFT literature, integrals are usually written as $\int \!dx ~f(x)$ instead of $\int f(x) dx$. Why?


'If' loop in Java only returns one result

When I run this if loop program, it always returns "You're not Harry", even if I enter "Harry". I'm running Eclipse Oxygen.  import java.util.Scanner;  class Hey {     public static void main(String args[]) {         Scanner Myscanner = new Scanner(System.in);         java.lang.String x;         System.out.println("Enter name:");         x = Myscanner.nextLine();         if (x == "Harry") {             System.out.println("You're Harry");         } else {             System.out.println("You're not Harry.");         }      } }


Can I downgrade SQL Server 2008 R2 Standard To Web Edition?

We are running a SQL Server 2008 R2 Standard Evaluation version. The client has decided they don't want to pay for full SQL Server standard and feel the Web edition is suitable. Can I downgrade SQL Server 2008 R2 Standard Evaluation to Web Edition?  Obviously I need to put a licence on it. Can I just put the Web edition licence on it and it will become a Web Edition server or does it require a re-install.


Updating Windows Patches on a bootable USB

I used WinToFlash to clone a Windows CD to a USB to make it bootable.  Is there a way I can push Windows Updates to the USB so WU does not take as long to run?


I have excellent grades in my upper div math courses. Due to personal events, my Calc I grade is a C. How will this affect my graduate admissions?

I am an undergraduate pure maths major looking to attend graduate school in pure mathematics.  At my first college, I had a fairly traumatic first semester that led to, among other things, a C grade in Calculus I.  Throughout the next two semesters, I received A grades in all of my math classes, and transferred schools (so that the Calculus I grade in my older school still shows up on a transcript, but it does not factor in my cumulative GPA at my new school). This includes A grades in upper division analysis and algebra. My current cumulative GPA at my new school is 3.85.   How will my poor grade in Calculus I reflect on my admissions into top universities for graduate school?  Thank you.


show that $\alpha\beta \leq \frac{1}{2\varepsilon}\alpha^2+\frac{\varepsilon}{2}\beta^2$

let $\varepsilon >0$. show that $\forall \alpha,\beta \in \mathbb{R}$  $\alpha\beta \leq \frac{1}{2\varepsilon}\alpha^2+\frac{\varepsilon}{2}\beta^2.$  Its looks like holder inequality with $p=2$ and $q=2$.   some hints would be appreciated.


position text at the top of cell in table if there is a large text in the second cell

I want to position the text at the top of the box as it is declared, but when the column on the right contains a long text, it automatically changes to the bottom of the box     \documentclass[12pt]{report}  %% Je suis francophone ! \usepackage[francais]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fancybox} %% Je veux utiliser néanmoins des fontes qui « paraissent bien » en PDF \usepackage[cyr]{aeguill} \usepackage[table,svgnames]{xcolor} \newcolumntype{C}[1]{>{\centering\arraybackslash }b{#1}} \newcolumntype{L}[1]{>{\raggedright\arraybackslash }b{#1}} \newcolumntype{R}[1]{>{\raggedleft\arraybackslash }b{#1}} \begin{document} \begin{center} \begin{table}[h] \begin{tabular}{||C{0.5cm}||C{5cm}||C{4cm}||C{6.5cm}||}   \hline  \cellcolor{Gray} \textbf{RG} & \textbf{Définition} & \textbf{Mapping} & \textbf{Règles de gestion spécifiques}\\   \hline \hline   \multicolumn{1}{||L{0.5cm}|}{\parbox{0.5cm}{1}} & \multicolumn{1}{|L{5cm}|}{\footnotesize {Portail \-Date Traitement Courant}} & \multicolumn{1}{|L{4cm}|}{\scriptsize{RBP \_ vTBADMRBP \_ SUIVI \_ APPLI.D \_ TRAIT}} & \multicolumn{1}{|L{6.5cm}||}{\footnotesize {CASE WHEN [RBP \- Presentation View].[Dimension \- Référentiel Datamart].[L\_DATMR] = 'PORTAIL' THEN [RBP \- Presentation View].[Fait \- Suivi Application].[D\_TRAIT] END}} \\ \hline  \end{tabular} \caption{Équipe de travail} \end{table} \end{center}  \end{document}


What is the flaw of this proof (largest integer)?

Let $n$ be the largest positive integer. Since $n ≥ 1$, multiplying both sides by $n$ implies that $n^2 ≥ n$. But since $n$ is the biggest positive integer, it is also true that $n^2 ≤ n$. It follows that $n^2 = n$. Dividing both sides by $n$ implies that $n = 1$.  The goal is to find the flaw in the reasoning of the proof rather than find a proof that proves it wrong. Here's where I think the problem is:  It was stated that $n^2 ≥ n$ after multiplying both sides of the inequality by $n$. But then because $n$ is the largest possible integer, $n^2 ≤ n$. This is where I think the flaw is, because if $n$ is the single largest integer, then we'd get $n^2 < n$ rather than $n^2 ≤ n$, so writing the latter is incorrect.


Construction of $\mathbb{CP}^2$ from $S^2\times S^2$

Show that $\mathbb{CP}^2$ is homeomorphic to the orbit space of $(S^2\times S^2)/\mathbb{Z}_2$. The action is given by $(x,y) \mapsto (y,x)$. My attempt: I can see that $S^2\times S^2$ is a subset of $S^5$. I am unsuccessfully trying to restrict the action of $S^1$ on $S^5$ to $S^2\times S^2$ to get the required map.


I am generating the random string to change the password of users by shell scripting. I am using the below command to generate the random string   </dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 13  ; echo   I am not able to put this on a variable.


Why don't Android phones come rooted from stock?

I have begun doing Android development a few months ago and it still blows my mind why an end-user that buys an Android machine cannot is is not allowed to have full access to it (aka root acccess), except through unsupported and dangerous hacks that grant root permission. For example, I want to send raw wifi packets for my current development idea, but the SDK doesn't allow this (for "security" resons?). An Android phone is a Linux machine after all, so what is going on?! My question is about the way Android is designed and distributed. I've read that people seem to say there is a malware risk, but isn't the risk just as high on a normal PC?


What is the purpose of Light and Dark Tone?

Every time card:   Period Event Scene   Is to be marked with a Black (/filled) or White (/unfilled) circle, to indicate if the events described with in are Light or Dark, in nature/theme. Periods and Events are marked when created, scenes are marked at the end of them being played out.  For example, the Event of "The Rebels attack, and destroy the Capital", could be a Light event, if they are the good rebels, freeing the people from the dark empire. Or it could be a dark event if they are ruining the peaceful kingdom.  I understand how to decide on the Tone (Light/Dark), but not on what effect these have in game.  I see that they clarify the descriptions on the cards a bit. But do they have a mechanical effect?  I have read through the "How to Play" section in full, but not the appendix on "How/Why Microscope works". I've only flicked through that.  Is there some mechanic i missed, like:   "Within a Dark Period, No more than 50% of the Events at any given time can be Light?" Or "At the end of play count up how many Light/Dark events you have. This is interesting to track as time goes by to learn more about the your preferred playstyle"


Software from Ubuntu Software broken after install

I got a new install of 18.04, and when I install en app from Ubuntu Software or snap it will not start. If I install the same app from a deb-package it works. What is going on? Kinda resembles a permissions problem or something...  Please help! :D


Qt LNK2019 issue with custom QVector class

I have a custom QVector class, which has a single function: to return the element of the vector fulfilling some conditions. Here is some code: customvector.h #ifndef CUSTOMVECTOR_H #define CUSTOMVECTOR_H  #include "customfile.h"  #include <QVector>  template<typename T> class CustomVector : public QVector<T> { public:     using QVector<T>::QVector;      CustomFile find(int index); };  customvector.cpp #include "customvector.h"  template <typename T> CustomFile CustomVector<T>::find(int index) {     // Processing }   #endif // CUSTOMVECTOR_H  The code driving this: CustomVector<CustomFile> files; files[0] = CustomFile(0); files[1] = CustomFile(1); qDebug() << files.get(0).index;  customfile.h class CustomFile { public:     CustomFile(int index);     int index; };  customfile.cpp CustomFile::CustomFile(int index) {     this->index = index; };  The issue I am having is that I keep getting a LNK2019 error, telling me that the find(int) function is an unresolved external symbol. Can anyone help?


How to edit an order to add the shipping line item to prevent AJAX error

Using Drupal 7.61 and Drupal Commerce 7.x-1.14 (+ Commerce Shipping 7.x-2.3 and Flat Rate 7.x-1.0-beta2)  My client has (probably) deleted the shipping line item for an order and he has tried to edit this order to add a new shipping line item (4 shipping services set by Flat rate).  We get the same AJAX error each time we try :   DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback()(line 1094 of /home/my_website/public_html/includes/database/database.inc).  Where should I look to fix this issue?  First there was also a Rules issue and I managed to fix it with a specific condition but we still can not edit the order to add a shipping line item.  EDIT : after a couple of new tries, it seems like the Rules Collect rate : flat rates fired and failed somewhere... some values are missing when adding a shipping line item through Order edit form, compared to Checkout where everything goes well   EDIT/ANSWER : Thanks to Clive's comments, I found a solution. Actually, multiple savepoints were involved in my process (one to save the new shipping line item in Drupal database and an another one to send it in an external database through a specific Rule). That makes sense when you read documentation on rollback(). So I have changed my Rule with a special condition related to shipping and now it works.


Where can a tourist apply for a UK Visitor (standard) Visa?

Prior to 24 April 2015, Paragraph 28 of the Immigration Rules was (emphasis mine)...     An applicant for an entry clearance must be outside the United Kingdom   and Islands at the time of the application. An applicant for an   entry clearance who is seeking entry as a visitor must apply to a post   designated by the Secretary of State to accept applications for entry   clearance for that purpose and from that category of applicant.   Subject to paragraph 28A, any other application must be made to the   post in the country or territory where the applicant is living which   has been designated by the Secretary of State to accept applications   for entry clearance for that purpose and from that category of   applicant. Where there is no such post the applicant must apply to the   appropriate designated post outside the country or territory where he   is living.   Source: archives at   This meant that a person could apply in any country that had a British mission competent to issue visas.  So for example, a Russian national who was in France could use the British mission in Paris to apply as a visitor.  But on 24 April 2015, Paragraph 28 now reads...     An applicant for an entry clearance must be outside the United Kingdom   and Islands at the time of the application. An applicant for an entry   clearance who is seeking entry as a short-term student must apply to a   post designated by the Secretary of State to accept applications for   entry clearance for that purpose and from that category of applicant.   Subject to paragraph 28A, any other application must be made to the   post in the country or territory where the applicant is living which   has been designated by the Secretary of State to accept applications   for entry clearance for that purpose and from that category of   applicant. Where there is no such post the applicant must apply to the   appropriate designated post outside the country or territory where he   is living.   The text about visitors is gone.  It appears to have been replaced by text about short-term students.  Looking further, Appendix V to the rules contains this statement...     An application for a visit visa must be made while the applicant is   outside the UK.   Note that this is in an appendix.  So it looks like the applicant must satisfy three conditions...    outside of the UK (Appendix V) and outside of the UK and Islands (Paragraph 28) and in their home country (Paragraph 28)   This means in my example that the Russian national touring France would have to return to Russia to get a UK entry clearance.  Or alternatively, that an entry clearance issued in France to a Russian national would be illegal under Paragraph 28?  Or would the consulate in Paris be required to reject the application?  Or more confusingly, if the Russian national were in 'the Islands' (Guernsey or Sark for example) then it's ok for Appendix V, but forbidden by Paragraph 28.  Do all of these conditions hold?  If not, which 'rule' is senior?  Current immigration rules for Paragraph 28 and Appendix V are at   Note: Not very many of the various VFS and consular sites on the net have caught up with the recent rule changes yet so they are not totally reliable. Please use up-to-date links if citing something.  Note:  Regarding ambiguity over the clause, "where the applicant is living", this has always meant "where the applicant does not require leave to remain or has been given leave to remain for a period longer than 6 months"


Is it possible that a visa can be issued after the intended date of entry on the application?

I applied for a shengen visa through Czech Republic embassy, the intended date of flight was 24/12, I booked without paying the flights but she said it’s too early and that I can’t get the visa on that time, she kept the flights reservations with me and took everything else and said that she expect me to get the visa on 27th, my question is..How can that be possible when I write the intended date of entry on the application as the 24th, can they approve the visa after the flight date?!!


Can we find an example of a function $f$ such that Newton-Raphson converges with rate higher than 2?


Textures disappear when the rendering engine is switched to cycles

So in my graduation from blender internal to cycles, I've been experiencing numerous problems. Now please bear with me, the answer is probably obvious but I'm new so cut me some slack.  This is how the model looks like in blender internal:    Now I transfer to cycles:      And I get this result:   The textures are there in the menu bar, but they will not show up no matter what I try.


Upgrading from 7.22 to 7.28, htaccess file in /tmp

I get this error :    My .htaccess file in that directory looks like this now (I copied it from the url):  # Turn off all options we don't need. Deny All Options None Options +FollowSymLinks  # Set the catch-all handler to prevent scripts from being executed. SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 <Files *>   # Override the handler again if we're run later in the evaluation list.   SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003 </Files>  # If we know how to do it safely, disable the PHP engine entirely. <IfModule mod_php5.c>   php_flag engine off </IfModule>   I still get said error. Why?


Should I install the bcmwl-kernel-source or broadcom-sta-* packages for my Broadcom 4352 wi-fi adapter?

Should I install the bcmwl-kernel-source or broadcom-sta-* packages for my Broadcom 4352 wi-fi adaper? I currently have the bcmwl-kernel-source package installed and it works but if the broadcom-sta-* is a better solution I would like to see if there's a difference.   This is not a question about how to install the driver which this supposedly is a duplcate of, but rather which of the two Broadcom drivers that currently are available for Ubuntu I should use. The older driver works, but I would like to try the newer one it works better


I am taking a probability course and we have been of course learning the classic problems of men with hats or variations of that in some other form. The problems being of the type if $n$ men have $n$ hats and mix them all together, whats the probability $0, 1, 2,$ or $k$ men choose their hat.   But from what I can gather is that they are all problems of the same type, for any given random permutation of $k$ objects how many fixed points are there. My professor taught us to solve this using conditional probabilities (conditioning on whether the first person matched and then generating a system of equations) and using the inclusion-exclusion principle. But is there any other way to reason this?


How do I use subprocess.Popen to connect multiple processes by pipes?

How do I execute the following shell command using the Python  module?  echo "input data" | awk -f script.awk | sort > outfile.txt   The input data will come from a string, so I don't actually need echo.  I've got this far, can anyone explain how I get it to pipe through sort too?  p_awk = subprocess.Popen(["awk","-f","script.awk"],                           stdin=subprocess.PIPE,                           stdout=file("outfile.txt", "w")) p_awk.communicate( "input data" )   UPDATE:  Note that while the accepted answer below doesn't actually answer the question as asked, I believe S.Lott is right and it's better to avoid having to solve that problem in the first place!


Is integration from $a$ to $b$ same or $b$ to $a$ or is negative?

The integration is generally area under the curve in $\Bbb R^2 \to \Bbb R$  Is integration in the range from $a$ to $b$ the same as $b$ to $a$ or is it negative?  If it is negative, Is it merely notion of convention or is there some intuition for it?


keyboard short cut for switching between two or more instances of the same application?

I'm wondering if there is a keyboard short cut for examining and switching between multiple windows of the same application?  I know of Alt + Tab but that only shows different applications.


If $1+2^n+4^n$ is prime number then prove that $n=3^k$ for some $k\in \mathbb{N}$.  I've looked at  for an inspiration. In base 2, $1+2^n+4^n=10\ldots010\ldots01$ and I am completely stuck.


I have a website where the number of visitors is increasing and it is facing a poor response time. I am not a server specialist and for this reason I want to expose my issue here to receive some feedback. The website has the following characteristics:   Developed with ASP.NET Web Forms (I will be implementing a new version with ASP.NET MVC soon). It uses a PostgreSQL 9.1 database. It is 100% dynamic which means that every page is formed at run-time getting information from the DB. Hosted in a cloud server with 2 Cores and 4 GB of RAM. Windows Server 2012 in drive C: PostgreSQL DB in another "hard disk" as drive D: The average number of daily visitors is 2,500   Watching the Task Manager I can notice that there are many PostgreSQL processes which consume CPU 100%. Another process that is shown in the "IIS Worker Process" but I have not seen it as critical as the PostgreSQL process. So it seems that the main issue here has to do with the database access. When CPU usage is high the website response is extremely low and also it is very difficult to establish a remote desktop connection.  I have thought about upgrading the cloud server to, for example, 4 cores and 8 GB of RAM, but firstly I want to get feedback from experts here so I can take the best approach. I am not a server expert and, for this reason, I do not want to take steps blindly.


Is there a way, a setting for blender to put the focus on the current selection of vertices you edit in edit mode, automaticaly? Pivoting around the selection is dizzying if you don't  continuously press the point key (.) just to focus on it, which i think is so redundant. but i don't want it also zooming in TOO close in your face every time like when blender focuses on things.


use find command for recursive conversion using ffmpeg

How can I use the following script to recursively convert a directory containing .mp4 to .png (1 frame only).  Right now it only converts the directory.  It's not recursive.  for i in *.mp4 do name=`echo "$i" | cut -d'.' -f1` echo "$name" ffmpeg -i "$i" -r 0.0033 -vf scale=-1:1024 -vcodec png "${name}.png" done


How to create a background image on title page with LaTeX?

I want to put a background image on a title page of a document. Is it possible and does it work?  EDIT: The answer by Presidenten using the  and my answer found after some research using the  both work.


I am performing ordinal regression on several datasets, I have 5 ordered response categories and only one explanatory variable X. For each dataset I run the analysis 3 times, each time using a different link function (1. probit, 2. logit, 3. comploglog) and I calculate the AIC to see which function fits my data best.   It seems that for different datasets I get different link functions significantly providing a "best" fit; for example probit is better for dataset 1 and logit is better for dataset 2 etc.  I am trying to find an explanation for such difference.   So my question is, what is the "physical" meaning of each link function?  For example, I understand the probit link function assumes the response scale can be related to a latent continuous, normally distributed variable but for the other 2 I have no idea.  Any insight on this would be great!


What are odd-even memory addresses in 8086 and how do they work?

I have recently started to look more into microprocessors at the hardware level, and i am a bit confused on what are the odd-even memory locations that 8086 uses. As far as i understand, it has something to do with 8086 being a 16-bit CPU while retaining the ability to access individual bytes at a time of its 8-bit predecessor 8080, but how does it work in detail? Also, how do other early CPUs like the 68000 approach the problem of addressing individual bytes? They don't have on chip cache to read entire chunks of memory at a time nor do they have a complex MMU after all.


Jacobson radical of a finitely generated $\mathbb Z$-algebra is nilpotent

If a commutative ring $R$ with $1$ is finitely generated over $\mathbb Z$ could one deduce that the Jacobson radical of $R$ is nilpotent?    I am aware of the well-known fact that when $R$ is artinian, the Jacobson radical of $R$ is the unique nilpotent ideal of $R$, but here we are not sure of artinianness of $R$. Thanks in advance for any cooperation!


Enable Adobe extended pdf features in latex, backwards compatibility for saving form data

Is there a way with latex to enable Adobe Reader Extended PDF Features? I am creating a pdf form using hyperref/eforms and want users to be able to save the data entered into the form locally, and to be able to do so with older versions of Adobe reader.  I don't want to require users to email the form to me. I just want the data entered into the form to be able to be saved locally and retain all form editing capability.


How do you solve $7^{60} \pmod{77}$?  For $5^{60} \pmod{77}$, it's equal to $1$ because I think the $\gcd(5,77) = 1$ and using the FLT we can find that $5^{(7-1)(11-1)} = 1 \pmod{7*11}$. But how do you get $56$ from $7^{60} \pmod{77}$?


Profile picture not always loading from gravatar

I've setup my profile picture to be loaded from Gravatar. But in some places it is showing my identicon, while in other places, it is actually showing the correct Gravatar image.  From what I've found, this is where I'm getting the wrong image (this is occurring on all of the SE sites I've checked):   On desktop: I'm getting the identicon next to my name in the answers and questions. (However, I get the correct image when I hover over the image to view the expanded user card) On mobile: I'm getting the identicon in the SE's site switcher in the top bar.   From where I've looked, everywhere else I'm getting the correct image (ex: ).


what is the purpose of the arrow on bottom right side in Ubuntu budgie. how to remove it. it go away after restart and comes back after sometimes. i don't think i have installed/added anything for the arrow and also it always on top of all programs .


Let me describe the data setup. A line has been provided as an array of coordinate pairs, one for each vertex. This array is variable in size, anywhere from 2 to 200 coordinate pairs per line. What I am trying to wrap my mind around is the best way to create these lines. Arcpy and ArcObjects are both viable options, but ArcObjects is preferred due to its speed (generally).   I have brainstormed a few methods, but they fall short for some reason or another:  1) I could use the  with arcpy to create polylines and then Copy Features, but the resulting geometry would not have any of the attribution necessary to identify said points.  2) I could use , but this only works with one pair of point, and I require something much more robust.  The long and short is that I require a method that can create a polyline from arrays and maintain a schema for data that I have created in a table. One idea I have is to create said table and schema, and then somehow create the polyline and copy its shape property to the output table, porting over the ID and whatever other attribution is needed. How can I go about creating the polyline's shape property without resorting to an intermediate shapefile? Or, if there is a better method that comes to mind, please share it with me.  Update This code seems to work!  IFeatureClass fClass = gpUtil.OpenFeatureClassFromString(path); IFeatureCursor cursor = fClass.Insert(true); IFeatureBuffer buffer = fClass.CreateFeatureBuffer();  <snip...>  string[] nodearray = a.Split(';'); foreach (string i in nodearray) {     query.WhereClause = "\"PNT_ID\" = '" + i+"'";     Console.WriteLine(query.WhereClause.ToString());     ICursor search = table.Search(query, false);     IRow row = search.NextRow();     float x = float.Parse(row.get_Value(2).ToString());     float y = float.Parse(row.get_Value(3).ToString());     int id = int.Parse(row.get_Value(1).ToString());     point.X = x;     point.Y = y;     point.ID = id;     point.SpatialReference = sRef;     pCollection.AddPoint(point, ref Missing, ref Missing);  } IGeometry5 polygeo = (IGeometry5)pCollection; buffer.set_Value(1, polygeo); buffer.set_Value(2, wayid); cursor.InsertFeature(buffer);


I'm trying to prove that, in $\mathbb{Z}_n$, the set of $\overline{a}$ that are invertible is well-defined. That is, if $a,b \in \overline{a}$, so $a \equiv b \text{ (mod $n$)}$, then $\gcd(a,n) = \gcd(b,n) = 1$. (I'm more interested in the general result, though, that $\gcd(a,n) = \gcd(b,n)$. My attempt Suppose $a \equiv b \text{ (mod $n$)}$. Then $a - b = kn$ for some integer $k \in \mathbb{Z}$. Then $a = b + kn$ and $b = a - kn$. At this point, there is likely some proper of the gcd that I need to use to deduce the result from that, but I am not completely sure of what that is.


When is the inverse function of the derivative equal to the integral?

Note on duplicates  question is not a duplicate; it asks when the inverse of the derivative equals the function, mine asks when the inverse of the derivative equals the integral. The question Let $f$ be any function. Define $F(x)$ to be the integral of $f(x)$, and $(f')^{-1}$ to be the inverse function of the derivative of $f$. When is $$F(x)=(f')^{-1}?$$ I don't know much about how to solve this equation. Any help would be appreciated.  $(f')^{-1}$ is not the reciprocal of $f'$. I could do this, but I don't know where to begin from. Any hint of where to start from would also be helpful.  My thoughts and work  Does such a function even exist? Why/why not? From the initial equation, we get $$F^{-1}(x)=f'(x)$$ Now we use  formula, to get $$f=xF^{-1}(x)-G\circ F^{-1}(x)+C$$ Where $G$ is the integral of $F$. So, we get $$f=xf'(x)-G\circ f'(x)+C$$ Now what can be done?  Motivation I have seen many functional/differential equations that are just simple combinations of integrals, derivatives, like  which interested me in solving differential equations, that look simple but have hard solutions. This is not from any website/book/article, just my thought.


How I can customize a legend on pgfplots?

I am trying to design a legend like picture. it has two column and each column has head text. Also, how I can control which item in first column and which one in second column?        \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.6}  \begin{document}  \begin{tikzpicture}     \begin{axis}[         legend columns=2,          legend style={                     % the /tikz/ prefix is necessary here...                     % otherwise, it might end-up with `/pgfplots/column 2`                     % which is not what we want. compare pgfmanual.pdf             /tikz/column 2/.style={                 column sep=5pt,             },         },     ]         \addplot {x};         \addlegendentry{ }         \addplot {x+4};         \addlegendentry{$x$+4}                    \addplot {2*x};         \addlegendentry{ }         \addplot {2*x+4};         \addlegendentry{$2x$+4}                            \addplot {4*x};         \addlegendentry{ }         \addplot {4*x+4};         \addlegendentry{$4x$+4}     \end{axis} \end{tikzpicture}  \end{document}


How do we prove the existence of uncountably many transcendental numbers?

I know how to prove the countability of sets using equivalence relations to other sets, but I'm not sure how to go about proving the uncountability of the transcendental numbers (i.e., numbers that are not algebraic).


gray code clock domain crossing FIFO fast to slow

I'm trying to understand how clock crossing FIFOs are implemented, and the usual answer I see to convert the read/write address pointers to gray code and then pass through synchronizer circuits into each others clock domain to determine if there's data in contained in the FIFO. The idea of using gray code is so the other clock domain can detect metastability on the other end by the fact that only one bit should change per address increment...and it can safely ignore the address pointer until it looks valid.  What about the scenario where the write clock domain is much faster than the slow clock domain? If the write address pointer can increment many times per read clock cycle, at some point there will be more than 1 bit flipped in the gray code value, and that wouldn't necessarily be a mistake. How is this situation usually handled?  I know there's a similar question on SE, but the answer seems to show an example of the write clock being only 2x faster than the read clock, so maybe this situation is never experienced.


Books about a broad introduction of philosophy

I am a graduate student of Informatics.  Studying mathematical logic I've just started discovering it connection to philosophy. Following this way I started reading something about old and modern philosopher. My first source of information is internet, especially Wikipedia, but I am meeting a lots of difficulties because of the use of terms  I don't know the meaning.   So, I want to ask you  a suggestion of a minimal set of books to read in order to get the main concepts related to philosophy.  I am mainly interested in the explanation of the meaning of the more general terms ( e.g. judgment, subject, object, extension, ecc.. ) I am also interested about a pan on the thoughts of the main philosopher.  Thank you.


The word opportunist seems to be used negatively for a person.    Is there a word with the same but positive meaning?


Go through all folders whose names contain a given pattern

let suppose I have folders with names af32, af42, af, and I want to print the last modification date of all folders whose have af* pattern for example . I writed shell that will take folder or files as parameter and return modification date for that folder .   stat -c %y "$1"   this code will return the last modification date to folder . but how can I apply this code to more than one folder whose have same pattern in their name


what is the difference between "seek" or "search" ?

Can I use a verb seek in this way "makes me seek more rewarding and challenging environment"?  Thank you


I would prefer that the 2 lines that print new balance were on the same line instead of 2 separate lines. How do i do this?  def main():      # Initial balance     balance = input ('Wallet balance: ')      # Withdraw amount from wallet balance     withdraw = input ('Withdraw amount: ')      # Withdraw process and new balance display     if withdraw > 0:         new = balance - withdraw         print ('Your new balance: ')         print new  main()


Does Python uses Memory Pooling for Strings, Integers

I have written simple Python code  #For String Types d_new = dict(a_str="captainmarvel", b_str="captainmarvel", c_str="captainmarvel", d_str="captainmarvel") print(id(d_new['a_str'])) p_str = "captainmarvel" print(id(p_str))  #For int types d = dict(a=4, b=4, c=4, d=4) print(id(d['a'])) p = 4 print(id(p))    it returns output as   270985349584 270985349584 1559653536 1559653536   which are same object ids for integer value 4 and string value "captainmarvel". So does python reuses/pools its basic data types e.g. int, string


Material assigns to the whole object instead of a specific face

I want to make the windshield on my car a blue colour but when i go to assign a material it just turns the whole car body blue. How can i make it so it colours a certain couple of faces instead of the whole car?


If $A$ is a complex matrix of size $n$ of finite order then is $A$ diagonalizable ?

Let $A$ be a complex matrix of size $n$ if for some positive integer $k$ , $A^k=I_n$ , then is $A$ diagonalizable ?


Prove that $\int_0^\infty \frac{\sin nx}{x}dx=\frac{\pi}{2}$

There was a question on multiple integrals which our professor gave us on our assignment.     QUESTION: Changing order of integration, show that $$\int_0^\infty \int_0^\infty  e^{-xy}\sin nx \,dx \,dy=\int_0^\infty \frac{\sin nx}{x}dx$$   and hence prove that $$\int_0^\infty \frac{\sin nx}{x}dx=\frac{\pi}{2}$$     MY ATTEMPT: I was successful in proving the first part.  Firstly, I can state that the function $e^{-xy}\sin nx$ is continuous over the region $\mathbf{R}=\{(x,y): 0<x<\infty,0<y<\infty\}$  $$\int_0^\infty \int_0^\infty  e^{-xy}\sin nx \,dx \,dy$$ $$=\int_0^\infty \sin nx \left\{\int_0^\infty  e^{-xy}\,dy\right\} \,dx$$ $$=\int_0^\infty \sin nx \left[\frac{e^{-xy}}{-x}\right]_0^\infty \,dx$$ $$ =\int_0^\infty \frac{\sin nx}{x}dx$$  However, the second part of the question yielded a different answer.  $$\int_0^\infty \int_0^\infty  e^{-xy}\sin nx \,dx \,dy$$ $$=\int_0^\infty \left\{\int_0^\infty  e^{-xy} \sin nx \,dx\right\} \,dy$$ $$=\int_0^\infty \frac{ndy}{\sqrt{n^2+y^2}}$$  which gives an indeterminate result, not the desired one.  Where did I go wrong? Can anyone help?


Let $S\in\mathcal{M}_{n\times n}$ invertible matrix, and let $x,y\in\mathbb{R}^n$ prove or give a counterexample that :     $$S \textrm { is unitary }\iff\frac{\|Sx-Sy\|}{\|Sx\|}=\frac{\|x-y\|}{\|x\|} $$


I'm following  and I have applied a material to the body mesh and when I apply the material to the faces to the side of the mesh, I can see the top/bottom material is showing on the top and bottom parts of the side faces.  This is the rendered view:     and this is the wireframe showing the selected faces which the side material is applied to:    I'm not sure why this is happening, can anyone advise? Thanks


replace often used Tex-Literals ($ and $$) for math regions into \( or \) and \[ or \]

Is there an editor or IDE (or a script) for substituting the TeX-Commands $ and $$ for opening and closing math regions into the corresponding LaTeX-Commands \(,\) and \[,\]? I'm sure there is a tool - and I'm searching for. I think, this will result in better readable code. A simple search and replace wont do that - but with regular expressions, that should not be problem. I simply do not want to invent the wheel a second time.


GParted can't resize partition, but unallocated partition is available

I have few partition like this:    And I want to take the unallocated partition and resize it to /dev/sda12. But when I try to do that:    I can't increase the size.  I have do it in Live Mode, and I have tried to the others partition, but still can't do it.  How do I solve this problem?


As soon as I start SQL Server with no application querying, in the task manager it starts to consume memory very fast till it consumes around 15GB. How can I resolve this issue?


How to send AT commands to modem once the connection is established?

I have a zte 3g modem. I use carrier provided dialer for connection establishment. Once the ppp connection is active, i would like to send some AT commands(for ex. Query signal strength, AT+CSQ). But the dialer i use locks the /dev/ttyUSB0 port, which is the command port to send AT commands for my modem. So is there any way, to send the commands, once the connection is active?    Edit: I also tried the additional port /dev/ttyUSB1. But the port is flowing with random data from the modem. A sample is given below.  T^PREFMODE??                                                                     ^PREFMODE:8                                                                       OK                                                                               TC                                                                               ^DSDORMANT:1                                                                      +CSQ:19, 99                                                                       OK                                                                               T^SYSINFO                                                                        ^SYSINFO:2,3,0,4,255                                                              OK                                                                               TT^SYSINFO?                                                                      ^SYSINFO:2,3,0,4,255     I tried adding my commands, i even got output. But the response is very poor. Most of the times, my AT commands went unnoticed.


Prove in a combinatorial way (for example using an argument with committees) for the Identity

$$\sum^{n}_{k=2}k(k-1)\binom{n}{k} =n(n-1)2^{n-2}$$ $$n \geq 2$$ I'm recently new learning combinatorics and having trouble understand the intuition behind this. I don't either know what's combinatorial argument with committees.


I want to draw the first few iterations of the construction of the Cantor set. Since I am a TikZ beginner, I need your help. Thanks in advance.   More information about the Cantor set can be found here . The idea is to successively remove middle-thirds.


Where do iPhone voice memos sync to on my Mac?

Is iTunes configured to sync voice memos from my iPhone? If so, where can I find them?