How does SQL Server handle logins when the user is a part of multiple groups with various privileges?

I'm trying to wrap my head around how SQL Server decides to grant certain rights based on a users login privileges.  If a user is part of a group "READ ONLY" which has access to DB1, but they are also a part of a group "SysAdmin" which has full db owner rights to the same DB1, which rights are they given when they log in?  On a similar note. What if they are part of a group but also have a standalone account with other middle of the road privileges?


How i can insert "%" symbol in my writing context?

while writing % in the sentence it is considering as a comment . Just like i wana write this sentence 25% of this bottle is empty. But texnic does not showing remaining text in the output.  kindly give me some suggestion . Regards


Show given any $x\in\mathbb{R}$ show there exists a unique $n\in\mathbb{Z}$ such that $n-1\leq x <n$. I already know that there exists a $n\in\mathbb{N}$ such that $x<n$ by the archimedean property. But to prove that $n-1\leq x$ part I'm not sure. I think I have to create some set such that $n-1$ is a lower bound. But I'm not sure.


Proving that function is bounded when its continous and its limits at infinity are bounded.

Let f be a function from real numbers to real numbers and let f(x) be a continous function, such that:  $$\lim_{x\rightarrow\infty}f(x)$$ $$\lim_{x\rightarrow-\infty}f(x)$$  are bounded.  How do I prove that f(x) is bounded?


Self-energy integral at (complex) polar coordinates

You can think this of the following as a 3d QFT where we try to calculate the self-energy of two fields. $I$ is a this external self-energy and let us assume it does not depend on the loop momenta which I denote a $\vec{x}=(x,y)$. Consider the following propagator  $$ P(\vec{r}) = \frac{x-ia}{2i^2[\,(x-ia)^2+(y-ib)^2+(z-ic)^2]\,} \,\, \gamma_i $$ Then we want to calculate $$ I(x) = \int \frac{\,dx \,dy\, dz}{(2\pi)^3} \text{Tr} \left( \frac{x-ia}{2i^2[\,(x-ia)^2+(y-ib)^2+(z-ic)^2]\,}\gamma_x \gamma_x  \right) $$ Where Tr$(\gamma_i \gamma_j)=2\delta_{ij}$. Therefore  I am trying to resolve the following integral where $x,y,z \in \mathbb{R}$ and $a,b,c$ are constants (internal self-energies if you wish) in $\mathbb{R}$.  Then, after simplifying the propagator $P(x,y)$ we end up with the following expression for the $x$ component:  $$ I = \frac{1}{2i^2} \int \frac{dxdy}{(2\pi)^2} (x-ia) \int \frac{dz}{2\pi} \frac{1}{[\,(x-ia)^2+(y-ib)^2+(z-ic)^2]\,} $$ but it can be shown that  $$ \int \frac{dq}{(q+iv)^2+w^2} = \frac{\pi}{|w|}\theta(|w|-|v|).  $$ [e.g. see here  ] Thus we get that for $|(y-ib)^2+(x-ia)^2|>|a|$, $\theta=1$ (for this is what we are interested about) and then we are left with $$ I = \frac{1}{4i^2} \int \frac{dxdy}{(2\pi)^2} \frac{(x-ia)}{|(x-ia)^2+(y-ib)^2|}   $$  The question is wether I can make the transformation $$ (x-ia) = q \cos \theta  $$ $$ (y-ib) = q \sin \theta $$ in polar coordinates. Then $dx dy = qdqd\theta$ and the previous integral becomes, assuming $|q|>0$, $$ I = \int_0^{\infty} dq \int_0^{2\pi} d\theta \frac{q \cos \theta}{|q|} =0 $$ Is this correct? I am confused since one can find complex poles in the $I$. If not, what would the correct way to resolve this be? I have a suspicion that this integral should indeed give zero but how can we find this?


Hows is ssl certificate verified and by a browser or server

I've created a self-signed sertificate  $ openssl genrsa -out key.pem 1024 $ openssl req -new -key key.pem -out request.csr $ openssl x509 -req -in request.csr -signkey key.pem -out cert.pem   and created an HTTPS server:  var server = https.createServer({     key: fs.readFileSync(__dirname + "/key.pem"),     cert: fs.readFileSync(__dirname + "/cert.pem") }   Then I requested the page. The expected result is that a browser complained that a connection is not secure. My question how does a browser know that? Is it server job to verify the certificate and notify browser about that or it's a browser job?


if is in python not working on negative number

I've been working in python for a while now but just now I've encountered an error that I can't explain.   def b():     return -6 a = b() if a is -6:     print("Hi")   Whenever I run this I don't get into the if function and nothing gets printed. but if I make the number bigger than -6 meaning -5, -4 and etc this works properly.  def b():     return -5 a = b() if a is -5:     print("Hi")   can someone explain to me why is this happening? the == operator work as it should but if is it not.


Which one should I use: fell off/ have fallen

Situation:  I am sitting in my class and seeing that magnetic pin is falling off the board down on the floor! Now I’d like to describe what just happened!      The magnetic pin have fallen from the board!   or     The magnetic pin fell off the board!   Which one I need to use and why?


