How can I specify nested and crossed random effects with lme4

I'm trying to model regional implicit bias using multilevel regression with poststratification as described in Hoover, J., & Dehghani, M. (2019). The big, the bad, and the ugly: Geographic estimation with flawed psychological data. Psychological Methods. Advance online publication. .   The authors model Implicit Bias (imp_bias) as a function of six fixed effect county-level (contextual) variables (vote_prop.std + ... + latino_prop.std) and various random effects. Three of these random effects are geographical units: Counties nested within states nested within divisions. Though they are not explicitly specified as nested factors (as (1 | division/state_fips/county_fips) would do), they should be handled as nested factors because every fips-code is unique to the specific geographical unit. The other three are demographic variables: education, sex, & age. In the paper the authors write that the demographic effects were estimated as random intercepts crossed with division and that they did cross them with division because otherwise the model didn't converge.  I am confused as to whether the code they report does achieve this:  iat.imp.mrp.2 <- lmer(imp_bias ~ 1 +                             vote_prop.std +                              ...                             latino_prop.std +                    (1 | county_fips) +                     (1 | state_fips) +                    (1 | division:educ_3lvl) +                    (1 | division:sex:age_4lvl),                    data = iat.estimation.df, verbose=T,                     control=lmerControl(optimizer="bobyqa",                                  optCtrl=list(maxfun=2e5)))   To my understanding (1 | division:educ_3lvl) indicates that education is nested within division rather than crossed with division. And how does this model differ from the following?  iat.imp.mrp.2 <- lmer(imp_bias ~ 1 +                             vote_prop.std +                              ...                             latino_prop.std +                    (1 | county_fips) +                     (1 | state_fips) +                    (1 | division) +                    (1 | educ_3lvl) +                    (1 | sex) +                    (1 | age_4lvl),                    data = iat.estimation.df, verbose=T,                     control=lmerControl(optimizer="bobyqa",                                  optCtrl=list(maxfun=2e5)))   To summarize, I don't really understand what the : does in the authors' code and would like to know how to specify with which of the three levels the demographic variables are crossed. Any help is really much appreciated!


The Heisenberg Uncertainty Principle and the 1D particle in a box

This question and its answers, , very recently asked has me a bit stumped. The OP basically states that the HUP: $$\Delta x\cdot \Delta p\geq \frac{\hbar}{2}\tag{1}$$ implies that $p\neq 0$, always. Or as one commenter ('Sebastian Riese') stated:  The uncertainty conundrum is seen to be solved when looking at the approximations: The position uncertainty goes appropriately to infinity as we approach zero momentum uncertainty.  Now if we look at the very (teachable and) useful example of the $\text{1D}$ particle in a box with $\text{zero}$ potential energy $V(x)=0$ inside and infinitely high potential walls, we know that the ground state energy $E_1$ is non-$\text{zero}$, $E_1>0$. Since as $V=0$, then: $$E_1=V+K=K$$ This clearly implies that there is kinetic energy and thus motion and momentum, i.e. $p>0$. Many, many moons ago I was taught (perhaps badly!) that this non-zero ground state energy is an illustration of the HUP, as it shows $p\neq 0$, in accordance with $(1)$. Because if $p=0$ then it is exactly known, so $\Delta p=0$, which violates the HUP. And from this :  A simple way would be to realise that when $n=0$, the magnitude of the momentum is 0, and thus there are no 'positive' and 'negative' values it could take: it most definitely has a momentum of exactly zero, with no uncertainty. This would be allowed, if you were not in a box. However, placing yourself in a box, meaning that $Δx<∞$, means that you necessarily have a minimal non-zero momentum, using the argument you mentioned earlier.  That seems to confirm the role of HUP in explaining why non-zero ground energy is required. Is this reasoning wrong?


Installation problem in making partitions

while installing Ubuntu in windows 10 which is partitioned as separate drives  by me,i couldn't find the free space in "something Else "option..It shows entire drive for making partitions..and i want to install it in a particular drive.what can i do  ?


18.04 Nothing I do prevents lock screen on lid close. EDIT: How to Disable "Screen Shield" on Laptop Lid Close"

Update: I originally flagged this as a "Lock Screen" problem. But with the help from @Dennis, I came to understand that the problem I describe below could be much better defined as a "Screen Shield" issue. Many thanks to @Dennis because I was getting ready to gouge my eyes out.     Original problem description:   I feel like I have had this problem before and I can't remember how I ultimately solved it. No matter what I do, when i close my laptop lid, it locks the screen. Except that it's not a lock screen, I don't have to enter my password, I just have to hit escape. That's annoying enough, but sometimes hitting escape doesn't work and I have to ssh into my laptop and kill X.   I have edited my /etc/systemd/logind.conf, here are the relevant edits:   39 HandleLidSwitch=ignore  40 HandleLidSwitchDocked=ignore  41 IdleAction=ignore  42 LidSwitchIgnoreInhibited=no   (all other line items in the logind.conf are commented out and I ran sudo systemctl restart systemd-logind or rebooted after)  I have installed tweak and disabled suspend with laptop lid closed.   I have made the recommended changes in the power section in Settings.   I have even installed Caffeine and enabled it.   Nothing matters, it still puts up that pseudo "not really a lock screen" screen when I close my laptop. And again, 25% of the time I have to kill X because I can't get out of it.   To make matter worse, it only goes into the lock screen about half the time, and I am unable to discern a pattern.   Much anger, please help.    Update: I tried the tip listed at    Still didn't work.


Is it possible to find $n-1$ consecutive composite integers

Given an integer $n\geq  2$ ,can we always find an integer $m$  such that each of the $n-1$ consecutive integers $m+2,m+3,.....,m+n$ are composite?


Getting internet browsing history from shell

is it possible to use the shell or generate a shell script to find out the browsing history from the browsers installed on the system? thank you


How can I create a public static method while implementing an interface in c#?

I have the following interface  public interface IQueryBuilder {     SqlCommand Build(IReportDataSource dataSource, List<IReportColumn> columns, List<IReportRelationMapping> relationMappings, IReportFilterMapping filters, List<IReportColumn> columsToSortBy, ReportFormat reportFormat);      string GetSqlClause(List<IReportFilter> reportFilters, ref List<IDataParameter> sqlParams); }   However, I would like to be able to access the method GetSqlClause in the implementation directly.  Here is how I implemented the above   public class QueryBuilder : IQueryBuilder {     public SqlCommand Build(IReportDataSource dataSource, List<IReportColumn> columns, List<IReportRelationMapping> relationMappings, IReportFilterMapping filters, List<IReportColumn> columsToSortBy, ReportFormat reportType)     {         //Do something awsome!!!         string sqlQuery = "";          List<IDataParameter> sqlParameters = new List<IDataParameter>();          return this.GetSqlCommand(sqlQuery, sqlParameters);     }      private SqlCommand GetSqlCommand(string sqlQuery, List<IDataParameter> sqlParams)     {         var command = new SqlCommand(sqlQuery);          foreach (IDataParameter dataParameter in sqlParams)         {             command.Parameters.Add(dataParameter);         }          return command;     }       public static string GetSqlClause(List<IReportFilter> reportFilters, ref List<IDataParameter> sqlParams)     {         string sqlFilter = "";          if (reportFilters != null && reportFilters.Any())         {             //At this point we know there are some filter to add to the list              var firstFilter = reportFilters.First();              foreach (var reportFilter in reportFilters)             {                  var parameter = GenerateDbParameter("p" + sqlParams.Count, reportFilter.FormattedValue, SqlDbType.NVarChar);                 ....                 ....             }         }          return sqlFilter;     }      private static IDataParameter GenerateDbParameter(string parameterName, object parameterValue, SqlDbType parameterType)     {         if (string.IsNullOrEmpty(parameterName) || parameterValue == null)         {             throw new ArgumentException();         }         var parameter = new SqlParameter("@" + parameterName, parameterType)         {             Value = parameterValue         };          return parameter;     }   }   Because I am using static on my GetSqlClause method I get an error     cannot implement an interface member because it is static.   What is a good work around to this problem? How can I access my GetSqlClause directly?


Double orthogonal complement is equal to topological closure

So I'm in an advanced Linear Algebra class and we just moved into Hilbert spaces and such, and I'm struggling with this question.   Let $A$ be a nonempty subset of a Hilbert space $H$. Denote by $\operatorname{span}(A)$ the linear subspace of all finite linear combinations of vectors in $A$, and by $\overline{\operatorname{span}(A)}$ the topological closure of $\operatorname{span}(A)$ with respect to $\|\cdot\|$.  Also, let $A^⊥ = \{h ∈ H : \langle h,f \rangle = 0, ∀f ∈ A\}$ and $A^{⊥⊥} = (A^⊥)^⊥$.  Use orthogonal projection to prove that $A^{⊥⊥} =\overline{\operatorname{span}(A)}$.  The thing that trips me up is that we don't know much about $A$, like if I knew a little more, perhaps to show it's closed, then I can do the direct sum decomposition blah blah, but it also confuses me why we're using the complement of $\operatorname{span}(A)$. Is it possible to show that $\operatorname{span}(A)$ is closed, then go from there? I know it might look a bit like a duplicate, but all the questions I find don't refer to orthogonal projection at all. Any hints would be greatly appreciated!


C++ Error with trying to overload operators and use class template

My code doesnt compile and I'm really confused.When I run the code I get an error in the header file that says "Declaration of 'T' shadows template parameter. My teacher told us in class to put template prefix template before declaration of the operators inside a class definition. I don't know if she's wrong or not but I tried removing the template that were above the declaration of friend functions and when i tried compiling the code i get some errors that have linker Id issues. One of them refers to Matrix::Matrix(int). Honestly I still think what my teacher said about putting the template prefix above the declaration of the operator is right because the operators have the class type in their parameter but can someone help me out!  In my header file I have:  #ifndef __testing_more_stuff__vector__ #define __testing_more_stuff__vector__  #include<iostream> #include<fstream> using namespace std; template <class T> class Matrix{ public:     Matrix();     Matrix(T diagonal);      //template <class T>     friend ostream& operator <<(ostream& outs, const Matrix<T> &obj);     //template <class T>     friend istream& operator >>(istream& in, Matrix<T> &obj);     //template <class T>     friend Matrix<T> operator *(Matrix<T> A, Matrix<T> B);  private:     const static int n=3;     T a[n][n];   };//class declaration  #endif   In my implementation file I have:  #include "vector.h"  template <class T> Matrix<T>::Matrix(){     for (int i=0;i<n;i++)         for (int j=0;j<n;j++)             a[i][j]=0; } template <class T> Matrix<T>::Matrix(T diagonal){     for (int i=0;i<n;i++)         for (int j=0;j<n;j++)             if (i==j)                 a[i][j]=diagonal;             else                 a[i][j]=0; } template <class T> ostream& operator <<(ostream& outs, const Matrix<T> & obj) {     for (int i = 0; i < obj.n; i++){         for (int j = 0; j < obj.n; j++)             outs << " "<< obj.a[i][j];         outs<<endl;     }     outs<<endl;     return outs; } template <class T> istream& operator >>(istream& in, Matrix<T> & obj) {     for (int i = 0; i < obj.n; i++){         for (int j = 0; j < obj.n; j++){              in >> obj.a[i][j];         }     }     return in; } template<class T> Matrix<T> operator *(Matrix<T> A, Matrix<T> B){     Matrix<T> product;     for (int i=0;i<A.n; i++)         for (int j=0;j<A.n; j++) {             T sum=0;             for (int k=0; k<A.n; k++)                 sum = sum+A.a[i][k]*B.a[k][j];             product.a[i][j]=sum;         }     return product; }   In my main file I have:  #include "vector.h"   int main(){     Matrix<int>  A;     Matrix<int>  B(2);     cout << A;     cout <<B;      cout <<"stop here";      ifstream fin;     ofstream fout;     fout.open("output.txt");     if (fout.fail()){         cout <<"error openning output file";         exit(1);     }      fin.open("input.txt");     if (fin.fail()){         cout <<"error openning input file";         exit(1);     }      //input matrix C     Matrix<int> C;     cin >>C;     //fin >>C;     cout <<"C = "<<endl<<C<<endl;     cout <<"B = "<<endl<<B<<endl;     cout <<"C*B = "<<endl<<C*B<<endl;     //fout <<C;     //cout <<C.det();      return 0;  }


So, I am new at coding. I was trying to make a very basic static webpage of a calculator using html and css and js. This is the html   #input {     margin: 0 auto; }  #num {     border-radius: 25px;     background: #73AD21;     display: inline-block;     padding: 15px;     width: 200px;     height: 100px; }

       Enter the first number       <input type="number" name="num1" id="num1">

       Enter the second number       <input type="number" name="num2" id="num1">

<input type="submit" name="add" class="add" value="Add" onclick="add()">

<input type="submit" name="subtract" class="sbtrct" value="Subtract" onclick="sbtrct()">

<input type="submit" name="multiply" class="mult" value="Multiply" onclick="mult()">

<input type="submit" name="divide" class="add" value="Divide" onclick="dvde()">

     I want that the #num be centered horizontally. I tried using margin: auto;  and margin: 0 auto;  but nothing works. Please help. I've been at it for hours.


Finding the PID of the process using a specific port?

I am installing hadoop on my Ubuntu system. When I start it, it reports that port 9000 is busy.  I used:  netstat -nlp|grep 9000   to see if such a port exists and I got this:     tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN   But how can I get the PID of the process which is holding it?


How do I compute the real and imaginary parts of the complex number, $z = \tan (x + ix)$

, the site gave me three alternate forms of $z = \tan (x + ix)$, but my concern is on the third alternate form which has to do with $\sin (x)$, $\cos (x)$, $\sinh (x)$, and $\cosh (x)$. The question here is: How can I obtain that alternate form of $\tan (x + ix)$ mathematically?


"Follow close behind" vs "follow closely behind"?

I just came across something I'd written a while ago that contained the phrase "follows close behind", and my first thought was that it was incorrect and should be "follows closely behind", i.e. to use an adverb describing how something is following.  The  for the two phrases seems to disagree with this instinct, though, with only slight differences between BE and AE, and the shorter phrase must've made it past my inner editor back when I first wrote it... maybe because "close" can also be used as an adverb?  So can both be used interchangeably? Is there a grammatical reason one should be considered "more correct" than the other, or is it just a case of one particular usage of a phrase having become more commonplace for some reason or other?


What is the correct punctuation in English:     There are two types of insectsXX      a) white   b) black   Should the punctuation at XX be “;” or “:”?


