Downloading Met Office Datapoint tiles for specific region

Does anyone know how to use the Met Office Datapoint API to download tiled imagery?  There are some "detailed instructions" , but it is not clear how to relate tile coordinates to real world coordinates.  For example, to download a tile of rainfall radar imagery, I can use a request like  http://datapoint.metoffice.gov.uk/public/data/inspire/view/wmts?REQUEST=gettile &LAYER=Precipitation_Rate&FORMAT=image/png&TILEMATRIXSET=EPSG:4258 &TILEMATRIX=EPSG:4258:0&TILEROW=0&TILECOL=0&DIM_RUN=2013-11-20T03:00:00Z &DIM_FORECAST=%2B9&key=<API key>   This is fine for zoom level 0 (as there is only one tile at this level), but what I can't figure out is which row and column numbers to use to get a specific tile.  More information about the service can be found using the getcapabilities command (you need to register to get an API key first).  http://datapoint.metoffice.gov.uk/public/data/inspire/view/wmts?REQUEST=getcapabilities &key=<APIKEY>   It gives information for each available spatial reference and zoom level, for example this is EPSG:4258 level 9:  <TileMatrix>     <ows:Identifier>EPSG:4258:9</ows:Identifier>     <ScaleDenominator>128062.35453175165</ScaleDenominator>     <TopLeftCorner>-10.67 71.05</TopLeftCorner>     <TileWidth>256</TileWidth>     <TileHeight>256</TileHeight>     <MatrixWidth>512</MatrixWidth>     <MatrixHeight>512</MatrixHeight> </TileMatrix>   I can turn each tile into a GDAL dataset then use the heights and widths to place it in the grid. All I need to do is add a geotransform - I've got the top left coordinates, but can't work out the pixel resolution.  Presumably I can do something with the scale denominator, but I'm a but stumped.  Maybe I'm barking up the wrong tree and there is a better way to do it. Can anyone help?


Terminal flashes on empty backspace with Yosemite

Since using Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and could be toggled in accessibility settings, but I cannot find the same setting and I'm dying to get this turned off. Any known ways to get rid of it?


I installed ssh on my laptop running Ubuntu 14.04 LTS  when I open terminal and type "ssh localhost" it seems to work fine, I get the notice displayed and the last log in time. like below  srimanth@srimanth-Inspiron-N5110:~$ ssh localhost ***************************************************************************                             NOTICE TO USERS   This computer system is the private property of its owner, whether individual, corporate or government.  It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy.  Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to your employer, to authorized site, government, and law enforcement personnel, as well as authorized officials of government agencies, both domestic and foreign.  By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of such personnel or officials.  Unauthorized or improper use of this system may result in civil and criminal penalties and administrative or disciplinary action, as appropriate. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning.  **************************************************************************** Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic i686)   * Documentation:  https://help.ubuntu.com/  Last login: Sat Jan 24 21:43:06 2015 from localhost   But when I log in as a root in terminal by typing "sudo su" and then running "ssh localhost" it is asking me for root password and I typed the correct password several times and I get the message saying permission denied.  srimanth@srimanth-Inspiron-N5110:~$ sudo su [sudo] password for srimanth:  xdpyinfo:  unable to open display "localhost:0.0". root@srimanth-Inspiron-N5110/home/srimanth # ssh localhost ***************************************************************************                             NOTICE TO USERS   This computer system is the private property of its owner, whether individual, corporate or government.  It is for authorized use only. Users (authorized or unauthorized) have no explicit or implicit expectation of privacy.  Any or all uses of this system and all files on this system may be intercepted, monitored, recorded, copied, audited, inspected, and disclosed to your employer, to authorized site, government, and law enforcement personnel, as well as authorized officials of government agencies, both domestic and foreign.  By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the discretion of such personnel or officials.  Unauthorized or improper use of this system may result in civil and criminal penalties and administrative or disciplinary action, as appropriate. By continuing to use this system you indicate your awareness of and consent to these terms and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the conditions stated in this warning.  **************************************************************************** root@localhost's password:  Permission denied, please try again. root@localhost's password:  Permission denied, please try again. root@localhost's password:  Permission denied (publickey,password).   I changed password by "sudo passwd root". even after this I get the same message saying permission denied. I dont know where wether the root password and root@localhost are same and I dont know where I have set up root@localhost password. I would appreciate some help. Thank you.


$\infty$   (Infinity) is not a number, but infinity is considered to be defined, right?  There are expressions in mathematics such as: $\frac x0,0^0, \frac\infty\infty,$ which are not defined because they do not have a certain place on any domain, and sometimes because there is no single value that satisfies all functions yielding such expression in a limit.  How can infinity be defined?    Maybe the argument would hinge on how 'defined' is defined?   Perhaps this requires a circular(infinite) argument?  Or is my assumption that infinity is considered to be defined; false?


Algebraically, why is $\mathbb{Z}[i]/(i + 1)$ isomorphic to $\mathbb{Z}_{2}$?

I understand geometrically why the Gaussian integers modulo $i+1$ is $\mathbb{Z}_{2}$, using lattices. Is there an algebraic isomorphism construction, however?


MySQL: "FROM_UNIXTIME(0)" gives "1970-01-01 01:00:00", which is 1 hour off

Context: MySQL version  On MySQL 5.7.17 (as shown by SHOW VARIABLES LIKE "%version%";)  Context: MySQL timezone settings  and with SELECT @@global.time_zone, @@session.time_zone; yielding  +--------------------+---------------------+ | @@global.time_zone | @@session.time_zone | +--------------------+---------------------+ | SYSTEM             | SYSTEM              | +--------------------+---------------------+   ...which means the server tracks the system timezone.  Context: System timezone  This being a Linux, we check the system timezone like this (output redacted):  $ timedatectl       Local time: Wed 2018-02-14 13:21:30 GMT   Universal time: Wed 2018-02-14 13:21:30 UTC         RTC time: Wed 2018-02-14 13:21:30        Time zone: Europe/London (GMT, +0000)   Context: What we know    (there is no clear description of this in , except "MySQL converts TIMESTAMP values from the current time zone to UTC for storage, and back from UTC to the current time zone for retrieval. (This does not occur for other types such as DATETIME.)"; note that "converts TIMESTAMP values to UTC for storage" actually makes sense only as an implementor's note, it's not useful to the user - what is important is that TiMEZONE always returns the correct value in whatever timezone one is in, while DATETIME will always return the same value in whatever timezone one is in)   Context: Current time  It's now around :  $ date +"The current time is %s alias %c" The current time is 1518617572 alias Wed 14 Feb 2018 14:12:52 GMT   Problem  Let's run:  SELECT NOW(),FROM_UNIXTIME(0),UNIX_TIMESTAMP(),FROM_UNIXTIME(UNIX_TIMESTAMP());   The output (suitably pivoted by hand; there should be an option to do that):  NOW()                            2018-02-14 14:15:13  -- Display "now" in SYSTEM timetone: OK FROM_UNIXTIME(0)                 1970-01-01 01:00:00  -- Display 1970-01-01 00:00:00 in SYSTEM timetone: NOT OK UNIX_TIMESTAMP()                 1518617713           -- Correct unixtime FROM_UNIXTIME(UNIX_TIMESTAMP())  2018-02-14 14:15:13  -- Same as NOW(): OK   In the above everything is fine, except the FROM_UNIXTIME(0) giving 1970-01-01 01:00:00, which is one hour off. If Unix Time 0 were displayed in UTC, it would give 1970-01-01 00:00:00 (or would it?)  This happens if I connect locally or from a remote machine.  To make doubly sure, I checked by coercing to DATETIME. The same happens:  CREATE TEMPORARY TABLE test (N DATETIME, FUX DATETIME, UXT LONG, NN DATETIME); INSERT INTO test SELECT NOW(),FROM_UNIXTIME(0),UNIX_TIMESTAMP(),FROM_UNIXTIME(UNIX_TIMESTAMP()); SELECT * FROM test; +---------------------+---------------------+------------+---------------------+ | N                   | FUX                 | UXT        | NN                  | +---------------------+---------------------+------------+---------------------+ | 2018-02-14 14:19:51 | 1970-01-01 01:00:00 | 1518617991 | 2018-02-14 14:19:51 | +---------------------+---------------------+------------+---------------------+


What are the advantages of having a aluminium frame?

are there any advantages that an aluminium body brings to the tables over carbon frames?


Should I use a question mark when the second independent clause of my sentence is not a question?

Is it appropriate to use a question mark at the end of a compound sentence where the first independent clause is a question but the second is a statement? For example:     Do you want attribution for that quotation, because I'm definitely sharing it and want to know if I should give you credit?   or      Do you want attribution for that quotation, because I'm definitely sharing it and want to know if I should give you credit.   I suppose this could work, but it's a little niche, as the second clause might not always be appropriate for a parenthetical.     Do you want attribution for that quotation (because I'm definitely sharing it and want to know if I should give you credit)?


How do I center this div vertically as well as horizontally?