Why do electrons form shells/clouds around nucleus? If electron is negative charge and protons in nucleus are positive they should attract each other and as a end result stick in one place? Second question (an I think it's related) is about ionic bonding. I think this is most popular example:  But why does the electron jump from Na to CL? The octet rule makes very less sense for me, as it says "Atoms try to get 8 electron in outer shell", and it's rather incomplete and abstract explanation. And more over, why is is sometimes Ionic Bonding and sometimes Covalent Bonding? Edit: Dear members stop voting for duplicate and read the whole thing. This topic answers multiple linked questions, not just one (1st that is similar) and I picked already a solution.


How to combine two methods with the same logic into a generic method

I've two method:         static int SumInt(List<string> list)         {             return list.Select(o => int.Parse(o)).Sum();         }          static float SumFloat(List<string> list)         {             return list.Select(o => float.Parse(o)).Sum();         }  How can i get a generic method such as static T Sum<T>(List<string> list) where T:struct{},or a method with a ValueType return: static ValueType Sum(List<string> list){} The key point is not how to convert, but how to sum a struct or ValueType.


What's the best method and product to use for patching cracks in plaster walls?

I have a 100+ year old house and while it's quite structurally sound there's been some settling over the years, leading to small cracks in the old plaster around the house.  I hired a professional to take care of some big cracks in the dinning and living room. But now I want to tackle the upstairs bedrooms myself. What is the best method for repairing these cracks in plaster (not drywall)? What products do you recommend for using in this project?


Difference between Space Opera and Science Fiction?

A while back a guy came into the place where I was working. He had a book (I don't remember the name). The book was, according to him, scifi. I told him, "Great! My favorite scifi is the Skylark Series by EE Doc Smith!" He sort of tsked this, saying, "Oh, that's only space opera." I really didn't know what to think of what he said. The funny thing was, I remembering looking at his book thinking, what makes his book scifi any more than mine.  I started thinking about this incident the other day and am once again curious:  What is the difference between space opera and science fiction? What identifies each genre specifically?    NOTE: I had originally asked this on meta due to the closed question:  which is very similar to my question. It was subsequently moved to the main site.


Cruise embarks in Rome, visits mainly Greece ports and disembarks in Athens where I am flying out of also, which country to apply Schengen Visa in?

I will be flying in to Rome 3 days ahead of my cruise sailing date which sails out of Rome for an 11 day cruise of Greek isles (including 3 port days in Turkey), finally disembarking in Athens.  I will also be staying an extra 3 days in Athens before flying out of Athens to go home.  Where should I apply for a Schengen visa, at the Greek embassy or at the Italian embassy? What happens if I apply to the wrong embassy?


java.lang.NullPointerException: Attempt to invoke virtual method java.lang.String

I'm trying to use a method to process a String... But I'm getting   java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String kuros.com.ipsiscontroller.stringFilter.setStringParam(java.lang.String)' on a null object reference         at kuros.com.ipsiscontroller.AddActivity.getParameters(AddActivity.java:147)   stringFilter.class  String setStringParam(String parameter){         /*String finalParam = "";         String fillString = "";              if (parameter.length() < LENGTH_PARAMETERS) {                 int missingChars = LENGTH_PARAMETERS - parameter.length();                 Log.d("STRING_TAG missingChars", String.valueOf(missingChars));                 for (int i = 0; i < missingChars; i++) {                     //fillString = fillString + "x";                     fillString += "x";                 }             }             finalParam = parameter + fillString;             Log.d("STRING_TAG", finalParam);*/          return parameter;     }   As you can see I commented most on the method just to see I get the same String back... but is not working either. This is line 147.  String test = sf.setStringParam("a");


I need to set up two servers with failover capability (Active - Passive model) sharing a common DB (Postgres)running over NAS. Could you please suggest me some workaround for the same ?


Un-upvote followed by re-upvote = -10 reputation bug

This is a re-hash of a  on  that seems to have grown stale...  I received an un-upvote immediately followed by a "re-upvote". To me this means that the user experimented with the voting system, thinking that they could add another upvote after my answer was updated, or the site loading caused them to prematurely click/upvote when they've already done so in the past. Either way, here's a visual:    and here's a per-time view:    The total reputation for the day should be 230 (200 + 2 accepted answers @ 15 reputation) However, the reputation tally for this day is short by the "un-upvote count" of 10. Un-upvote/re-upvote happened 1 second apart.  This is clearly a bug. Why does an "un-upvote" followed by a re-upvote count as -10 reputation rather than 0?


$sudo apt-get update throws (101: Network is unreachable)

insane@ubuntu:~/Auto$ sudo apt-get update Err http://extras.ubuntu.com trusty InRelease                                    Err http://extras.ubuntu.com trusty Release.gpg                                   Cannot initiate the connection to extras.ubuntu.com:80 (2001:67c:1360:8c01::23). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::23 80] Err http://us.archive.ubuntu.com trusty InRelease                                Err http://us.archive.ubuntu.com trusty-updates InRelease                        Err http://us.archive.ubuntu.com trusty-backports InRelease                      Err http://us.archive.ubuntu.com trusty Release.gpg                               Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80] Err http://us.archive.ubuntu.com trusty-updates Release.gpg   Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80] Err http://us.archive.ubuntu.com trusty-backports Release.gpg   Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80] Err http://security.ubuntu.com trusty-security InRelease  Err http://security.ubuntu.com trusty-security Release.gpg   Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80] Reading package lists... Done W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Cannot initiate the connection to extras.ubuntu.com:80 (2001:67c:1360:8c01::23). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::23 80]  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::13). - connect (101: Network is unreachable) [IP: 2001:67c:1562::13 80]  W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]  W: Some index files failed to download. They have been ignored, or old ones used instead.      enter code here


What I want to do is download Ubuntu onto a 16GB USB stick and restart my Win-8 computer to inititiate the reformatting and auto-install for ubuntu.   It doesn't seem to work. What steps am I missing?


I cant access object that where on another layer in 2.79 in 2.8

I wanted to start working on my Blender file in the 2.8 version and when I started working in my existing 2.79 file in the 2.8 version i couldn't access the object that where on another layer in blender 2.79.  The objects do appear in the outliner but in a darker gray and I can't see them. Does anyone know how to fix this?


I keep running into areas where I see a chest in a section of the room that seems completely walled-off. Is there any way to get to these, or is that just the randomly generated dungeon being a tease?  I had to splice two screenshots together to show an example of what I'm talking about:   Is there any way to get in there?


I've just set up a PXE boot server on Ubuntu 14 - running kernel 3.13.0-30-generic - as it is described here  on Supermicro X9DRFF hardware.  I have only remote access to the client server via KVM. The boot process on the client goes well but I get a kernel panic.  Is it ever possible to determine the cause of this kernel panic?


What model and year is this bike? Stickers/Decals say Cannondale but not 100% sure if it is.  I have looked at catalogues of cannondale from 1997 to 2010 and can't see this bike.  If anyone could help I would be really thankful.its frame number is A9H64776 if this helps


Find all primes $p>2$ for which $x^2+x+1$ is irreducible in $\mathbb{F}_p[x]$   Attempt. Since $x^2+x+1$ is of degree 2, it is reducible iff it has a root in $\mathbb{F}_p$. It has a root in $\mathbb{F}_p$ iff $x^3-1=(x-1)(x^2+x+1)$ has a root other than 1. The latter has a root other than $1$ iff $\mathbb{F}_p$ has elements of order $3$, which happens iff $3\mid |\mathbb{F}_p^{\times}|=p-1$, which happens iff $p\equiv 1\bmod 3$. So $x^2+x+1$ is irreducible iff $p\not \equiv 1\bmod3 $.   I am getting a different answer than my professor, who has $p\equiv 1\bmod 3$. If I am incorrect, were am I going wrong?  Update. Now I am unsure about my own reasoning. What if $1$ is a root of $x^2+x+1$? I don't know why I am considering roots of $x^2+x+1$ other than $1$ when $1$ can be a root.


How to obtain Beta distribution's shape parameter given its quantiles

, one of our colleagues asked if it is possible to find the shape parameters of a $Beta(\alpha,~\beta)$ distribution given knowledge about its $\mu~(mean)$ and $variance$.  However, my question is how in R I can find shape parameters of a $Beta(\alpha,~\beta)$ distribution given only its quantiles (say, lower quantile is "$x = some~known~number$" and upper quantile is "$y = some~known~number$")?


Retrieve data from SQL database based on user input using JDBC?

I am working on a project for a class and am a beginner at using the JDBC. For one part, my instructor wants us to "provide  a  query  menu  that  allows  a  user  to  input  query  command  and  retrieve information from the database." I have researched quite a bit and am unable to find a way to do this. Most examples I have seen already know what the user is going to be querying. If I am allowing the user to query anything, how can I return the correct information? The code I have so far is below.  System.out.println("What table do you wish to query?"); table = scan.nextLine(); System.out.println("What values do you wish to query? Type them separated by commas. If you wish to select all values, please type a *."); values = scan.nextLine(); System.out.println("Type the conditions for your WHERE clause, excluding the keyword WHERE."); conditions = scan.nextLine(); query = "SELECT " + values + " FROM " + table + "WHERE " + conditions; try {     stmt = con.createStatement();     ResultSet rs = stmt.executeQuery(query);     while (rs.next()) {         if(values != "*")            String results = rs.getString(values);     }   There is where I am stuck because I have no idea what the user is going to query so I do not know what to put in the while loop, as in this example where they know the user is looking for last names.  rs = stmt.executeQuery("SELECT Lname FROM Customers WHERE Snum = 2001"); while ( rs.next() ) {     String lastName = rs.getString("Lname");     System.out.println(lastName); }   Any help or suggestions would be greatly appreciated.


Detect if html string contains javascript

I need to sanitize my input html string against any javascript traces (including events) to prevent the xss injection. Is there any .NET library or decent regex exist to solve this issue quickly? I just need to detect if javascript present in the html and throw an exception.


How to get user to actually enter full name in "Full Name" field

How can I encourage (or force) users to enter their full name in the "Full Name" field on sign up? I don't care how they format it, we don't need separate first name and last name in the db. But we've had problems with our customers being lazy and just writing "J" instead of "John Smith".  We need to interface with these people in real life (on the phone), so we need to know which "J" is John Smith. Also, I want to support international names, so I don't want to split up the name field or require spaces.


windows 10 launches chrome on start up automatically?

I have encounter this problem three months back and I was trying various solutions but none of them seems to work. Can anyone tell me how to fix this?   Problem: Chrome launches on windows startup automatically.How to prevent it launching on start up?  What I have tried so far   Complete format of system more than 6 times I have dual boot with ubuntu 16.04 LTS so I removed both OS and installed fresh copy of windows 10 using USB boot There is nothing listed on startup inside Taskmanager related to chrome so I can't disable this. I have modified google service into msconfig but it didn't work either.    I have run full system virus and malware checkup, nothing found I have tried one more solution where I had to modify the registry under some user or system control but it didn't work either.  I have installed windows 10 from bootable CD but no luck. I have read somewhere this is the new windows 10 feature and I can disable it but it didn't work either.    Now, I have another problem which is when I shutdown my laptop it doesn't shutsdown and fan runs on full speed. It gets stuck in the end of the shutdown process. The screens goes black, hard drive indicator isn't blinking only power LED and WiFi LED is on which is weird. I have to force shutdown every time. It rarely happens when my laptop shutdown completely. Also, in the beginning I though if I leave it for sometime it will shutdown but no. Laptop was running all night on power and fun was running on full speed.


Can we have Computer Modern Font in LibreOffice?

I want to make my LibreOffice have the displayed font as in latex. But I cannot find that. Will you please help me? The font I seek after is such as the font here


What is the specific reason 2 matrices flip after taking their transpose?

I know the identity $(AB)^T = B^TA^T$. I tried to research the exact reason why this is the case and could not find a good description. My professor said the reason is because "you ought to put on your socks before your shoes" which did not really resonate with me...


is it possible for two users to login at same time

Hello Friends as i was thinking is it possible for two users to login at the same time in the same machine with multiple monitors can we do it or not and if we can please supply the handy information


Why is Area 51 listed on my combined flair if I don't have 200 reputation on it?

Here is a picture of how my combined flair looks at the moment I'm posting this:  As you can see, Area 51 is listed on my flair. The strange thing is that on Area 51, I currently only have 156 reputation (and have never had more), and only sites where I have 200 or more reputation are supposed to show up on the flair, as stated on the :  (please note that only sites where you have more than 200 reputation will appear, and that flair is only updated once every 24-36 hours.)  Is this a bug? Is it a feature specific to Area 51? Is there any other reason why it's like this? If this is a bug, please fix it and retag my question to . If it's intentional, please explain the exact conditions for which this happens and the reason behind it. Edit: Just to clarify, I'm not asking why sites where I have less than 200 reputation count in the total reputation displayed on the flair. I'm asking why the Area 51 icon is displayed on my flair.


Any fallacy in "No one else has come up with a better explanation, therefore my explanation is true"?

Is there any fallacy in the following sentence?  "No one else can come up with a better explanation, therefore my explanation is true"  Or perhaps another version:  "You cannot come up with an explanation why I am wrong, therefore I am correct".


I learnt how to solve a 3x3 Rubik's cube 10 years ago. Every now and then, I picked up a cube, scrambled it, and solved it for fun. I used to work on speed-solving, and memorised lots of formulae for it. However, now I'd like to go a different way: I'd like to solve cubes using the minimal amounts of formulae.  F2L (First Two Layers)  For experienced players, it is clear that with F2L-methods one can solve the first two layers without memorizing any formulae, simply by forming bottom cross, building the 'pillars', and installing the pillars.  Top Cross  I cannot see clearly why the formulae [R'U'F'UFR] (center->bar->L->cross) work, but I have an explanation for it: There are several ways to uninstall and reinstall the pillars that we have installed in the F2L method. By observing what the reinstallations do to the top face, at the end of the day one can write down those that help form the top cross.  Top Face  The formulae [RU'L'UR'U'L] are similar to the above, but it 'reinstalls' two pillars at the same time.  Last layer  This is what I really cannot see/understand. I don't even know how people came up with these formulae..  Questions   Does anyone know how people came up with the formulae for the last layer? How to better see how the "reinstallations" work for the top face. I know this question is very vague; I am just giving a shot to see if someone has a good way to look at them.   Thank you!


All mass with a temperature creates infrared light, but what is the cause of this? How is it created?


Show that $\mathbb{Q}[x]/\langle x^2-x\rangle$ is not a domain

I have a proposition which says that an ideal $I$ is a prime ideal in $R$ iff its quotient ring $R/I$ is a domain. I know that for an ideal to be a prime ideal, $xy\in I\implies x\in I\lor y\in I$. My thought is this: $x\notin \langle x^2-x\rangle$ and $x-1\notin \langle x^2-x\rangle$, but $x(x-1)=x^2-x\in \langle x^2-x\rangle$, so $\mathbb{Q}[x]/\langle x^2-x\rangle$ is not a domain. Am I thinking this right?


User authorization php/mysql with session

I've got a problem. When I click to  Logout  , I have a redirect to login.php, but if I open home.php again, then no redirect and user stays in a system. I mean there is no session destroy. Here is code:  login.php  <?php session_start(); if (isset($_POST['submit']))     {      include("config.php");   $username=$_POST['username']; $password=$_POST['password'];  $_SESSION['login_user']=$username;  $query = mysql_query("SELECT username FROM login WHERE username='$username' and password='$password'");   if (mysql_num_rows($query) != 0) {   echo "";      }    else   { echo ""; }  }  ?>   home.php    <title>Untitled Document</title>
Welcome  <?php  session_start(); $login_session=$_SESSION['login_user']; echo $login_session;?>
  Logout      logout.php  <?php session_start(); if(session_destroy()) { header("Location: login.php"); } ?>


Already awarded bounty refunded on question migration?

In March 2011 I offered a 500 bounty on one of my StackOverflow questions () and awarded it to Filip de Vos.   This question was later migrated to Database Administrators and has the following messages on it.     migrated to dba.stackexchange.com by Will♦ Dec 28 '11 at 12:25      This   question belongs on our site for database professionals who wish to   improve their database skills and learn from others in the community.   .     deleted Dec 31 '11 at 1:01   I appear to have been   on whereas Filip .  Is this a bug? Definitely doesn't seem fair or correct to me. The question still shows up in both our bounty tabs despite the migration. I would have hoped that the previously awarded bounty reputation points could still be honoured in this situation.


tikzpicture won't render 'usable' PS code

I use tikz (and tikzpicture) a fair bit, but files that used to compile fine before the latest slew of updates to pgf, and pstricks, no longer seem to do so (at least, on my MikTeX installation). The MWE (below) seems to compile correctly, but the DVI can't be rendered using yap, and dvi -> ps -> pdf fails (the dvi -> ps seems to be ok -- to the extent it isn't throwing errors), but ps2pdf fails miserably, with the following errors:   Error: /undefined in XC@.  Operand stack:    --nostringval--   --nostringval--   --nostringval--   --nostringval--   -  -nostringval--   --nostringval-- Execution stack: %interp_exit   .runexec2   --nostringval--   --nostringval--   --  nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --  nostringval--   false   1   %stopped_push   2045   1   3   %oparray_pop    2044   1   3   %oparray_pop   2025   1   3   %oparray_pop   1884   1   3    %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval-  -   --nostringval--   --nostringval--   2   %stopped_push   --nostringval-- Dictionary stack:   --dict:979/1684(ro)(G)--   --dict:1/20(G)--   --dict:87/200(L)--   --    dict:182/300(L)--   --dict:58/200(L)--   Current allocation mode is local   Current file position is 99615   GPL Ghostscript 9.26: Unrecoverable error, exit code 1   Here is the MWE:  \documentclass[12pt,letterpaper,oneside]{article}  \usepackage{tikz}  \usetikzlibrary{decorations,shapes,arrows,matrix,positioning}  \begin{document}  \begin{center} \begin{tikzpicture}[x=0.175cm,y=0.175cm,scale=1]  % set up maximum and minimum x- and y-coordinates \def\xmin{0} \def\xmax{23.5} \def\ymin{0} \def\ymax{23.5}  % draw and label axes    \draw[->,thick] (\xmin,0) -- (\xmax,0) node[below=8pt,near end]  {\small{abundance ($N$)}};   \draw[->,thick] (0,\ymin) -- (0,\ymax) node[above=12pt,near   start,rotate=90] { \small{birth rate ($b$)}};  % draw vertical reference line at K/2=50   \draw[color=black, thick,  smooth] (0,20) -- (20,0)  node[below=6pt,midway,rotate=-45] {\small{slope~$=a$}};  % draw circle around point where function intersects x-axis \draw [red] (0,20)  ellipse (0.2cm and 0.2cm) node[right=3pt,black] {$b_0$};   \end{tikzpicture}  \end{center}   \end{document}


Comparing fit of a Mixed Model to a Fixed Model

I would like to be able to compare 2 models as is often done as follows:  modelA <- lm(Ys ~ X1 + X2 + X3) modelB <- lm(Ys ~ X1 + X2) anova(modelA, modelB)   but instead of adding or removing a co-variate- my first model is a fixed effects model with a single time point per subject, and my second model is a mixed effects model with several time points per subject and grouped by subjectID:  modelA <- lm(Ys ~ X1 + X2 + X3) #e.g. 5 observations/subjects  modelB <- lme(Ys ~ X1 + X2 + X3, random= ~ 1 | subjectID)  #e.g. same 5 subjects with 3 time points each= 15 observations   since chi-square with anova fails in this scenario, how should I compare them. Is there a specific package in R I should use? An F-test requires knowing what the d.f. are for a mixed model, which I am unclear on how to calculate.  Thanks for your help!


I am testing polymorphism in C# with generic types and trying to find the way to make generics countable but C# compiler does not accept operation such as summation on generic types. I found one of the workarounds based on which I created the code below that inherits from an interface that provides a proper function:  using System.IO; using System;  interface ICountable<T> {     T Add(T a, T b);     T Multiply(T a, T b); }  interface IExecute<T> : ICountable<T> {     T Operation(T a, T b); }  class IntSum : IExecute<int> {     public int Add(int a, int b)     {         return a + b;     }     public int Multiply(int a, int b)     {         return a*b;     }     public int Operation(int a, int b)     {         return Add(a,b);     } } class DoubleMultiply : IExecute<double> {     public double Add(double a, double b)     {         return a + b;     }     public double Multiply(double a, double b)     {         return a*b;     }     public double Operation(double a, double b)     {         return Multiply(a,b);     } }  class Program {     static void Main()     {         Console.WriteLine(DoOperation(new IntSum(), 1, 2));         Console.WriteLine(DoOperation(new DoubleMultiply(), 3.5d, 3d));     }      static TResult DoOperation<TOperand, TResult>(TOperand obj, TResult a, TResult b)     where TOperand : IExecute<TResult>     {         return obj.Operation(a,b);     } }   The code above works but in the end I use inheriting to a concrete primitive types and there's a lot of redundant code blocks. My ultimate goal would be to make such types as much generic as possible, something similar to this:  using System.IO; using System;  interface ICountable<T> {     T Add(T a, T b);     T Multiply(T a, T b); }  interface IExecute<T> : ICountable<T> {     T Operation(T a, T b); }  // Generic code class Sum<T> : IExecute<T>, ICountable<T> {     public T Add(T a, T b)     {         return a + b;     }     public T Multiply(T a, T b)     {         return a*b;     }     public T Operation(T a, T b)     {         return Add(a,b);     } }  class Program {     static void Main()     {         //Console.WriteLine(DoOperation(new IntSum(), 1, 2));         //Console.WriteLine(DoOperation(new DoubleMultiply(), 3.5d, 3d));     }      //static TResult DoOperation<TOperand, TResult>(TOperand obj, TResult a, TResult b)     //where TOperand : IExecute<TResult>     //{     //    return obj.Operation(a,b);     //} }   Obviously, the compiler complains as it cannot sum two generic types. Do you think I always have to inherit to specific primitive? Thanks.


Would allowing a cantrip cast as a bonus action to be used on the same turn as a non-cantrip cast as an action break the game?

In my group I was planning on making some house rule changes to the section on bonus action spells, as I'm not a fan of how it's currently written. I'd prefer the normal action(spell) + bonus action(cantrip) combination to be valid:     If you use your bonus action to cast a spell, you can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.   Instead, I was planning on having it be:     If you use your bonus action to cast a non-cantrip spell, you can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.   For example under the normal rules a caster could not cast  (a bonus action spell) on the same turn as  (a normal action spell). Under my house-rule the character would be allowed to since Shillelagh is a cantrip.  This feels more streamlined to me, but I'm wary of unintended consequences. Would wording it this way break the game in a way I'm not thinking of?


How to clear the BIOS security password on this notebook?

I recently got an Acer Aspire E11 (E3-112m) and in order to install another OS I had to set a Supervisor password, so I used a well known password to me, the problem is that such password contains a special character ! which the password prompt won't let me input, though it let me when I had to set the password (buggy prompt I believe). Now everytime I need to change something in the BIOS I have to fail 3 times and go to  to generate a master key.  I have already tried several different methods to clear it:   Removing the CMOS battery Looking for the reset jumper (which doesn't even exist).   I also noticed there were 2 weird buttons on the front and back sides of the motherboard, I don't know what they are for but I also pressed them (while both the CMOS and the regular battery were disconnected). All of this without luck, the password just won't reset (though the RTC did).  Are there other ways to reset the Supervisor/Admin password on this model?