Ubuntu 12.04 on Amilo LA1703 after istalling graphics doesn't start?

The installation process pass normal, and after restarting the graphic doesn't start. It appears message "The system is running in low-graphics mode" maybe is something connected with the chipset on the laptop VIA Chrome9 HC IGP. Does someone know fix for this problem with VIA chips, or exact procedure to solve the problem. Thanks in advance!


"She laughed as though there (was/were) a chance he might have said anything else."

Would I use 'was' or 'were' here?     She laughed as though there was/were a chance he might have said anything else.   (I read about the difference between was and were, but I can't apply it to this sentence because it seems like both a past possibility and a hypothetical, like a past hypothetical. Could someone explain the answer to me please?)


How do I copy a folder keeping owners and permissions intact?

So I was going to back up my home folder by copying it to an external drive as follows:  sudo cp -r /home/my_home /media/backup/my_home   With the result that all folders on the external drives are now owned by root:root. How can I have cp keep the ownership and permissions from the original?


Expected number of ratio of girls vs boys birth

I have came across a question in job interview aptitude test for critical thinking. It is goes something like this:     The Zorganian Republic has some very strange customs. Couples only   wish to have female children as only females can inherit the family's   wealth, so if they have a male child they keep having more children   until they have a girl. If they have a girl, they stop having   children. What is the ratio of girls to boys in Zorgania?   I don't agree with the model answer given by the question writer, which is about 1:1. The justification was any birth will always have a 50% chance of being male or female.  Can you convince me with a more mathematical vigorous answer of $\text{E}[G]:\text{E}[B]$ if $G$ is the number of girls and B is the number of boys in the country?


When separate, meshes keep their materials. When I join them, some of them seem to lose material. Correct material still displays in the material properties panel. Assigning it again doesn't change anything, neither does finding image texture again. What can be wrong? How to join meshes without losing texture? (The object starts to look black)


How do I debug permissions in Drupal 7?  I use core reporting, error logs, devel module error logs, backtrace and node access permission block but sometimes it is not enough. What else should I check to find out why certain fields, views or blocks are not showing to a user?  I also found there is a  for reporting on permissions called  but it is not available for Drupal 7.  I am using various permission related third-party modules:   - devel node access 7.x-1.x-dev   - fast permissions administration 7.x-2.0  - organic groups access control 7.x-1.x   - profile2 group access 7.x-1.x-dev   - ur-node access 7.x-1.x-dev


I am a high school student and I am a little confused in how ATP gives us energy by breaking bonds? I used to think that ATP is quite stable molecule that's why it is present in free form inside cells, so instead of giving energy , energy should be required in order to break its bonds ,isn't it?


Quantum computation is based on the superposition principle of quantum physics. Bits in a normal computer are either 0 or 1. Quantum physics allows bits to be in a superposition of 0 and 1, in the same way, Schrödinger’s cat can be in a superposition of “alive” and “dead.” [  My question is: Can public key cryptography survive quantum computers?


Can anyone explain how this code works?  function makeAdder(x) {   return function(y) {     return x + y;   }; }  var add5 = makeAdder(5); var add10 = makeAdder(10);  console.log(add5(2));  // 7 console.log(add10(2)); // 12   Reference:


trying to overwrite 'file' which is also in package 'name'

After I added this ppa ppa:thopiekar/darling and tried to install darling without success, I can't fix anything with the sudo apt-get install -f install command  jeggy@jeggy-XPS:~$ sudo apt-get -f install [sudo] password for jeggy:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   gnustep-gui The following NEW packages will be installed:   gnustep-gui 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. Need to get 0 B/3.569 kB of archives. After this operation, 12,4 MB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 283062 files and directories currently installed.) Unpacking gnustep-gui:amd64 (from .../gnustep-gui_0.23.1-0~201311190000~7545~7~ubuntu13.10.1_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/gnustep-gui_0.23.1-0~201311190000~7545~7~ubuntu13.10.1_amd64.deb (--unpack):  trying to overwrite '/usr/lib/GNUstep/ColorPickers/StandardPicker.bundle/StandardPicker', which is also in package gnustep-gui-runtime 0.22.0-1ubuntu1 No apport report written because MaxReports is reached already                                                               dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/gnustep-gui_0.23.1-0~201311190000~7545~7~ubuntu13.10.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) jeggy@jeggy-XPS:~$    Could someone help me to fix this?


Book where artistic people are thrown into a lake of acid; kids get teleported to a world where magic is real

In this world, anyone artistic is tossed into a lake of acid. But this wizard shows up and takes these kids to another world where magic exists, and they live in a mansion and use tubes to get around. The main character has a twin who lives in the other world and is not nice, but the character is very artistic, and there's a giant griffin statue who is alive and can fly.


Proving that $x^3-9$ is irreducible in $\mathbb{F}_{31}[x]$

I am attempting to solve part (b) of problem 4.2 in Chapter 12 of Artin's Algebra textbook. I have already solved part (a).  Prove that the following polynomials are irreducible: (a) $x^2+1$ in $\mathbb{F}_7[x]$ (b) $x^3-9$ in $\mathbb{F}_{31}[x]$  My attempt Assume $x^3-9$ is reducible. It is easy to see that it is not a unit, so it must have a proper divisor. So we can write $x^3-9=a(x)b(x)$ for some $a,b\in \mathbb{F}_{31}[x]$ where $a,b$ are not units, hence are not constant. One of them has degree 2 and the other degree 1. WLOG assume $a$ has degree 2 and $b$ has degree 1. Then we can write $a(x)=a_0+a_1x+a_2x^2$ and $b(x)=b_0+b_1x$. Where $a_2,b_1\neq0.$ We obtain the equations  $a_0b_0=-9$ $a_0b_1+a_1b_0=0$ $a_1b_1+a_2b_0=0$ $a_2b_1=1$  Now, I would like to obtain a contradiction by playing with these four equations, but I am not sure how to do this. Please help me. I would prefer a solution which deduces a contradiction from the four equations rather than a solution using some other method. I am aware that this math problem has already been asked on stackexchange, but I do not believe that my question is a duplicate since I desire to approach the problem from a different angle.


Finding all solutions for a system of equations with constraint on the sum of absolute values

I am looking for a fast algorithm to find all integer solutions for the following system of linear equations ($c_1,\ldots,c_n \in \mathbb{Z}$ and $r\in \mathbb{N}$ ):  $x_1+x_2=c_1$  $x_3+x_4=c_2$  ...  $x_{2n-1}+x_{2n}=c_n$  $|x_1|+|x_2|+\ldots+|x_{2n}|=r$  $x_1,\ldots,x_{2n} \in \mathbb{Z}$   Also can we find the number of solutions before solving the system?


Wifi connectivity problem in Ubuntu 14.04

Wifi is working properly on my laptop (hp-ab220tx) but when I suspend or close the laptop when it is working, now when I open it there I will lose the wifi connection. To get back the wifi connection all I need to do is restart the laptop.  Here are the network details:  description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:08:00.0        logical name: wlan0        version: 00        serial: 70:77:81:bf:f9:1b        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=4.2.0-42-generic firmware=N/A ip=192.168.1.123 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn        resources: irq:18 ioport:5000(size=256) memory:c6100000-c6103fff   *-network        description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:09:00.0        logical name: eth0        version: 0a        serial: 3c:a8:2a:bc:2c:2d        size: 100Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8107e-2_0.0.2 02/26/15 ip=192.168.1.22 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:49 ioport:4000(size=256) memory:c6004000-c6004fff memory:c6000000-c6003fff


How to change LCD brightness from command line (or via script)?

To work around  (changing LCD brightness via hotkeys impossible), I'd like to have one command line query for increasing and one for reducing the brightness of my LCD. I could then map a hotkey to each one of this queries.  The problem is: I don't know how to increase and reduce the LCD brightness on the command line. Do you?


Feed page in app only loads one post.   App Version: 1.0.85 Device Manufacturer: Xiaomi Device Model: HM NOTE 1LTE   OS Version: 4.4.4 (V7.5.1.0.KHIMIDE)


As a follow-up to this , what is the minimum size of a nest egg to support 30 years of $5,583.33 monthly distributions? I want the $5,583.33 to increase with inflation each month.   The present value of the first payment should be $5,583.33.  First withdrawal will be in 20 years: $5,583.33*(1 + 0.0033)^240 = $12,310.86   Here is what I've pieced together from this :  Total withdrawals:          n = (30 years)(12 months) = 360 payments Inflation per period:       i = 4.0% per year / 12 = 0.3333% per period) Return per period:          m = 8.0% per year / 12 = 0.6666% per period) Periods until 1st payment:  o = (20 years)(12 months) = 240 periods First payment amount:       w = $67,000 / 12 = $5,583.33 (today's dollars)  p = ([(1 + i)^o]*[(1 + m)^-n]*((1 + i)^n - (1 + m)^n)*w)/(i - m)   p = ([(1 + 0.0033)^240]*[(1 + 0.00667)^-360]*((1 + 0.0033)^360 - (1 + 0.00667)^360)*5583.33)/(0.00333 - 0.00667) p = $2,594,790.06  where  n is the number of payments to be received o is the number of the period at the end of which the first payment is received w is the payment amount m is the pension fund's periodic rate of return i is the periodic inflation rate   Is this the right equation? From what I could find on Google, this calculation is called the . Is this correct?    Is it correct to say that $2.5 million is the nest egg balance 20 years from now on the day the first withdrawal is made? And that $2.5 million is not in today's dollars but in equivalent dollars 20 years from now?


How do I stop the dock from moving to my second monitor?

I use an external monitor with my Macbook Pro, often to run Windows VMs with a task bar at the bottom.  While trying to use the task bar, I often accidentally summon the dock to the second monitor.  How do I stop the dock from moving?  Note: I'm aware of the option to go back to the old one-space-for-all-displays behaviour.  I don't want to go back to the old behaviour, I want to fix the new one.  Note, repeated: This isn't a duplicate of the question which asks .  I know why it happens, but there's nothing there that would help me to prevent it from happening.


How do new package versions find their way to the LTS distribution? (Current example: OpenSSL)

I'm running several Ubuntu 18.04 machines all of which need OpenSSL.  Recently, OpenSSL reported a security problem:  (CVE-2020-1967).  I did install OpenSSL via the Ubuntu standard packages, no custom package sources here nor did I compile it myself. So, since this is the case and since I'm using a currently maintained LTS distribution (18.04 as mentioned), I assumed that running apt update and apt upgrade would be sufficient to get the latest updates and be safe from that vulnerability. But, no. Obviously, it is more complicated.  According to  there is an OpenSSL package version for Ubuntu which reacts to the aforementioned CVE-2020-1967. However, it still contains 1.1.1f in its version name, whereas the OpenSSL version where the problem is fixed is actually 1.1.1g (according to their advice). And, more important: That package is only for Focal Fossa (20.04).  So, I thought I take the chance to learn a few things about the internals of Ubuntu and how package version make their way to my computer:   How come that new packages are only created for newer LTS distributions and older ones are left vulnerable? How does that process work in general? What is the average time between a vulnerability being publicly announced and patched packages being available via apt upgrade?


I know how I can rotate but how can I move up and down or sideways? Google didnt found anything useful  I read I can do it with Ctrl + c or . but the first one just fixed the camera at a point where it made everything even worse and . just did nothing


This is a problem from an algebra textbook.     Let $R$ be a ring, and $I$ be an ideal. If the radical of $I$ is $I$ itself, i.e. $\operatorname{rad}(I) = I$, then $I$ is an intersection of prime ideals.


I have followed the post-installation instructions but still can't run Docker without sudo

I have followed the installation instructions , including the . I have then opened a new terminal. Here's what I get $ docker run hello-world docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'.  I am using Ubuntu 20.04


Evaluate $\int_{0}^{\frac{\pi }{2}}\frac{x dx}{\sin x +\cos x}$

I cant seem to work this out, can someone pls. help,  $$\int_{0}^{\frac{\pi }{2}}\frac{x dx}{\sin x +\cos x}$$  You are meant to use the property of integral that:   $$\int_{0}^{a}f(x)dx = \int_{0}^{a}f(a-x)dx$$


Does a continuous function take Cauchy sequences to Cauchy sequences?

Let $(X,d)$ be a metric space. A function $f:X\rightarrow X$ maps Cauchy sequences to Cauchy sequences. Then if $x_n\rightarrow x$, then $\{x_n\}$ is Cauchy, implying $\{f(x_n)\}$ is Cauchy. But if $X$ is not complete then $\{f(x_n)\}$ may not converge, let alone converging to $f(x)$. So the condition doesn't imply $f$ is continuous.   However what about the converse? If $f$ is continuous does it take Cauchy sequences to Cauchy sequences?


I've accidentally hidden the menu on VirtualBox, it used to have options to start a machine & I think have the snapshot options in too. It's been like this for a while as I cannot figure out any way to get it back and need to use the snapshot functionality.  I've put a screenshot of what I've currently got below for you to see, the menu used to be directly below the close button spanning the width of the VirtualBox window.


How can I extract a page range / a part of a PDF?

Do you have any idea how to extract a part of a PDF document and save it as PDF? On OS X it is absolutely trivial by using Preview. I tried PDF editor and other programs but to no avail. I would like a program where I select the part that I want and then save it as a PDF file with a simple command like CMD+N on OS X. I want the extracted part to be saved as PDF and not as JPEG, etc.


Do the virtual particles have any mathematical meaning in vacuum in absense of real quanta?

I have edited this question with its title. Virtual particles, as I understand, arise as intermediaries in the calculations describing interactions such as scattering between real particles and in drawing certain Feynman diagrams.   My question is not whether virtual particles have real physical existence by direct observation. My question is, whether the mathematical language of "virtual particle-antiparticle popping in and out of existence", is even mathematically meaningful whenever you take everything (all real quanta) out of space. By empty space, I understand, the vacuum of a free or an interacting quantum field theory. May be  roughly explains my question. Can the vacuum loops be given such a meaning?  Edit-The maximum voted answer in  talks about virtual particles in real scattering experiments. But it does not address whether this virtual particles have any mathematical meaning, when there are no real quanta or particles present in the picture.


What does Gandalf mean "there are many things in the deep waters?"

In The Fellowship of the Ring, the council of Elrond plays with the idea that hiding the ring by sinking it to the bottom of the sea would make it safe.     'Not safe for ever,' said Gandalf. 'There are many things in the deep waters; and seas and lands may change. And it is not our part here to take thought only for a season, or for a few lives of Men, or for a passing age of the world. We should seek a final end of this menace, even if we do not hope to make one.'   Is this meant to be an enigma? Does Tolkien ever mention things in the sea in the Silmarillion or his other works? What does Gandalf even mean? Does it have to do with Numenor? Or does he mean Sea monsters? What are they like? The Watcher in the Water? Are they servants of Sauron? Are they crated by Morgoth like the dragons? Would they wield the ring or return it to Sauron? I'd love to know more about this!


How do I turn off MacBook display when I have an external display?

I went through a , but the answer was informing how to hide the monitor, but not how to disable it. I do not want any new windows to creep into the laptop display when the external display is connected. I could not find any in the Display Settings (under System Preferences). I don't want to close the lid because I think it impacts the air flow of the MacBook Pro. I don't want to close the lid because the sound quality is reduced.


How to import multiple .obj files and keep the overall structure intact?

I am doing some research work on anatomy of human body, for which I want to use this project:    This project is a 3D Model of human anatomy, containing hundreds of .obj files. Each .obj file is actually a model of a part of human body. I want to import all the .obj files in such a way that the overall anatomy of the figure is intact, i.e. all the structures are in their right place (so that I don't have to manually correct their position).  Edit:  Thanks @poor and @zeffii for your input. After a couple of hours of head-banging, everything seems to work now. Here is what I did:   Used the script given in the post mentioned by @poor. Modified the directory structure given in the script (which is for windows) to work with linux. Imported the .obj files using the script     The script now looks like this:  #Script to import multiple .obj files into blender import os import bpy  # put the location to the folder where the objs are located here in this fashion path_to_obj_dir = '/home/user/Desktop/brainstem/'  # get list of all files in directory file_list = sorted(os.listdir(path_to_obj_dir))  # get a list of files ending in 'obj' obj_list = [item for item in file_list if item.endswith('.obj')]  # loop through the strings in obj_list and add the files to the scene for item in obj_list:     path_to_file = os.path.join(path_to_obj_dir, item)     bpy.ops.import_scene.obj(filepath = path_to_file)   Note:  There is something specific to this Human Anatomy project (link given above) that I want to share (hoping that it might help someone).  As mentioned by @zeffii, this project is huge. If yout try to import all the files at once, your system may crash.  The project contains some reference files, which have information about the file names and anatomical structures covered in them. This is very useful information because in this way you can divide the whole project into regions/systems and work with one region/system at a particular time.  The image given above is of "Brain Stem" which is made up of 11 .obj files.    Edit # 2:  @poor has written an add-on for blender in order to import multiple .obj files simultaneously in a more user friendly way. I am now using this addon and it works flawlessly.  Here is the link:   How to add this Addon:  Step # 1:  First of all copy the code of the plugin and create a file named io_import_multiple_objs.py   Step # 2:  In blender, goto "User Preferences" > "Addons" > "Install from file" and select the "io_import_multiple_objs.py" file you created in step # 1.    Step # 3:  Enable the addon    Now you can batch-import multiple .obj files. :D   Thanks @poor for this great addon :D


What if user starts begging for upvote on his question?

The OP wrote: "Please upvote me, if my question is good." Isn't this a bit weird? Upvoting or downvoting a question shouldn't be prompted. Isn't this looked down on? I feel this is very undignified. It should be one's personal choice whether one likes the question and if they want to upvote the question right?


Describing a group of children - year or years, old or olds

Is this sentence correct if I describe a group of children?     Children 6-7 years olds.


I was wondering on where the origins of the word tar to mean thank you came from. I have reached tar and have come up with this definition     Tar is a dark brown or black viscous liquid of hydrocarbons and free carbon, obtained from a wide variety of organic materials through destructive distillation.   How does this relate to being thankful?


I'm creating side skirts for a truck and I am duplicating the frames I want. The problem is it's making the duplicated object into another object. How do I put it into the same one?


$X$ Hausdorff $\Leftrightarrow$ $\forall$ disjoint compacts $K_1,K_2:\exists$disjoint open sets $U,V$ including $K_1,K_2$ respectively

Show that a topological space $X$ is separated (Hausdorff) if and only if for all compact subspaces $K_1$ and $K_2$ of $X$, there are disjoint sets $U$ and $V$ of $X$ such that $K_1 \subseteq U$ and $K_2 \subseteq V$.  I have one way ($\Leftarrow$), but I'm having some problems finding a neat proof from left to right. I think I've found a solution, but it's quite tedious. Here it is:  We assume $X$ is separated and we take two disjoint compact subspaces $K_1$ and $K_2$ of $X$.  Let's fix $x \in K_1$. Then $\forall y \in K_2$, there are two disjoint open sets $V_{x,y}$ and $U_{x,y}$ including $x$ and $y$ respectively. All these $U_{x,y}$ cover $K_2$ and therefore we can extract a finite number of them that cover it too $\{U_{x,y_i} : i = 1,...,n\}$ ($n \in \mathbb{N}^{\ast}$), and we take the correspondent $\{V_{x,y_i} : i = 1,...,n\}$. Then the sets $V_x:= \bigcap_{i = 1}^n V_{x,y_i}$ and $U_x := \bigcup_{i = 1}^n U_{x,y_i}$ are open disjoint sets.  Now I do this for all $x \in K_1$ and get a set $\{V_x : x \in K_1\}$ of open sets covering $K_1$, and corresponding $\{U_x : x \in K_1\}$ such that $\forall x \in K_1, V_x \cap U_x = \emptyset$. Since $K_1$ is compact, I now extract a finite number of those open sets $\{V_{x_i}: i=1,...,m\}$ ($m \in \mathbb{N}$), which still cover $K_1$ and the corresponding $\{U_{x_i}: i=1,...,m\}$.  Now $V :=\bigcup_{i = 1}^m V_{x_i}$ is open and covers $K_1$. While $U :=\bigcap_{i = 1}^m U_{x_i}$ is open too and covers $K_2$. Moreover $U \cap V = \emptyset$. That finishes the proof.  Is this approach correct? But more importantly, isn't there a less tedious way?


I want to read an equation in latex, this is my code:  $$ \left \{ \begin{array}{l} \hat{p}=1/N \sum_{i=1}^{N} I_{i} \\ \begin{split} \mathrm{Var}(\hat{p})= &  1/(N^2) \sum_{i=1}^{N} \sum_{j=1}^{N} \mathbb{E}[I_{i},I_{j}] - p^2  \\& =  1/(N^2) \sum_{i=1}^{N} \sum_{j=1}^{N} R(\tau_{ij})  \end{split} \end{array} \right $$   but it gives me this error:   ! Missing delimiter (. inserted). <to be read again> $   I do not understand how to correct it please.


When the number of observations is even, say 2n, it is customary to define the median as the average of the nth and (n +1)st rank-ordered values.  The clause 'say 2n' between two comma appears to be grammatically wrong since it neither contains subject nor has reduced relative clause structure. What structure is this?


I am having problem identifying what and how is some property of "local" scope in JS. How is the property _secretNum "private" when it is clearly available outside the scope of the constructor as per below line.  document.write("Value of secretNum in secret: " + secret._secretNum             + "
");   The full code is as below,


I'm now studying metric space. Here, I don't understand why definitions of distance and norm in euclidean space are repectively given in my book.  I understand the difference between two concepts when i'm working on non-euclidean space, but is there any even slight difference between these two concepts when it is $\mathbb{R}^k$?


I am a newbie programmer in Android, I am Stuck Here, Achieving this, Wanted to Print Out Url Contents In an EditText With this Chunk.  private class MyTask extends AsyncTask<String, Void, String> {     Activity activity;      @Override     protected void onPreExecute() {         super.onPreExecute();     }      @Override     protected String doInBackground(String... strings) {         String url = strings[0];          try {             StringBuilder sb = new StringBuilder();             URL link = new URL(url);             BufferedReader in;             in = new BufferedReader(new InputStreamReader(link.openStream()));             String inputLine;             while ((inputLine = in.readLine()) != null)                 sb.append(inputLine);             in.close();             return sb.toString();         } catch (Exception e) {             e.printStackTrace();         }          return null;     } @Override     protected void onPostExecute(String s) {         super.onPostExecute(s);         EditText editText = activity.findViewById(R.id.edittext);         editText.setText(s);     }   And Main Activity (onCreate): as Follows          new MainActivity.MyTask().execute("http://yahoo.com");   And here is my fancy looking Error :/     06-20 19:09:08.466 31168-31175/? E/art: Failed sending reply to debugger:        Broken pipe       06-20 19:09:09.563 31168-31168/com.curiosityworks.www.weatherlite        E/AndroidRuntime: FATAL EXCEPTION: main       Process: com.curiosityworks.www.weatherlite, PID: 31168       java.lang.NullPointerException: Attempt to invoke virtual method         'android.view.View android.app.Activity.findViewById(int)' on a null object  reference                                                                                at com.curiosityworks.www.weatherlite.MainActivity$MyTask.onPostExecute(MainActivity.java:102)                                                                                at com.curiosityworks.www.weatherlite.MainActivity$MyTask.onPostExecute(MainActivity.java:70)                                                                                at android.os.AsyncTask.finish(AsyncTask.java:667)                                                                                at android.os.AsyncTask.-wrap1(AsyncTask.java)                                                                                at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)                                                                                at android.os.Handler.dispatchMessage(Handler.java:102)                                                                                at android.os.Looper.loop(Looper.java:163)                                                                                at android.app.ActivityThread.main(ActivityThread.java:6377)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)   Please Guide me, I am Wasting a lot of precious time to figure it out, it will be a big help.


There's no help in Help in Android app. Nothing about how to use the app. Maybe the link should be called 'About'. Going to meta is not real documentation.


How to add multiple conditions in LINQ join using method syntax

I need to add multiple condition on joins. In the below LINQ I need to add condition something like this. And need to use values from different entities in those conditions. And this needs to be done using this Method syntax only. I was able to do it in query syntax. But the requirement is that behind the scene it should generate one query or as less query as possible. The query syntax using multiple "from" or multiple "join" executes multiple SELECT queries. My second issue is that on the commented out line I need to filter on r4.VersionNo==r3.VersionNo. It's failing. , ppp => ppp.r2.KeyColumn, t => t.KeyColumn && t.MyID==r1.MyID && t.Column2==r2.Column2, (ppp, t) => new { ppp, t }) Tried (didn't work):  , ppp => ppp.r2.KeyColumn, t => (t.KeyColumn, t.MyID, t.Column2), (ppp, t) => new { ppp, t })  Code: var result = repo1.Join(repo2, r1 => r1.KeyColumn, r2 => r2.KeyColumn, (r1, r2) => new { r1, r2 })                  .Join(repo3, ppp => ppp.r2.KeyColumn, t => t.KeyColumn, (ppp, t) => new { ppp, t })                  .Join(repo4, pppt => pppt.ppp.r2.KeyColumn, r4 => r4.VersionNo, (pppt, r4) => new { pppt, r4 })                  .Select(a => new MyObject                     {                         KeyColumn = a.ppp.r1.KeyColumn,                         AnotherKeyColumn = a.ppp.r2.AnotherKeyColumn,                  })?.ToList();


Set CMD Prompt to always be the current directory name in Windows XP?

I would like my command prompt to display just the directory name I am currently in, not the full path. If I am working in C:\Mystuff\Junk\ I would like the command prompt to display:  Junk>   If I then enter cd.., I want the command prompt to display:  Mystuff>   If I then enter cd .\Junk\Bla, I want the command prompt to display:  Bla>   Is this possible in Windows XP? I've searched for an answer, but I can't find anything that satisfies the query. There was a question similar to this, but no answer was provided.


ubuntu 18,10 no wifi? been trying to figure this out. would someone help me  $ lspci 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08) 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) 00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08) 00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) 00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 21) 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1) 00:1f.0 ISA bridge: Intel Corporation Intel(R) 100 Series Chipset Family LPC Controller/eSPI Controller - 9D4E (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723


Why can't a  block contain a string constant with the word "" inside?

OK this is purely out of curiosity: I was expecting the following markup to be valid inside an HTML document:    <script>   var test = "<script>why? </script>"; </script>     But no: this results in an "unterminated string constant" error, the first occurrence of </script> terminating the block, even though it's enclosed with quotes.  Can someone explain why this is happening (links to a specification appreciated :)?


How can I keep multiple live/bootable ISO images on a single USB drive?

I am looking to create a USB flash drive that I can put multiple  ISO images on and select which boots from startup. The ideal candidate supports Linux and Windows-based ISO images, and is relatively simple. It also must have some reasonable process for adding and removing an ISO image from the drive/list.    Things that I'm not looking for in this specific question:    or other swiss-army knife live CDs. The point is to boot any one of multiple CDs, not to boot a (certainly useful) utility CD. Installing a single live CD to a USB drive. I'd like to have multiple ISO images, selectable at startup.   I don't have a specific purpose in mind, possibilties include a single drive with a  variant, Ubuntu desktop, UBCD4Win for DOS, the Offline NT Password Cracker, etc.  Flexible and easy to use are the name of the game!


Are we slightly lighter during the day and slightly heavier at night, owing to the force of the Sun's gravity?

Using $g = \frac{Gm}{r^2}$, the force on a point mass located at 1 AU from the Sun ($m = 2 \cdot 10^{30} \text{ kg}$) is about ~0.006 N/kg.  Does that mean that, e.g., a 70 kg person is ~42g lighter during the day, and ~42g heavier at night? That seems like it could make a big difference for things like measuring gold bars or other weight-sensitive items. (Gold arbitrage: buy your gold during the day and sell it during the night! Risk-free profit!)  This makes me suspect that I'm overlooking something obvious, because a ~0.05% weight difference seems like something everyone would have noticed long ago. So what am I missing?    Edit: A few answers below indicate that there shouldn't be any weight difference, because the Earth orbits the Sun in free-fall. But if that's the reason, does that mean that a 1:1 tidally-locked Earth-Sun system wouldn't experience differential gravity from the Sun on opposite sides? That doesn't seem right.


I want to find, say, 10 most common word in a text file. Firstly, solution should be optimized for keystrokes (in other words - my time). Secondly, for the performance. Here is what I have so far to get top 10:  cat test.txt | tr -c '[:alnum:]' '[\n*]' | uniq -c | sort -nr | head  -10   6 k   2 g   2 e   2 a   1 r   1 k22   1 k   1 f   1 eeeeeeeeeeeeeeeeeeeee   1 d   I could make a java, python etc. program where I store (word, numberOfOccurences) in a dictionary and sort the value or I could use MapReduce, but I optimize for keystrokes.   Are there any false positives? Is there a better way?


Import a Oracle DMP file into a Fresh install of oracle

A client sent us an Oracle database we need to test against. We don't use Oracle or have any in-house Oracle expertise.  We need to setup the database so we can connect to it and debug a problem.  I did a fresh install of Oracle 9 (the version the client is running) and the management tools.  For the life of me, I cannot get it to import the data. It should not be this complicated. I must be getting something wrong.  I've tried:  imp 'sys/password AS SYSDBA' file=c:\database.dmp full=yes log=implog.txt   and got:  Connected to: Personal Oracle9i Release 9.2.0.1.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.1.0 - Production  Export file created by EXPORT:V09.02.00 via conventional path  Warning: the objects were exported by SYSTEM, not by you  import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set . importing SYSTEM's objects into SYS . importing ABCDE's objects into ABCDE IMP-00003: ORACLE error 1435 encountered ORA-01435: user does not exist Import terminated successfully with warnings.   But nothing shows up in the manager as far as tables in any schema and I'm at my wits end.


How do I fix a "Problem with MergeList" or "status file could not be parsed" error when trying to do an update?

The computer gave me this output in a window:  E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   How can I fix this?


Table dbsize loading with data of every database size every night.   dbsize (id, database_name, database_size, insert_date)    It looks like this:   - 1   dbname1   1000   1/1/1900  - 2   dbname2   2000   1/1/1900   - 3   dbname3   3000   1/1/1900   - 4   dbname1   1200   1/2/1900   - 5   dbname2   2200   1/2/1900   ... etc  I need to get result like this   - insert_date dbname1 dbname2 dbname3  - 1/1/1900      1000      2000     3000  - 1/2/1900      1200      2200   Tried with this sql, but nothing:  declare @ColumnNames NVARCHAR(MAX) = ''  declare @SQL NVARCHAR(MAX) = ''  select @ColumnNames += QUOTENAME(database_name) + ',' from  dbo.dbsize   set @ColumnNames = LEFT(@ColumnNames, LEN(@ColumnNames)-1) set @SQL =  'select * from ( select     database_name   ,insert_date    ,id     from dbo.dbsize) as BASEDATA  PIVOT   (      count(id)   for database_name   in      ('          +@ColumnNames +           ')  as PivotTable'   execute sp_executesql @SQL


I am trying to learn how to use bibtex. I found this  and created two files:  % Untitled.tex  \documentclass[12pt]{article} \usepackage{natbib}  \begin{document}  \title{BibTeX in action} \author{Martin J. Osborne} \date{2008-1-13}  \maketitle  \section{Introduction} This document illustrates the use of BibTeX\@.  You may want to refer to \cite{ahu61} or \cite{ab94} or \cite{m85}.  Or you may want to cite a specific page in a reference, like this: see \citet[p.~199]{m85}.  Or perhaps you want to cite more than one paper by Maskin: \cite{m85, m99}. Or you want to make a parenthetical reference to one or more articles, in which case the \verb+\citealt+ in the \texttt{te.bst} bibliography style omits the parentheses around the year (\citealt{ahu61}).  \bibliographystyle{te}  \bibliography{bibl}  \end{document}  % bibl.bib @article{ahu61,        author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},        title={Constraint qualifications in maximization problems},        journal={Naval Research Logistics Quarterly},        volume={8},        year = 1961,        pages = {175-191}      }  @book{ab94,        author = {Charalambos D. Aliprantis and Kim C. Border},        year = {1994},        title = {Infinite Dimensional Analysis},        publisher = {Springer},        address = {Berlin}      }  @incollection{m85,        author={Maskin, Eric S.},        year={1985},        title={The theory of implementation in {N}ash equilibrium: a survey},        booktitle={Social Goals and Social Organization},        editor={Leonid Hurwicz and David Schmeidler and Hugo Sonnenschein},        pages={173-204},        publisher={Cambridge University Press},        addess={Cambridge}      }   Now the question arises what should I do with them?  I didn't find any manual for BibTex with TexWorks.  I compiling Untitled.tex into pdfLaTeX and see ? instead of citations. I compiling bibl.bib into BibTeX and see error   I couldn't open file name `bibl.aux'.


Will 2x Intel(R) Celeron(R) CPU N2840 @2.16GHz support 64bit Ubuntu18.04?

I have : 2x Intel(R) Celeron(R) CPU N2840 @2.16GHz .  Will it support 64bit Ubuntu18.04 ?   I have checked using lshw -class CPU that width is : 64bit.   But  says I might require AMD64 etc as mentioned for 64bit. I want to install 64bit, but am not sure if it will work.  Other spec : 2GB RAM.


How can two convergent series be multiplied to construct a series that diverges?

One thing to take note is that I am not looking for an example of one case, I am trying to show this in a general form. I understand that this is going to have to involve conditional convergence and proving that series a and b are conditionally convergent, but I don't know where to begin.


I have the following exercise: Let $S_1$ = 1  and for $n \geq 1$  let $S_{n+1} = \sqrt{S_n + 1}$. Prove that the limit of this sequence is $\frac{1}{2}(1 + \sqrt{5})$


set TextView number value stored in firebase

I want to display data on the profile page stored in firebase, but when I try to display text with only numbers, and run the application and then go to the profile page for the user, it gives an error like this:  E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.drheartbeatmonitor, PID: 3415 java.lang.RuntimeException: Unable to start activity  ComponentInfo{com.example.drheartbeatmonitor/com.example.drheartbeatmonitor.Profile}:  java.lang.NullPointerException: Attempt to invoke virtual method 'void  android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)     at  android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)     at android.os.Handler.dispatchMessage(Handler.java:106)     at android.os.Looper.loop(Looper.java:223)     at android.app.ActivityThread.main(ActivityThread.java:7656)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void  android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference     at com.example.drheartbeatmonitor.Profile.onCreate(Profile.java:67)     at android.app.Activity.performCreate(Activity.java:8000)     at android.app.Activity.performCreate(Activity.java:7984)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)      at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)      at  android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)      at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)      at android.os.Handler.dispatchMessage(Handler.java:106)      at android.os.Looper.loop(Looper.java:223)      at android.app.ActivityThread.main(ActivityThread.java:7656)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)    This is my code : 1.login page: String ID_Device = snapshot.child(Username).child("ID_Device").getValue().toString(); String HealthInsure = snapshot.child(Username).child("Health Insure").getValue().toString(); intent.putExtra("ID_Device", ID_Device); intent.putExtra("Health Insure", HealthInsure);  2. profile page String ID_Device = Patient.ID_Device; String HealthInsure = Patient.HealthInsure; health_insure.setText(HealthInsure); ID_Dev.setText(ID_Device);


Running Ubuntu 20.04 LTS: How to Graphically Create A Bootable USB Windows 10 Flash Drive?

I'm running Ubuntu 20.04 LTS and I want to create a Windows 10 bootable USB for someone, but when I tried the different ways to get Woe USB running, it seems like it's not yet supported on Ubuntu 20.04 LTS. Is there another GUI tool that runs on Ubuntu that flashes Windows 10?  MultiWriter just resulted in "no bootable disk" upon starting PC. WoeUSB keeps giving errors upon installing. Etcher does not support it, but even after I attempted to do so, "no bootable disk found."  I am not looking for terminal-based solutions, rather GUI applications to flash Windows, and I'd appreciate any pointers.


I tried to plot the following function but it didn't work:  y = 300 + 1000/x + 2.5x.  This is the document, but instead of the plot it only shows the axis.  \documentclass{article}  \usepackage{pgfplots}% This uses tikz \pgfplotsset{compat=newest}% use newest version  \pgfmathdeclarefunction{Function}{1}{%   \pgfmathparse{300 + 1000/x + 2.5}% }  \tikzset{My Line Style/.style={smooth, thick, samples=400}}  \begin{document} \begin{tikzpicture} \begin{axis}[     xmin=0.0,     xmax=250,     ymin=0,     ymax=50,     axis x line=bottom,     axis y line=left,      xlabel= $y$,     ylabel=Cost,      xtick={250},     xticklabels={250},         restrict x to domain=0:250,     ]        \addplot+[My Line Style, color=black, samples at={1,2,3,4,...,249,250}] (\x,{Function(\x)});   \end{axis}  \end{tikzpicture} \end{document} \documentclass{article}


Informal language: “you guy’s” vs. “your guy’s”

You guys and Your guys are somewhat informal in English language.   Typical example usages:     Do you guys want to come around to watch movies tomorrow night?   Is addressing a party of more than one, extending an invitation the them.   Similarly:     Do you guys sell pencils?   Said to a shop assistant, is asking whether the collection of people (the store), sell pencils.   In both of these examples, you guys refers to a collective entity.   'Your guys' might refer to the ownership of 'guys' by a single person.   eg.      Can you send your guys around to my house to clean my windows?   In this example, the guys belong to, in the sense of 'are employed by', the person being asked.   And similarly:     Can you drop your guys' tools around at mine to be cleaned?   Here, the guys belong to the employer, and the tools belong to each of the guys.   The question is, what about when I'm referring to ownership by a collective entity?  Eg:     I love your guy's beer.   Is this correct?  Or should it be:     I love you guy's beer.


Hypothetical maximum energy of a single photon

I'm no physicist so it might be a stupid question but is there a maximum energy a single photon can have?  My idea was, that there might be restriction for the minimum wavelength and I thought about the Planck length: $1.616 · 10^{−35}$ m  So my hypothetical photons energy would be:  $$E=hf=\frac{hc}{\lambda}$$  So I put the values inside: $$E=\frac{6.62607015 \cdot 10^{−34}\cdot 299792458}{1.616 \cdot 10^{−35}} \frac{\text {J s m}}{\text{s m}}$$  which gives me the value: $1.23*10^{10}$ J  Is this the maximum amount of energy that a single photon can have, or is the concept of using the planck length as minimal possible wavelength not correct?   And are photons with that much energy even existing in the universe?


What is the best way to open PSD file except via GIMP?

I'm tired to open PSD clearly via GIMP, So I need another good way to open it.


Question  If I have import statements nested in an if/else block, am I increasing efficiency? I know some languages do "one passes" over code for import and syntax issues. I'm just not sure how in depth Python goes into this.  My Hypothesis  Because Python is interpreted and not compiled, by nesting the import statements within the else block, those libraries will not be imported until that line is reached, thus saving system resources unless otherwise needed.  Scenario  I have written a script that will be used by both the more computer literate and those are lesser so. My department is very comfortable with running scripts from the command line with arguments so I have set it up to take arguments for what it needs and, if it does not find the arguments it was expecting, it will launch a GUI with headings, buttons, and more verbose instructions. However, this means that I am importing libraries that are only being used in the event that the arguments were not provided.  Additional Information   The GUI is very, very basic (A half dozen text fields and possibly fewer buttons) so I am not concerned with just creating and spawning a custom GUI class in which the necessary libraries would be imported. If this gets more complicated, I'll consider it in the future or even push to change to web interface. My script fully functions as I would expect it to. The question is simply about resource consumption.


find -delete does not delete non-empty directories

The command  $ find ~ -name .DS_Store -ls -delete   works on Mac OS X, but  $ find ~ -name __pycache__ -type d -ls -delete   does not - the directories are found but not deleted.  Why?  PS. I know I can do   $ find ~ -name __pycache__ -type d -ls -exec rm -rv {} +   the question is why find -delete does not work.


Evaluate $\lim_{x\rightarrow 0} \frac{\sin (6x)}{\sin(2x)}$ without L'Hopital

I am trying to evaluate the following limit without L'Hopital's:   $$\lim_{x\rightarrow 0} \frac{\sin (6x)}{\sin(2x)}$$  I know I have to use the fact that $\frac{\sin x}{x} = 1$ but I don't know how to get the limit from the above to $\frac{\sin x}{x}$ or even a portion of it to that. I know how to evaluate limits like the following   $$\lim_{x \rightarrow 0}\frac{\sin 3x}{x} = 3$$  if that's any help.  Any hints would be appreciated  Thanks!


How do I check if an element exists if the element is created by .append() method? $('elemId').length doesn't work for me.


What is the liquid that forms after chicken goes through the freeze-thaw cycle, and how can I extract it more efficiently?

When I vacuum seal chicken pieces, freeze them, and then thaw them again, there is always a small amount of liquid in the bag after the thaw. When this liquid hits hot oil, it forms a crispy, airy puff that is absolutely delicious. I'm trying to figure out what the liquid is, and how I can extract more of it, so that I can make crispy fried chicken liquid for garnishes.


Minimal $ab$ for Rational Number $a/b$ in an Interval

Given rational numbers $L$ and $U$, $0<L<U<1$, find rational number $M=a/b$ such that $L \le M<U$ and $(a\times b)$ is as small as possible---$a$ and $b$ are integers. For example,    If $L=66/101$ and $U=19/29$ then $M=17/26$. If $L=66/101$ and $U=19/28$ then $M=2/3$.   Right now I'm using a naive search that is exponential in complexity. Is there a better method?  If it is of any help, it can be assumed the prime factorization of numerator and denominator of $U$ and $L$ are known.


I gave a scammer my telephone number, address, and name. How bad is it?

Updated question because old one was embarassing: I saw a spam email from "PayPal" and I didn't realize that it was a phishing attempt. I gave the phishing site my name, telephone number, and email. What could he do with them?  Old question: Well, I saw a spam email, but I didn't realize that it's really a scam at first. I gave him my telephone number, address, and name. What would he do with them? Could he ruin ALL of my reputation with it?


Is there a limit in angular speed in special relativity?

I was thinking in the following problem:     Suppose I have a bar of lenght $l$. If I spin it with constant angular velocity $\omega$, according to the special theory of relativity, is there a limit to it's angular velocity?   I was thinking that maybe I should make the limit $ω_{\text{max}}=c/l$, but it doesn't make sense to me that the limit should depend in the bar's length. And even if this is right, what happens to the bar's shape? Does it remain straight?


Sci Fi horror movie title (probably mid-70s). Astronauts attacked by giant one-eyed alien with death ray

There were a few astronauts. Possibly 3, they went to space I think on a rescue mission of another crew. While in space, they saw the bodies of the other crew floating in space. They managed to fish one in that was still alive. But later it turned to attacked the crew. But I think they managed to overcome it.   Later this crew landed on a planet. On this planet, there was this giant one eye alien with long legs that shot out death ray. They looked kinda like War of the World aliens. One crew was zapped and disintegrated.   Finally, one crew sacrificed himself by walking into this large white sphere like object. As he walked in, he became a skeleton and the sphere was destroyed. I think the remaining one crew managed to escape.


How to remove the name of the language? Menu Language Icons

How to remove the name of the language? Use the module Language Icon, I want to make only the flags.


change style of figure number appearance in figure caption

UPDATE: it has been pointed out to me that the answer to this problem has been posted  in the context of re-numbering of tables.    A (not very exhaustive) search on "figure numbers" did not reveal a previous question about my problem, so here it goes:  Is there a way to add a prefix (say, a single letter) before the figure number in the figure caption?  Background: I want to create a supplementary data file in which the figures (say, Fig. S1, Fig. S2, etc.) appear differently from those in the main file (where they are called Fig. 1, Fig. 2, etc., as usual).  Is there a command, counter, or script available for this? Thanks in advance.


Updating from such a repository can't be done securely, and is therefore disabled by default(For Kubuntu 19.04))

Err:16  precise-backports InRelease   The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5  W: GPG error:  precise-backports InRelease: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5  E: The repository ' precise-backports InRelease' is not signed.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details.  W: GPG error:  precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5  E: The repository ' precise Release' is not signed.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details.  I got these errors please help


YES I know a Linear Mapping $f(x)$  is actually which satisfy $f(ax+y)$=$a \cdot f(x)$+$f(y)$.  But I just wondered $f(x)=m \cdot x+c$ is not a linear map even though it's graph is a straight line which is linear obviously why is this so?  kindly help, thanx n regards.


A set is infinite iff there is a one-to-one correspondent with one of its proper subsets?

Maxwell Rosenlicht claims in "Introduction to analysis" that a set is infinite if and only if it may be placed into one-to-one correspondence with a proper subset of itself.  He says this is self-evident because a finite set cannot be placed into a one-to-one correspondence with a proper subset of itself (because it has fewer elements), and whilst this is reasonable - I cannot follow Rosenlicht in that "the above therefore follows obviously". Why must a set be infinite just because of some property of finite sets?


Chosing optimal k and optimal distance-metric for k-means

I have a data-set with roughly 20-dimensions and millions of points which I want to cluster.  The goal is to find a set of clusters which:   Are as distinct as possible from each other (minimum coupling) between clusters, i.e. maximum average distance between centroids With instances as similar as possible (maximum cohesion) inside the clusters, i.e. minimum average distance between the points within each cluster.   Without considering the domain, is there a good metric to help determine the optimal $k$ I should choose?  Intuitively, I would pick $k=\sqrt{N}$ for a data-set in two dimensions, and $k=\sqrt[M]{N}$ for a data-set with $M$ dimensions and $N$ data-points, but I have a hunch that there are better methods.  A related and complementary question is which distance metric to use. Due to the curse of dimensionality, I know that euclidean distance becomes a poor choice as the number of dimensions increases.  Note that this question is different than  (this one asks about clustering rather than k-NN classification)


LaTeX Warning: Empty bibliography on input line

I write the shortest code I can to cite and print bibliographies on Texmaker and texLive2020 as shown. \documentclass{article} \usepackage[backend=biber, style=apa, sorting=nty]{biblatex} \addbibresource{citations.bib} \begin{document} read \cite{marcus}. \printbibliography \end{document}  with its respective citations.bib file. @book{marcus, author={Mitchell P. Marcus}, title={Switching circuits for engineers}, year={1975}, publisher={Prentince hall}}  But I always get the message "Empty bibliography" and a document without my bibliography. I show a screenshot of some things that I have done. I have run the console and typed biber file. I have changed Bib(la)tex to bibtex biber bibtex.exe biber.exe bibtex8.exe bibtexu.exe all in its respective "C:/texlive/2020/bin/win32/biber.exe" % directory.  I really don't want to use \begin{thebibliography}{9}\bibtem{m..} because my bibliography can be to extensive and repetitive in some of my documents where I really could use this simplifying tool (that is why I use latex). I've been days struggling with this, I would really appreciate your help. Thanks in advance.


A positive polynomial is the sum of two squares in $\mathbb{R}[X]$

Let $P\in\mathbb{R}[X]$ be a positive polynomial.  I want to show that there exists $A,B\in\mathbb{R}[X]$ so that $P=A^2+B^2$    $\displaystyle P=a\prod_{k=0}^q(x-a_k)\prod_{k=0}^{2p}(x-b_k)=a\prod_{k=0}^q(x-a_k)\prod_{k=0}^p(x^2-2\Re(b_k)+|b_k|^2)$ where $a$ is the leading coefficient, $a_k$ are the real rooks, $b_k$ are the complex roots.  What can i do now ? I know that the identity $(a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2$ should come in handy, but I can't figure out :  1) How to show that the product real roots is a square  2) How to use the above identity for the complex roots.  If I can solve those two points, then I can solve the problem.


Ubuntu can be used as Hard Real time OS?

I want OS for Beagleboard which can support HARD REAL TIME OS Feature. is Ubuntu HARD Real time OS ?


LiDAR (.las) to bare-earth DEM: average points spacing and cell size?

I am using ArcGIS 10.1 to generate a DEM (bare earth) from LAS dataset. To accomplish this, I use Las Dataset to Raster tool as described in .  I have read here and there in the web that the the cell size of the output raster should be set at a value corresponding to the average LAS points spacing; somewhere else, they suggest to use a value that is three times the average point spacing.  Now, since I wish to produce a bare earth DEM (i.e., with only ground returns), I am wondering if the cell size has to be set at the average point spacing of the whole LAS dataset (i.e., comprising non-ground, ground, etc), or exclusively of the ground points?  On the basis of the ArcGIS's point file information tool (), I managed to get statistics for each LiDAR class. The average spacing (whole dataset) is 1.5 m, while for ground points only is 0.67.  Any insight into the issue?


I'm running Win10 1709 Home. When I try to disable windows update service by stopping the services first then disabling service, it stops, but upon rebooting services comes back as if nothing had been done.   I tried the following power shell command in admin mode and still same result  stop-service wuauserv set-service wuauserv –startup disabled   When I try to disable from Registry, Win10 Home does not have the following Registry Folder to enter reg keys  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\   Any help to accomplish this is greatly appreciated


git: How to find file history from blob ID

I'm trying to replicate Subversion's $Id: $ feature with git. I know that I can use .gitattributes to set the ident attribute, which will allow me to embed the blob ID in a source code comment. That's the basic requirement, and I'm covered.  But I'm struggling to work out how I can make the ID useful in a practical sense. git log and git blame require a filename, so I can't use the ID with them. git show just shows the blob contents, but doesn't give any link to the commit.  What I'd like is, given a blob ID, to get the commit that created that blob. (Ultimately, to get git log or git blame data for the file, or to be able to check out a revision that contained that file).  I appreciate that commit history in a distributed system like git is more complex than subversion, but if I can get anything as a starting point, that would be sufficient. All I really need is to be able to demonstrate that given the source code, I can track back into the version control history.


Display Description of choice column type on top

I have created a list with type Choice and set Description for the same. I have set Radio Buttons as "Display Choices Using". When i click on Add New item the Description is shown at the bottom. Is there any way we can show the description on "Top" using Jquery/Designer/CSS with out loosing the UI Format. Attached image is an example  I know we can do it through infopath but i have some Java script in the Edit item.aspx page so using Infopath doesnot suite this requiremen


I actually read a lot about times eries and there I often read about "loess decomposition". But what is that exactly? It exists in package STL or packages about outlier-detection.  Can someone give me an easy example about the how loess decomposition works?  Example:  For example I got the timeseries with quadtr values:  2014: 4 5 3 9 2015: 5 4 4 8 2016: 4 5 3 8   I can see that the season is in the 4th quadtr, but how stl works in this example? –   Why duplicatet?  I would like you understand STL with this small example. And in the other post you linked, there is no reproducable, simple example to understand the algorithm.


Can somebody help? I have been soaring every day trying to find Uxie, along with the Pathless Plain, Trackless Forest, Fabled Cave, and I also might want to know the chances of finding Crescent Island.


How to compare 2 times in 24 hour format in javascript

What is the best wayto compare 2 'time' in 24 hour format in javascript?  I have converted the time to 24 hour format.   For eg:  t1, t2; //These are 2 time in 24 hour format of **string** type         //Like t1="19:32" and t2 = "02:09"  if(t1<t2){} // Will this directly work for all times?   Any leads are appreciated.


liminf and limsup with characteristic (indicator) function

So first let me state my homework problem:  Let $X$ be a set, let $\{A_k\}$ be a sequence of subsets of $X$, let $B = \bigcup_{n=1}^{+\infty} \bigcap_{k=n}^{+\infty} A_k$, and let $C = \bigcap_{n=1}^{+\infty} \bigcup_{k=n}^{+\infty} A_k$. Show that (a) $\liminf_k\; {\xi_A}_{_k} = \xi_B$, and $(b)$ $\limsup_k \;{\chi_A}_{_k} = \chi_C.$  I know that, in the context I am familiar with, that $$\liminf_{k\rightarrow +\infty}\; X_k = \bigcup_{k=1}^{+\infty} \bigcap_{n=k}^{+\infty} X_n$$ and $$\limsup_{k\rightarrow +\infty}\;X_k = \bigcap_{k=1}^{+\infty} \bigcup_{n=k}^{+\infty} X_n.$$   I also know that the characteristics (indicator) function is defined as $\chi_A(x) = \begin{cases} 1, & x \in A \\ 0, & x \notin A .\end{cases} $  So I wrote out $B$ in some of its `glory': $B= (A_1 \cap A_2 \cap A_3 \cap \cdots) \cup (A_2 \cap A_3 \cap \cdots) \cup (A_3 \cap A_4 \cap \cdots) \cup \cdots$, and as the first argument is the smallest, with increasing size to the right, the last term in the expression for $B$ would be $B$, which would be the largest.  So if I replace the $X_k$'s above with $\chi$'s I still don't see how I can get the correct answer - though it looks pretty clear from the definition of $B$ and that of $\liminf$ being basically the same, except in this case for the $\chi$.  Any direction would be greatly appreciated. By the way, I have checked out  but I was somewhat confused by the topology, the meets/joins, etc.  Thanks much, Nate