I want the div to sit in the middle of the page vertically as well as horizintally. Im looking for a css solution. I took out the margin and margin-top because they messed with the header I have.    /* CSS */  .mainDiv {   background: #fff;   padding: 20px;   width: 450px;   margin: auto;   /*margin: 0px auto;   margin-top: 200px;*/   box-shadow: 0 0 20px #333; }

Firebase Web App
   <textarea placeholder="Enter text here ..."></textarea>
     FIDDLE


Pigeon Hole Principle Problem I'm kind of lost for how to go about this.

Bobby has 5 weeks to prepare for his exam. His friend volunteered to tutor for either 15min or 30min periods every day until the test but not for more than 15 hours total.   Show that during some period of consecutive days, Bobby and his tutor will study for exactly 8.75 hours.


Proof that if $\gcd(a,b) = 1$ then $\gcd(a^n, b^m) = 1$

Proof via induction for $n,m \geq 0$ that if $\gcd(a,b) = 1$ then $\gcd(a^n, b^m) = 1$ for any $n,m$ that are positive integers.


I am trying to make a homemade Neapolitan pizza in a regular home gas oven. I preheat the oven for 1 hours to max oven temperature 240 C. Place the pizza dough on a parchment paper add the tomato sauce and mozarella. Place the pizza in the oven for 15 minutes in the top tray of the oven. The tomato sauce dries out and the pizza is hard and not chewable at all. How can I resolve this problem?


Devices exist that claim to be able to splice nonmetallic sheathed cables together outside of a box, and in concealed locations. Are these types of devices allowed by National Electrical Code?  Here's one example device.


change default icons of particular file types

How can I change the default icons for a particular file extension type , for example, the .tex file?  I have tried with      assogiate   , but it cannot do the job, it seems  I am using Ubuntu 12.10 with Unity desktop manager.


How do electron holes have spin, and how do they interact with "real" particles / vice versa?

So, I thought I had an uneasy truce with quantum mechanics but I read something today which made spotted combat flare up in my mind again. In solid state semiconductor free electrons certainly have spin, and in order to "annihilate" meeting a hole, it also must certainly also have a spin. All this is perfectly acceptable to me, it is just this idea of a quasiparticle that is in essence a vacuum, an absence, having something as tangible and measurable as spin sits uneasy with me - for some reason. And I know that it is likely me, not the mass of knowledge on QM that is to blame. I suspect I am clinging to a far too "visual" imagination, most things quantum seem to be unsuited for mental visualisation.  My question is basically - how does hole spin interact with the electron spin? Does it work similarly as between any pair of electrons?   I read that in an exciton there are exchange interactions between hole and electron - and they can be both singlet and triplet. I can understand this, if they both have spin - certainly the bound state can be both singlet and triplet. I can also understand exchange interactions between electron and electron - but hole and electron? How? Imagining a sea of electrons with aligned spin, a hole's spin is thus related to the entire sea. The hole is an empty state, and it's state is defined by the state of all electrons in the stea. So this interaction is it an exchange between a single electron and the entire sea? But it is a short range range interaction... This does not compute...  PS: As must be obvious, I am not really a physicist. I am just an intrigued chemist.


Actually, I have done something terribly wrong. I did not want Ubuntu 13.04 on my PC anymore. I was sick of dual-booting every time the PC starts, and I wanted to return to Windows as well. (My version is Windows XP MCE SP2). The mistake I did is that I simply used EASUS Partition Manager to delete the Ubuntu partitions. But what went wrong here is that, even when I did it, the GRUB keeps trying to load. It says that GRUB could not be found and finally ends up running GRUB Rescue.  I cannot "Repair" my PC using the Recovery Discs (containing Windows XP MCE), it only gives me an option to press "F", which will format the HDD to re-install the OS.  Although, the best part is that I can still log in to Windows. Because, when I boot from the CD's, it does not give me a "Repair" option, but only "Format" and "Quit". By using "Quit", it takes me straight to Windows.  But I do not want to keep doing this same thing every time I start my PC. Neither do I want to Format my Hard Disk. I have tried a few applications, like EasyBCD which do nothing. So I want a good solution for it.  Is their any way to install MBR through Windows or maybe Ubuntu terminal? Even if i can't access Ubuntu again? And what after installing Ubuntu again. Any safe method to uninstall it?


How to prove $\lim_{(x,y) \rightarrow (0,0)} \frac{x^{2}y^{2}}{x^{3}+y^{3}}$ doesn't exist

I have tried using polar coordinates and several polynomial functions, but they all converge to the value of $0$; checking at Wolfram Alpha, however, it confirms that the limit does not exist. How should I approach these kinds of questions and not get stuck?  $$ \lim_{(x,y) \rightarrow (0,0)} \frac{x^{2}y^{2}}{x^{3}+y^{3}} $$


I have a local string (file path) which I need to retrieve from a function only once and I'd like to make sure it's never modified again. I cannot use the const keyword because the value of my string is determined at runtime rather than compile time. So I tried using the readonly keyword instead, but Visual Studio is telling me that it is not valid for my item. How can I achieve the level of protection I want, preferably without making another class?  For simplicity and company policy, I've (drastically) shrunk down and renamed my classes and functions, but the concept is the same.  public class myClass {     private void myFunction()     {       readonly string filePath = HelperClass.getFilePath("123");       //do stuff     } }  public static class HelperClass {      public static string getFilePath(string ID)     {         switch(ID)         {              case "123":                  return "C:/123.txt";               case "234":                  return "C:/234.txt";               default:                  throw new Exception(ID + " is not supported");         }     } }   === Edit For PS2Goat ====  public class myClass {     protected SomeObject o;     private virtual readonly string path;              public myClass(someObject o)     {         this.o = o;         path = HelperClass.getFilePath(o.getID());     }      private virtual void myFunction()     {        //do stuff     } }  public class myDerivedClass {     private override virtual readonly string path;              public myDerivedClass(someObject o) : base(o)     {         path = HelperClass.getFilePath(o.getID()); //ID will be different     }      private override void myFunction()     {        //do different stuff     } }      public static class HelperClass {      public static string getFilePath(string ID)     {         switch(ID)         {              case "123":                  return "C:/123.txt";               case "234":                  return "C:/234.txt";               default:                  throw new Exception(ID + " is not supported");         }     } }   See, so this issue I'm having is that if I want to throw an exception, I'd have to catch it in the parent class' constructor for now (until that class is supported) because the parent constructor will be called before the derived constructor. So the wrong ID will be set once before the child constructor (which has the correct ID) is called.


I've taken over a site, and have found the from address for the emails (eg password reminders) are coming from the wrong address.    How can I change the from address to the correct email?  The correct address is set in the settings -> General -> Email Address  The email address that the emails are coming from is one of the administrators.


$f$ extends to a smooth map $\tilde{f} : S^2 \to S^2$. - Is the proof legit?

Let $f : \{\mathbb{R}^2 - (1, 0) - (-1, 0)\} \to \mathbb{R}^2$ be the function $f(z) = \frac{1}{z-1} - \frac{1}{\bar{z}+1}$. Show that $f$ extends to a smooth map $\tilde{f} : S^2 \to S^2$.   We define $\hat{f}(\infty) = 0, \hat{f}(\pm 1,0) = \infty$. And we show \begin{align*} \lim_{z \to \infty} f(z) & = \frac{1}{z-1} - \frac{1}{\bar{z}+1} = 0.\\ \lim_{z \to \pm 1 + 0i} f(z) & = \frac{1}{z-1} - \frac{1}{\bar{z}+1} = \infty. \end{align*} Hence, $f$ extends smoothly into $\hat{f}$.  Thanks~very much!


Find a recurrence relation for the number of ternary strings of length ݊ that do not contain two consecutive 0s and two consecutive 1s.

This question is published in multiple textbooks and already has :  Find a recurrence relation for the number of ternary strings of length $n$ that do not contain two consecutive 0s or two consecutive 1s.  This question above has a recurrence relation $f_{n}=2f_{n-1}+f_{n-2}$. But the same problem replacing or to and seems to be much more difficult:  Find a recurrence relation for the number of ternary strings of length $n$ that do not contain two consecutive 0s and two consecutive 1s.  I tried to solve it in the way below: i) starts with 2 -> $a_{n-1}$ ii) starts with 12 or 02 -> $a_{n-2}$ iii) starts with 012 or 102 -> $a_{n-3}$ and so on . So the relation :$$f_{n}=f_{n-1}+2f_{n-2}+2f_{n-3}+....+f_{0}+2$$ that is $$f_{n}=2f_{n-1}+f_{n-2}$$ I got a same relation as with the original question using or. Please help me to find out where did I go wrong?


Is it possible to have children in Skyrim?


How to calculate Inverse variance weight of several pearsons r correlations

I have a set of pearsons r effect sizes , converted to fishers z scores for meta analysis. I am wondering what data I need to calculate an inverse variance weight for each effect size and how I calculate these please? Also , is there an easy online calculator or spss method for doing this?  Thanks


Graph of the output Vo for a given Vi in a diode circuit explanation

We have the following diode circuit:    We have found when the diode is on and off.    I perfectly understand this.  Now the teacher gave an extra question that I don't understand. What is the output Vo (represented in a graph) when we have an input of  a) \$V_i = 100 sin(wt)\$  b) \$V_i = 150 sin(wt)\$  She then drew the correct graphs. I have attached them here, respectively a and b:     I see the graphs, but I don't understand them. What is their explanation, how are they working?


The difference between these 4 breaking Cipher techniques?

I'm trying to understand the difference between the following and what they actually mean :   Known plaintext attack Known ciphertext attack Chosen ciphertext attack Chosen plaintext attack   Any clarification is much appreciated…


Reflection of light at a microscopic level

I have always read that light is reflected by a mirror. My question is how does reflection take place on a microscopic level? A mirror is composed of atoms and electrons revolving around the nucleus. So where does the photon strike and go?


Network-wide tour page says "may be closed" - maybe replace it with "may be put on hold"?

The network-wide tour page (including Stack Overflow and every other SE site I checked, but not Meta.SE) says the following:     Questions that need improvement may be closed until someone fixes them.   I think it would be more consistent with the site itself to say something like the following:     Questions that need improvement may be put on hold until someone fixes them.


What is the limit of $n \sin (2 \pi \cdot e \cdot n!)$ as $n$ goes to infinity?

I tried and got this   $$e=\sum_{k=0}^\infty\frac{1}{k!}=\lim_{n\to\infty}\sum_{k=0}^n\frac{1}{k!}$$ $$n!\sum_{k=0}^n\frac{1}{k!}=\frac{n!}{0!}+\frac{n!}{1!}+\cdots+\frac{n!}{n!}=m$$ where $m$ is an integer. $$\lim_{n\to\infty}n\sin(2\pi en!)=\lim_{n\to\infty}n\sin\left(2\pi n!\sum_{k=0}^n\frac{1}{k!}\right)=\lim_{n\to\infty}n\sin(2\pi m)=\lim_{n\to\infty}n\cdot0=0$$  Is it correct?


How would kryptonite affect a Kryptonian on Krypton?  I understand it affects Superman on earth as he is a more powerful being in a yellow sun planet and it makes him weaker to a point that all his abilities are gone, and it could also kill him.   How does it work on Krypton itself, or on a planet with a white or blue sun?


Why are crop lenses indicated with focal lengths they don't have?

If we will use crop lenses only on crop bodies, why do we call crop lenses for example "10mm" when they are effectively "16mm" (with a crop factor of 1.6 in this case)?  I am familiar with the history and the difference between a full-frame and a crop body. My question was about why we call these lenses different in focal lengths since they both yield the same field of view in degrees (the crop lens on a crop body, and the FF lens on a FF body). I know the lens doesn't actually turn into a longer focal length optically on a crop body, but since the result is the same, why not just label it that way?


Combinatory: how many differents queues are possible...

Problem:     $50$ people go to teather. The price of the ticket is $5$\$.   $25$ of these people have only a $5$\$ note in their wallet, while the other $25$ only have a $10$\$ banknote. The cashier doesn't have any cash at the beginning of the queue. I would like to know how many queues exist such that the cashier always has the possibility to give the rest.   For instance: if the first person pays with a $10$\$ note, the queue does not work, so we know that the first person who pays, needs to pay with a $5$\$ note, because if the first one comes with $5$\$, then the second one can pay with $10$\$, since in this case the cashier would have the rest.  So, how many different queues are possible?  My thoughts:  I thought i would have found the solution by finding the number of arrangements of $50$ elements by using only $\{0,1\}$, where $0$ stands for a person who pays with a $5$\$ note, while $1$ stands for a person who pays with a $10$\$ note. In this way I know that the number of $0$s must always be bigger or equal to the number of $1$s, if you read the arrangement from left to right.  I also found that this number must be smaller than $\dfrac{1}{2}\begin{pmatrix} 50 \\ 25 \end{pmatrix}$, so a half of total number of arrangements.  Can somebody help me?