I am running a drupal 7 site and i have the following problem : I have multiple audio files (1000+) and i need to create a custom node for each of them.  I managed to do it (almost) but i don't know how to send the field_fisier_display value for the column. The initial table was created (automatically by drupal) to not allow NULL and to have a 1 as default value. But when i run my script I get a PDO statemnt error that says i cannot insert NULL in that field.   I fixed it (for now) by changing the tables drp7_field_data_field_fisier and drp7_field_revision_field_fisier to allow NULL and to run an UPDATE statement after the node ceration. I don't like this fix.  Please share your wisdome with me in solving this problem.  My current script is :  for ($i = 0; $i < count($predici_neprocesate); $i++) {     $predica = $predici_neprocesate[$i];     $new_node = new stdClass();     $new_node->type = 'predica';     node_object_prepare($new_node);      $new_node->uid = 1;     $new_node->title = $predica;     $new_node->body['und'][0]['value'] = "value";     $new_node->body['und'][0]['format'] = 'filtered_html';     $file_path = drupal_realpath($predica);     $file = (object) array(                 'uid' => 1,                 'uri' => $file_path,                 'filemime' => file_get_mimetype($file_path),                 'status' => 1,                 'filename' => $predica,                 'type' => 'audio'     );     $file = file_copy($file, 'address');     $new_node->field_fisier['und'][0] = (array) $file;      node_submit($new_node);     $new = node_save($new_node);      unlink($file_path);     $sql = "UPDATE drp7_field_revision_field_fisier SET field_fisier_display = 1 WHERE entity_id = " . $new_node->nid;     executeSQL($sql);     $sql = "UPDATE drp7_field_data_field_fisier SET field_fisier_display = 1 WHERE entity_id = " . $new_node->nid;     executeSQL($sql); }   Please let me know what information do you need, in order to give me an ideea (table structure / content type structure etc).


What are the correct uses of Apostrophe?

The following use of apostrophe is correct.     Gita is Sita's sister.   But suppose Sita is name of two twin sisters and Gita is their younger sister. So how should we write that?     1) Gita is Sitas' sister.   Or     2) Gita is Sita's sister.   It seems to me, that in certain cases, the apostrophe comes after the s, though I might be wrong.


I'm feeling confused. If I square 1 and -1, the answers should be equal:  $1^2 = (-1)^2$  Then I take both sides to the power of $\frac12$:  $\left(1^2\right)^\frac12 = \left((-1)^2\right)^\frac12$  This next step seems to make sense according to the simple arithmetic rule about multiplying exponents:  $1^\left(2\cdot\frac12\right) = (-1)^\left(2\cdot\frac12\right)$  And then comes the weirdness:  $1^\left(\frac22\right) = (-1)^\left(\frac22\right)$  $1^1 = (-1)^1$  $1 = -1$  Obviously I did something wrong... Every step seems perfectly reasonable except going from step 2 to step 3. That seems reasonable too, that's what I was taught about exponents, but that's the only step which I could conceive has special constraints I violated. Is $\left((-1)^2\right)^\frac12 = (-1)^\left(2\cdot\frac12\right)$?


Change "Abstract" Title Name in els Article Class