Textures Not Showing in Viewport (Blender 2.8)

I'm working in the new 2.8 with someone else's file (made in a previous version of Blender), and I can't get the textures showing in the viewport. I've relinked all of them to the correct location on my computer and Blender can seem to find them, but just won't display them in the viewport. I've made sure I'm in LookDev mode, and also added a lamp, but still nothing.  In 2.79, it was always just a matter of finding missing files and that's it... Can anyone see what I'm doing wrong here?  Thanks!


How to deal with a player who makes oddball characters that don't fit the game?

One of my best friends always makes....interesting characters. For example, in anyone else’s campaign he always uses home brew.  He takes his homebrew from d and d wiki and likes them because they’re different. All the time, he says it’s official because someone else made it and I always say it’s too op. I’ve talked to my friends and they all agree that him wanting to do these unbalanced homebrew is a problem.    Sometimes, he makes stuff up about what the race can do. For example, he played a bee forged in my friends campaign and he said he could memorize a map on the wall with his “photographic memory.” I said it wasn’t something in the race description but he started to say it was obvious that he had that ability since he’s a robot. The DM let it slide and he memorized it.    In another case, he wanted to pick a dragon race. I said he should just use Dragonborn but he wanted to fly. This race basically traded dragon breath for a flying speed of 60 ft.  I don’t think he's making these odd characters for the power, he’s doesn’t seem like the type of person to do that, he just wants to be creative. He can be creative, but he doesn’t need to be the odd one out.  Even in the GURPS game I ran, I wanted a realistic campaign. So he made a kid raised by wolves who had a stick in his mouth and he has a wolf brother that does whatever he says. I need help telling him that he needs to make, to put it bluntly, better characters. I want to tell this to him without him becoming mad/sad.  I have told him I don’t allow homebrew in my campaigns, but he keeps pitching odd characters and I had to cave.