How would you list the available functions etc contained within a compiled library?

How do I determine whether a function exists within a library, or list out the functions in a compiled library?


I want to write a 32 bit reg to 22 bit reg while conserving the number and its sign.  reg [31:0] test_dat0; //test_dat0 <= -4 (binaire) reg [22:0] test_dat1; test_dat1 <= test_dat0 ; ??? //what is the value of test_dat1 here   is it right ?  thank you


What are the dimensions for Chinese visa photos?

The Chinese government has a really specific list of requirements for visa photos:    I had an old unused photo from last time I applied for a visa or passport, and compared it to the requirements (decided not to use it because it was damaged). It seemed to match most of the requirements, except that it seems that they want a photo which isn't square: The required width is less than the required height.  Assuming most drugstores are still providing square passport photos, the question becomes: Should I cut the photo to match the specified width?   What adds to the confusion is if you look at the  the box for the photo is nearly square, not the oblong shape in the requirements. And I have seen other advice that you need to make sure it fully fits the box.  Any advice about what to do here?


In vanilla Minecraft 1.12.2, without using other tools, is there a way to remove one block and change it with another?

In Minecraft 1.12.2, is there a way to remove a series of stone and change it with air without breaking or changing other blocks?


Q.> A high school has a strange principal. On the first day, he has his students perform an odd opening day ceremony:  There are 1000 lockers and 1000 students in the school. The principal asks the 1st student to go to every locker and open it. Then he has the 2nd   student go to every 2nd locker and close it. The 3rd goes to every 3rd locker and, if it is closed, he opens it, and if it is open, he closes it. The 4th student does this to every 4th locker, and so on. After the process is completed with the 1000th student, how many lockers are open ?


In the Wikipedia article about  one can find the following picture:   But shouldn't the E and B field be 90$^\circ$ out of phase? In the depicted way the energy isn't conserved. At 0 the energy is 0 and at $\frac{\pi}{2}$ the energy is maximal in both fields.


Bevel edges on rectangle not working as expected

I'm trying to bevel edges on a rectangular shape so that it matches the shape of the object behind it(more roundish), but when i do so I end up with a spape shat is proportional to the sides of the rectangle. I tried all the settings on the bevel menu without any luck, what am I doing wrong?


I'm trying to compare the last names of two students in a directory, I'm doing this by overriding the compareTo method. The following code does not reflect exactly what I'm wanting to do here, the return value is just a placeholder for now. It is saying it won't compile because it cannot find the symbol for subString(int) in class String.  for (int i = 0; i < this.getLastName().length(); i++) {      if (!this.getLastName().subString(i).equals(s.getLastName().subString(i))) {         return 1;      }   }   Update: I appreciate y'all pointing out my idiocy in case sensitivity (no really, thanks) here's an update to where I'm at in the code. I think I can take it from here.  @Override public int compareTo(Student s) {   for (int i = 0; i < this.getLastName().length(); i++) {      if (!this.getLastName().equals(s.getLastName())) {         for(int j = 0; j < this.getLastName().length() || j < s.getLastName().length(); j++) {            if (this.getLastName().charAt(j) < s.getLastName().charAt(j)) {               return 1;            }            else {               return -1;            }         }      }    }   looking at it again, I don't even need that first for loop.  and here's the finished method.  @Override public int compareTo(Student s) {    if (!this.getLastName().equals(s.getLastName())) {      for(int j = 0; j < this.getLastName().length() || j < s.getLastName().length(); j++) {         if (this.getLastName().charAt(j) < s.getLastName().charAt(j)) {            return 1;         }         else if (this.getLastName().charAt(j) > s.getLastName().charAt(j)) {            return -1;         }      }   }    if (!this.getFirstName().equals(s.getFirstName())) {      for (int i = 0; i < this.getLastName().length() || i < s.getLastName().length(); i++) {         if (this.getFirstName().charAt(i) < s.getFirstName().charAt(i)) {            return 1;         }         else if (this.getFirstName().charAt(i) > s.getFirstName().charAt(i)) {            return -1;         }      }   }   return 0;   }


sudo from a standard user works fine, but when I try to use it from root it returns this error:  sudo: can't open /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting   /etc/sudoers has the appropriate 755 attribute and owned by root:root I even recreated it with visudo, all fine, but error persists. /etc is 755 and also owned by root:root, I even tried to reinstall sudo: no difference.  I need to sudo from root because I use a python script which uses sudo to run os privileged commands. But now I'm running that python script at boot time and it crashes due to this issue. I installed the same version of the OS in a Virtual Box VM and it works fine.  What can be keeping root from running sudo?


Why can we suppose $\epsilon \sim \mathcal{N}(0,\sigma^2)$?

Suppose we want a regression of a function $f(x)$. Suppose $r = f(x) + \epsilon$. Why can we suppose that $\epsilon  \sim \mathcal{N}(0,\sigma^2)$? What is the advantage of such supposition?


How to say that you have plans to go to the movies tonight?

How to say that you have plans to go to the movies tonight (but you are not sure yet, maybe you will have a pizza)? I mean there are options:     I am going to the cinema tonight.   Way too much certainty in this. For me it means that you have already bought tickets, the least.     I am going to go to the cinema tonight.   Sounds a bit awkward.     I will go to the cinema tonight.   Sounds too formal to me.


Error: You don't have enough free space in /var/cache/apt/archives/