Good day, I've searched the archives and have tried using  \renewcommand\abstractname{summary}   to change the name of the abstract, but was not successful.   Here's the working example of my code:  \documentclass[preprint,12pt]{elsarticle}  \usepackage{cmbright} \usepackage[T1]{fontenc} \usepackage{microtype}  \renewcommand\abstractname{summary}  \usepackage{amssymb} \usepackage{lineno}  \journal{Journal Name}  \begin{document} \begin{frontmatter}  \title{Characterization of a Murine Embryonic Stem Cell Line} \author{Daniel D.} \address{State University}  \begin{abstract} \end{abstract} \end{frontmatter}  \section*{Introduction}  \section*{Results}  \section*{Discussion}  \section*{Experimental Procedures}   Thank you for any help or insight.


What is wrong with making a unit test a friend of the class it is testing?

In C++, I have often made a unit test class a friend of the class I am testing. I do this because I sometimes feel the need to write a unit test for a private method, or maybe I want access to some private member so I can more easily setup the state of the object so I can test it. To me this helps preserve encapsulation and abstraction because I am not modifying the public or protected interface of the class.  If I buy a third party library, I wouldn't want its public interface to be polluted with a bunch of public methods I don't need to know about simply because the vendor wanted to unit test!  Nor do I want have to worry about a bunch of protected members that I don't need to know about if I am inheriting from a class.   That is why I say it preserves abstraction and encapsulation.  At my new job they frown against using friend classes even for unit tests. They say because the class should not "know" anything about the tests and that you do not want tight coupling of the class and its test.   Can someone please explain these reasons to me more so that I may understand better? I just do not see why using a friend for unit tests is bad.


Windows Metro apps have wrong icon in search UI

When I search for any app in the Windows 10 search, it has the same wrong icon (this is just an example):    When having the app open or when looking at it in different places (start menu, taskbar, the app itself), the icon is fine (these are just examples of places I could look):     How can I resolve this? I did nothing quirky with the metro app system (like modifying/installing/uninstalling via PowerShell or by using external tools). This is in a fresh Windows 10 Pro setup that is one day old.  I already tried:   Rebuilding the Windows search index completely Rebooting Installing an app and uninstalling it again from the Windows store Giving "Everyone" full permissions to C:\Program Files\WindowsApps


HAVING and WHERE clause difference in SQL

As I've read everywhere, HAVING clause and WHERE clause performs a sort of similar function but the WHERE clause condition applies before grouping and the HAVING applies after. What exactly does this mean? What if I don't group them before hand? Do I just get the same results?


Show that if $a$ is an odd integer and $b$ is an even integer then $\gcd(a,b)=\gcd(a,b/2)$

Show that if $a$ is an odd en integer and $b$ is an even integer then $\gcd(a,b)=\gcd(a,b/2)$.  I understand that since $a$ is not divisible by $2$ but $b$ is, the gcd of $a$ and $b$ also can't be divisible by $2$ but I'm getting stuck using this to help me.


linear transformation $T$ such that $TS = ST$

Let $V$ be a finite-dimensional vector space over $F$. Let $T:V \rightarrow V$ be a linear transformation such that $ST=TS$ for all linear transformations $S:V \rightarrow V$. Show that $T = cI_v$ for some $c \in F$.


Disable Windows 8 Monitor detection with display port monitors

I have 3  Monitors connected to a NVIDIA Geforce GTX 980 graphics card via display port. The monitors are not chained. So each monitor is connected directly to the graphics card. I'm running the latest NVIDIA drivers (344.48).  When I turn one monitor off. Windows 8.1 helpfully re-arranges my desktop down to two monitors. Then down to one when I turn of all the panels.  Is there anyway to stop windows from doing this? Its especially frustrating to have to re-organize my desktop windows every time I turn my monitors off.