Are there other force sensitive cultures left in Force Awakens?

I was wondering, why don't other force cultures play a larger role, especially as of Force awakens?  Are there actually not other cultures, with philosophies that aren't divided light/dark?  If there are, why aren't they larger influences in the galaxy?  I think I recall one or two other cultures from the books, but on planets that were very isolated... but I would expect to see a lot more of them, reasonably, from all the leftover traditions that 'discovered' the force for each species and isolated planet, from religions which also have skills (like meditation, self discipline, visualization, energy work), from old superstitions that would suddenly become relevant once kids were no longer recruited by the Jedi.  The Sith and Jedi define themselves in opposition, and can't really exist without the other.  They might not talk about other force philosophies, and deny middle ground, or third way out, because it lost them recruits. The  citing the "manual for students" suggests the Jedi temple might have recruited kids forcefully, and if they also sqooshed religions, the other cultures might slowly fade.  Perhaps the empire was hunting down force users - even those who were nothing like Jedi but sorcerers/acolytes/shamans/warrior-kings of wherever.  But I don't recall this happening in canon, unless I missed something.  And this theory doesn't fit with what we see of the galaxy in Force Awakens.  If that were the case, I would expect a lot more showing up in Force awakens, as there's nobody left to suppress them and any talented kids who found the traditions/religions/superstitions that would let them teach themselves would have time to grow and find each other...especially if there are people who can figure out some things without prior training, as Rey seems to.  Instead, we have the impression that the Force has been all but forgotten.  So after all that musing, the question I am asking is - is there a reason other Force-using cultures are not more widely represented?  Especially in the last movie, since the Jedi and Sith reduced each other down to a handful, and the possibility of suppression from either seems unlikely.  An in-universe reason, preferably, I'm willing to accept anything from the extended universe or any other canon.  Edit: Many thanks to those who offered answers of other cultures that exist, but the question I'm trying to ask is more, why were there not more of them to begin with, and why didn't those other cultures rise up and take over the galaxy when the Jedi and Sith kind of left a vacuum?  Why would people be forgetting the force exists (as the film seems to suggest) if there are other cultures still out there, and if they are gone, what happened to them?