I am trying to use Ubuntu 20.04 in Oracle Virtualbox. I am unable to use pip or pip3 as it raises an error: Error:pip3 command not found  I tried installing, but failed. $ sudo easy_install pip3 Error: easy_install command not found.  When I tried using: ` $ sudo apt-get install python3-pip Error: Package 'python3-pip' has no installation candidate.  Then I ran this command : sudo apt-get update  Then when I ran the following command I got an error: $ sudo apt-get upgrade ERROR: You don't have enough free space in /var/cache/apt/archives/  The output of df -H command is:  Please help, I want to install pip on my virtual machine (ubuntu)


workers who were sent or workers that were sent?

I am trying to determine the use of "that" or "who" in this sentence: Workers ____ were sent did not speak English.


I have installed bootable ubuntu on hard disks but now I can not format them with Disk Utility program. When I try to format it says "One or more partitions are busy on /dev/sdb" for both hard disks. Is there any way to format these drives?  EDIT: With "Disk Utility" program when I select one of the hard drives It shows 3 volumes;  99 MB FAT 111 GB EXT4 9 GB UNKNOWN   I can not format this unknown volume.  With Gparted program, It doesn't shows Unknown volume only shows 111GB EXT4.


How to list user installed applications (not packages)?

Not packages and not all applications. Just the applications user installed by himself from whatever source (Software Center, manually added PPA, etc.). If the above is not possible - a list of all installed applications or at least a GUI which lists the applications so I can take screenshots of it.  I've read a dozen of similar questions and people posting answers usually don't even get close to OP question merit. Please note that my question includes 'user installed'.   Answer: It is not currently possible in Ubuntu Linux.  (choosing tijybba's answer as the closest one though)


NullPointerException in Trapezoid Class while trying to refer to point x and y values

Intermediate Programmer here. Wondering what in my code is causing a NullPointerException in the Trapezoid Class.  Trapezoid is intended to be able to create the characteristics of a trapezoid using both left-side points and the top and bottom lines of a trapezoid as input. The top and bottom lines of the trapezoid are straight.  Point class:      class Point {         double pointx = 0;         double pointy = 0;     public Point(double x, double y) {         pointx = x;         pointy = y;     }     public double getX() {         double getx = pointx;         return getx;     }     public double getY() {         double gety = pointy;         return gety;     }   trapezoid class:      class Trapezoid extends Shape {         Point tl;         Point bl;         Point tr;         Point br;         double topl;         double botl;         double leftl;         double rightl;         public Trapezoid(Point topLeftPoint, Point bottomLeftPoint, double topSide, double bottomSide) {             topl = topSide;             botl = bottomSide;             leftl = Math.sqrt(Math.pow((topLeftPoint.getX()-     bottomLeftPoint.getX()),2)+Math.pow((topLeftPoint.getY()-     bottomLeftPoint.getY()),2));             tr.pointx = topLeftPoint.pointx+topl;             tr.pointy = topLeftPoint.pointy;             br.pointx = bottomLeftPoint.pointx+botl;             br.pointy = bottomLeftPoint.pointy;             rightl = Math.sqrt(Math.pow((tr.getX()-     br.getX()),2)+Math.pow((tr.getY()-br.getY()),2));         }         public Point getTopLeftPoint() {             return tl;         }         public Point getBottomLeftPoint() {             return bl;         }         public double getTopSide() {             return topl;         }         public double getBottomSide() {             return botl;         }         public double getArea() {             double area;             area = ((topl+botl)/2)*(tl.pointy-bl.pointy);             return area;         }         public double getPerimeter() {             double perimeter = topl+botl+leftl+rightl;             return perimeter;         }     }   In particular, I am getting the NullPointerException here:      tr.pointx = topLeftPoint.pointx+topl;     tr.pointy = topLeftPoint.pointy;     br.pointx = bottomLeftPoint.pointx+botl;     br.pointy = bottomLeftPoint.pointy;   Any help you are able to provide would be helpful. I am probably overlooking something very simple, but I can't seem to understand what that is.


Is there an easy way to get here from the meta sites?

Some questions that address basically the software behind SE sites seem to appear sooner or later on every meta site. But they have already an answer ...  Would it be possible to make the META contents more accessible?[1]  (for example by providing alternative links in empty search results on local meta sites)    [1] I'm not totally sure whether I understand the user interface right, but I found the link to META only in the footer area.


htaccess issues with non existent files in non existent directories

I am using the following .htaccess file, which works well, however, I want to also forward any attempts to access non-existent files in the root directory and in any subdirectory (whether the subdirectory exists or not) back to the main domain name.   I tried FallbackResource but that resulted in 500 series errors.  RewriteEngine On  RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://xxxxxxxxx.xxxxx/.*$ [NC] RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|png|css|pdf)$ -     [F]  # browser requests PHP RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^\ ]+)\.php RewriteRule ^/?(.*)\.php$ /$1 [L,R=301]  # check to see if the request is for a PHP file: RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^/?(.*)$ /$1.php [L]  ErrorDocument 500 /redirect ErrorDocument 500 /redirect ErrorDocument 500 /redirect ErrorDocument 404 /error ErrorDocument 401 /redirect ErrorDocument 403 /redirect   Any help would be greatly appreciated.


It's possible to set the cron job tool in my website cpanel 'VPS Hosting' to execute php file every 30 second  I am using it to execute php file once at a minute *,*,*,*,* but I need to set it to run twice  in minute  I have tried 1/2,*,*,*,* but it's not working.


Where'd those guys on the Millennium Falcon go?

So I'm re-watching Star Wars as I occasionally do, this time using the amazing  I'm watching the theatrical releases, cause I'm old school like that, when I realize that the scanning troopers go on but they never go off. On top of that, there isn't a chance later because everybody leaves the ship and gets back to it at the same time. So I throw in my Special Editions, thinking somebody must have dropped a scene when reconstructing the theatricals. No dice. Troopers go on, no troopers come off.   So, what happened to those troopers? Did Han and Chewie kill them and space the bodies afterward? Did they hand them over to the Rebellion off camera? To be clear, I was wondering if it ever got addressed in the Expanded Universe.


How do I transfer minecraft PE from one Android to another

I asked this earlier and for some reason it was considered a question for the author but it is not my question is how do I transfer Minecraft PE from my Android phone to my son's Android tablet


Is the "for + proposition" form still used nowadays?

I am currently studying English and as such enjoy reading English books from time to time; for instance I have recently been reading the fifth book of A Song of Ice and Fire since the French version was not to be released anytime soon.  As I read it I often came across a grammatical form I had never encountered previously, this form being the usage of "for" to introduce propositions as per this example:  "We must learn english, for it is one of the most widely-spoken language."  My question if the following: is this form correct (I do think it is), and if it is then is it still used today? I really like this usage of the "for" preposition but still, I'd like to be sure it can be used before actually using it (in class or elsewhere).  Thanks!    EDIT: Upon further searches, now knowing that "for" is in that case a conjunction, I found out that this form is perfectly correct - though it is more of a literary form.


I have a complex mesh with only vertices and edges that I want to solidify.  The problem is I just want to solidify edges (not any faces) to have some kind of fat wireframe model (i.e. just every edges being cylinders). Not a classic solidify.  How can I achieve that?  Here is my mesh:


How to Execute ShortCut From Command line in Windows 7

We came with a scenario where we have to use Shortcut file (.lnk), which is on the desktop, to execute an application for a headless device (i.e, without manual intervention).  Is there any way to execute it from Command prompt?


Divisibility of Binomial Coefficients by a Composite Number

I am aware of proof of divisibility of binomial coefficients of a prime $p$.  I've seen it is easy to show that when $0<k<p$ $$\binom{p}{k}\equiv 0 \mod p$$  Can there be anything stronger.  Suppose I have an integer $n=pq$.  Can we prove that  $p|\binom{pq}{k}$.  I feel like this is an impossibility since, looking at a case like $n=15$, $3|\binom{15}{4}$, but $3\not|\binom{15}{3}$.  $5|\binom{15}{3}$ but $5\not|\binom{15}{5}$.  Yet there ARE binomial coefficients where that 15 divide evenly.    Is there a way to determine which coefficients will successfully be divided by $n$ and which will be divisible by $p$ or $q$?  And are there stronger divisibility laws for powers of a prime?


What time before the expiry of a visa could I enter France?

Can I enter to France to visit Paris when just two days remains from my tourist visa?   I want to know the immigration officer or the border police will stop me at the airport.    Is there any risk of deportation?    If I have a luggage with 30kg weight will it be a problem?    Won't they ask why I bring this much weight for these few days?    If I have return tickets and hotel reservation can I persuading them that I will just visit Paris for two nights during Christmas and not over stay?


Maximum value of $\sin(n)$ for integer $n$

We know that for any integer $n$, $\sin(n)$ can never equal to one. So what is the maximum value of $sin(n)$? How close can the sine of an integer get to unity?  I'll be really interested to know if such a value exists.


Definite Integration prove max of $f'(x)\ge \text{something should go here}$

Let $f$ be a function that has a continuous derivative over the interval $[a,b]$ and let $f(a)=f(b)=0$.  Prove that $$\max\:\left|f'\left(x\right)\right|\ge \frac{4}{\left(b-a\right)^2}\int _a^b\:\left|f\left(x\right)\right|dx$$  I proceeded by splitting up the integral into 2 parts i.e from $a$ to $(a+b)/2$ and from $(a+b)/2$ to $b$, but got stuck, please help?


Can there be involutions in the unit group of $\mathbb{Z}_n$?

Let $x\neq 1$ be an element of the multiplicative group $\mathbb{Z}_n^*$.  Then my question is, is it possible for $x^2$ to equal $1$? For what $n$ is it possible or impossible?


Is there a way to wait for and read the next keyboard input?

First time asking here. I've been looking around for quite a while and couldn't find an answer anywhere. I've had to build a calculator in C++ (boring stuff so tried to make it interesting) but couldn't find a way to wait for the next keyboard input and read it/store it. Something like keyboard events. Cin requires the user to press enter every time and I don't want that. same for getchar, getch, cin.get(), etc... If possible I'd like to avoid the inclusion other library than the basic ones. Anyone knows how to ? Thanks.


An alternative to the symbol \modtwosum of stix package

This is a trivial question. We know that in the table 72: Variable-sized Math Operators to the pag. 40, we have the symbol for the line integral of a closed path named \oint for the circuiting. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \begin{document} Table 72: Variable-sized Math Operators pag. 40. \[\oint\] \end{document}  But the high school students are not familiar with this symbol and I have thought of to use the symbol of the sum with the circle inside. But this symbol is only declared in stix fonts (see to pag. 46 \modtwosum).  If I should use mtpro2[lite] (that use the font Times New Roman) or the classic amssymb I should overlapping the two symbols of summation and the small circle in the center or can I find a more effective or best strategy? Any kind of suggestions are appreciated.


What does Page Life Expectancy say about the instance?

I have installed monitoring software on a few SQL Server instances in the environment. I am trying to find bottlenecks and fix some performance issues. I want to find out if some servers need more memory.  I am interested in one counter: page life expectancy. It looks different on every machine. Why does it change often on some instances and what does it mean?  Please take a look at the data from the last week gathered on a few different machines. What can you say about each instance?   Heavily used production instance (1):   Moderately used production istance (2)   Rarely used test instance (3)    Heavily used production instance (4)   Moderately used test instance (5)   Heavily used data warehouse (6)   EDIT: Im adding the output of      SELECT @@VERSION for all of these servers:  Instance 1: Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)  Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)   Instance 2: Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)  Oct 19 2012 13:38:57  Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)   Instance 3: Microsoft SQL Server 2012 - 11.0.5058.0 (X64)  May 14 2014 18:34:29      Copyright (c) Microsoft Corporation  Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)  Instance 4: Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) Jun 28 2012 08:36:30  Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)   Instance 5: Microsoft SQL Server 2012 - 11.0.5058.0 (X64)  May 14 2014 18:34:29  Copyright (c) Microsoft Corporation  Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)  Instance 6: Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)  Apr 2 2010 15:48:46  Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)   I also ran the following query on the machines:  SELECT DISTINCT memory_node_id FROM sys.dm_os_memory_clerks   and it returned 2 or 3 rows for each server:  Instance 1: 0; 64; 1 Instance 2: 0; 64 Instance 3: 0; 64 Instance 4: 0; 64 Instance 5: 0; 64 Instance 6: 0; 64; 1   What does it mean? Do these servers run NUMA?


What is the meaning of holdoff time over in systemd services?

I have installed Puppet Enterprise on CentOS 7. I can see that several Puppet services fail to start saying holdoff time over. What does this mean?  Sep 03 20:50:16 l-pm1 systemd[1]: pe-puppetdb.service holdoff time over, scheduling restart. Sep 03 20:50:16 l-pm1 systemd[1]: Starting pe-puppetdb Service...


How do I search TFS for a word without 'getting' the project?

I often have occasion to search for a function name in a project that I haven't retrieved from Team Foundation Server (TFS) and that I don't want to retrieve. Is there a way to search for that function name (any word) on TFS?


Is there a way to return the value of an integer in a list

Trying to return an integer of an item from a list of values. For example after splitting Hotdog : 3.00 with .split() I get ['Hotdog', ':', '3.00'] What can I do to return the '3.00'? thanks


Prove that every element of a finite group has an order

I was reading Nielsen and Chuang's "Quantum Computation and Quantum Information" and in the appendices was a group theory refresher. In there, I found this question:      Exercise A2.1 Prove that for any element $g$ of a finite group, there always exists a positive integer $r$ such that $g^r=e$. That is, every element of such a group has an order.    My first thought was to look at small groups and try an inductive argument. So, for the symmetric groups of small order e.g. $S_1, S_2, S_3$ the integer $r$ is less than or equal to the order of the group. I know this because the groups are small enough to calculate without using a general proof.   For example, in $S_3$ there is an element that rearranges the identity $\langle ABC \rangle$ element by shifting one character to the left e.g. $s_1 = \langle BCA \rangle$. Multiplying this element by itself produces the terms $s_1^2 = \langle CAB \rangle$; and $s_1^3 = \langle ABC \rangle$ which is the identity element, so this element is equal to the order of the group, which is three.   I have no idea if this relation holds for $S_4$ which means I am stuck well before I get to the general case.   There's a second question I'd like to ask related to the first. Is the order or period of any given element always less than or equal to the order of the group it belongs to?


I have a PaaS hosting solution that sets up a wordpress cloud (DigitalOcean) server with wordpress, all managed by the hosting provider. I still have ssh access/ftp etc... I know that mysql runs on the same server as well. Our site usually gets no real traffic (1k hits a day average) but some days we get spikes of 40-50k hits.  Currently this is my free -m stats:               total       used       free     shared    buffers     cached Mem:          2012       1911        101          0         57       1495 -/+ buffers/cache:        358       1654 Swap:          953          0        953   The site is running Apache + nginx + varnish + w3total cache.  My question is, is there enough ram to handle the traffic or would the server run out of memory soon?  Regards


Installing Free Blender Resin Shader for Cycles

I have signed up to Blender Cookie and got an download link for the above mentioned file. But when I try to install it with the addon function in Blender it won't install. Does anybody know this file and can tell me how to use it?  Regards, Pingponguin


Why are image thumbnails cropped proportionally (not per dimensions)?

For some reason WordPress is ignoring my thumbnail sizes and keeping thumbnails cropped proportionately instead of specific dimensions. Here is what I have in functions.php:  add_image_size( 'main-thumbnail', 728, 410, true );   and in content.php:
     <a href="<?php the_permalink(); ?>">        <?php the_post_thumbnail( 'main-thumbnail' ); ?>
   I added these two things and regenerated my images with the  plugin, but it doesn't seem to matter. The images don't change.  For some reason WordPress isn't recognizing the hard crop and is keeping the images proportional, so some of my images are way taller than 410 pixels. Why is this?


I am trying to install MATLAB R2010b to Ubuntu 12.04. I have the ISO file. First I copied it to my PC and then extracted it. Now it seems like I should run the install script. But I could not do that.   Here is the beginning of the install script to give you an opinion if it is not a script and I am doing something wrong:  #!/bin/sh # # Name: #    install -  script file for invoking the Multi-platform installer on Linux. # #    Usage: install [-h|help]" #                              [-javadir <directory>] | [-root <directory>] |" #                              [-test] | [-v|-verbose]" #                              -h|-help        - Display arguments." #                              -test           - Don't actually run the java #                                                command (only useful with -v)." #                              -v|-verbose     - Display settings." #                              -javadir <directory>       - Override default java     root directory." #                              -root <directory>          - Override default DVD root directory." # #              The default settings when no override inputs are supplied are: " #              -root = <directory containing this script>/../" #              -javadir = <root>/java/jre/$ARCH/jre' # # # Copyright 2009-2010 The MathWorks, Inc.   How can I run this script? I tried to rename it as install.sh and then tried   $ ./install.sh   from the command window but I got the following error:  root@ghostrider:/home/zero/Downloads/R2010b_UNIX# ./install.sh  Preparing installation files ... Installing ... ./install.sh: line 562: /tmp/mathworks_7799/java/jre/glnx86/jre/bin/java: Permission     denied Finished   Am I doing something wrong? Could you please help me?  Regards


I'm wondering about the implications of using either apache2ctl or systemctl.   If I understand correctly one shouldn't use anything but Systemd's utility to control services but on the other hand apache2ctl has a few extra features. Does systemctl in turn call apache2ctl or does it go another route altogether?


Citing a reference and the equation therein

I am citing a book in my report. I want to add the equation number to the reference i.e. I want the reference to appear like [10, eq.8.145].  Thank you.


I sent a paper to a top tier journal in science a few weeks ago. I received the feedback from the editor saying he declined to publish/ accept my paper at the moment but if I corrected/ responded to the comments provided by reviewer, he/ she would consider to publish my paper.   I went to paper tracking website only to discover that my paper is classified as "reject and resubmit". Does that mean if I responded/ did everything suggested by reviewer, there'll be high possibility my paper will be outright rejected?   The comments from reviewer was not that harsh, but I wonder whether I'll be wasting my time if I went back to the lab and did what he said. I only have 2 months to respond.   Also, what is the difference between "reject and resubmit" and "major revision required"? This is my first submission and I'm confused.  Hope anyone can enlighten me.


This  is my problem, true or false?  prove that:   $$\int_{0}^{\infty}\frac{\displaystyle{\sum_{k=1}^{\infty}}k\sin(kx)\,e^{-tk^2}}{\displaystyle{\sum_{k=1}^{\infty}}\cos(kx)\,e^{-tk^2}}dt=\frac{\pi^2({\pi-x})}{8}$$ and $0<x<\dfrac{\pi}{2}$  Thank you.


I am using biber for my bibliography. I try to edit my in-text bibliography style to appear like this:      Blah blah[1] blah blah blah [1-3].   What I am try to change is like:      Blah blah (Koehler 1999) blah blah blah (Koehler 1999, Bailey et al.,Lam 2016).   This is simple of my latex file   \documentclass{article} \usepackage{savesym} \usepackage{graphicx} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{algorithm} \usepackage[noend]{algpseudocode} \usepackage[euler]{textgreek} \usepackage{empheq} \usepackage{amsmath} \DeclareMathOperator{\rank}{rank} \makeatletter \newenvironment{sqcases}{% \matrix@check\sqcases\env@sqcases }{% \endarray\right.% } \def\env@sqcases{% \let\@ifnextchar\new@ifnextchar \left\lbrack \def\arraystretch{1.2}% \array{@{}l@{\quad}l@{}}% } \makeatletter \def\BState{\State\hskip-\ALG@thistlm} \algnewcommand\algorithmicforeach{\textbf{for each}} \algdef{S}[FOR]{ForEach}[1]{\algorithmicforeach\ #1\ \algorithmicdo}  \makeatother  \usepackage[utf8]{inputenc} \usepackage[style=authoryear-comp, citetracker=true, maxcitenames=1, giveninits, terseinits, uniquename=init]{biblatex} \AtEveryCitekey{\ifciteseen{}{\defcounter{maxnames}{2}}}  \usepackage{filecontents}  \begin{filecontents}{\jobname.bib} @article{koehler1999digital,     title={Digital libraries and World Wide Web sites and page persistence},     author={Koehler, Wallace},     journal={Information research},     volume={4},     number={4},     pages={4--4},     year={1999} }  @article{bailey2016exponent,     title={Exponent of Cross-Sectional Dependence: Estimation and Inference},     author={Bailey, Natalia and Kapetanios, George and Pesaran, M Hashem},     journal={Journal of Applied Econometrics},     volume={31},     number={6},     pages={929--960},     year={2016},     publisher={Wiley Online Library},     doi = {10.1002/jae.2476} } @article{lam2016nonparametric,     title={Nonparametric eigenvalue-regularized precision or covariance matrix estimator},     author={Lam, Clifford},     journal={The Annals of Statistics},     volume={44},     number={3},     pages={928--953},     year={2016},     publisher={Institute of Mathematical Statistics},     doi = {0.1214/15-AOS1393} } \end{filecontents}   \addbibresource{\jobname.bib} \addbibresource{biblatex-examples.bib} \DeclareNameAlias{sortname}{family-given} \renewcommand*{\revsdnamepunct}{} \DeclareDelimAlias{finalnamedelim}{multinamedelim} \DeclareDelimFormat[bib,biblist]{nametitledelim}{\addspace} \DeclareFieldFormat*{title}{#1} \DeclareFieldFormat*{journaltitle}{#1} \DeclareFieldFormat*{booktitle}{#1} \DeclareFieldFormat*{maintitle}{#1}  \renewbibmacro{in:}{% \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}} \renewbibmacro*{publisher+location+date}{% \printlist{publisher}% \setunit*{\addcomma\space}% \printlist{location}% \setunit*{\addcomma\space}% \usebibmacro{date}% \newunit}  \renewcommand*{\bibpagespunct}{\ifentrytype{article}{\addcolon {\addcomma\space}} \DeclareFieldFormat[article,periodical]{pages}{#1}  \DeclareFieldFormat{doi}{\url{https://doi.org/#1}}  \DeclareSourcemap{ \maps[datatype=bibtex]{     \map{         \pertype{article}         \step[fieldset=number, null]     } } }  \renewcommand*{\finentrypunct}{}   \begin{document}  Blah blah \parencite{koehler1999digital} blah blah blah  \parencite{koehler1999digital}, \parencite{bailey2016exponent}  \parencite{lam2016nonparametric}. \printbibliography \end{document}   I try to change \parencite{koehler1999digital} to  \parencite{koehler1999digital} but it does not work.   Any idea about what I am missing here ?


A complete ring with respect to an ideal

I would like to know what does it mean to say " a ring $R$ is complete with respect to some ideal $I \subset R$.  Is it like, we define a metric by saying two elements in $R$ is "close" if the difference lies in a higher power of $I^n$ and $R$ is a complete metric space?


Ethernet does not work after clean install of 20.04.1 LTS

this may seem like a dumb question, but I've searched dozens of askubuntu questions and tried many solutions to try to fix this problem, but none of them worked. I know this is an issue on Ubuntu's end because the ethernet consistently works with Windows on the exact same machine, but consistently doesn't work with Ubuntu. My ethernet is just a simple wire into my router. No static ips, no edited etc files, just clean install and an ethernet cable, and it simply does not work. However, a USB Wifi adapter does work. I am at a complete loss. Any help would be greatly appreciated. System stats: OS: Ubuntu 20.04.1 LTS CPU: Intel Core i7-4770 Motherboard: Dell Precision T1700  Results of lshw -C network   *-network     description: Ethernet interface     product: Ethernet Connection I217-LM     vendor: Intel Corporation     physical id: 19     bus info: pci@0000:00:19.0     logical name: eno1     version: 04     serial: b8:ca:3a:8e:3f:36     size: 1Gbit/s     capacity: 1Gbits/s            width: 32 bits     clock: 33MHz     capabilities: pm msi bus_master cap_list etherner physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation     configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.14-4 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s     resources: irq:29 memory:f3100000-f311ffff memory:f3139000-f3139fff ioport:f040(size=32)  Results of dmesg: [69039.062133] e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx


The browser's "Back" button cause problems with the review buttons

These are the steps to reproduce what I noticed.   I clicked on the link to review the suggested edits, and I was given  as post to review I clicked on "Skip" to pass to the next I was taken to  I clicked on "improve" by mistake When I noticed that, I clicked on the back button to go out of the edit page   After I did that, I was shown the previous post to review, but in that page the review buttons didn't work. What I described happens even in the case the suggested edit is already approved/rejected; in that case the "next" button doesn't work.  Is this a bug, or is it expected to happen?  It happens in Firefox 17, and Safari 6.0.1, and Google Chrome 22.0.1229.94. Stack Exchange revision is 2012.10.20.4492.


Changing size in an article document (for hand notes)?

I have herewith a document which is destined to hand notes. It allows to have printed notes on a small sized document. However the size is relatively too small. Since article has not that much options for size changing, which best possibilities might be given to increase sufficiently the size of the whole document for a better readability?  Thank you, With best regards. I wish you a good day!   \documentclass[a4paper]{article} \usepackage{showframe} \usepackage[tiny]{titlesec} \usepackage[textwidth=8cm,textheight=13cm]{geometry}  \titlespacing{\section}{0.2cm}{\parskip}{-\parskip} \setlength{\parskip}{0pt} \leftskip=1.5em \usepackage[utf8]{inputenc} \usepackage{textcomp} \sloppy \usepackage[none]{hyphenat} \usepackage{microtype}   \usepackage[utf8]{inputenc} \usepackage{textcomp}  \begin{document}  \section{Section 1} Hello World   \section{Section 2} Hello World   Bye \end{document}


{I am/I will be} more than happy to be corrected

I tried to translate rather complicated nouns from my native language into English, then I wrote the following sentence:  I referred to some online dictionaries regarding the translations. If anyone thinks any translation can be expressed more accurately, I am more than happy to be corrected.  Is using I am more than happy correct here or should I say: I will be more than happy? Both make sense to me in the sentence, this why I am a little confused as to which one I should use. I was also wondering if don't hesitate to correct me can be used here. As far I know, when we say don't we are usually addressing a specific person or people but I am not sure if I have encountered a case in which don't is used to address anyone. Thank you for any guidance on this.


I'm trying to pass objects by value between threads with a queue.  Because there are multiple different objects, I made an abstract class.  class message { public :       virtual ~message(){}; };    then I have a subclass for each different type of message  class a_specific_message : public message { ... };   I read  for implementing the queue and I call it the following way:  concurrent_queue<message> queue; a_specific_message m{1, 2, 3}; queue.push(m);   My problem is that I need to override the operator= so the queue can clone the message  popped_value=the_queue.front();   I tried to add a virtual operator but it doesn't get called in the subclass.  I don't know how I could achieve something like this without passing object by reference.


How to change Facebook password without SIM?

I created my Facebook account using my 'phone number, with an Airtel SIM.  It was locked, how do I open it?


Schengen visa refused ("threat to internal security [...]"): I don't need the visa anymore but want to clear the misunderstanding, what can I do?

I had applied for Shengen visa to attend a conference in Rome but it was refused for the following reason:     One or more member state(s) consider you to be a threat to public policy, internal security, public health as defined in Article 2(19) of Regulation (EC) No 562/2006 (Schengen Borders Code) or the international relations of one or more of the member states.   I am a master's student and have clean record, I don't understand why the visa was refused for that reason.   suggest that I need to consult a lawyer but the deadline to lodge an appeal has almost passed and I don't need the visa now, beacause the conference is already finished. I still want to clear this misunderstanding, however. What should I do? Where do I start from?


Shortcode will not pass attribute through to my function

This question is different from . Yes they both talk about shortcodes, but they are asking different things and therefore should be separated out. Otherwise all "shortcode" questions on this site would need to be marked as duplicate.  Original question:  My shortcode won't pass the attribute through to the function.  Here is the shortcode used inside my post: [points custom_field="company_location"]  Here is the function for my shortcode:  // Add Shortcode function points_shortcode( $atts ) {     // Attributes     $atts = shortcode_atts(         array(             'custom_field' => '',         ),         $atts,         'points'     );     return bg_calculate_points ($custom_field); } add_shortcode( 'points', 'points_shortcode' );   When performing a var_dump on my function it shows NULL when I was expecting to see the company_location string that was passed through by the shortcode attribute.  function bg_calculate_points ($field) {     var_dump($field); }   What am I doing wrong?


In my work I have:  J_{\mathbf{\lambda}}(f(\mathbf{p},t))   but pdflatex prited   Why? Maybe I'm not using mathbf correctly?


How to create a log file of all the commands I executed

Im in need of help. New learner to linux, and for school, they want me to create a log file of all the commands I executed for a project. I can't figure it out at all. Please help!


How do I remove my KitchenAid attachment?

My KitchenAid attachment appears to be stuck. I attempt to push up to remove the dough hook and it does not budge one bit. I am thinking I'm either doing something completely wrong or there's some way to get it unstuck!  Any advice?


can someone explain why this returns the "else" value and not the "then" value?

the java subSequence is clearly true but only returns the false value. why? trying to see if a sequence is equal to a subsequence of a bigger string  package testifthen;   public class TestIfThen {      public static void main(String[] args) { String result = "01900287491234567489"; String result1 = "90028749";   if (result.subSequence(2, 10) == result1) {         System.out.println("excel");     }else {         System.out.println("not found");  }   }}


Ok, so I've spotted another one of the dot+line patterns that I want to click, however, I don't seem to be able to stand in the right spot to get a perfect circle.  There's a sofa exactly where I need to stand. I can get really close (close enough that I get sparks) but can't quite trigger it.      I've tried standing on the steps behind, but a tree blocks the correct position (can't even get sparks here)    And even standing on the castle wall, but the crenelations are in the way (again, no sparks)    There's nothing else on the correct line of sight.  Is this just very fiddly and I need to keep trying by the sofa or am I missing something?


jQuery attach a click handler after div is created

I'm pretty sure that the answer isn't that difficult, but I'm not sure where to look for it.  I would like to attach a jQuery event handler when a div gets created. For example:  $('#somediv').click(function(){     //do something });   But... #somediv doesn't exist. Because of some AJAX loads it will. So what I need is something like.  $('#somediv').whenImcreated(function(){     $(this).click(function(){         //do something     }); });


Finding all ring homomorphisms from a field to itself

I am currently working to find all ring homomorphisms $\phi : \mathbb{Q}(\sqrt{2})\rightarrow \mathbb{Q}(\sqrt{2})$.   My work so far: Since $\mathbb{Q}(\sqrt{2})$ is a field extension of $\mathbb{Q}$, a field, it is obviously a field as well. Therefore, its only ideals are $\{0\}$ and itself. Since every homomorphism's kernel is an ideal, we have that either $Ker(\phi)=\{0\}$ or $\mathbb{Q}(\sqrt{2})$.   In the latter case, we have the trivial homomorphism. In the former case, we have that the homomorphism is injective (and therefore bijective).   My question: I think it is true that in the former case $\phi(1)=1$, but am not sure why. If this is the case, can I prove inductively that $\phi(x)=x, \forall x\in \mathbb{Q}(\sqrt{2})$?  Thank you in advance for your help.


I am using Pop! OS with Windows 10 dual boot. And I have 1 TB STORAGE disk. But I can't write and delete anything on this disk. For example I write a mkdir folder in terminal It says Read-only file system.   How can I write something on this disk on Pop! OS. There is no issue on Windows 10.


I am solving the following integral: $$\int_0^\infty \frac{x}{1+x^3}dx$$ I need to solve it using integration and residue theorems. I tried to convert it to complex function, for example $\frac{z}{1+z^3}$, but it is not even, so it is difficult to find the curve for integration.   Any hints are welcome!  Thank you!


When I need to download any app from the App Store, it is directly taking me to put in my Apple ID and password to confirm the way of purchasing.  This app is free.   Previously, there was an option "None" then credit card or phone number.  Now "None" is not appearing and I have to purchase the app.


Ideal Generated by Three Elements in Polynomial Ring

How would one prove that the ideal $(xy,xz,yz)$ of $k[x,y,z]$ for some field $k$, cannot be generated by two polynomials. In other words, prove:   $$(xy,xz,yz) \neq (f,g)\; \forall f,g \in k[x,y,z].$$   Furthermore, can somebody abstract this fact and prove it for $k[x_1,x_2,...,x_n]$? Maybe that the ideal of certain combinations of multiplied variables $x_i$ is not generated by less elements. Please ask if my question is unclear.  Edit: Specifically, I want to say that the ideal generated by all combinatorial products of $n-1$ variables in $k[x_1,x_2,...,x_n]$ cannot be generated by less elements. But if somebody has a different abstraction, please share.


I have an input field in HTML which is   <input type="text" id="lname" name="lname">  When i add disabled <input type="text" id="lname" name="lname" disabled>  the input is disabled in browser BUT users can input data and submit by removing the 'disabled' word in Inspect Element which kinda security problem for us. What is the alternative for this or some javascript codes to prevent?


I'm having some trouble with a smoke simulation... I used quick smoke to simulate a candle and it viewed fine in the 3D view, but when I tried to render it, it showed up invisible.  Example images:  Solid view mode viewport:   Rendered view mode viewport:   Rendered via Camera:   Smoke Domain Material node setup:   Please note that I'm using the 'Quick Smoke' option, not manually creating my smoke.  Thanks, Flae.


Interpretation of the rating of a real transformer

The rating of a real transformer is 15 kVA , 2300/230-V then can we say that the primary rms is 2300 V or can we say that the secondary rms is 230 V or both.  To clarify further, suppose to solve for certain characteristics of this transformer like primary current and secondary current i use the equivalent circuit equation of the transformer referred to the primary side as:  Vp = aVs + Req*Ip + jXeq*Ip  Then what should i use for Vp or Vs in the above equation looking at the rating of the transformer.  In the above equation looking at the rating data given above is Vp= 2300 or Vs = 230 ?As mentioned earlier the transformer is mentioned to be real.


How do I correctly get the value of 'ⅻ' (and other similar non-alphabetical characters) and store it in a string?

Given a character that is not a standard alphabet character, such as 'ⅻ', I'm having problems converting it to a string and retaining it's value.  For example If I have:  String myStr = "ⅻⅾ℡ℬ"; Character myChar = myStr.charAt(0);    Then System.out.println('ⅻ' == myChar); returns true, whereas System.out.println("ⅻ" == Character.toString(myChar)); returns  false.  Thus my question effectively is how do I correctly get the value of 'ⅻ' and store it in a string?


I would like to use the sum sign in an conditional expression. There is no error message but the Fz is supposed to be under the sum sign but instead its a subscript. Can someone help me solving my problem?  \begin{equation}   X = \left\{   \begin{array}{ll}   q_{B} = \sum_{Fz}\left(WT_{Fz}  & , \textnormal{ if } q_{B} > 1800 * N_{FS} \\   q_{S} = \sum_{Fz}\left(WT_{Fz}  & , \textnormal{ if } q_{B} \leq 1800 * N_{FS}\\   \end{array}   \right.   \end{equation}


Can an Indian national residing in Kuwait apply for a Schengen visa from India?

I am an Indian resident of Kuwait and want to apply for a schengen visa from my home country India but would travel from Kuwait.Is it possible to apply from home country and travel from a resident country?


"How to format" block mentions syntax highlighting even if it is not available on the site

When you edit the body of a post, the "How to Format" widget is shown in the right sidebar. It mentions the syntax highlighting function, even on  like :    It's probably also a good idea to move the part about code fences down for non-technical sites (like ); other formatting options are more important there.


Let R is finite Ring with 1 and $a \in R \setminus \{0\}$. Show that a is Unit or (Left/right) zero divisior It's obvious that we have to use the mapping: $x \rightarrow ax$ and $x \rightarrow xa$ but what else?


Latex what symbol looks like letter I, Greek letter Iota, but is neither?

I'm looking for the symbol above but I can't find them anywhere. Could someone help me identify it?


What would you call a person dumps his work on you

What would you call a person who systematically dumps his work on you in a bid to evade responsibilities (with a work philosophy that when you don't learn or do it, you are never given the responsibilities and thus have no fear of making mistakes) but cluelessly whines to the same people around him for not having all the benefits that they (the higher ranking hardest working colleagues) earn.  PS: Owing to a bad management (Racial discrimination, Poor work ethic,ignorance, etc), if it helps.


Custom entity datetime field in calendar

I created an entity in a module, using code. I generated skeletons with drupal console generate:entity:content (without bundles), and then added a datetime field to my TestFieldEntityItem.php, in baseFieldDefinitions().  $fields['test_date'] = BaseFieldDefinition::create('datetime')   ->setLabel(t('Test date'))   ->setDescription(t('Test.'))   ->setRevisionable(TRUE)   ->setSettings([     'datetime_type' => 'date'   ])   ->setDefaultValue('')   ->setDisplayOptions('view', [     'label' => 'above',     'type' => 'datetime_default',     'settings' => [       'format_type' => 'medium',     ],     'weight' => 14,   ])   ->setDisplayOptions('form', [     'type' => 'datetime_default',     'weight' => 14,   ])   ->setDisplayConfigurable('form', TRUE)   ->setDisplayConfigurable('view', TRUE);   I installed my module, cleared the cache, reinstalled calendar and calendar_datetime modules, but when I try to add a view from a template, like the calendar module suggests, I can't see any template matching my datetime field.  If I create a datetime field on this entity through the UI, it appears in view templates. What am I missing?  Inspecting the calendar code, I found the function that search datetime fields, in . This function finds my field, but the field_info does not match isDateField() because of the argument property.  isDateField() wants 'datetime' as argument ID.  protected function isDateField($field_info) {   if (!empty($field_info['field']['id']) && $field_info['field']['id'] == 'field') {     if (!empty($field_info['argument']['id']) && $field_info['argument']['id'] == 'date') {       return TRUE;     }   }   return FALSE; }   My field_info argument is 'string'.  array (size=7)   'title' => ...   'help' => ...   'field' =>        'id' => string 'field' (length=5)   'argument' =>        'id' => string 'string' (length=6)   'filter' =>        'id' => string 'string' (length=6)   'sort' =>        'id' => string 'standard' (length=8)   'entity field' => string 'test_date' (length=4)   So thanks to @4k4 answer, I tried to do the same as the working date field, and I created my own EntityViewsData (I tried hook_views_data_alter() first but the field was not present in input data)  namespace Drupal\kabukis_tests\Entity; use Drupal\views\EntityViewsData;  class TestEntityViewsData extends EntityViewsData {   public function getViewsData() {     $additionalData = [       'test_date' => [         'title' => new TranslatableMarkup('Birth date'),         'help' => new TranslatableMarkup('Birth date'),         'field' => [ 'id' => 'field' ],         'argument' => [ 'id' => 'date' ],         'filter' => [ 'id' => 'date' ],         'sort' => [ 'id' => 'date' ],         'entity field' => 'test_date',       ]     ];     $data['test_field_entity_field_data'] = array_merge($data['test_field_entity_field_data'], $additionalData);     return $data;   } }   Now, the field appears in views template list ! However, the generated view is not working, I get the following error :     \Drupal\calendar\Plugin\views\style\CalendarStyle: A calendar date argument is required when using the calendar style, but it is missing or is not using the default date.


How to create a 3D layer explosion/expansion in Photoshop?

I need to depict a bunch of layers of an image similar to this:    What is this style called? Is there any photoshop plugins that can automatically create this kind of view?


31,331,3331, 33331,333331,3333331,33333331 are prime. This law can continue it? Will there emerge a composite number? Without using a computer how to judge.


How to prove a recurrence converges regardless of its initial condition?

I am trying to prove the limit of the following sequence is $\sqrt{x}$. I'm stuck on the hint. I don't how they got to the hint. Problem Suppose that $x>0$. Define a sequence $S_n$ by $s_1 = k$ and $s_{n+1} = \frac{s_n^2 + x}{2 s_n}$ for $n \in \mathbb{N}$. Prove that for any $k>0$, $\lim_{n\to\infty} s_n = \sqrt{x}$. The hint: Show that $(s_{n+1})^2 - x = \frac{(s_n^2 - x)^2} {4s_n^2} \ge 0$, so that $s_n  \ge \sqrt{x}$ for $n \ge 2$. What do I need to do to get to hint? It seems they squared both sides? But, there's an extra $-x$ on the left, and the $+x$ became $-x$ on the right. I am very confused.


Are there any studies on the use of justified text in web apps? How does justification affect screen legibility?  Example of justified text:


I've got fatal error EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7700 of .\includes\common.inc) when trying to access user/xyz.  I tried to retrieve info about the malformed node at line 7700, where the error message is built, thinks like :  if (!isset($entity->{$info['entity keys']['bundle']}) || $entity->{$info['entity keys']['bundle']} === '') {  dpm($info);// or dpm($entity);  throw new EntityMalformedException(t('Missing bundle property on entity of type @entity_type.', array('@entity_type' => $entity_type))); }   dpm($entity) returns an unexpected user object, and $info a huge qty of things.   Could somebody put me on the right way ?  I already read whatever I could find about Missing bundle property errors, but none helped solving.  dpm($entity) returns  uid (String, 2 characters ) 70 name (String, 9 characters ) John pass (String, 55 characters ) $S$DUwPuOuDPiDL4nRTYXqc7a5uOfMKey7pyhOFUEKka1XM... mail (String, 30 characters ) john@example.com theme (String, 0 characters ) signature (String, 0 characters ) signature_format (String, 13 characters ) filtered_html created (String, 10 characters ) 1396286331 access (String, 10 characters ) 1397146661 login (String, 10 characters ) 1396513460 status (String, 1 characters ) 1 timezone (NULL) language (String, 2 characters ) fr picture (NULL) init (String, 30 characters ) john@example.com data (Array, 5 elements) roles (Array, 1 element) og_user_node (Array, 0 elements) message_subscribe_email (Array, 1 element) field_bio (Array, 0 elements) field_name_first (Array, 1 element) field_name_last (Array, 1 element) field_facebook_url (Array, 0 elements) field_linkedin_url (Array, 0 elements) field_twitter_url (Array, 0 elements) user_trusted_contacts (Array, 1 element) group_group (Array, 1 element) group_access (Array, 1 element) metatags (Array, 0 elements) rdf_mapping (Array, 3 elements) realname (String, 13 characters ) John Doe content (Array, 13 elements) entity_view_prepared (Boolean) TRUE privatemsg_disabled (Boolean) FALSE


How to calculate the expected value of a standard normal distribution?

I would like to learn how to calculate the expected value of a continuous random variable. It appears that the expected value is $$E[X] = \int_{-\infty}^{\infty} xf(x)\mathrm{d}x$$ where $f(x)$ is the probability density function of $X$.  Suppose the probability density function of $X$ is $$f(x) = \frac{1}{\sqrt{2\pi}}e^{\frac{-x^{2}}{2}}$$ which is the density of the standard normal distribution.  So, I would first plug in the PDF and get  $$E[X] = \int_{-\infty}^{\infty} x\frac{1}{\sqrt{2\pi}}e^{\frac{-x^{2}}{2}}\mathrm{d}x$$ which is a rather messy looking equation. The constant $\displaystyle\frac{1}{\sqrt{2\pi}}$ can be moved outside the integral, giving  $$E[X] = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty} xe^{\frac{-x^{2}}{2}}\mathrm{d}x.$$  I get stuck here. How do I calculate integral? Am I doing this correctly this far? Is the simplest way to get the expected value?


Evolution of diversity and extinction resistance

I saw a  that touched on an interesting topic:     keeping diversity is useful for parameter exploration or to adapt to future environmental change   My initial thought was that evolution doesn't "know" about the future, so natural selection might decrease genetic diversity even if it meant dooming the species in the long term.  On the other hand, species that have low genetic diversity may be more likely to go extinct eventually.  So perhaps over time the surviving taxa are those that have evolved mechanims to "hedge their bets" against future environmental changes.  It's clear that some of the parameters that affect genetic diversity within a species (e.g. mate selection, mutation rate) are heritable, but it's unclear to me how the short-term processes of natural selection relate to the extremely long-term processes of speciation and extinction.  This gets into some of the same issues as group selection — how can natural selection, acting on individuals, lead to traits that benefit entire populations or clades?  (Perhaps this simply cannot happen.)  Has any work been done on the topic of extinction resistance or the evolution of mechanisms to create and preserve diversity within populations or taxa?  This is a big question so I don't expect a full answer here.  I'm just looking for some references as a starting point to learn more about this topic.


I would like to know if an 'and' is always necessary before the last item in a colon list. Is the following correct, or should I place an 'and' before 'grapes'?  The basket contained a variety of fruits: bananas, apples, oranges, grapes.  Thanks.


How to install php-cli without root permissions?

I need to install php-cli but I cannot use sudo  How can I do this ?  Thanks :)


I did a factory reset of my AMD video driver. I re-installed it, everything is fine. Well, everything but eevee and the material preview. This is a video of me enabling rendered mode on viewport preview on the default cube.  This is a video of me enabling material preview mode on the viewport.  It also coincidentially gets all chrismas-y if I start turning some eevee options up.  Ah, and this is Cycles, who seems to be working fine.  I have 3 versions of blender installed in my PC, they're all suffering from the same issue. ANSWER: Seems to be a problem with the driver, a suggested solution is to turn on high quality normals, worked for me.


The body_class hook seem only to work with non-admin pages.  When I do   add_filter('body_class', 'add_body_classes'); function add_body_classes($classes) {         $classes[] = 'myclass';         return $classes; }   Is there another hook i should be using if i want to add a class to the body of an admin page?


How can I divide two integers to get a double?

How do I divide two integers to get a double?


How can I prove the identity:  $$ \sum_{k=0}^n\binom{2n}{2k}^2-\sum_{k=0}^{n-1}\binom{2n}{2k+1}^2=(-1)^n\binom{2n}{n}? $$  Maybe, can we expand $$ f(x)=(1+x)^{2n}? $$  Thank you.


How to have the logon screen span over 3 monitors Windows 7

I have a windows 7 machine and I'm using eyefinity to user 3 monitors on this computer. The only thing that is bothering me is that when I boot the computer and get to the logon screen where I have to input my password, only the center monitor is "active", the other 2 monitors are on but their screens are just black.   So basically I was wondering with it was possible to have the logon screen span over all 3 monitors? Kinda like a multi monitor wallpaper.  Thank you in advance! :)


Using the code below I add text to end of file names which are:  1.mp3 2.mp3   and should be:  1text.mp3 2text.mp3   but it changed to:  1.mp3text 2.mp3text   Code:  @ECHO ON  FOR %%A IN ("C:\Users\user123\Desktop\mp3\*.mp2") DO (     CALL :RenameFiles "%%~A" "%%~NXA" ) GOTO EOF  :RenameFiles  SET fname=%~2 SET renname=%fname=% REN "%~1" "%renname%text%" GOTO E


Thanks again, everyone, for your huge help.  I am having some trouble finding a way to label all points on the 16-gon I have below.  Could someone give me a little help on how to do this without having to calculate every point?    I saw the post, , but I don't understand everything in the code well enough to see how to add the additional points to my illustration.  Thanks again.  \documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsfonts, amsmath, amssymb,} \usepackage[none]{hyphenat} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pst-eucl} \usepackage[nottoc, notlot, notlof]{tocbibind} \usetikzlibrary{shapes.geometric} \begin{document}   \begin{center}  \begin{tikzpicture} \draw[thick](3,3) circle(4.25);   \node[ultra thick, red, draw,minimum size={2*4.25cm},regular polygon,regular polygon  sides=16,rotate=11.25] at  (3,3) (16-gon) {};          \fill [red] (3,3) +(90:4.25) circle (4pt);         \fill [red] (3,3) +(67.5:4.25) circle (4pt);         \fill [red] (3,3) +(112.5:4.25) circle (4pt);         \fill [red] (3,3) +(135:4.25) circle (4pt);         \fill [red] (3,3) +(157.5:4.25) circle (4pt);         \fill [red] (3,3) +(180:4.25) circle (4pt);         \fill [red] (3,3) +(202.5:4.25) circle (4pt);         \fill [red] (3,3) +(225:4.25) circle (4pt);         \fill [red] (3,3) +(247.5:4.25) circle (4pt);         \fill [red] (3,3) +(269.5:4.25) circle (4pt);         \fill [red] (3,3) +(292.5:4.25) circle (4pt);         \fill [red] (3,3) +(315:4.25) circle (4pt);         \fill [red] (3,3) +(337.5:4.25) circle (4pt);         \fill [red] (3,3) +(360:4.25) circle (4pt);         \fill [red] (3,3) +(382.5:4.25) circle (4pt);         \fill [red] (3,3) +(405:4.25) circle (4pt);            \node[thick, red] (n1) at (-.5,-.5) {\begin{huge}$A$\end{huge}};          \node[thick, red] (n1) at (-.5,6.5) {\begin{huge}$E$\end{huge}};          \node[thick, red] (n1) at (6.5,6.5) {\begin{huge}$I$\end{huge}};          \node[thick, red] (n1) at (6.5,-.5) {\begin{huge}$M$\end{huge}};          \node[thick, red] (n1) at (-1.9497,3) {\begin{huge}$C$\end{huge}};          \node[thick,red] (n1) at (3,7.9497) {\begin{huge}$G$\end{huge}};          \node[thick, red] (n1) at (7.9497,3) {\begin{huge}$K$\end{huge}};          \node[thick, red] (n1) at (3,-1.9497) {\begin{huge}$O$\end{huge}};   \end{tikzpicture} \end{center}  \end{document}


How do I change how long notifications are displayed?

Is there a way to change how long the libnotify notifications last? I've googled around for this for months and no still no luck.   I'm actually starting to think that you can't change it. I can't even find anywhere in the API where developers can control this.


What is the difference between agree and concur? Which is the more common to use? For instance, someone said something to me and I want to say that he is right. Should I say I agree with you or I concur with you?


What is the reason, historically, that the letter $m$ is used to denote the slope of a line?


python floating point multiplication bug

I try to calculate the following product in python:  4.6*400   The answer should be 1840, however, python answers 1839.999....  This works fine  4.6*40*10   Is this a bug in python, or expected behaviour?


let $P(x)$ be a polynomial of degree $11$ such that  $P(x)={1\over(x+1)}$, for $x=0,1,2,......11$  then find value of $P(12)$


Proper installation method for play on linux

how long does it take to install play on linux via the terminal? I got as far as the end user agreement and nothing has happened past that


According to WolframAlpha,  but I don't know how I can prove it.


Passing a JS variable to an express.js / jade render

New to the MEAN stack, trying to make an API response I have properly available to the res.render jade template below.  exports.jap = function(req, res){   var client = new BasicAuth();   client.authenticate(function(err, response, body, cookie) {     var client = new Api('sample.com', cookie);     client.getProducts(function(err, response, body) {         console.log(JSON.stringify(body['result']));         var result = body['result'];         console.log(result);     });   });    res.render('lang', {       title: "灾情 (Mandarin)",       reqFor: "申请人",       product: "产品",       problem: "问题",       results: result // I would like my result var from above accessable here   }); };   Right now I'm getting result is not defined


Proving surjectivity of $\cos(z)$ and $\sin(z)$ and find all $z : \cos(z) \in \mathbb R$ and all $z: \sin(z) \in \mathbb R$

I am trying to solve the following two problems:  1) Prove that the functions $\cos(z)$, $\sin(z)$ are surjective over the complex numbers.  2) Find all $z \in \mathbb C$: $cos(z) \in \mathbb R$ and find all $z \in \mathbb C$: $\sin(z) \in \mathbb R$.  For 1),I've tried to prove it for the function $\cos(z)$ (I suppose the other one is analogue)  so I've used the fact that $\cos(z)=\dfrac{e^{iz}+e^{-iz}}{2}$.  Let $w \in \mathbb C$, I want to show there exists $z \in \mathbb C : f(z)=w$, i.e., $\dfrac{e^{iz}+e^{-iz}}{2}=w$, multiplying by $2$ and then by $e^{iz}$ yields $e^{2iz}+1=2we^{iz}$ iff $e^{2iz}-2we^{iz}+1=0$.   I don't know if this approach is the correct one but here I've replaced $e^{iz}$ by $x$, so the solutions of the equation would be the roots of the polynomial $p(x)=x^2-2wx+1$, by the quadratic formula, I get that $x \in \{\dfrac{2w+w_0}{2},\dfrac{2w-w_0}{2}\}$, where $w_0^2=4w^2-4$.  Then, $e^{iz} \in \{\dfrac{2w+w_0}{2},\dfrac{2w-w_0}{2}\}$. At this point I got lost, I would like to explicitly show that $z$ exists and I can't see existence directly from the fact that $e^{iz}=\dfrac{2w+w_0}{2}$ or $e^{iz}=\dfrac{2w-w_0}{2}$.  First I thought of taking logarithm of both sides of the equation ir order to solve for $z$, but this is not a legitimate operation unless $e^{iz} \in \mathbb R$.   I couldn't go any farther.  For point 2) I have no idea what to do, should I use the identity $\cos(z)=\dfrac{e^{iz}+e^{-iz}}{2}$?  I would appreciate some help with the two points (specially with point 2), at least in 1) I could do something).   Btw, Happy new year!


18.04 server - unable to locate package redis-server

I installed a fresh install of 18.04 server. The package redis-server does not seem to be installable. I'm not sure why:  $ sudo apt install redis-server Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package redis-server   the package doesnt appear to exist:  $ sudo apt-cache search redis miscfiles - Dictionaries and other interesting files python-redis - Persistent key-value database with network interface (Python library) resource-agents - Cluster Resource Agents   I have run apt update. I'm guessing its missing a repository of packages, but since this is a fresh install, I'm not sure why it would be missing one, or how to fix it.  root@:/etc/newrelic# sudo apt-get install nri-redis  Reading package lists... Done  Building dependency tree  Reading state information... Done  E: Unable to locate package nri-redis


Is attending an academic conference beneficial if you are not presenting any paper? Does it reflect well in your CV?

I have recently been given an opportunity to attend a conference on Robotics although I don't have any paper to present. The registration fee is around 7k. Before spending such an amount, I wanted to know if it is worth attending conference sessions just for its sake. Please help.


How to make a smaller gap when using many level of $$$$?

I have the following problem:    Where I'm using $$$$ twice to make the equation of the linear model fit horizontally.  But I don't like white space that's left between the two lines.   Is there a way to perhaps make the two lines with less white space between them?


I have added one button "btn". I have set onclicklistener, inside the button "btn" I have added another button "btnYes" to show display custom dialog when I add these "btnYes" apps get crash.  When I remove the "btnyes" button app is working.  Can we add onclicklistener for two button inside one button for different work?  Java Code  public class MainActivity extends AppCompatActivity {     private Button btn, btnYes, btnNo;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          btn = findViewById(R.id.click);         btnYes = findViewById(R.id.yes);         btnNo = findViewById(R.id.no);         btn.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 AlertDialog.Builder dialogBox = new AlertDialog.Builder(MainActivity.this);                 LayoutInflater inflater = LayoutInflater.from(MainActivity.this);                  View myView = inflater.inflate(R.layout.custom_dialogbox, null);                 dialogBox.setView(myView);                 final AlertDialog mybuilder = dialogBox.create();                 mybuilder.setCancelable(false);               btnYes.setOnClickListener(new View.OnClickListener() {                   @Override                   public void onClick(View v) {                       mybuilder.dismiss();                    }               });               }         });     } }      Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference           at com.example.customdialog.MainActivity$1.onClick(MainActivity.java:33)


Where is the steam directory folder in 12.04?

I've checked in the home folder but this is all I see.


Parent path is /opt/data/ and within data folder there are multiple subfolders and within those subfolders there are multiple files which I want to rename only some part of it using bash.  Original file name:  WK6LZTPR99999999_dig_2017-07-10 01:55:57.xy  which I want to change all files with in all sub directory as:  WK6LZTPR99999999_cur_2017-07-10 01:55:57.mp3  Hope I elaborate the scenario clearly.   solution was given by philiphs work great but it is changing the other file extension as well in directories , I want to change only .xy file tension and other then that extension should be excluded.


Return all roles, including custom roles

Rewritten: Hopefully this helps others. The question wasn't a duplicate question. The custom roles and subscriber account were not being written. It turns out that the if statement after the internal foreach was stopping the writing of the custom roles. Once removed then the loop worked properly.  It's very important for novices to be provided explanations. In this case, I would like to know why the if statement blocked the writing of the custom roles.  if ( $wp_roles->get_role( $role_name )->has_cap( $new_cap ) )     Original statements (bold unique parts to question):  This is frustrating me. After months of trying different ways to think about retrieving all of the default and custom roles, I believed the following code would work. However, it is only returning 4 of the 5 default roles and none of the custom roles. This code works to return administrator, editor, author, and contributor but not subscriber.  I can write an elseif statement after the inner foreach loop and force subscriber to be written as well as an elseif statement to force a known custom role .. but that defeats the purpose of a foreach to return all roles.  Sorry but I'm a complete novice trying to read and understand as much as possible. This means I'm not asking you to write the code but maybe point me in the direction as well as provide an explanation.          global $current_user, $wp_roles;      $all_roles = $wp_roles->roles;      $editable_roles = apply_filters( 'editable_roles', $all_roles );      foreach ( $editable_roles as $role_name => $role_info ) {          /** If you have changed the wp_ prefix then you must modify this line to match the new prefix */         if ( is_object( $current_user ) && isset( $current_user->data->wp_capabilities[ $role_name ] ) ) {              foreach ( $new_caps as $new_cap ) {                 if ( $wp_roles->get_role( $role_name )->has_cap( $new_cap ) ) {                     $capabilities[ $new_cap ] = true;                     $current_user->add_role( $role_name );                  }             }          }      }


The Apache httpd 2.4 server is bundled with Yosemite. It seems to me that the directories /etc/apache2 and /private/etc/apache are the same. However I don't see any symlink. Did I missed something ?


\[L_{AABB}=-logI_o\cup(\hat{R},R^\star)=-log\frac{\mid\hat{R}\cap{R^\star}\mid}{\mid\hat{R}\cup{R^\star}\mid}\]\label{one}\]   how to add equation number?


Edits limits (Edits must be at least 6 characters; is there something else to improve in this post?) can be passed easily using html comments. Testing: This is what can be done to skip the edit limit: Using code comment fools the edit and adds them in the number of characters edit. Here is an example: <!--  -->  This code block is long enough to edit the question without touching anything other. Simply copying and placing it at anywhere in the question can skip the edit limit. These automatically get disappeared because these are html comments. Benefit:  Questions can be edited with changes having less than 6 edits  This seems more like a  to me rather than . It must be detected by the site that the edit is no more than addition to a useless html comment (unless it is in a code block or it is a ), so don't let it be edited. The system should let such edits be prohibited. This will save the time of the reviewers by not adding useless edits in the queue.