Find all function $f:\Bbb{N}_0 \rightarrow \Bbb{N}_0 $ satisfying the equation $f(f(n) + f(n) = 2n +3k,$ where $k$ is a fixed natural number

Find all function $f: \Bbb{N}_0  \rightarrow \Bbb{N}_0 $ satisfying the equation $f(f(n) + f(n) = 2n +3k$ for all $n \in \Bbb{N}_0 $ where $k$ is a fixed natural number.   I have proceeded with solution to a point but I am not able to go further  so lets say $f(0)=m$ $\implies$ $f(m) =3k-m$ $f(3k-m)=f(f(m)=2m+3k-f(m)=3m$ $f(3m)=f(f(3k-m))=2(3k-m)+3k-f(3k-m)=9k-5m $  after this I am not able to proceed through


How can I install pygame on python with cygwin?

I cannot install pygame on cygwin properly. I tried to follow this old doc     but it doesn't work.


How does the infinite density of the early universe or black holes not violate Fermi-Dirac statistics?

When we talk about the Robertson-Walker scale factor in the early universe or the matter inside a black hole event horizon, there must be an arbitrarily large or infinite density.   But how can this be possible if we consider Fermi-Dirac statistics? I mean suppose the scale factor decreases toward early times. Can we squeeze the matter as much as the degeneracy pressure allows us in order to put a large amount of matter inside a limited physical space? How can we imagine a typical galaxy inside a smaller space that is not expanded as much as today, let alone all the galaxies in the universe? The same is true about a black hole. How can we explain infinite density and growing matter inside a limited physical space? Even if we say that their momentum quantum states are respecting the statistics but again there are particles which occupy physical space, which is by assumption far smaller than the current epoch or outside of a black hole event horizon.


Cross product of two vectors, given magnitudes and angle

Problem Two vectors $\mathopen|{\overrightarrow{a}|=5.39} \ and \ \mathopen|{\overrightarrow{b}|=4.65} $ intersect and make a 120° angle. Find $\mathopen|{\overrightarrow{a}}\times \mathopen{\overrightarrow{b}|}$ Now I tried to solve this problem for too much time and since I have the solution I've seen that the result is $-12.5$ and in particular  $-12.5 =\mathopen|{\overrightarrow{a}|}\cdot \mathopen|{\overrightarrow{b}| \cdot \cos120}$ Could please somebody show me how to properly solve this problem? Thanks in advice With notation  $\mathopen|{\overrightarrow{a}|}=5.39$ I mean the magnitude and not the coordinates


How do I synchronise two folders in real-time in Windows 7?

I want to synchronise two folders in real time under Windows 7.  Basically, I want to monitor a folder and synchronise each change (new files, changed files, deleted files) to another drive. It has to be in real time, so it gets synchronised instantly when a change happens. A one-direction synchronisation is enough.  I tried Microsoft's , but it does only syncing by hand or scheduled (thus not satisfying the "real-time" requirement).  Can this be achieved with Windows 7 itself? If not, are there other methods of doing this?


Command needed to change value to integer

I have one file in which we have data like this:  CC,1234,Piyush,0.0,   Whenever 0.0 comes in file it should replace by 0 only. How do I replace without using sed command to replace all in file.


Some dictionaries say "in back of" means "behind" in American English, as in "there is a garage in back of the house."   There are also dictionaries that say "in back" means "at or in the back", as in "there are three kids sitting in back", presumably in reference to a vehicle.  I'm wondering whether "in back" without "of" can mean "behind", as in "can you see the garage in back?".  I'd appreciate your help.


Let $\forall x \in \mathbb R, \quad  p(x) \geq 0$ where $p$ is a polynomial of order $n$  prove that ,     $$(p+p'+...+ p^{(n)})  \geq 0 \quad (\forall x \in \mathbb R) $$   explain : I tried induction on $n$ and taylor expansion to find a relation between coefficients .


I have got 3 games that I really want to play on ubuntu, but I don't know how to get them working.  So I recently found three games on CDs that I wanna play, when I put the disc in the cd-rom a cd mark appears in the launcher tab, I click on it and then the home folder appears with all the folders and items that are in the cd. When I right click on setup.exe   (I'm aware that I can open games by going into permissions in properties and allowing executing file as a program, but it says "Sorry, could not change the permissions of "Setup.exe": Error setting permissions: Read-only file system")  and open it with Wine Windows Program Loader, nothing happens.   If it helps the games that I'm trying to install are "Command & Conquer Red alert 2", "City Life" and "Theme Hospital".  I'm aware of terminal as well but I don't know how to use it very well...  Please help.


Installing postgresql-10 libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ub

i'm trying to install postgresql-10 via the instructions listed here:     I'm trying to run this step and I keep getting the following unmet dependency errors:   $ sudo apt install postgresql-10 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  postgresql-10 : Depends: postgresql-client-10                  Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 is to be installed                  Depends: libicu57 (>= 57.1-1~) but it is not installable                  Depends: libpq5 (>= 9.3~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I'm unsure of how to exactly correct these problems, i've tried running sudo apt update && sudo apt upgrade   What is the appropriate way to update these packages to get postgresql-10 installed on my ubuntu 16.04 instance?  EDIT:   when I try manually installing those dependencies:   $ sudo apt install libgssapi-krb5-2 [sudo] password for chris:  Reading package lists... Done Building dependency tree        Reading state information... Done libgssapi-krb5-2 is already the newest version (1.13.2+dfsg-5ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Is a flow of ionized water an electric current?

If $H_2O$ ions have a net electric charge and electric current is the flow of electric charge, can a stream of water ions be considered an electric current?  If so, is it conceivably possible (not necessarily feasible) to use a flow of water ions in place of a copper wire carrying an electrical current in an electrical circuit?  For example, in a bizarre Rube Goldberg contraption sort of situation.  Edit: I guess this question applies to any sort of ion in either gas or liquid state.  I don't know enough chemistry to know if $H_2O$ ions are even a thing that exist in the real world


I've seen the following code many times:  try {     ... // some code } catch (Exception ex) {     ... // Do something     throw new CustomException(ex);      // or     // throw;      // or     // throw ex; }   Can you please explain the purpose of re-throwing an exception? Is it following a pattern/best practice in exception handling? (I've read somewhere that it's called "Caller Inform" pattern?)


How do I give myself a Netherite pickaxe on Minecraft with high enchantment levels on the 1.17 snapshots?

I know I have to use the /give command, but what do I put after the netherite_pickaxe part? I am using the new 1.17 snapshots.


Consequences of turning off computer during Windows Vista update ("Do not turn off your computer")?

My system has been stuck at "Configuring updates" for about an hour with the percentage stuck at 25%. If I do a hard reboot, what are the likely and worst-case consequences?


For old PCs, could we install Ubuntu 10.04 LTS even is in its end of life?

I have an old desktop PC Pentium 4 with 1 GB of RAM, and it really sucks with Windows XP or even with Ubuntu 12.04 (Precise Pangolin) and exactly when I want to watch videos or films, I thought to install an old distribution of Ubuntu. Maybe it will make it better... So I installed Ubuntu 11.10 (Oneiric Ocelot), but I was shocked with no updates, and then I understood that this in its end of life distribution.  So I searched a little bit, and I got that Ubuntu 10.04 (Lucid Lynx) is LTS, but this is also in its end of life.  My questions are:   If I installed the Ubuntu 10.04, how is it going to work normally or I will get problems? Sometimes I think this is a hardware problem. I think a Pentium 4 with 1 GB of RAM doesn't suck on YouTube or during watching a movie?


How can I declare optional function parameters in JavaScript?

Can I declare default parameter like function myFunc( a, b=0) {   // b is my optional parameter }  in JavaScript?


Why do bots search for / fill and send contact forms?

I'm a bit confused as to why people make bots to do this - is it to find vulnerabilities?   I recently upgraded my contact form security with more client and server side validation, including a honeypot and log/ban to stop erroneous submissions on my contact forms.  While this cured the issue quick fast and in a hurry, I'm still not 100% sure why this even happens.  continued Most of the submissions were gibberish, however, I did recently have an email hijacked and a malicious script tried to send thousands (almost 6,000) spam emails in just a few minutes.  I think a weak password was the cause and I'm not convinced they're related, but the  possibility looms in my mind. Thankfully, my server has a threshold of 500 emails per hour and cut it 5,500 short.


Is it possible to enable System Protection from the command prompt?

I just tried to install some updates for my laptop, and now it is stuck in an automatic repair loop. From what I've been able to find so far in the logs, I believe it is some problem with the registry.  The system restore tells me that there are multiple restore points available, including one it created just before attempting to install the updates. However, it tells me that I can't restore my C: drive because "You must enable system protection on this drive".  Is there a way that I can enable system protection on my drive through the command prompt? Failing that, is there a way to restore just the registry (either manually or automatically)? I've been able to open up regedit, though I have no clue what part of the registry is corrupted.  Update:  Here's the only relevant thing the SrtTrail.txt log has to say about the issue:  Root cause fount: --------------------------- Registry is corrupt.  Repair action: System Restore Result: Failed. Error code = 0x1f Time taken = 588875 ms  Repair action: Registry roll back Result: Failed. Error code = 0x3 Time taken = 0 ms   Update 2:  I booted using the legacy boot and managed to surface a new error:  Realtek PCle FE Family Controller Series v1.27 (10/31/11) PXE-E61: Media test failure, check cable    Looks like this is a red herring. This just means that I can't boot from the network.


Strategy to minimize the risk of a checking account being compromised

I think that checks are quite unsafe, every time I write a check I'm putting my entire banking information in the hands of a stranger.  Let me give an example, I wrote a check to my cover my sister's rent and mailed it to her. Somehow USPS managed to lose that mail and it never got to her. I was now out of checks and she was very worried. I searched online and it seems that it's ok for someone to print their own checks and they don't need to be issued from a bank. I did just that found a template online, made the appropriate changes with Photoshop. Printed the checked, signed, scanned and sent it to her over email. She then printed it out and used her mobile app to deposit the check. Next day the check cleared and she had her money.  While this is all wonderfully convenient, I'm alarmed by the fact that it's so easy for someone to get money out from my account.  If somebody has a check that I wrote, that check has all the information with my account details, the bank routing number etc to forge checks and then deposit them into their accounts. What makes it worse is that my Savings Account is linked with my checking account for overdraft protection. So essentially any scamster could clean out my account and there is precious little that I could do about it.  This worries me greatly, do people have strategies to minimize the blast radius for such scenarios? Does it make sense to maintain accounts with different banks and use only one account to make payments? Alternatively is there an option to disable checks for a checking account, even then I'd be exposed in all the places where I pay my bills online and ACH is free wherereas there is a charge for Credit and Debit Cards.  With credit cards etc, there is 100% fraud protection and 0 liability. With a checking account there is none of this


The Iron Man Mark 33, Silver Centurion, has got vibranium blades in it. How does Tony Stark have access to Vibranium?

As far as I'm aware, Vibranium was exclusively in Wakanda (except for the Vibranium that Ulysses Klaue stole and later gave to Ultron and the Vibranium from Howard Stark that is in Cap's Shield). So how is it possible that Tony Stark has Vibranium?


For any smooth manifold, is it true that for any two points on the manifold, there exists a chart that covers the two points?

Some say that we can connect two points with a continuous curve and a small contractible neighborhood of the path together with the charts of the points can be regarded as the chart. But I don't know how to verify this statement.


My UV map on a cube looks OK but only two faces are seen in editor and non in the render

With a lot of help on the internet, I managed to UV map a cube to exactly match a texture I have.  However in the main view window, I only see the texture on two faces (viewport shading set to Texture):  In the render mode, I see nothing at all, just default material:  Do I need to turn the UV map into material somehow to apply it to the object? Or is something else wrong?


Install Ubuntu on HP Pavilion (Vista SP2) dv6397ea

I have got a ten-year old HP Pavilion dv6397ea running under Vista SP2, Intel Core2 CPU-t7200 2.00ghz with 2G RAM. My video adapter model is NVidia GEForce GO 7400. I have got many hardware problems such as my computer running ultra-slow, overheating (I have removed my battery ages ago). I have cleaned my laptop a year ago and replaced the cooling gel on the processor.   I'm considering reformatting my hard drive and installing Ubuntu v.12 to reduce usage of my slowly-dying machine. I haven't got much use for games or specialized software (I already use open-source software for most of my daily tasks), Ubuntu seems like a logical choice.  However I have talked to my entourage and they told me that there might a be a problem installing Ubuntu because my HP might be "tattooed" and some of my hardware might not be recognized under Ubuntu. I have tried finding documentation on this, it's like searching for a needle inside a haystack...  Is there any guide available or links on the Ubuntu website that would help me decide?  Thank you for any help in advance, Marylene


Does every linearly independent set of n vectors in $R^n$ forms a basis in $R^n$?

Basically does a vector set that is linearly independent in $R^n$ automatically span $R^n$?  My initial thought is yes, but is there some counterexample that can disprove this?


Fix some point $a \in M$. Prove that the function $f:M \to \mathbb R$ defined by $f(x) = d(a,x)$ is a continuous function on $M$

Let $M$ be a metric space with metric distance function $d(x, y)$, for $x, y \in M$. Assume that $M$ has only a countable or finite number of points, and assume that $M$ is connected.  Fix some point $a \in M$. Prove the function $f: M \to \mathbb R$ defined by $f(x) = d(a,x)$ is a continuous function on $M$.  I am having trouble with this proof. I am thinking that I should compare it to a Lipschitz function using the triangle inequality, but I am not sure if that is right.


Can I get masters and PhD in CSE in USA?

I am a student of physics at graduation level.I want to Masters and PHD in CSE in USA.  can it possible?


Is every normal subgroup the kernel of some self-homomorphism?

Let $G$ be a group. If there is a homomorphism $f:G\to G$ (special case of the codomain being arbitrary group), then the kernel $f^{-1}(id)$ is a normal subgroup of $G$.  But now the other way around: Start out with the existence of a normal subgroup $H$ of $G$. Is there necessarily a homomorphism $f:G\to G$ such that the kernel of $f$ is $H$?


Is there are any performance benefits from defragmenting a usb drive?

"Fragmentation happens to a hard disk over time as you save, change, or delete files."    I understand with harddisks there is a moving disc that has to spin and seek for files. When the files are fragmented it has to look at several different locations on the disk thus taking much more time compared to if all the files were in one similar location on the disk.   Flash disks don't having moving parts, so the gains from defragmenting should be minimul correct?  So we can agree USB drives can become fragmented... But is there ANY* / realworld performance benefits from defragmenting them?


Search a keyword in all the answers to my own questions

weeks ago, I read a good answer to my question,  I only remember there's a key word python3.8 in the answer.  How could I search the python3.8 through all the answers I got.


Not able to ask new question in Drupal Meta

I want to ask a  in , but whenever I click the , it loads(Pre-filled) the fields with old question. See the below screenshot or check this recorded .  Note: I already submitted that  yesterday, but don't know why it saved as draft.        And also I faced a similar issue  yesterday


Don't light up the achievements indicator when the only change is removed downvotes

Fine, the 's math  did in the old pop-up. That makes sense. But this is just silly. Why do I need to be notified that a post I downvoted got deleted?    (The title links next to the red -1s were removed from the screenshot by me. They're present in the real pop-up.)  So I can break out a bottle of the '82 Rothschild? It's especially pointless because there's  that caused the change.  Please don't display the Rep Signal when the change is only due to someone else's deleted posts.


when i use the jquery function load all jquery function stopped

The .item click function works, but when I click the refresh button it does not work. Please help me. I tried to move the code in the head tag and at the end of the body but it does not work.  <button id="button" type="submit">Refresh</button>

     item 1

     item 2

     item 3


Resize (enlarge) an image without resampling (in favor of quality loss)?

How to resize an image or selection without resampling the pixels? I have some pixel art that I want to enlarge without losing the hard, non-anti-aliased, pixel edges. In other words, 1px should become 4px of the same color— fake big pixels. Is there any way to achieve this procedurally?  Example (of what I don't want):  before resize:    after resize:    Open to other tools/methods beyond photoshop, thanks in advance.


I have the following method:     public Object[][] getTableData(JTable table) {     DefaultTableModel dtm = (DefaultTableModel) table.getModel();     int nRow = dtm.getRowCount(), nCol = 3;     Object[][] tableData = new Object[nRow][nCol];     for (int i = 0; i < nRow; i++) {         tableData[i][0] = dtm.getValueAt(i, 5);         //System.out.print(tableData[i][0] + " ");         tableData[i][1] = dtm.getValueAt(i, 4);         //System.out.print(tableData[i][1] + " ");         tableData[i][2] = (dtm.getValueAt(i, 2)) + " " + `(dtm.getValueAt(i, 3));`         //System.out.print(tableData[i][2] + " ");         //System.out.println();     }     return tableData; }   I also have the following method:      public Object[] head(JTable table) {         JTableHeader th = table.getTableHeader();         TableColumnModel tcm = th.getColumnModel();         Object[] headdata = new Object[3];          headdata[0] = tcm.getColumn(5).getHeaderValue();         headdata[1] = tcm.getColumn(4).getHeaderValue();         headdata[2] = tcm.getColumn(2).getHeaderValue();         //System.out.println(headdata[x]);         list = new ArrayList<>(Arrays.asList(headdata));//list refers to column names //System.out.println(list.get(0) +" "+ list.get(1) +" " +  list.get(2));         return headdata;     }   I want to combined the 2 methods into a single method however one return type is Object[] and another return type is Object[][]  How could i combine the methods so i bring back 2 return types and bring back return tableData and return headdata from the same method.  I am 2 years amateur experienced in Java.


Why is electrostatic force significantly stronger than the gravitational force?  Is there any deeper reason other than the fact that coulumb's constant is much bigger than gravitational constant? is it because gravitational force is a consequence of curvature of space time and related to object's inertia, where as, electrostatic force is due to interaction of charges with electric field?


Refer to renamed columns in WHERE clause

SELECT name, gdp/population as capita  FROM world w1  WHERE continent = 'Europe'       AND capita >  (     SELECT gdp/population      FROM world      WHERE name = 'United Kingdom' );   How come I can't refer to capita in the WHERE clause? It returns this error:  Unknown column 'capita' in 'where clause'   I can however, run the query if I replace capita with gdp/population.  I don't want to do gdp/population > .... How can I do capita > ...? Or is this not possible?


Why do some tag info pages show who created them and others don't?

Some  show who created the tag:    while  don't. I'm pretty sure I created that one as well, if you hover over the timestamp you can see when it was created:    which more or less matches with  where I created the tag:    I understand that some tags like  were probably created by the Community user while the site itself was created (so it ), but some newer tags like   even though  still has an account here.  What's going on here? Would this also mean I wouldn't get a  for  if I ?


Perfect Map $p:\ X\to Y$, $Y$ compact implies $X$ compact

I was assigned the following homework problem for an introductory course in topology:  Let $p:\ X\to Y$ be a closed continuous surjective map such that $p^{-1}(\{y\})$ is compact for each $y\in Y$.  Show that if $Y$ is compact, then $X$ is compact.  My question is, are the assumptions that $p$ be continuous and surjective even necessary for the result to hold?  I've done the following:  Let $U$ be an open set containing $p^{-1}(\{y\})$.  Since $X-U$ is closed, $p(X-U)$ is closed in $Y$.  Then $W=Y-p(X-U)$ is an open set that contains $y$.  Since $(X-U)\cap p^{-1}(W)=\varnothing$, $p^{-1}(\{y\})\subset p^{-1}(W) \subset U$.  Let $\{U_\alpha\}$ be an open cover of $X$.  Then $p^{-1}(\{y\})\subset \bigcup_{k=1}^{N}U_k$.  For each $y\in Y$, define $W_{y}$ as above; then $\{W_y\}$ is an open cover of $Y$, so can be covered by $W_{y_1},...,W_{y_m}$, and $p^{-1}(\{y_j\})\subset p^{-1}(W_{y_j})\subset \bigcup_{k=1}^{N}U_k$.  Since $X=p^{-1}(Y)$, $X=\bigcup_{j=1}^{n} p^{-1}(W_{y_j})$.  Since each $p^{-1}(W_{y_j})$ is covered by finitely many $U_k$, so is $X$, so it is compact.  If we dispense with surjectivity of $p$, the only thing that happens is that $p^{-1}(\{y\})$ may be empty, but then $p^{-1}(\{y\})\subset p^{-1}(W)$ holds vacuously, and the empty set is still compact.  If $p$ is continuous, then $p^{-1}(W)$ is open, but I don't use the fact that it is open at all in my proof.  I know that all 3 assumptions make a map "perfect" so that may be why they were mentioned, but can we dispense with continuity and surjectivity?  Thanks.


I will be working on my 3G connection for a few days (meaning I'll be in the middle of nowhere). I don't want Windows to update and don't want any of my apps and services to connect to internet. I will be using only Chrome. I'm just trying to block all outgoing traffic with Windows Firewall and adding an Allow rule for Chrome but I suppose Block overrides Allow. So is there a way to achieve this?


In Back to the Future Part II, how could old Biff have made it back to 2015?

In Back to the Future Part II, Doc picks up Marty in 1985 and takes him to 2015. Then old Biff realizes the Delorean is a time machine. Old Biff steals the Delorean and travels from 2015 to 1955 to give the 1955 version of himself the 2015 sports almanac.   When old Biff then returned to 2015 from 1955, shouldn't he have arrived in a way-different 2015? Instead, he arrives in the same 2015 that he departed, where Doc and Marty are still running around as if nothing changed.  Here's pic of Doc Brown in BTTF2 explaining how Old Biff created new timeline:    I think this is a problem created by perspective. When Old Biff takes the Delorean back in time, we viewers do not go along for the ride. We're left hanging in a 2015 that becomes obsolete when Old Biff changes 1955. Seems our 2015 has two options: continue to exist as an alternate to the 2015 Old Biff created, or cease to exist. Either way, still seems our 2015 would be unreachable by Old Biff and the Delorean on their return from 1955.


How to include multiple domains in an spf TXT Record ~all and ?all

I am looking to setup a TXT spf record that has 2 included domains...individually:  v=spf1 include:hotmail.com ~all   and  v=spf1 include:servers.mcsv.net ?all   What is the proper way of combining them into a single item?


How to create a video from a series of images

I have a series of 20 .tif images. I want to create an .avi video from them but I want each image to be shown for 4-5 seconds. I tried ffmpeg but I cannot find a way to make them be shown for this specific time. Does anyone have an idea?


Changing hard disk with ssd, can I migrate contents so that I can switch drives without a hassle?  For instance, keep my Windows configuration and installed programs and documents


jquery on click not working for dynamically added items

I'm adding some code(!with js code included!) dynamically.

    Problem that this click event works anythere I click in div.w and returns text of ALL div.w combined in one string without spaces (sometext1sometext2).  Sorry if I wrote something wrong. I'm bad in english.


1970s or earlier comedic space opera film with garbage collecting space ship

I saw this film in the late 1970s. I am unsure if it was made for TV or ever had a theatrical release (I don't think it was a TV show). Its production values were, say, somewhere between a B-movie of the era and Space 1999. I saw it on a B&W TV, so can't recall if it was produced in color or not.  The only bit I clearly remember was a scene where, what I believe was, the protagonists' spaceship went to collect some space garbage, and there was an external scene where the ship extends "arms" with grippers on the end and wrestles in comedic fashion with giant space trash.  What was this film?


Do I need Korea Visa when transit at Incheon Airport, as an Indonesian citizen?

I'm travelling from London (UK) to Jakarta and using 2 different airlines (2 separate tickets - non connecting flight), from London to Incheon using Asiana (1 ticket), and from Incheon to Jakarta using SQ/Singapore airlines (1 ticket) and have to layover at Incheon about 8 hours. Do I need a Korea visa if I have to transfer/change the airlines? Or can I change airlines without visa? I'm an Indonesia passport holder


How can I open a PDF in Google Drive in the same way as a downloaded PDF?

If I download a PDF in Chrome (even from Drive), on any platform, and click on the downloaded-file-button down the bottom, the PDF opens in Chrome in a viewer that includes a table of contents browser, smart zoom controls and other features.  If, on the other hand, I double click on it in Drive, it opens in Chrome but in a preview style viewer that is very limited, with none of the features above.  How do I get Chrome to open PDFs from Drive... well, in Chrome?


Piezoelectric vibration energy harvesting

Recently I'm working on a project aiming to convert the vibration of sound waves into electricity to charge batteries using a piezoelectric material (MFC type). I was trying to use the human voice as an input, but theoretically it was not enough, so do you have any ideas about some places that I can apply my project on it (that must be noisy or can give me vibrations)?  Moreover, has the MFC material been used before in this application? If I used many pieces of it in parallel would that help?


What is the meaning of this Microsoft EULA message?

┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐  │                                                                           │   │ TrueType core fonts for the Web EULA                                          │                                                                               │ END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE                             │                                                                               │ IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement           │ ("EULA") is a legal agreement between you (either an individual or a          │ single entity) and Microsoft Corporation for the Microsoft software           │ accompanying this EULA, which includes computer software and may include      │ associated media, printed materials, and "on-line" or electronic              │ documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your          │ rights to make and use copies of the SOFTWARE PRODUCT, you agree to be        │ bound by the terms of this EULA. If you do not agree to the terms of          │ this EULA, you may not use the SOFTWARE PRODUCT.                              │                                                                               │                                  <Ok>                                         │                                                                           │   └───────────────────────────────────────────────────────


probability need help on correlation problem

A deck of 52 cards is shuﬄed you are dealt 13 cards. Let $X$ and $Y$ denote, respectively, the number of aces and the number of spades in your hand. Show that $X$ and $Y$ are uncorrelated.  I try to write $X=X_1+X_2+\cdots+X_{13}$, such that $X_1\ldots X_{13}$ is the indicator of the $i^{th}$ card. But this doesn't work. please help.


Is there a way to bring back the add menu that pops up in the bottom in Blender 2.8 when adding primitive object to your scene to change vertices?


I cannot install xtreme download manager!

i followed the instruction given in the sourceforge forum but it didn't work.Pls tell me some solutions.  cd xdman/ chmod +x xdman.sh  ./xdman.sh ./xdman.sh: 2: ./xdman.sh: java: not found sudo ./xdman.sh [sudo] password for nishant:  ./xdman.sh: 2: ./xdman.sh: java: not found   How can i resolve this?


Finite atomic measure space can be a countable disjoint union of atoms

An atom A in a measure space is a measurable set with positive measure such that every measurable subset of A has the same measure of A or 0. An atomic measure is a measure space such that in every measurable set there is an atom. Let's say that I have a positive atomic measure space $(X, \Sigma, \mu)$ such that $\mu(X)<\infty$. I want to prove that X is a countable disjoint union of atoms and a set with zero measure. My attempt: X is a measurable set therefore exist an atom $A_1 \subseteq X$, if $\mu(X/A_1) = 0$ we are done, if not we define $A_2$ as the sub atom of $X/A_1$ and we precede this way for every n. What I need to prove is that $\mu(X/\bigcup_{n=1}^{\infty}A_n) = 0$.


I am starting with learning Python. I currently have the following small piece of code:  a = float(input()) b = float(3) while a < b:     print(a + 0.0001)     a+=0.0001   This counts, but there appear decimals in the end of the float. Why do they come there and what are they?  Output:


can use psql on localhost but not on the server fully qualified name

From my server (Centos 8) data.mycompany.edu  I can open a psql session using psql -h localhost -p 7432 -U myusername mydb  However, if I use psql -h data.mycompany.edu -p 7432 -U myusername mydb  I get the next message: psql: /usr/pgsql-12/lib/libpq.so.5: no version information available (required by psql) psql: /usr/pgsql-12/lib/libpq.so.5: no version information available (required by psql) psql: could not connect to server: Connection refused         Is the server running on host "data.mycompany.edu" (some IP ADDRESS) and accepting         TCP/IP connections on port 7432?  I opened this port as: sudo firewall-cmd --list-all    ...   ports: 58080/tcp 58009/tcp 80/tcp 8009/tcp 55432/tcp 7432/tcp   protocols:    ...  Any ideas?


After following , I cannot launch Sublime Text from command line. How can I fix this?


Was the big bang a black hole that collapsed

I know this might be a silly question and maybe a bit off topic, but I wonder, could the big bang have been the collapse of a gigantic black hole in which all off its contents was pushed out? I have only basic skills in physics so I feel a bit embarrassed to ask. I could imagine a cycle of black holes collecting matter, merging with other black holes and when reaching some limit, spewing it all out, just to be collected by other black holes in the future


Photoshop has now given the facility to open and edit JPEGs and other non-RAW file formats using Adobe Camera Raw. One doesn't have to shoot RAWs to do some heavy edits. So is there still any benefit that shooting in RAW makes when editing it in ACR? When a RAW file is opened in ACR why do some menu items (sliders, etc.) color up and they don't do so when a JPEG is opened in ACR?


Hide a disk E: in "Computer" view of Windows Explorer, but still have it mounted as E:

I know how to hide a volume with DISKMGMT.MSC (Right click, Change Drive Letter and Paths, and remove the drive letter),    but here I want something a little bit different:   I would like to still have the disk mounted as E: (thus we can launch a program there, we can access it via cmd.exe, symlinks to E:\mydirectory\ will still work, etc.)  but just not see it in the Computer Explorer view:    How to do this?  (I'm admin, and there is only 1 user account).    Note:  doesn't work, no option to remove E: only appears in the list:


What is the standard (out of the box) timeout for Chrome? How do I change the timeout settings and have a different timeout for developers and a standard users of my service?


How can I run Android applications on my computer?

Is there any method for using Android applications on a computer, because I found  tutorial but my laptop just has 1 GB of RAM and works very hard. I want to use WeChat on my PC because I like it very much.


What is the difference between the words vernacular and colloquial? Is vernacular closer to jargon?  A quick search reveals that colloquial refers to informal spoken language while vernacular refers to some sort of native language of a place. Is that the only difference?


Why does iface.activeLayer() not work in a PyQGis standalone app?

It is my second day on PyQGIS. Not sure why layer doesn't return anything. Can anyone help me on this?    Code:  #!/usr/bin/python from qgis.core import * from qgis.utils import * from PyQt4.QtCore import *  def main():   qgis_prefix="/usr"       QgsApplication.setPrefixPath(qgis_prefix, True)    QgsApplication.initQgis()   app = QgsApplication([], False)    uri = "elevp.csv?delimiter=%s&xField=%s&yField=%s&elevField=%s" % (";","x","y","elev")   vlayer = QgsVectorLayer(uri, "test", "delimitedtext")   QgsMapLayerRegistry.instance().addMapLayer(vlayer)   #print(QgsMapLayerRegistry.instance().mapLayers())     #iface.mapCanvas().setSelectionColor( QColor("red") )   layer = iface.activeLayer()   print(layer)   # Run main wrapper codes main()


Javascript For Loop With Decimal Increments Has A Wrong output

I have a problem which I think is a bug. So I have created a for loop:  var multi=2;  for (limit=0; limit < length; limit += 1.2) {       multi++;  }  console.log(multi);   The output is correct for all range of values except for the instance where length=10.8 or any multiples thereof. The output shows as multi=12 which in fact it should be 11.  Can somebody tell me why is this happening?  Thanks!


What good is downvoting really? Seems not to serve much useful purpose

I'm not a fan of the downvoting feature in general; frankly, I think it should be removed from all of the stackexchange sites.  Negative feedback leads to negative results. I recognize that the intent is not to provide a means of giving negative feedback, but that's what downvoting does. "The community's way of telling peers that their content can be improved" isn't an accurate description of downvoting: people who downvote other people with no explanation as to why (the usual practice) generally consider them not their peers, but their inferiors.   I fear that the downvoting feature panders to the worst aspects of human nature, to an extent that far outweighs any possible benefit that it can provide. I recognize that the intent of downvoting is to make a form of constructive criticism available, but that it fails to do. It simply says "this is bad" without any explanation. If someone really wants to offer constructive criticism, he can do so in the comments, or by closing questions with an explanation of how to bring them up to par. If he does that, it is that that has the value, not a downvote that might or might not go along with it.  I submit that the increasingly negative "elitist" reputation of many of the stackexchange sites (stackoverflow, the "bread and butter" site, in particular) is due more to unexplained downvotes than anything else: downvoting is (much) more often than not a way of telling new people that they aren't welcome in the club. This isn't conducive to growth.  It seems to me that the recently introduced admonishment to "be nice" to new members acknowledges the problem without really doing anything about it. It would be given more teeth if the downvoting feature were removed entirely — people have to give a lot more thought to a comment than a downvote decision. Furthermore, the (apparently many) "serial downvoters" who contribute little if anything else to the site would take themselves elsewhere.   Thoughts? What are the positive contributions (are there any?) that downvoting makes to the stackexchange sites?


Ubuntu 18.04.1 repositores are not working

Today I fired up my LapTop, logged into Ubuntu and ran    sudo apt-get update   Then this happened.  Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  InRelease Ign:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48  InRelease Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release [574 B] Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48  Release [574 B] Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Hit:5 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu bionic InRelease    0% [3 InRelease gpgv 83.2 kB] [Connecting to ir.archive.ubuntu.com (185.142.156^0% [Connecting to ir.archive.ubuntu.com (185.142.156.14)]          13.Err:6 http://ir.archive.ubuntu.com/ubuntu bionic InRelease                                                                                Could not connect to ir.archive.ubuntu.com:80 (185.142.156.14), connection timed out Err:7 http://ir.archive.ubuntu.com/ubuntu bionic-updates InRelease   Unable to connect to ir.archive.ubuntu.com:http: Err:8 http://ir.archive.ubuntu.com/ubuntu bionic-backports InRelease   Unable to connect to ir.archive.ubuntu.com:http: Fetched 83.2 kB in 31s (2,712 B/s) Reading package lists... Done W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not connect to ir.archive.ubuntu.com:80 (185.142.156.14), connection timed out W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Unable to connect to ir.archive.ubuntu.com:http: W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Unable to connect to ir.archive.ubuntu.com:http: W: Some index files failed to download. They have been ignored, or old ones used instead.  Any ideas what could cause this? Could it be that those links are not working anymore? If so where can I find new ones?  Thank you <3


Adding grouped icons to favorite bar in Ubuntu 18.04

Is there anyway to add icons groups to the favorites bar aka Ubuntu dock (something like drawers or unity-launcher-folders) in Ubuntu 18.04 ?


I have a expired Indian Passport with a Valid US Visa in perfect condition. Due to some unfortunate event the old US Visa(expired in 2015) on the expired Passport got smudged and now looks a bit faded. Is the expired Passport now invalid, and so is the Valid US Visa which in perfect condition?  Do I need to get the Visa re stamped on the new Passport?   Thanks.


Illustrator export flatten design layers when export to PSD

Tried two Illustrator versions, 2018 and 2020. The issue is, when I export as PSD it exports without layers as flat image.  Tried to google, found some workarounds, but all of them not working. Used Ungroup all and Release all layers options but still no luck. Also tried to do single files for each artboard, example attached 1.ai file is still not working, flatten when exported.


A function is "differentiable" if it has a derivative. A function is "continuous" if it has no sudden jumps in it.  Until today, I thought these were merely two equivalent definitions of the same concept. But I've read some stuff today which seems to be claiming that this is not the case.  The obvious next question is "why?" Apparently somebody has already asked:    Several answers were given, but I don't understand any of them. In particular, Wikipedia and one of the replies above both claim that $|x|$ has no derivative. Can anyone explain this extremely unexpected result?  Edit: Apparently some people dislike the fact that this is non-obvious to me. To be clear: I am not saying that the result is untrue. (I'm sure many great mathematicians have analysed the question very carefuly and are quite sure of the answer.) I am saying that it is extremely perplexing. (As a general rule, mathematics has a habit of doing that. Which is one of the reasons why we demand proof of everything.)  In particular, can anyone explain precisely why the derivative of $|x|$ at zero is not simply zero? After all, the function is neither increasing nor decreasing, which ought to mean the derivative is zero. Alternatively, the expression  $$\frac{|x + a| - |x - a|}{a}$$  becomes closer and closer to zero as $a$ becomes closer to zero when $x=0$. (In fact, it is exactly zero for all $a$!) Is that not how derivatives work?  Several answers have suggested that the derivative is not defined here "because there would be a jump in the derivative at that point". This seems to assert that a continuous function must never have a discontinuous derivative; I'm not convinced that this is the case. Can anyone confirm or refuse this argument?


This is out of curiosity. I am working with rf 433 MHZ transmitter receiver module. I just wanted to ask whether it affects health in any way. I have read that such radiation has carcinogenitic effects. Does the power transmitted by the transmitter has any effect?


Show that $\frac{uu_x + vv_x}{u^2 + v^2}$ is harmonic.

We have an open set $U$ in $\mathbb{R}^2$ and two functions $u, v \in C^1 (U)$. $u$ and $v$ satisfy the Cauchy-Riemann equations in $U$, i.e., $u_x = v_y$ and $u_y = -v_x$. Also, $u^2 + v^2 \neq 0$ for all $(x,y) \in U$. Then, we have to show that $$\frac{uu_x + vv_x}{u^2 + v^2}$$ is harmonic in $U$, i.e., the Laplacian of this function is zero.  On the face of it, it seems there is nothing to do but calculate the second partial derivatives and verify the result. But that would be very messy and complicated. Is there something easier that I am missing?  Note: $u_x$ means the partial derivative of $u$ with respect to $x$, etc.


How to make different materials for different objects?

When I change one material, it changes it on another object. Why and how do I fix it? is there some link between the objects?    Here is my blender file of Iron Man's faceplate.  Here is my whole screen with the main portion of the face selected. On the right, you can see the material, and I can tell you that that is the same as the eyes part:


Battle of Hoth: how did the AT-ATs manage to disable the shield generator?

(This question is related to , and was originally posted as an answer there, but it's not the same)    In , the Empire attacks Rebel Echo Base located in Hoth. The Rebels are alerted before the attack, and raise some sort of shield to prevent orbital bombardment of their base. The Empire is then forced to deploy land forces to first disable the shield generator, before destroying the base. Presumably, the Imperial forces are deployed using dropships.  My question is about how the Rebel shield generator works, and how the Imperials manage to bypass it.  I think the shield generator is something of a plot hole. At first I incorrectly thought it was a planetary shield (i.e. a shield around all of Hoth) preventing orbital bombardment, and also preventing any dropships (with their AT-AT payload) from landing, but I think : the  states it is an energy field around just an area of Hoth, presumably Echo Base:     VEERS: My lord, the fleet has moved out of light-speed. Com-Scan has   detected an energy field protecting an area around the sixth planet of   the Hoth system. The field is strong enough to deflect any   bombardment.   So my initial objection ("how did the Imperial dropships bypass the shield?") has been answered: they didn't. They landed outside the energy field to deliver the AT-ATs. But now I have another question: does an AT-AT have to walk inside the field to fire at the generator, or can it fire into the field from outside?  Maybe the field simply cannot stop matter, only energy weapons (therefore preventing orbital bombardment), in which case the AT-ATs would be able to just walk inside. However, the script also states:     LEIA: All troop carriers will assemble at the north entrance. The   heavy transport ships will leave as soon as they're loaded. Only two   fighter escorts per ship. The energy shield can only be opened for a   short time, so you'll have to stay very close to your transports.   So it's clear that the energy field is also capable of stopping matter, in this case troop transports and fighters. It follows that it should also prevent AT-ATs from walking through it. So the only way I can see the walkers disabling the generator is by firing into the energy field!  This would mean the field is strong enough to stop matter such as ships and fighters, and energy weapons used for orbital bombardment (and also the Ion Cannon the Rebels use as an anti-orbit battery: Leia also states they must lower the shield to use it), but not able to stop whatever energy weapons the AT-ATs use!  So how on Earth did Imperial Walkers manage to disable the shield generator?


Proof for the calculation of mean in negative binomial distribution

I am trying to figure out the mean for negative binomial distribution but have run into mistakes. I know there are other posts on deriving the mean bu I am attempting to derive it in my own way. I wonder if any of you can point out where my mistake is:  In negative binomial distribution, the probability is: $$ p(X=x) = \frac{(x-1)!}{(r-1)!(x-r)!}p^r(1-p)^{x-r}, $$ where $X$ is a random variable for the number of trials required, $x$ is the number of trials, p is the probability of success, and r is the number of success until $x$th trial. Therefore, to calculate expectation:  $$ E(x) = \sum_{x=r}^{\infty}xp(x)=x\sum_{x=r}^{\infty}\frac{(x-1)!}{(r-1)!(x-r)!}p^r(1-p)^{x-r}=\sum_{x=r}^{\infty}\frac{x!}{(r-1)!(x-r)!}p^r(1-p)^{x-r} $$  Let $k=x-r$, then the formula becomes: $$ E(x)=\sum_{k=0}^{\infty}\frac{(k+r)!}{(r-1)!k!}p^r(1-p)^k= \sum_{k=0}^{\infty}\frac{(k+r)!}{(r-1)!k!}p^r(1-p)^k= r\sum_{k=0}^{\infty}\frac{(k+r)!}{r!k!}p^r(1-p)^k $$  By binomial theorem, $\sum_{k=0}^{\infty}\frac{(k+r)!}{r!k!}p^r(1-p)^k$ becomes $[p+(1-p)]^{k+r} = 1$, and thus $E(x) = r$, which is obviously wrong.  I cannot figure out what is wrong with my proof, and thus any help will be appreciated. For reference, someone else has done a similar proof here, but I still have trouble understanding the mistake(s) in my proof:


In this sentence:  "We would also accept an international transfer, but in that case we would ask you to pay your bank's charges at the time of the instruction to ensure that we received the full amount"  is it correct to use "received" or should it be in present tense?


Background: I'm giving a presentation to colleagues at work on hypothesis testing, and understand most of it fine but there's one aspect that I'm tying myself up in knots trying to understand as well as explain it to others.  This is what I think I know (please correct if wrong!)   Statistics that would be normal if variance was known, follow a $t$-distribution if the variance is unknown CLT (Central Limit Theorem): The sampling distribution of the sample mean is approximately normal for sufficiently large $n$ (could be $30$, could be up to $300$ for highly skewed distributions) The $t$-distribution can be considered Normal for degrees of freedom $> 30$   You use the $z$-test if:   Population normal and variance known (for any sample size) Population normal, variance unknown and $n>30$ (due to CLT) Population binomial, $np>10$, $nq>10$   You use the $t$-test if:   Population normal, variance unknown and $n<30$ No knowledge about population or variance and $n<30$, but sample data looks normal / passes tests etc so population can be assumed normal   So I'm left with:    For samples $>30$ and $<\approx 300$(?), no knowledge about population and variance known / unknown.   So my questions are:   At what sample size can you assume (where no knowledge about population distribution or variance) that the sampling distribution of the mean is normal (i.e. CLT has kicked in) when the sampling distribution looks non-normal? I know that some distributions need $n>300$, but some resources seem to say use the $z$-test whenever $n>30$... For the cases I'm unsure about, I presume I look at the data for normality. Now, if the sample data does looks normal do I use the $z$-test (since assume population normal, and since $n>30$)? What about where the sample data for cases I'm uncertain about don't look normal? Are there any circumstances where you'd still use a $t$-test or $z$-test or do you always look to transform / use non-parametric tests? I know that, due to CLT, at some value of $n$ the sampling distribution of the mean will approximate to normal but the sample data won't tell me what that value of $n$ is; the sample data could be non-normal whilst the sample mean follows a normal / $t$.  Are there cases where you'd be transforming / using a non-parametric test when in fact the sampling distribution of the mean was normal / $t$ but you couldn't tell?


I have seen links in servers that can send you to a page in a browser, is there any way to replicate this with command blocks?  I don't mean command links, I mean web pages.


How to increase swap partition when installing Ubuntu 20.04?

Is there a way to do the default installation but have a larger swap partition? Thanks.


I have a question on a comment from Daniel Hyubrechts' Complex Geometry  on pages 133/134.  Let $X$ be a compact Kähler manifold. Consider the exponential sequence on cohomology   $$ ... \to H^1(X,\mathcal{O}_X^*)=Pic(X) \to H^2(X, \mathbb{Z}) \to H^2(X, \mathcal{O}_X) \to ...$$     Remark 3.3.3 Often, the image of $Pic(X) \to H^2(X,\mathbb{R}) \subset H^2(X,\mathbb{C})$ is called the Neron-Severi group $NS(X)$ of the manifold $X$. It spans a finite dimensional real vector space $NS(X)_{\mathbb{R}}= NS(X) \otimes \mathbb{R} \subset  H^2(X,\mathbb{R}) \cap H^{1,1}(X)$, where the inclusion is strict in general. The Lefschetz theorem above thus says that the   natural inclusion $NS(X) \subset H^{1,1}(X, \mathbb{Z})$ is an equality.      If $X$ is projective, yet another description of the Neron-Severi group can be   given. Then, $NS(X)$ is the quotient of $Pic(X)$ by the subgroup of numerically   trivial line bundles. A line bundle $L$ is called numerically trivial if $L$ is of   degree zero on any curve $C \subset X$.    Q1: Why in case of $X$ projective i.e. closed subscheme of projective space, these two descriptions of Neron-Severi group coincide? Thus why the image of $Pic(X) \to H^2(X,\mathbb{R})\subset H^2(X,\mathbb{C})$ coincides with quotient $Pic(X)/A$ with $A$ subgroup of numerically trivial line bundles?  Q2: Why $NS(X)_{\mathbb{R}} $ is contained in $  H^{1,1}(X)$. Recall, we have decomposition $H^2(X, \mathbb{C})=H^{2,0}(X) \oplus H^{1,1}(X) \oplus H^{0,2}(X)$.


Drop down bug says +30 but I only got +10

See screen shot below... I got +10, but the drop down shows +30.    oh, I see I cut off the rest of the day -- here is the top of the Reputation audit:    nb - this problem has persisted since yesterday including two different machines and and at least one reboot.  I'm using chrome.  UPDATE -- new feature verified, not a bug on mouse hover details shown:


I have a table and am trying to include a caption and label. The caption is printed but with the wrong number. It is my first table in the document, but latex uses the number of my Chapter (3.1) for the table. I tried fixing it by manipulating the counter, but it will only change between 3.1 and 3.2.   This is my code:  \setcounter{table}{0}  \begin{table}[h!] \begin{tabu}to 0.8\textwidth { | X[c] || X[c] | X[c] | } \hline Measure & Min & Max \\  \hline \hline One & 1 & 26 \\  \hline Two & 6.353 & 2.2 \\  \hline Three & 0 & 8.46 \\  \hline Four & -16.86 & -2.94 \\  \hline \end{tabu} \caption{Statistics of indices} \label{table:1} \end{table}   Can somebody help? I've been fighting with this table for hours and would really appreciate tips!


Does it increase security if the CBC chunks of a AES-256 encrypted bytestream are uploaded to different clouds?

I want to backup my data according to the 3-2-1 rule. I already backup to 2 different drives (2 different systems) at home.  In addition i would like to use cloud storage (Google, Amazon etc.). Considering the future weakening of cryptography by advancements in computing power (e.g. key guessing by quantum computing) i want my data to be as safe as possible because once it's uploaded it's prone to decryption in the future (i can't guarantee the data is deleted if i delete it from the cloud(s)). Does it increase securtiy of my data if i split the CBC chunks to let's say 2 clouds? Uploading the even numbered CBC elements to e.g. Google and the odd numbered elements to Amazon. Since one storage hoster is constantly missing the next part of the CBC-Chain (1/2 in total) shouldn't this increase security of the data even if the AES key is known by the hoster(s)?


I have test.txt file: "hi there 1, 3, 4, 5"  When I use python to read it,how can I read it part by part for example first I read the first 4 character and then read the next 4 and then all of the left. my code here: with open(file, 'r', encoding='utf-8', errors='ignore') as f:              lines = f.read(4)  Use this code I can only read the first 4 character,any idea that I can ready each 4 characters in a loop until read all of them?


What's a word for someone who enjoys pleasure, travel, food, thrill for new things

I’m looking for an adjective/ noun that describes a person who loves life, traveling, great food, always doing things which gets adrenaline kicking and is a always ready for attempting things for pleasure only


I have two limit problems which are quite similar, so I've put them both into this post.   $((4^{10}+2^{n})^{\frac{1}{n}})$ $((3n^{2}+n)^{\frac{1}{n}})$   Attempt:  For 1, I'm not sure if this is permissible. I know that $\lim_{n \to \infty}(x^{n}+y^{n})^{\frac{1}{n}} = \max\{x,y\}$. Obviously $4^{10}$ is a constant so it's not quite in the same form, but I believe it is still okay to use this result, and so the limit is $2$.  For 2, I've got $((3n^{2}+n)^{\frac{1}{n}}) = (n(3n+1)^{\frac{1}{n}})$, but then I'm not too sure how to proceed.   I also thought of taking the log and proceeding that way, however in the notes I'm learning from they haven't covered l'hopital yet, so I'm trying to not use it.  Thanks.