What is the Time and Space Complexity of this code

What is the Time and Space complexity of this code (Find Uniques and duplicates)? arr = [1,1,1,2,4,2,5] a = [] d = [] for i in arr:     if i not in a:         a.append(i)     elif i in a:         d.append(i) print(a) print(d)


Persistent Network Configuration using KVM and libvirt

Our environment will have a KVM host setup dynamically using kickstart (easy enough).   The hard part is dealing with network configuration and keeping VLAN configuration (and possibly bridge/host config) persistent across reboot.  We have a dynamic environment in which I would like to be able to configure virtual switch ports as you would with a typical switch where the configuration persists after reboot (maybe adds automatically to configuration file)  aka:  cisco: switchport mode access; switchport access vlan 4  brocade: vlan 4; untagged e 0/1/2  I'm not really sure what the 'right' decision is here, whether openvswitch is what i'm looking for of it can just be done using linux bridges and libvirt. I'm pretty lost and having a hard time finding what is available. I know OpenStack can do this, for me though it would be more interesting to know how OpenStack does it so we can implement its parts  So my question: what is the best/easiest way to persist vlan/network configurations on KVM?


Can a Skeleton created by Animate Dead use different equipment?

The description of the Animate Dead spell states:     The target becomes a skeleton if you chose bones or a zombie if you chose a corpse (the DM has the creature’s game statistics).   Assuming this means that the skeleton should use the statistics listed in the MM, I'd expect that a skeleton is able to use a shortsword and a shortbow. Would an animated skeleton be able to use any of the following equipment instead? Would it be considered proficient in said equipment if so?   A weapon of a different type (e.g. a longsword, longbow, crossbow) A magic weapon of the same type (e.g. a +1 shortsword) A shield Armour


I am writing a list sorting extension method. My input is the list and a string with property name and sort direction. This string can have multiple properties like so: "Name ASC, Date DESC" etc.  I already implemented the string parsing and used reflection to get the property itself from the string, but what I am stuck on now is how do I dynamically chain the orderby methods.  something like: _list.orderBy(x=>x.prop1).thenBy(x=>x.prop2) etc.  Is there any way to build this dynamically?


Does WP "out-of-the-box" allow user profile photos?

How does a user upload a photo to their profile? Do you need a plug-in to do that? Right now the user has a gray box with a white silhouette headshot.


Movie where they spray a chemical into the atmosphere to cool the Earth down, causing a new ice age

What is the name of movie where they spray some kind of chemical into the atmosphere to cool down the Earth but then they end up using way too much and the Earth goes into another ice age.


Are there concerns with doing a generalized additive model with a smoothing term of multiple variables?

In R, usually one performs a generalized additive model like so:  library(mgcv) x <- gam(depvar ~ s(indvar1) + s(indvar2) + parametricvar)   Say I want to explore the non-parametric interaction of indvar1 and indvar2.  Is the following kosher?  x <- gam(depvar ~ s(indvar,indvar2) + parametricvar)


Exercise 4.4 in Brezis 'Functional Analysis' , $L^{p}$ functions

I have exercise 4.4 from Haim Brezis's book: Let $f_{1},\dots,f_{k}$ be $k$ functions such that $f_{i}\in L^{p_{i}}(\Omega)$ whit $1\leq p_{i}\leq\infty$ for all $i\in\{1,\dots,k\}$, and $\sum_{i=1}^{k}\frac{1}p_{i}\leq1$. Set \begin{equation*}     f(x)=\prod_{i=1}^{k}f_{i}(x) \end{equation*} Prove that $f\in L^{p}(\Omega)$ with $\frac{1}{p}=\sum_{i=1}^{k}=\frac{1}{p_{i}}$. I tried to reason by induction from $ k = 2 $ as the author's indication says, but in inductive step I have $g(x)=f(x)f_{k+1}(x)$ with $f(x)=\prod_{i=1}^{k}f_{i}(x)$, I would like to see what \begin{equation*}     \|g\|_{p} \leq \|f\|_{a} \|f_{k+1}\|_{p_{k+1}}, \text{whit } 1\leq a \leq\infty \end{equation*} for $p$ such that $\frac{1}{p}=\sum_{1}^{k}\frac{1}{p_{i}}\leq 1$ and $1 =\sum_{i=1}^{k+1}\frac{1}{p_{i}}$ for conclude that $g\in L^{p}$. Could you give me any ideas on how to tackle this problem?


Find the 4th root of the following complex number

find all $z$ in polar form satisfying the following  $z^4 = -1 +i\sqrt{3}$  What I did was the following.  Let $z = r(\cos\phi\ +\ i\sin\phi)$  Therefore $z^4 = 2(\cos\frac{\pi}{3} + i\sin(\frac{\pi}{3}))= r^4(\cos4\phi\ +\ i\sin4\phi)$  Therefore by comparism, $r = 2^{1/4}, \ \phi = \frac{\pi}{12} + \frac{n\pi}{2}$ where $n \in \{0,1,-1,2\}$  But my answer seemed to be wrong and I was hoping if you guys can point out my mistake.  Any help or insight is deeply appreciated.


Map an image file to a UV dome post-version 2.8

Version 2.92. Created a UV sphere and lopped off half, so a hemisphere remains. At present there are by default two panes in the UV Editing tab screen--UV Editor and 3D Viewport, side by side. After Edit Mode!UV!Unwrap in the right pane (in the 3D Viewport), the UV Editor (left pane) changes from a square grid and a cursor in the lower left, into a round grid that can accept a round map--where I've thus done so:  Meanwhile the 3D Viewport (right pane) contains the dome perspective, but it's still gray. I want to map the .png in the left pane onto this dome in the right pane.  But how? UPDATE: Here is something in the "Base Color" field for Material Properties:


I use __FILE__ during logging and debug my program. And when I use it, I get full source file path. So, I wanna write my own macro similar the macro __FILE__.  I looked for a solution, but I found nothing about it.  So, does it exist a CMake way to implement user macro, that will be generate something data similar the __FILE__ macro?


How to extract the amount of pages of a pdf in c#

I need to extract the numner of pages of a pdf in c#. Actually I trying a bit with  but there only a method where i can extract the page size (the rectangle) but nothing where i can see the number of pages. Any idea?      static void Main(string[] args)     {         Console.WriteLine("starting");         String filename = "d:\\tmp\\t1.pdf";          if (File.Exists(filename)){             byte[] pdfFile = File.ReadAllBytes(filename);             PdfReader reader = new PdfReader(pdfFile);          }       }


Calculating expectation and variance of a random variable

I was trying to solve an exercise about derived random variables, but I am stuck on deriving the boundaries to calculate expectation and variance.     The random variable $X$ is exponentially distributed with parameter $\lambda= 1/2$. Furthermore, define $Y= 1−2X$. Calculate $E(Y)$ and $\operatorname{Var}(Y)$.   .  It would be much appreciated if someone could help.


How to change Function (Fn) Key behavior on wireless Logitech keyboard

I do have a wireless Logitech K750 keyboard (silver Mac version) connected to a Lenovo ThinkPad (via the unifying USB receiver, together with a wireless Logitech mouse M705) and currently running Ubuntu 12.04.  By default the F-keys are mapped as multimedia/function keys, e.g. Play  /Pause. As I don't use them very often, I want the F-keys to behave like the "real" F-keys (F1-F12). How can I do that?  I know there is an option in the BIOS settings, but this only toggles the built-in keyboard of the notebook, not on my wireless keyboard.  I know there is a way to change this for the Apple wireless keyboard (), but there is no "parameters" directory in /sys/module/hid_logitech_dj/.  Any ideas? Or is there maybe a way to do this in a later Ubuntu version (13.04)?  UPDATE:  lsusb -d 046d: shows Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver  UPDATE 2: Thanks a lot for your help Lekensteyn. Finally  works just fine. In the "Known Issues" of Solaar it says that it does not work with the Nano Receiver. But I have one and it works just fine. Just don't forget to read the installation instructions and run the rules.d/install.sh script. It also recognized my M705 Mouse.


Should I always define my entire template class in the header file?

For some reason, it seems that C++ doesn't like it when you split a template class (i.e. a class declared as template <typename T> class Thing) into a .h and a .cpp file, like you would do with any other class.  Does that mean that when writing a template class, I should just write it all in the header file? What do C++ programmers do in these cases?  EDIT: I understand that there are alternatives to writing it all in the .h file. But what's the best option? Or what the most common option?


Ubuntu 12.04 GPG error: http://archive.ubuntu.com precise Release: The following signatures were invalid: NODATA 1 NODATA 2

I know this is asked often but nothing seems to work for me. Every time I try to update I get the following:  sudo apt-get update Get:1 http://archive.ubuntu.com precise Release.gpg Get:2 http://ppa.launchpad.net precise Release.gpg Get:3 http://archive.ubuntu.com precise Release                             Get:4 http://ppa.launchpad.net precise Release.gpg                          Get:5 http://ppa.launchpad.net precise Release                               Ign http://archive.ubuntu.com precise Release                                E: GPG error: http://archive.ubuntu.com precise Release: The following signatures were invalid: NODATA 1 NODATA 2   The only way I can successfully execute   sudo apt-get update   is by removing ALL software sources (which is pointless).  Regardless of whatever software source I use (official ubuntu or some other PPA) I get the same errors.  So far I have tried:   Changing the server from MAIN to some other . . . no joy   The suggested fixes from , , , and .   Nothing seems to work. It seems that all my key data is missing and I can't figure out how to get it back.  Any help would be very appreciated !


reinterpret_cast in C#, migrate code from c++ to c#

i want to migrate the following code in c++ to c#    My problem its here,  How can I do this in c#   uint64_t matchid = *reinterpret_cast<uint64_t*>(result.data()); uint64_t outcomeId = *reinterpret_cast<uint64_t*>(result.data() + 8); uint16_t tokenId = *reinterpret_cast<uint16_t*>(result.data() + 16);   And the result must be this  matchId: 3203527750019186923, outcomeId: 3203531838828052697, tokenId: 13431   thanks


Are humans capable of thinking of a series of random numbers?

I read in a book today ( the computer music tutorial by curtis roads), that humans are not capable of imagining any long series of truly random numbers. Apparently, the only way to generate a series of truly random numbers is to use either a Geiger counter or some type of cellular automata algorithm. Is it true that a computer would be able to detect a pattern and accurately guess the nth number in a series of random numbers thought up by a person?


Let $f$ be a non-constant analytic function on $\mathbb{D}$ satisfying $|f(z^2)| ≤ |f(z)|$ for $|z| < 1.$  $(a)$ Show that $f(0) = 0.$  $(b)$ Show that $f(z)\neq 0$ for $0<|z|<1.$  $(c)$ Show that $f(z) = az^n,$ where $a ∈ \mathbb{C},n ∈ N.$  I know how to do $(b)$ but I'm not sure how to do the other two parts.  Some help would be great thanks.


Why do we use radio waves for communication when gamma rays are more powerful?

NASA and other space programs primarily use radio waves to transfer information from spacecraft back to earth. Why don't they use gamma rays, which are more powerful?  Since radio waves have less energy than gamma rays, isn't it more likely for radio waves to get blocked by clouds, whereas gamma rays can pass through clouds?