INSERT INTO and INSERT IGNORE always produces query (1064): Syntax error

INSERT IGNORE INTO `criticaldates`(`ID`, `LeaseID`, `CriticalDate`, `Note`, `AddedToOutlook`)  VALUES(39, 61, '2018-09-01 00:00:00', 'No Notes', 1)  WHERE `ID`=39; Error in query (1064): Syntax error near 'WHERE `ID`=39' at line 3   Also tried:  INSERT INTO `criticaldates`(`ID`, `LeaseID`, `CriticalDate`, `Note`, `AddedToOutlook`)  VALUES(39, 61, '2018-09-01 00:00:00', 'No Notes', 1)  WHERE `ID`=39  ON DUPLICATE KEY UPDATE `ID` = `ID`+0, `LeaseID`=`LeaseID`+0; Error in query (1064): Syntax error near 'WHERE `ID`=39 ON DUPLICATE KEY UPDATE `ID` = `ID`+0, `LeaseID`=`LeaseID`+0' at line 3   Ive been trying to solve this now for monrths without luck. Im using PHP PDO and MySQL - but having tried without look to do this using named placeholders  i thought i might isolate the problem and 'hardcode' the query directly into phpMyAdmin SQL Command screen and run it directly against the DB tables in question. I thought this might help but it still gives the same error. What on earth am i doing wrong?   ID is Primary-Key and Auto Increment  LeaseID is Indexed   There are NO Foreign-key constraints - the problem constantly point to the 'WHERE' line but i cant see why??  I deliberately split up the query to a avoid the 'at line 1' issue when you use a single line. This has helped since it pin-points the problem with the' WHERE' clause. I dont want or need to update either ID nor LeaseID i just one; preferably both in the 'where' clause so i can target the correct records in the table. Ive checked to make sure im not using Mysql reserve words  (i think ive got that right) Which seems to be a common cause of 1064 error.  If i remove ID and LeaseID from the bindings so they're not in the column list it says wrong number of parameters, i suppose cos im referencing ID in the WHERE clause.  Any ideas whats going on here - im stumped and its driving me up the wall!!


Prove that if $\{a_n\}$ converges to $a$, that $\{(a_n)^2\}$ converges to $a^2$ by definition.  Pf.  Suppose $\{a_n\}$ converges to $a$.  This means: $$\forall \epsilon >0, \exists N>0, \text{s.t, if} \text{  }n>N, |a_n-a|< \epsilon$$  I want to show that: $$\forall \epsilon >0, \exists N>0, \text{s.t, if} \text{  }n>N, |a_n^2-a^2|< \epsilon$$  How do I use the given info? I don't know how I can manipulate it to get $a_n^2$


Blender's video and audio don't sync when editing

I imported my video file and for some reason (even though the video is one frame smaller than the audio) the video and audio do not sync after being played back for a certain amount of time. If I were to click on the sequencer and place it at any point in time, the audio and video would start off in sync, but if I were to play it from that point the audio and video would gradually de-sync. Also, the video was recorded in OBS but it plays back well and in sync using VLC.  Here is information about the video file and more info about obs and the video file itself (it was just for testing purposes):   The easiest way of understanding what I mean would be to listen for the sound of the clicks during the video then pause and start it mid way. You will then hear the video and audio re-sync and start off from where it should have but then gradually de-sync.


What labeling settings do I need when I have a polygon layer with several areas that have touching borders. I want labels that follow the border of each object INSIDE itself even if that means that the label is upside down. This is a often used style seen in maps.


How many graphics card can x2 700 W power supply run?

I recently built a computer for mining and, I am using a 700w PSU ( RADIX VII AG 700W TACENS TAC700RVIISILVER ) powering my motherboard and a gtx 1080 ti.  I was wondering if I add another one I mean ( 700w or 750w PSU) how many graphics card they both could run, more specifically how many GTX 1070's?  And can I use this to power multiple graphics cards since the power supply comes only with 2x PCI-E 8 pins ?  Thanks


There are 100 ropes in a bag. In each step, two rope ends are picked at random, tied together and put back into a bag. The process is repeated until there are no free ends. What is the expected number of loops at the end of the process?


I'm currently trying to add an index to my .tex file but it never appears in my pdf document.  \documentclass[11pt]{book} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{graphicx} \usepackage{dsfont} \usepackage[dutch]{babel}  \usepackage{cases} \usepackage{color}   \newtheorem{stell}{Stelling}[section] \newtheorem{gev}{Gevolg}[section] \newtheorem{lemm}{Lemma}[section] \theoremstyle{definition} \newtheorem{defn}{Definitie}[section] \newtheorem{vb}{Voorbeeld}[section]  \usepackage{hyperref} \hypersetup{     colorlinks,     citecolor=black,     filecolor=black,     linkcolor=black,     urlcolor=black }  \usepackage{makeidx} \makeindex  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[L]{\nouppercase{\leftmark}} \fancyfoot[C]{\thepage}   \title{Book}  \begin{document} \maketitle \tableofcontents \chapter{First chapter} \section{First section}\index{first section}  \printindex \end{document}   Edit I had forgotten to add the `\printindex' in my message. But it was allready in my tex-file.


Regression Analysis with String values in column of DataFrame

I have a dataset which is having multiple columns where some column has string values with comma seperated  row.names   MOVIE   Year    Released    Genre 1   2   Jilla   2014    10/01/14    Action, Drama, Thriller 2   3   Pursuit of Happyness    2005    16/07/05    Documentary 3   4   The Karate Kid  1984    22/06/84    Action, Drama, Family 4   5   Yes Man 2008    19/12/08    Comedy, Romance 5   6   The Butterfly Effect    2004    23/01/04    Sci-Fi, Thriller 6   7   Unknown 2011    18/02/11    Action, Mystery, Thriller   Now I have dataset which is having String value in a column but that is required for regression analysis. Now I want to deal with this Genre Column which is extremely important for my analysis (regression).  So how can I deal with such column where I have string values.  I thought of finding all unique String values in the column and assign a number to each one of them.  Sci-Fi - 1 Thriller - 2 Comedy - 3  Now if any genre says - Sci-Fi,Comedy  - 13    I will replace as above but I am not sure about this technique.  Is there any more proper mathematical approach I must follow  I am using both R and Pandas for doing the same.


Is it safe to manually delete the /var/cache/apt content?

On an embedded system with a very limited disk space I have the folder /var/cache/apt full with some 700MB of srcpkgcache.bin.* and a couple of large *.bin files.  Performing sudo apt-get clean did not make a visible difference.  Is it safe to manually delete these *.bin* files?


Transit Visa - Narita Airport for an Indian

I am traveling to Canada from India via Tokyo(Narita Airport) with a Layover of 10H30Minutes and I will be arriving at Terminal 1 and my connecting flight will be from Terminal 2.  I contacted the Japan Embassy in Japan to confirm whether I need Transit Visa or not, they said yes because there is a change in the terminal and my ticket provider says that I do not need a transit visa.     Can someone please tell me whether I need a Transit visa or not?   Carriers are Air India till Tokyo and then Air Canada.


I'm trying to have 3 different domains on my VPS, those are   pd.lsgob.us intranet.lsgob.us  lsgob.us   I have configured them but for some reason I'm getting redirected to the same index.html that the one in lsgob.us  intranet.lsgob.us    lsgob.us    Virtualhost intranet  <VirtualHost *:80>      ServerAdmin soporte@lsgob.us     ServerName intranet.lsgob.us     ServerAlias www.intranet.lsgob.us     DocumentRoot "/var/www/intranet/"      <Directory "/var/www/intranet/">              Options Indexes FollowSymLinks             AllowOverride all             Require all granted      </Directory>      ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined      RewriteEngine on     RewriteCond %{SERVER_NAME} =www.intranet.lsgob.us [OR]     RewriteCond %{SERVER_NAME} =intranet.lsgob.us     RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet   Virtualhost lsgob  <VirtualHost *:80>      ServerAdmin soporte@lsgob.us     ServerName lsgob.us     ServerAlias www.lsgob.us     DocumentRoot /var/www/lsgob      <Directory /var/www/lsgob>              Options Indexes FollowSymLinks             AllowOverride all             Require all granted      </Directory>      ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined      RewriteEngine on     RewriteCond %{SERVER_NAME} =www.lsgob.us [OR]     RewriteCond %{SERVER_NAME} =lsgob.us     RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet


My problem is having issue with SQL Server 2014 Database and its size growing and consuming Hard disk is almost full, Only 50GB space is left in 1TB Hard drive, and SQL database log (.ldf) file is consuming 800GB space and continue increasing, We can Shrink the database-log but there are several blogs which says it effects the server performance and data loss, or we can increase the space of the hard disk, Please advise.   does not mention the main performance problem of Virtual Log Files.  Any Help or suggestions much appreciated.


Does higher velocity increases the impact force?

In this example we have an object with 100 kg that's being dropped from a certain height (h), for simplicity lets ignore Air Resistance, by calculating the Gravitational Force (F=m.g) we would obtain the following: 98 N  Now lets say our h=100m, by using the  we would obtain a velocity of ~44,3 m/s at the instant moment he hits the ground.  On the other hand lets say we have h=10m, in this scenario the velocity would be 14 m/s  Each object has the same force, but different velocities. Newton's third law of motion mentions that for each action there's a reaction, meaning for each force there's an opposite force.  Now once the two objects hit the ground would the impact force be the same? Or would it change and be different due to the velocity? In the end is the Gravitational Force also the Impact Force?


I'm trying to compute  $$ \lim_{x\to 0^+} x^{\sin(x)}. $$  I've been trying to get it into a form where I can apply L'Hopital's rule, but I haven't had any success. Namely, I haven't been able to massage it into a fraction form. Any advice?


Disk Formater that i can burn on CD and boot from

Is there a Disc Formatter out there that i can boot into using a CD and format my Harddrive.  I know i could use fedora CD but i was wondering if there is one out there that will make sure the data is actually gone and not just there links.


Evaluate $\int \frac{\sqrt{x^2-1}}{x} \mathrm{d}x$

My try, using $x = \sec(u)$ substitution:  $$ \begin{eqnarray} \int \frac{\sqrt{x^2-1}}{x} \mathrm{d}x &=& \int \frac{\sqrt{\sec^2(u) - 1}}{\sec(u)}\tan(u)\sec(u) \mathrm{d}u \\ &=& \int \tan^2(u) \mathrm{d}u \\ &=& \tan(u) - u + C \\ &=& \tan(arcsec(x)) - arcsec(x) + C \end{eqnarray} $$  However, according to , the answer should be: $$ \int \frac{\sqrt{x^2-1}}{x} \mathrm{d}x = \sqrt{x^2-1}+\arctan \left( \frac{1}{\sqrt{x^2-1}} \right)+C $$ When I derive this last answer I don't get back the integrand, but rather: $$ \frac{\mathrm d}{\mathrm d x}\left(\sqrt{x^2-1}+\arctan \left( \frac{1}{\sqrt{x^2-1}} \right)+C\right) = \frac{x}{\sqrt{x^2-1}}- \frac{x}{(x^2-1)^{3/2}\left(1+\frac{1}{x^2-1}\right)} $$  I don't know how to simplify this expression more. Also, I am unable to check whether my answer is correct because I don't know how to find the derivative of $arcsec(x)$.  Can someone check my calculations and tell me where I've done something wrong and how one can simplify the last expression to get back the integrand?


Does lifelink apply before life loss during combat damage?

Let's say for example I'm at 1 life.  My opponent attacks with two creatures and I'm about to block one, but my blocker has lifelink that would make me gain more life than I lose. Do I still die due to the unblocked attacker or do I gain life before that?


How to test performance of a program that call to System.exit?

I got a complex multithread program that calls to exit when it's done. I want to optimize its configurations and need to run it multiple times. How can I do it in a JIT friendly way? Note that this question is different from  I don't want to build a unitest for it but test the performance of the entire execution.


A 2x2 matrix $M$ exists. Suppose $M^3=0$ show that (I want proof) $M^2=0$

I'm sure I've done this before in abstract algebra. Regardless it's escaped me now.   I have proved that for $T:U\rightarrow V$, with $dim(U)=m$ and $dim(V)=n$ that $rank(T)\le m$ which is obvious, but I have proved it none the less.  I want to.... this is where I get stuck. I'm not quite sure how to say it.  Suppose we have a $T$ for example that takes $U\subset\mathbb{R}^3\rightarrow V\subset\mathbb{R}^3$, we could still have a $T$ that maps a plane to something (a plane, line or point) in this case rather than $rank(T)\le 3$ I can state $rank(T)\le 2$.  (Correct my notation here, I don't like writing subset, I mean number of dimensions of the space!)  To show this I can say $F:P\subset\mathbb{R}^2\rightarrow U\subset\mathbb{R}^3$.  Then let $G:P\rightarrow V$ and that $G=TF$, now $rank(G)\le dim(P) = 2$  Now, if $U,P,Q,R$ are spaces of dimension $\le 2$ and P,Q,R are subspaces of U  $A:U\rightarrow P$  $B=A:P\rightarrow Q$  $C=A:Q\rightarrow R$  We can now say $A^2=BA$ then $A^3=CBA$  We know that for $A$ rank(A)$\le 2$, this thus provides an upper-bound for rank($A^3$)  I want to show now that if I keep applying a linear transformation that the rank is a monotonically decreasing ($\le$) sequence. I am unsure on a proof that the rank of a transformation cannot be greater than the domain's dimensions. Although this is trivial.  (NOTE:  I have proven that if a set of n vectors, R, span a vector space V, and you take a set W of m linearly independent vectors in V that m$\le$n)  If rank(A)=2 then rank($A^2$)=2 and so rank($A^3$)=2  if rank(A)=1 then rank($A^2$)=0 and rank($A^3$)=0  if rank(A)=0 then rank($A^2$)=0 and rank($A^3$)=0  But again, I can't prove this, or at least I am unsure of how to write it.  something to clarify:  For a map $T:U\rightarrow V$ how do we distinguish (using notation) whether or not we actually use all dim(U)?  For example we might have a T that maps a plane in R^3 to a line in R^3, this can be expressed as a composition of maps, one that takes a 2 dimensional vector space (coordinates of the plane in 3 space) to a 3 dimensional point in T's domain, which T then maps to a line.  We have rank - the dimensions of the image - to make this distinction on the map's target (the rank of T is 1 if it maps something to a line, but the dimensions of the target is 3)  How do we write this? What do I say to describe this?   How do I distinguish between the number of vectors in a basis and the number of dimensions the space that basis is in has?  Sorry for the length of this! I tried to talk though my problem in the hope of seeing it myself, no such luck, thanks.


Post-increment and pre-increment operator in C

Why is k not getting incremented whereas,i and j are getting incremented in the same expression.And i also want to know what is the output of the program.I am getting the output as -2 3 1 0  #include <stdio.h> void main() {  int i=-3, j=2, m, k=0;  m=++i && ++j || ++k;  printf("%d %d %d %d", i, j, m, k); }


How to make Postgres autovacuum not impact performance?

I am running into problems where Postgres autovacuum processes are interfering with the overall performance of my database. It is making my select, insert, and update queries slower than usual. What are some settings, and optimization strategies that will make autovacuum have less of an impact on my database performance?   Is there a way to make it not consume as much memory/CPU so that client queries can run more efficiently?


Yosemite keeps adding Spaces without apparent input

I am using a Mac Mini with Yosemite, and I noticed that the Spaces desktops keep increasing. I delete them to keep one desktop for each of the monitors I am using, and I end up with 26 of them on the main monitor.  What is causing this, and how can I fix it?


Remove the first occurrence of an element, and all occurrences of an element in a linked list with recursion

I am trying to implement a delete and deleteAll method to remove one occurrence or all occurrences of a string from my linked list using recursion, then returns an LLNode object. In my code I am, conceptually, trying to identify if a node (ie node1) is pointing to a node with an occurrence of the specified element (node2), and if so, have node1 instead point to the node that node2 is pointing to.  My code works for the most part, but the problem I am running into is that it seems to skip over the first node in the list.   public class LinkedTest {  public static void main(String[] args) {     // TODO Auto-generated method stub      LLNode<String>list = new LLNode<>("susan");     list = addNode(list, "matt");     list = addNode(list, "susan");     list = addNode(list, "bob");     list = addNode(list, "matt");      printNodes(list);      list = deleteAll(list, "susan");     System.out.println("\nPrint nodes forward after delete of susan");     printNodes(list);      list = deleteAll(list, "matt");     System.out.println("\nPrint nodes forward after delete of matt");     printNodes(list); }  public static LLNode<String> addNode(LLNode<String> list, String info) {     LLNode<String> newNode = new LLNode<>(info);     newNode.setLink(list);     list = newNode;     return list; }  public static void printNodes(LLNode<String> node) {     System.out.println("Print list forward");     while (node != null) {         System.out.println(node.getInfo());         node = node.getLink();     } }  public static LLNode<String> delete(LLNode<String> node, String name){     if(node.getLink().getInfo() != name){         delete(node.getLink(), name);     }     node.setLink(node.getLink().getLink());     return node; }  public static LLNode<String> deleteAll(LLNode<String> node, String name){     if(node.getLink() != null){         deleteAll(node.getLink(), name);          if(node.getLink().getInfo() == name){             node.setLink(node.getLink().getLink());         }     }     return node; }  }   When this is run, this is the outcome:  Print list forward matt bob susan matt susan  Print nodes forward after delete of susan Print list forward matt bob matt  Print nodes forward after delete of matt Print list forward matt bob   In the output you can see that the first instance of "matt" has not been deleted. The same problem happens when implementing the delete method.  Any help is greatly appreciated!


What to do if MacBook Pro 2017 uses more wattage than the charger can give?

I wanted to ask, what to do if MacBook Pro 2017 uses more wattage than the charger can give? Why I am asking this or thinking this might be a problem? I tried to play some games on BootCamp (playing games on MacBook is another discussion, no hate please) on settings where I got 60FPS without lag but the problem is that my battery is discharging at the time I am playing. I can not recognize the problem on macOS though.  If I bought the mac couple days ago, first they gave me fake charger which f*d up my mac and wouldn't charge at all. Still can not believe that I buy new Mac and get fake charger with it. Then I went back to the store and asked for new Original charger which I then got. I can not see any more problems than the above I described.  Can anybody tell me what to check, what to do, who to contact with? Any help is much appreciated.


Execute Commands Sequentially in Python?

I would like to execute multiple commands in a row:  i.e. (just to illustrate my need):  cmd (the shell)  then  cd dir  and  ls  and read the result of the ls.  Any idea with subprocess module?  Update:  cd dir and ls are just an example. I need to run complex commands (following a particular order, without any pipelining). In fact, I would like one subprocess shell and the ability to launch many commands on it.


I want to use if loop by comparing a variable to certain use input in a constructor but its not working

Token is a class and it will be used in main the problem is the constructor it wont work as expected i need a way to pass the constructor successfully     if(serviceType=="Cheque deposit") {         counterNumber=1;     }     else if(serviceType=="Withdraw") {         counterNumber=2;     }     else if(serviceType=="Deposit") {         counterNumber=3;     }     else if(serviceType=="Others") {         counterNumber=4;     } }```


How do I check how many times the root-file system can be mounted before it is auto checked?

How do I check how many times the root file system can be mounted before it is auto checked? I'm wondering as I want to see on my system how many times it can be mounted.


Proving the divisibility of $4[(n-1)!+1]+n$ by $n(n+2)$ in the condition of $n,n+2 \in P$ where $P$ is the set of prime numbers

Let $n$ and ($n+2$) be two prime numbers. If any real value of $n$ satisfies that condition, then prove that $$\frac{4{[(n-1)!+1]}+n}{n(n+2)} = k$$ where $k$ is a positive integer.   SOURCE: BANGLADESH MATH OLYMPIAD (Preparatory Question)  My Attempt:  I know a basic formula of modular arithmetic only and that is:  $(n-1)! \equiv -1\pmod n$ ....(but I don't know why it's true)  However, out of curiosity and after gaining nothing but few knowledge about modulus, I noticed that $(n-1)! +1$ would be divisible by n. Moreover, we will get same result from $4[(n-1)!+1]$. Similarly, $4[(n-1)!+1]+n \equiv 0 \pmod n$.  But how can I show the divisibilty of the above term by $(n+2)$ and in the same case what will be its remainder? Further, how can I prove the above condition and what is the essence that $n$ and $(n+2)$ must be supposed to be prime number and nothing else? And if they are not so, can't the desired proof be solved?  Any reference according to post or small hint will be very helpful for me. Thanks in advance.


Is there any way to prevent a MacBook Air (2019) from powering up when an input device (keyboard or trackpad) is touched or the lid is open?

While I know there is a hack to prevent MacBooks — 2016 and higher — from starting up when the lid is open, I would like to know if there is a similar hack to prevent a MacBook from powering up when an input device (keyboard or trackpad) is touched or when the lid is open.  I have a MacBook Air (2019) that is running macOS 10.15.4 (Catalina) and it seems to do something that owners of 2016 and newer MacBook Pros mention experiencing: The second you open up the lid of the MacBook, the MacBook boots up without hitting the power button.  This isn’t a completely annoying issue, but I find it to be a bit odd. I have —as well as this  post—that recommends modifying the NVRAM like this:  sudo nvram AutoBoot=%00   And to unwind that you can run this command or reset the NVRAM completely:  sudo nvram AutoBoot=%03   But when I did this, while the machine—indeed—did not initially boot up when the lid was open, pressing any key on the keyboard—and even the trackpad—will make my 2019 MacBook Air start up. So my question is  but I am also asking about the issue where the machine will start up if a keyboard key or the trackpad is pressed.  This seems weird to me: Why have a power button when any touch of an input device will start the thing up?  Is there any way to prevent a MacBook Air (2019) — and possibly 2016 and newer MacBook Pros — from powering up when an input device (keyboard or trackpad) is touched or the lid is open?  Just let me be able to power it up the good old fashioned way by pressing the power button (with Touch ID) that is in the upper right-hand corner of the keyboard.


For the sum $$\sum_i^n {n-i \choose i}$$  I evaluate it for $n=1,2,3,4,5$  For $n=1$ we have $$\sum_{i=0}^1 {1-i \choose i} = {1 \choose 0} + {0 \choose 1} = 1 + 0 = 1$$ For $n=2$ we have $$\sum_{i=0}^2 {2-i \choose i} = {2 \choose 0} + {1 \choose 1} + {0 \choose 2} = 1 + 1 + 0 = 2$$ For $n=3$ we have $$\sum_{i=0}^3 {3-i \choose i} = {3 \choose 0} + {2 \choose 1} + {1 \choose 2} + {0 \choose 3} = 1 + 2 + 0 + 0 = 3$$ For $n=4$ we have $$\sum_{i=0}^4 {4-i \choose i} = {4 \choose 0} + {3 \choose 1} + {2 \choose 2} + {1 \choose 3} + {0 \choose 4} = 1 + 3 + 1 + 0 + 0 = 5$$ For $n=5$ we have $$\sum_{i=0}^5 {5 - i \choose i} = {5 \choose 0} + {4 \choose 1} + {3 \choose 2} + {2 \choose 3} + {1 \choose 4} + {0 \choose 5} = 1 + 4 + 3 + 0 + 0 + 0 = 8$$  And we can see the pattern $$1,2,3,5,8,....$$ which makes me think about the Fibonacci sequence  One can also evaluate $n=0$ $$\sum_0^0 = {0 - i \choose i} = {0 \choose 0} = 1$$  And so we have $$1,1,2,3,5,8,....$$  Now  to prove that it is really the Fibonacci sequence, Can I prove it by induction ?  By starting from $n =2$, we have $$\sum_{i=0}^n {n-i \choose i} = f(n) = f(n-1) + f(n-2)$$  Do we start with a base case $n=2$,  $$\sum_{i=0}^2 {2-i \choose i} = 2 = f(1) + f(0)$$  And so the base case works.  Now assume it works up to $n = k$ (Strong Mathematical Induction)  That is we assume it works up to $$\sum_{i=0}^k {k -i \choose i} = f(k-1) + f(k-2)$$  Now we consider $k + 1$, Now I am stuck here. Any suggestions ?


I have a laptop running Linux with a 4GB RAM stick that came with it. It's a DDR3 1066 MHz stick. I also have a 1GB DDR3 1333 MHz stick lying around.  I've read somewhere that it might not be good to pair up RAM sticks that are not equal in a computer (the set should be symmetrical), so if they were both 1333 MHz or both 1066 MHz I wouldn't be asking this. But since the 1GB one is faster, is it advantageous to install both and end up with 5GB of RAM?  This question relates to  which says that the speed bottlenecks to the slowest rate, which I think would mean that they will both work at 1033. Does that mean that I should then install both RAMs?  Thanks.


I'm under a DDOS attack right now, and the attacker has his zombies sending POST requests to one of my pages. At first, nginx replies in only a few seconds, but after a while it starts building up; nginx is taking 10 minutes to finish the responses to these requests! But why? I can't understand why. I can't even figure out why I can't stop it.  I've got these set:      client_header_timeout 5;     client_body_timeout 5;     keepalive_timeout 5 30;     send_timeout 5;   So should it not be timing out after 5 seconds? Why does it continue to 600 seconds or more? Is there a way I can figure out what type of attack this is? Slow header? Slow POST? How can I detect what this attack is and how can I stop it?  It should also be noted that the connections are passing through a load balancer and a Squid Cache reverse proxy, so the only way I can read the clients' true IP is through specific HTTP headers


Synchronization - Difference between locks

What is the difference between the following approaches of placing a lock with concurrency?  public synchronized ArrayList<Player> getPlayers() {      return players; }  public ArrayList<Player> getPlayers() {      synchronized(players) {           return players;      } }  public ArrayList<Player> getPlayers() {      synchronized(GameHandler.class) {           return players;      } }   How do we decide which one should be used in which scenarios?  Edit:  I have edited my thread title and post to prove this is not a duplicate. Thank you.


Bash Script to Take a line of text and print it in reverse order?

I couldn't solve this problem. Can anyone help me out? For example: User input is: I eat rice the output should be: ecir tae I


Proving the non-existence of a polynomial function

Prove: There is no such polynomial function in $\mathbb{Z}[x]$ s.t. $f(7)=5$ and $f(15)=10$.  My first idea was to think $f(7)=5$ and $f(15)=10$ as points $(7,5)$ and $(15,10)$, but later on I couldn't go further. The next idea is to construct two other functions $g(x)$ and $h(x)$ s.t. $g(x)=f(x)-5$, $h(x)=f(x)-10$. Then, $g(7)=0$, $h(15)=0$. Let $\displaystyle{f(x)=\sum_{k=0}^{n}a_kx^k}\;\;(\forall k\in\{0,1,2,\cdots,n\}, a_k\in \mathbb{Z}, a_n=1)$. By the rational root theorem, we have $$a_0-5\equiv0 \;\;(\operatorname{mod} 7)$$ $$a_0-10\equiv0\;\; (\operatorname{mod} 15).$$ Let $a_0=7a+5=15b+10\;(a,b\in\mathbb{Z})$. Then, $7a=15b+5$. What am I supposed to do after this assumption? Am I going the right direction? Is there another way to interpret this problem?


The title says it all. Why is is true that $n^x > \log(n)$ for $x > 0$?


check the availability of the WCF Web Service

I want to check the availability of the WCF web service i.c service is up or down through  the C# code. How to achieve that?


How to check my RAM configuration (Windows 7)?

I would like to check my RAM configuration. I know it is easy to check the total RAM installed on a computer (eg 32 GB), but is there an easy way to check in Windows if the RAM is e.g. 2x16 GB, 4x8 GB, 8x4 GB or 16x2 GB?


Hello I have a JavaScript button which used location.replace('some url with parameters') onclick and I used this button in few layouts . Now my org is moved to lightning and please suggest me the best way to implementing this in lightning. I learned that I can do this from quick actions but not getting exact idea of how to implement onclick functions in lightning.


What phrase can be used to describe a decision that was hard to make?

I'm looking for something along the lines of "tough decision" but want a phrase which emphasizes on the degree of severity of the toughness of the decision.


What the difference between the 2 menu icons: 3-dots (kebab) and 3-lines (hamburger)

What the difference (if there is any...) between these 2 menu icons?  1) 3 lines (a.k.a burger icon)    2) 3 dots (a.k.a kebab icon)


Why don't we double the final consonant in the word cooking

SO here is the rule I find about doubling consonant     if a word ends with a short vowel sound plus a consonant, and the stress is on the last syllable, then the final consonant is doubled if you add an ending that starts with a vowel.    I find this rule to be much more powerful than the one I learned at school, aka:V+C, But the rule doesn't seem to apply to cooking, which is not doubled. Is this a contradiction of the rule I quoted above? (I am not so sure about the short vowel but, but simple Google tells me that ʊ in cooking is indeed a short vowel. )  Also, if cooking is indeed an exception to this rule, are there any other similar exceptions that I should be aware of?


A homomorphism between topological groups is continuous if it is continuous at one element

While reading tom Dieck's Algebraic Topology, I've come across to the fact which mention that a homomorphism $\phi\colon G\to H$ of topological groups is continuous if it is continuous at $e_G$. I couldn't come up with a proof for this, so I started searching. It seems we can take any $g \in G$ instead of $e_G$ and that the fact has something to do with $\lambda_g\colon x \mapsto gx$ being homeomorphisms. But I still don't see how to prove this. I'm a little afraid to ask this since it fells like I'm missing something trivial.


I want to pivot a table and aggregate a column into strings


How to add empty object not using bpy.ops?

How to add an empty object with python using bpy and not using any ops? My code so far is doing this:  bpy.ops.object.empty_add(type='PLAIN_AXES',radius=RADIUS,location=loc)   For normal object like mesh or lamp there is object_data created using normal bpy.data.object.new calls, but for empties it seems that this method does not exist. So is this possible to avoid using the operators? The reason I'm asking is because when I add an empty using bpy.ops it changes the active object, etc. causing the script to be more bloated with unnecessary code lines.


For example:  for /F "taken=1,2* delims=;" %%i in(%TABLES%) do( echo select %%j from %%i; | sed -e “s/,/||’,’||/g” -e “s/@/||’@’/g” >> %TABLES_OUT/¥%%i.sql   I want to replace string string instead of sed. Like this  , ➡ ||’,’|| @ ➡ ||’@   What should I do?


What force keeps electrons in their orbitals and not collapse into the positively charged nucleus?

I know about quantum mechanical model of an atom and how electrons behave like a standing waves and there isn't any lower level energy available for electrons below ground state energy and energy comes in discrete packets and so on...  I am just having a hard time to imagine and understand that why electrons, which are negatively charged and nucleus of an atom which is positively charged, because of protons remains separated from each other .  I mean opposite charges attract each other; so why electrons just stay in there orbitals and not collapse in the nucleus which is positively charged ?  What is that force which keeps electrons in their orbitals and thus overcome the attractive force which is being applied by the protons ?


By mistake i have changed the permission of /etc and i cannot use sudo now. I cannot enter as root because it requires sudo as initial command. Ls -l /etc/sudoers  -rwxrwxrwx 1 root root 755 Oct 15 2019 /etc/sudoers  Sudo -s   sudo: /etc/sudoers is world writable  sudo: no valid sudoers source found, quitting  sudo: unable to initialize plugin  Please suggest me something.


I want to have something like this:  public class Stream {     public startTime;     public endTime;      public getDuration()     {         return startTime - endTime;     } }   Also it is important that for example if the startTime it's 23:00 and endTime 1:00 to get a duration of 2:00.  Which types to use in order to accomplish this in Java?


The closed form for the number of 2-element subsets of the power set of a set with fixed overal size

I am looking for a closed form for the sum below  $$ \sum_{k=0}^{r} \frac{1}{2-\delta_{k, r-k}} \binom{n}{k} \binom{n}{r-k} $$  where $\delta_{k, r-k}$ is the Kronecker delta. I'd appreciate any helps in finding a closed-form solution for this sum.   To my understanding, this is basically equivalent to finding a closed-form solution to the following problem:  Given a set $S$ with size $|S|=n$, what is the number of two-element subsets of $\mathcal{P}(S)$, $\{A, B\} \in \mathcal{P}(S)$ such that $|A|+|B| = r$  for a fixed $r$.  I tried to use Wolfram Alpha, but it is given me this for the case where we count ordered pairs $(A, B)$ instead of sets (i.e. the sum if we ignore $\frac{1}{2-\delta_{k, r-k}}$), which contains factorial of a negative integer(!!) (and I don't know how to specify in Wolfram that $n>r>0$ and both are integers):  $$ \frac{(-1)^r (-2n+r-1)!}{(-2n-1)!r!} $$


I have seen it claimed in Hosmer & Lemeshow (and elsewhere) that least squares parameter estimation in logistic regression is suboptimal (does not lead to a minimum variance unbiased estimator).  Does anyone know other books/articles that show/discuss this explicitly?  Google and my personal library have not helped me here...


Null Data from onResponse() of volley in Fragment' onCreateView()

I am trying to get some country data from a URL using volley. In onResponse() data is successfully added to countryList and countryList.size() shows it has 5 countries. But in onCreateView(), when I try to use countryList, it is null and throws NullPointerException because of countryList.size() as countryList has null value. Thanks in advance, here's the code:  public class MyAddress extends Fragment {       ArrayList<Countries> countryList;       @Override     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {         View rootView = inflater.inflate(R.layout.shipping_address, container, false);          RequestCountries();          Toast.makeText(getContext(), countryList.size(), Toast.LENGTH_SHORT).show();         //Some code to use countryList          return rootView;     }        private void RequestCountries() {           final String urlLink = ConstantValues.BASE_URL + "getCountries";          StringRequest countryRequest = new StringRequest             (                     Request.Method.GET,                     urlLink,                      new Response.Listener<String>() {                          @Override                         public void onResponse(String response) {                              JSONObject jsonResponse = new JSONObject(response);                             JSONArray countries = jsonResponse.getJSONArray("countries");                              for (int i=0;  i< countries.length();  i++) {                                  JSONObject countryInfo = countries.getJSONObject(i);                                  String country_id = countryInfo.getString("country_id");                                 String country_name = countryInfo.getString("country_name");                                   Countries country = new Countries();                                 country.setCountry_id(country_id);                                 country.setCountry_name(country_name);                                  countryList.add(country);                             }                         }                     },                      new Response.ErrorListener() {                         @Override                         public void onErrorResponse(VolleyError error) {                             error.printStackTrace();                             Toast.makeText(getContext(), error.toString(), Toast.LENGTH_SHORT).show();                         }                     }             );          RequestQueue requestQueue = Volley.newRequestQueue(getContext());         requestQueue.add(countryRequest);      } }


identify this "hard" SF short story: inside Earth-to-Moon simulator, would-be astronaut goes mad (possibly written during 1950's)

I heard of this "hard" science fiction short story via word of mouth. Spoiler alert: my final sentences here will likely expose an evocative twist ending. My guess is that this story was written in the 1950's, possibly mid- to late-1950's. It takes place entirely on Earth. An astronaut who has not flown in space is inside a simulator or part of an experiment. The simulated mission is a multi-day trip from Earth to the vicinity of the Moon. The man in the fake-yet-realistic spacecraft can see the Moon slowly approaching. The image of the Moon may be a closed-circuit television image (large TV screen or projector) or the man is seeing, through a window, a large, fake-yet-realistic Moon globe. (Either way, the subject is actually looking at a fake Moon globe.) The near side of the Moon keeps getting bigger. Eventually the simulator gives the subject a glimpse of the far side of the Moon. Presumably, he is about to enter lunar orbit or swing around the far side of the Moon. The man then sees, for the first time, that the Moon is fake, and the large fake simulated Moon is not a complete sphere. The subject sees a makeshift structure (scaffolding) behind the realistic near side. He goes mad. Ending: the man keeps repeating the same few words: his description of the inelegant structure he sees "behind" the near side of the Moon. (It could be that during the simulation or experiment he actually believed he was in cislunar space, and his end-of-the-story ravings were a report to Earth of what the far side looked like, so perhaps he was only partially mad or not mad.) This story was almost certainly written before Gagarin flew, at a time when there were legitimate questions about human response to spaceflight. (By the way, Philip Zimbardo's multi-day mock prison experiment was around 1969-1972. After a few days, some subjects apparently thought they were in a real prison.) Perhaps someone could provide an author, short story title, or book title (collection of short stories).


Avoiding fails from ArcObjects geoprocessing with .NET?

There are some nice features in ArcToolbox we can use, but for some reason, this is NOT working properly. It doesn't even throw me an error.  My software is running inside ArcMap, so no need to AoInitialize again, corret?      public void Execute()     {         InitializeProduct();         try         {             Geoprocessor gp = new Geoprocessor();             gp.OverwriteOutput = true;              FeatureToPoint featureToPoint = new FeatureToPoint();              string outputPathName = CurrentWorkspace.PathName + "\\teste_centroide";              featureToPoint.in_features = InputFeatureClass;             featureToPoint.out_feature_class = outputPathName;             featureToPoint.point_location = "INSIDE";              IGeoProcessorResult result = (IGeoProcessorResult)gp.Execute(featureToPoint, null);              if (result == null)             {                 for (int i = 0; i <= gp.MessageCount - 1; i++)                 {                     Console.WriteLine(gp.GetMessage(i));                 }             }              IGPUtilities gpUtils = new GPUtilitiesClass();             this.OutputFeatureClass = gpUtils.OpenFeatureClassFromString(outputPathName);         }         catch (Exception ex)         {             MessageBox.Show(ex.Message + "\r\n");         }   This is a code example I'm having here. I generated the DataManagement tools assembly, but I could not find the file to sign it.  This code just gives me an error. is it because of the signing?  I've tried the other way too, using IVariantArray and calling from the tool name, without sucess. Is it just me or...?  Can anyone point me a "nicer" solution? I need to run several process that are already built in ArcToolbox that I really don't want to duplicate.


In the book "Charlotte's Web," or In the book "Charlotte's Web",?

When stating a book title, is the comma before or after the quotations?


Providing an iterator for the first element of a container of pairs

I have a container filled with pairs. I want to iterate in it using the STL generic algorithms (in my case it would be inner_product, but consider it as a generic problem). The algorithm I am using expects iterators first and last. Can I provide special iterators first and last that will iterate not on the pairs but on the first element of each pair?   I know i can do it manually, providing a hand-made function object that will be a wrapper around the standard container iterator, deferencing it to the first member of the pair intend of the pair itself,but I think there is also a clever one-liner to do it for me. What would it be?


"Why electrons don't fall into nucleus"simple explanation needed

Am studying in 8th grade and I studied electrostatic force which says opposite charge attracts and same charges repel  But in an atom electron is just situated above the proton and it doesn't attracts.Why?


classicthesis: How do I remove the empty space after chapter title?

I have the following files:  Thesis.tex  \documentclass{scrreprt} \usepackage[english]{babel} \usepackage{blindtext} \newcommand{\bflabel}{\aclabelfont}  \input{classicthesis-config} \begin{document} \chapter{Introduction} \include{input} \end{document}   input.tex  \blindtext   classicthesis-config.tex  ... copied from the distribution ...   When I put \chapter before the \include, what I get is this:    Instead, when I move \chapter{Introduction} to intput.tex, I get this:    I wonder why this is the case.


Convert a number to a string with specified length in C++

I have some numbers of different length (like 1, 999, 76492, so on) and I want to convert them all to strings with a common length (for example, if the length is 6, then those strings will be: '000001', '000999', '076492').   In other words, I need to add correct amount of leading zeros to the number.  int n = 999; string str = some_function(n,6); //str = '000999'   Is there a function like this in C++?


Java - Is the JDK part of the core java language?

I'm doing an aprenticeship in an IT company as a developer.  When I ask my colleagues if the List<> item is part of the java core language, they say yes. But for me it looks like an extra feature, which is heavily used, but nonetheless an external resource. For me it's kind of confusing, because I can use the List<> in a for-each loop like:  for(Object o : objectList){}  So the List<> has to interact somewhere with the native for loop, so that it works.   My Questions:  *The List<> is part of the JDK, and the JDK is external, like the Standard-C-Library for C, right?  *So the Java compiler doesn't know what a List<> is and also just reads it from the JDK, like any other framework, right?  *If my assertions are right, somewhere in the List.java(or however it's called) file has to be an expression, that tells the compiler how to use it in a for-each loop?


How to figure out which of my children is lying to me?

I'm looking for advice on how to determine which of my children is lying.  I have 4 kids, 12, 12, 8, 6.  About once a week, something bad will happen, (this last incident, somebody poured a bowl of cereal with milk and left it on the table uneaten).  When I ask who did that, all of them swear it wasn't them.  I try to ask them individually (looking for signs of lying like staring away from me when answering) I get nowhere fast.  Unfortunately, they usually win and have found lying is effective since I'm not a truth detector.  What am I missing here?


Do the SSH or FTP protocols tell the server to which domain I am trying to connect?

When using the ssh or ftp commands from the Bash shell, does the server that I am connecting to learn of the domain name used? I understand that the domain name is locally translated into an IP address via DNS. In HTTP, after that happens, the server is told the original domain name as well in order to serve the correct page, or to present the correct TLS cert (SNI).  host serverfault.com GET /   Does a similar phenomenon happen when connecting to ssh or ftp?  I ask because I am  trying to ssh into a server (GoDaddy webhosting) which expects a domain name, but is not letting me in when I try to connect via user@IPaddress as the DNS is not yet moved to the GoDaddy IP address.


Using Blender Game Engine for VR 360 tour on Mobile, is it doable?

I'm sorry if my question sounds clumsy, I'm not a seasoned BGE user.  I'd like to make a virtual tour for Gear VR and/or Google Cardboard in the BGE that works on Mobile.  Is this doable in a user friendly way using the BGE? Can I export to Mobile (android, IOS, Windows Phone)? I know this is possible using Unity, but I find Unity difficult to use. I've tried UE4, but the process is a big mess, it requires a buggy multi-level hack that only results in wasting my time.


I would like to change the size of my partitions (increase Windows 7 by approx 50gb)

So I have installed 11.10 alongside windows7, and I didn't realise that I needed more than I allocated for Windows 7 to back up my iPod. Is there a simple way to do this? I tried to reinstall, but it didn't allow me to change partition sizes. Can I erase all and start again or will that actually completely erase my windows installation?  Cheers


Vertex coloring on textured models to use in Unity?

I am making a Nintendo 64/ PS1 inspired game in Unity. I know that those consoles did not have lighting and instead used vertex colors on textured models to add variations in light and in color to save on space. Like Banjo-Kazooie, TLOZ: Ocarina of Time, Spyro, etc.  Here is another example:   I would like to use this technique in my level models and then export them to Unity, but I can't find a way of doing it. The best I could find is this video, but it doesn't work for me when I do it, and it does not explain much of what they are doing:  If anyone knows how to do this, please do tell. Thanks!


How do you get the \delta\rightarrow 0 underneath the line underneath the limit.  This is what I have so far  \underline{\lim\limits}_{\delta \rightarrow 0}


How can I introduce, as embedded subsets, the fonts: Symbol, Times-Bold,Times-Roman, TimesNewRomanPSMT-Bold, TimesNewRomanPSMT-Bolditalic in Plain TeX, under Ubuntu?


How many points can one can place in $\mathbb{R}^n$, with the requirement that no $n+1$ points lie in the same $\mathbb{R}^{n-1}$-plane, and the euclidean distance between every two points is an integer?


Design with an accordion inside an accordion

Is it a silly idea to have a UI where you open an accordion and another accordion appears inside, and when you tap it, multiple forms appear?  The goal is to hide as much as possible the fields where input is optional.


Is there any evidence that Rey was imagining Luke's island?

In The Force Awakens, as Kylo Ren interrogates Rey, he tells her,     You've been so lonely.  At night, desperate to sleep, you'd imagine an ocean.  I can see it...I can see the island.   At the end of the film, Rey finds Luke Skywalker on a small rocky island in the middle of a large body of water.  The novelization says that the planet was     mostly ocean, dotted with a sprinkling of towering islands...   Is there any evidence that the island imagined by Rey is Luke's?


Estimating a normal distribution from three order statistics

I am interested in predicting a normal distribution, but not sure if this is possible.   I do not have information on the mean or standard deviation. However, I know the range of values, let's say from 0 to 10, and I know the sample size, let's say 1000, and I also know that value 8.1 is the 50th highest value.  Is it possible in any way from this information to infer more about what the distribution looks like?


I tried to post a  in the  and it didn't work:  However, I then tried to recreate the URL markdown problem using the exact same link, and also one with the same bold text, but they worked just fine.


I need to use the calc function for width but it doesn't divide distance around.  HTML

   SCSS  .container-card {     background-color: grey;     height: 500px;     .container-holder {         background-color: gold;         width: calc(100% - 14px);         height: 300px;     } }   Here is an example:    In other words: I need 14px distance from left and right in every width.


Let $p$ be prime with $p\equiv 2 \bmod 3$. Show that for any integer $a,p\nmid a$ there is an integer $x:x^3 \equiv a\bmod p$


Command line generates different hashsum than online hash generator…

Input text: test   Online MD5 hashsum generator: 098f6bcd4621d373cade4e832627b4f6 echo "test" | md5sum: d8e8fca2dc0f896fd7cb4cb0031ba249   Also the same happens to sha512sum and sha1sum.  Why does Linux and an online generator generate different hashes?


Isn't rubber a natural substance so why is L u f f y not a logia as it should be and why does it not have intangibility.


I have a problem with solving the convergence of $\sum_{n=1}^{\infty }\frac{(-1)^{[\sqrt{n}]}}{n}$ where $[a]$ means floor function of $a$. I've already made the first thep and rewrote it with the $\sum_{n=1}^{\infty }(-1)^{n}\sum_{k=n^2}^{(n+1)^2-1}\frac{1}{k}$, which converges if and only if the previous one converges. Now I want to use Leibniz criterion, but I cannot prove that the second sum in the previous expression is monotonic. Does anyone know how to do it? (I cannot use Riemann integral, we haven't defined it yet)


In our Drupal 8 theme we are using the classy base theme. themes/mytheme/mytheme.info.yml:  base theme: classy   Using the information from  I am trying to remove some stylesheets from the base theme - but I cannot figure out the right way to do so. For instance, I want to remove the css/components/form.css stylesheet from the base theme. So far I tried:  libraries-override:   base:     css:       component:         css/components/form.css: false     libraries-override:   core/base:     css:       component:         css/components/form.css: false     libraries-override:   core/classy:     css:       component:         css/components/form.css: false   None of which is working. Removing the stylesheet with stylesheets-remove would work fine - but this is deprecated and I would rather use the new intended way for Drupal 8+.  What is the correct way of removing/addressing/extending a library from the base theme?


I have a question regarding this Split String function Aaron Bertrand recommends .  With it you can extract information between two slashes. Now if I want to extract not only one piece of info like the servername, but also a second piece like the day of the week. How would I have to rewrite the code in order to get that info in one result set?  Here's a sample of my data  E:\BaseData\RUK\HPP_Conversion_Detail\hpp_conversion_detail_report_2015_11_02.csv E:\BaseData\RUK\Manual_Review\manual_review_report_2015_11_01.csv E:\BaseData\RUK\Disputes\dispute_report_2015_11_01.csv E:\BaseData\RSE\HPP_Conversion_Detail\hpp_conversion_detail_report_2015_11_02.csv E:\BaseData\RSE\Manual_Review\manual_review_report_2015_11_01.csv E:\BaseData\RSE\Disputes\dispute_report_2015_11_01.csv   I'm interested in everything between the second and third slash and the third and fourth slash. What Geoff suggested is a good idea. I'm then getting the results in rows. Is it possible to get the results back in additional columns?  Thanks!


System.NullPointerException: Attempt to de-reference a null object:

This Trigger is on lead (Before Insert, Before Update) and it errors (System.NullPointerException: Attempt to de-reference a null object). I'm getting this error when i'm posting "Web to Lead". However i do have the right ORG iD and Record type id included on the xml file:   <input type=hidden name="oid" value="xxxxxxxxxxxxx"> <input type=hidden name="recordType" id="recordType" value="zzzzzzzzzzzzzzzzzz">    trigger IAAILeadTrigger on Lead (before insert, before update){ //BEGIN: S-444340 T-561808 - Process only IAA Remarketing Recordtype data     Map<ID,Schema.RecordTypeInfo> rt_Map = Lead.sObjectType.getDescribe().getRecordTypeInfosById();      //Looks up the branches based on the Lead PostalCode     if(trigger.isBefore){          for(Lead ld : trigger.new){                      if (rt_map.get(ld.recordTypeID).getName().containsIgnoreCase('IAA Remarketing') )                if( trigger.isInsert ||                    (trigger.isUpdate && ld.Branch__c == null) ||                   (trigger.isUpdate && ld.PostalCode != trigger.oldMap.get(ld.id).PostalCode)               ){                   leads.add(ld);               }           }           }                 //Only check the leads that are in the lead list and NOT the full trigger.new list         if(!leads.isEmpty()){             LeadController.GetLeadBranches(leads);           }     }  }


How do I install Landscape for personal use?

I'd like to manage my home machines and laptops with Landscape, how can I do this?


On the evening news vs. In the evening news

Why the word news takes different prepositions in the following sentences? Our school was mentioned in the news. I heard it on the evening news. Do native speakers say in the evening news? If yes, are they different in meaning?


Why the CMB has not been dispersed so far?

Imagine you have a box of black body radiation. What happens if you open the box for a long time? It becomes dispersed and no radiation remains in the box.   Now, apply this example to the Cosmic Microwave Background radiation. The CMB has been produced about 380,000 years after the Big Bang. Giving that the space is flat as many observations suggest, that radiation has been produced in a universe with no boundaries.   Now, my question is this: in these conditions, why that radiation has not been dispersed completely so far? It is true that the radiation has been produced everywhere in the space but giving that the space is infinite, why has not it been dispersed do far?   Calculations in the standard textbooks are done in such a way as if the CMB has been within a physical box, however expanding with the universal expansion. But, this is not the actual situation. The CMB has not been and is not enclosed by walls of a box, so it must have completely dispersed so far. What has prevented this to happen?


How can I run a command from a qml script?

I'm working on an Ubuntu Touch app that needs to modify iptables and do various other things that requires interaction with the command line. I found  and I understand that it must be done with a C++ plugin or a possible future extension in the SDK. Is there any such extension available now? And can someone elaborate on how I can use C++ to run a command from qml?


Values of $a$ s.t. for all continuous $f$ with $f(0)=f(1)$ there exists $x$ s.t. $f(x+a) = f(x)$

Determine all $a\in[0,1]$ such that for ${\it every}$ continuous function $f:[0,1]\to \mathbb{R}$ with $f(0)=f(1)$ there exists at least one $x$ where $f(x) = f(x+a)$.   First of all, $a=0,1/2,1$ are obviously good values. Secondly, no $1/2<a<1$ works (look at $f = \sin(2\pi x)$).  I remember trying to solve this several years ago. I think I started by dividing $[0,1]$ into regions where $f\geq 0$ and $f<0$. Then studied each interval and all pairs of intervals with the same sign. However, this seems like a problem that should have a simple solution and I would love to see it.


How to put a cursor in the middle of the screen?

How could I add a pointer at the middle of the screen, where my mouse is fixed there? Something like this:


Why this user hasn't got the association bonus on Super User

This user has more than 200 rep. On Stack overflow but why he hasn't got the +100 association bonus on Super User?    Link to user:


"Dirty" polygons created when using "Merge selected features" in QGIS

When I selecting features to merge in QGIS 2.14.3-Essen using "merge selected features", I sometimes get "dirty" results with redundant polygon vertices. Is there an ex-ante or an ex-post way to get rid of them? Using Mac OS 10.11.6 El Capitan


My domain "example.se" is targeted for Netherlands (.nl), but Google Webmaster Tools indicates it's targeted for Sweden

I made my domain example.se. I work for the Dutch market and not for the Swedish market. Now I learned that Google Webmaster Tools judges that I am focusing on the Swedish market. (Geographic Target = Sweden). I can't change this in GWT. I am really not looking forward to changing the domain.    What are the other options? My backlink profile is clearly focused on the Dutch market. Will GWT pick up on this eventually?


Will there be any spyware be contained in the next LTS version 16.04?  I'm asking this because Ubuntu has been associated with spyware .


I have three classes.  Person <-- Student <-- GradStudent, where <-- means extends (ie, GradStudent extends Student, Student extends Person)  Person person = new Student(); // this is perfectly legal  GradStudent gradStudent = (GradStudent) person; System.out.println(gradStudent); // java.lang.ClassCastException here   Why? Our person variable is a Student, and we could do Student s = new GradStudent(), and so why is this not working?  Similarly if I do  Student student = new Student(); GradStudent aGradStudent = (GradStudent) student; System.out.println(aGradStudent); // same error here   Why can we do Student s = new GradStudent(), but we cannot do Student student = new Student(), and THEN GradStudent aGradeStudent  = (GradStudent) student


During our studies on Riemann Integrals we were given the following question in my Calculus II course: $$ \forall n\in\mathbb{N}: \text{let } f_n(x)=(1+\cos(x))^n, f_n:[0,1]\to \mathbb{R}$$ $$\text{ Find}: \lim_{n\to\infty}\int_0^{\frac{1}{2^n}}f_n(x)\, dx $$ I have tried finding the limit using the squeeze theorem. I noticed that the function is defined on $[0,1]$, where $\cos(x)$ is positive and decreasing. I used the following boundaries: $$ 1\leq f_n\leq 2^n \implies \frac{1}{2^n} = \int_0^{\frac{1}{2^n}}1 \leq \int_0^{\frac{1}{2^n}}f_n(x) \leq \int_0^{\frac{1}{2^n}}2^n = 1  $$ but $ \displaystyle{\lim_{n\to\infty}}\frac{1}{2^n} = 0 $ which means I'm unable to apply the squeeze theroem. I've tried using tighter lower boundaries such as $1+\cos(1)$ But it didn't seem to work. I did some trial and error by calculaing the integrals manually for different values of $n$ and it does seem like $\displaystyle{\lim_{n\to\infty}}\int_0^{\frac{1}{2^n}}f_n(x) dx = 1 $ This means that somehow I should find a lower bundary which tends to 1 when $n\to\infty$. Any ideas on how to go forward from here are welcome.


Forgive me if I'm missing something obvious here..... but why do most linux server distros come with both Dovecot AND Postfix (or sendmail)? As far as I'm aware all three of them are Mail Transfer Agents, with Dovecot having a 'secondary' function of being a Mail Delivery Agent...  Is Dovecot just not a very good MTA? Or is there some other reason why you'd want to use a combination of the above instead of a single program that seemingly does everything?


I am currently running Ubuntu 14.04 on my Chromebook and want to know how i would reset it to when I first got it or factory mode. I want to do this because I am trying to install android studio, but nothing is working so I am going to see if resetting it, will help.


Need to give permissions to /tmp/cache and /tmp/templates_c but can't find them

When I open my website it shows me this:  The following directories must be writable by the web server: tmp/cache tmp/templates_c  Please correct by executing: chmod 777 tmp/cache chmod 777 tmp/templates_c or the equivilent for your platform before continuing.   When I run these 2 commands it tells me that these directories don't exist.  How can I solve this problem


Can 'But', 'And', or 'So' be used to start a sentence?

Possible Duplicate:                 I heard that "but, and, so" are not supposed to be used at the beginning of a sentence.  I have noticed, however, a lot of sentences use "but, and, so" as the first word of the sentence.  Are the words at the beginning of the sentence grammatically correct?


Why is this question appearing in review but doesnt exist on Stackoverflow?

I went to review some close questions.  The first question I was given for my filter was    I clicked on the title to view the full question and edit it ( I wanted to remove one of the tags), but the link went to a page not found page    Why am I being asked to review a question that seems to have already been removed?


Show that any path starting from (0,0) must be the constant path.

Let $Z=\{(x,\sin(\frac{\pi}{x})\mid 0<x\leq1\}$, and suppose $X=Z\bigcup\{(0,0)\}$ is equipped with the subspace topology. Show that any path in $X$ starting from $(0,0)$ must be the constant path.


Glossaries: Hyperlink to First Entry not List of Acronyms

Is it possible to direct the hyperlink created by \gls{term} to the first use of the term in the main text instead of the glossary list?  I'm writing a thesis that uses a lot of abbreviations, but I don't want to include a glossary list in the document.  Rather, I'd like to define each abbreviation on first use but provide a hyperlink to the first use during all subsequent uses of the abbreviation.  Is this possible?  The following is an example of the code I'm currently using to set-up the glossaries and hyperref packages and define a term:  \documentclass{report} \usepackage[acronym,hyperfirst=false,nonumberlist,nowarn]{glossaries} \usepackage[hidelinks]{hyperref} ... \newacronym{FEA}{FEA}{Finite Element Analysis} ... \begin{document}     ...this includes a \gls{FEA} tool to...    % first use of term     ...the \gls{FEA} tool...                   % subsequent uses of term, want to hyperlink to first use above within PDF \end{document}


Should we stop saying that nothing can escape the event horizon of a black hole post LIGO?

Now that LIGO has demonstrated that two black holes can burp large amounts of energy (in the form of gravitational radiation) in the process of consuming each other, shouldn't we stop saying that nothing can escape the event horizon of a black hole.  Clearly, some of the mass energy that was observed in the LIGO experiment was confined by the event horizons of the two black holes prior to their merger.  Somehow, in the transition from two separate event horizons to a single event horizon there was opened an escape route (if only for a short time).  I realize that Hawking radiation allows an evaporation of energy from a black hole, but that is a very slow process.  Unless I am mistaken, LIGO-like events provide an avenue for prompt release of large amounts of energy.


'I want to know how large Russia is' or 'I want to know how large is Russia'?

Which one is correct?  This is what I want to put in my application for a Russian visa.


What is the most preffered way to instantiate a class in C++?

I've been studying OOP in C++ and there are different ways to instantiate a class either through the use of the new keyword or the standard way (which doesn't use new).   Either this using new  Class *object = new Class();   or using the standard way  Class object;   I'm confused on when to use either ways. Can someone clarify on when to use or which is the preferred way to instantiate?


login loop: systemd-udevd[713]: failed to execute '/bin/systemctl start --no-block nvidia-persistenced.service': No such file or directory

My PC was working yesterday without any problem. I shut it down and tried to open this morning. It prints out these messages on the black screen:  systemd-udevd[713]: failed to execute '/bin/systemctl' '/bin/systemctl start --no-block nvidia-persistenced.service': No such file or directory  systemd-udevd[852]: failed to execute '/bin/systemctl' '/bin/systemctl stop--no-block nvidia-persistenced': No such file or directory   It then continued with the login screen. I entered my password and pressed enter. It waited for a while and the login screen reappeared again.  How can I fix the problem?


I'm trying to prove the following inequality for $a$, $b$ $\in \mathbb{R}_{>0}$, $n$ $\in \mathbb{Z}_+$  $(a + b)^{\frac{1}{n}} \leq a^{\frac{1}{n}} + b^{\frac{1}{n}}$  At first glance I thought this would be provable by induction but had little luck so far. The next approach I've tried is to prove that the inverse holds instead as following  $(a + b)^{n} \geq a^{n} + b^{n}$  which is easily done using the the binomial theorem when $n$  is an integer but it feels like it needs to be done for all real $n$ for the argument to hold to prove the previous inequality.


javascript - how to convert unicode string to ascii

How to convert unicode string to ascii to make a nice string for a friendly url?


I have submitted my mathematical paper to a journal in November 2018. After that, it has the status "Awaiting Referee Selection" during 4 months. I contacted the Editor-in-Chief for his support, luckily, he is very nice. The result is that the status of the paper has been "under review" in March 2019 and he said that:     I hope to receive the reports of the referees by mid-April.   However, today (April 24, 2019) I still has not received the first decision.  Should I contact the Editor-in-Chief again or not? Thank you for your comments.


Bibliography with page number references of citations

I'm trying to find a way to have my bibliography with page number of all its citations.. something similar to this..  Author A, Author B, author C, ”yet another amazing paper" amazing  conference, 2014. Cited on pages 97, 99 & 105.   Question of curiosity, does LaTeX provide some way to have the references in the order of first occurrence?  \documentclass[a4paper,12pt]{article}  \usepackage[square, sort, numbers, authoryear,backref=true,backrefstyle=none, hyperref,backend=biber]{biblatex} \usepackage{cite} \usepackage{hyperref} \hypersetup{   colorlinks=True,   citecolor=Green,   linkcolor=Red,   urlcolor=Blue,   linktoc=all,   }   \begin{document}  test~\cite{texbook}  \bibliographystyle{unsrt} \bibliography{references}    \end{document}   references  @BOOK{texbook,    author = "Donald E. Knuth",    title= "The {{\TeX}book}",    publisher = "Addison-Wesley",    year = 1984 }


I am trying to return the parameter names from the following enum model. Here is  my code  using System.Text.Json.Serialization;   namespace Digital.HrAssist.Services.Models {     [JsonConverter(typeof(JsonStringEnumConverter))]     public enum EExitStatusDescription     {         Started,         Incomplete,         Completed,         Cancelled,         SubmittedForProcessing     } }   return o => new EmployeeExitItem {       ExitId = o.ExitId,       EmployeeId = o.EmployeeId,       KickoffDate = o.KickoffDate,       Action = (EExitActions)o.ActionId,       Status = (EExitStatus)o.StatusId,       StatusDescription = (EExitStatusDescription)o.StatusDescription };  public class EmployeeExitItem {     public Guid ExitId { get; set; }     public Guid EmployeeId { get; set; }     public DateTime KickoffDate { get; set; }      [EnumDataType(typeof(EExitActions))]     [JsonConverter(typeof(JsonStringEnumConverter))]     public EExitActions Action { get; set; }      [EnumDataType(typeof(EExitStatus))]     [JsonConverter(typeof(JsonStringEnumConverter))]     public EExitStatus Status { get; set; }      public EExitStatusDescription StatusDescription { get; set; } }   So I want to get the parameter names like "Started", "Incomplete" etc however I am currently getting this error "Cannot convert type 'string to 'digital.hrassist.services.models.EExitStatusDescription''"


How to create an file and copy the content from another file into the created file in java?

I am trying to read a file and write to another file it is not working I invoke the method from the main  public boolean copy(String inputPlayList, String outputPlayList, int numberOfMunites)  {      String start1 = "#EXTINF:";      String afterNum = ";";      try     {    declaring those variable that I would use to pass the method          File fInput, fOutput;          String s;             String a;   assigning those variable to the method          fInput = new File(inputPlayList);         fOutput = new File(outputPlayList);          // Now I am using bufferedRead and BufferedWriter to read and write in a file          BufferedReader br = new BufferedReader(new FileReader(new File(inputPlayList)));         BufferedWriter out = new BufferedWriter(new BufferedWriter(new FileWriter(outputPlayList)));          // creating a while saying while the line is not finish contunue to read           while((s = br.readLine())!= null)          {            if(s.contains(start1))  {                String numberInString = s.substring(start1.length(), s.indexOf(afterNum));                numberOfMunites+= Integer.getInteger(numberInString);             }            // when it is finsh close the file.           out.write(s);            }          out.close();          System.out.println("donne");      }catch (  IOException e)     {         System.err.println("the is an erro that need to be fixed"+e);     }     return false; }   }


I moved some apps to SD, why haven't int/ext storage changed?

The apps were all user-downloaded. Transfer size should have created generous internal storage "breathing room."  Details:  Samsung Galaxy S5 Android 5.0 Via Android App Manager(AAM) reported completion of each move 64GB Samsung SD Card (presumably undamaged) Internal storage 90-95% capacity. Phone was restarted after all the moves. Cleared each cache before moving.  Referred to the following, but it is dated and from a different platform.     Editorial: Why, if so little storage is gained with a move, are SD cards so recommended as near-crucial in Android? After 6 months, my "Let the buyer beware" factor is growing with each swipe at each of Android's supposed benefits. Seems I need a PhD to embark on just about any change.


I came across the following sentence while reading "To Kill a Mockingbird" by Harper Lee. Is it correct  Everybody in town’s father  was playing, it seemed, except Atticus.  Or it should be rephrased as  Everybody's father in the town was playing,  it seemed,  except Atticus.  Thanks in advance.


Do video cables (DVI, VGA) exist that do not need to be screwed in?

Are there 15pin VGA cables that don't have a screw connection on one end?  What are they called?


Do any countries other than USA require passing immigration for in-transit travelers?

Whenever I've been on a flight between two countries with a stop at a US airport, I've had to:   Disembark. Go through immigration. Reclaim my checked baggage. Go through customs. Recheck my baggage. Pass back through airport security.   At any non-US airport, my baggage has automatically been transferred to the next plane and I've simply walked through the "safe area" of the airport to the new boarding gate.  This is especially annoying when the plane arrives late and there is very little time to get to the connecting flight.  Whenever possible I now avoid any routes that pass through that country.  Is the USA the only country that does this immigration thing?


where can I find the good sources.list for 16.04.1? I messed it up and do not make a backup. Please let me know where I can find the good one?


Hiding downvoted questions silences important discussions on Meta

I just noticed a particular MSE post today on a topic I care about that was posted almost a week ago, which I entirely missed before. I'm a pretty avid MSE user, and this happens quite rarely to me.     was created by an SE employee, and is essentially the final answer to , which is the 10th most upvoted MSE post with a bit more than 900 upvotes right now. So it's kind of an important post, and on a topic I care about, but I still missed it entirely until it was linked in a comment somewhere else.  The reason I missed it is because it's heavily downvoted. This means that as it has below -8 score, it's hidden from the home page entirely, drastically reducing the visibility of the post. In particular, the negative score removes all visibility a question usually receives from being bumped due to edits, new answers and bounties.   Many of the recent heavily-downvoted Meta posts by SE have been featured manually, which grants them a lot of visibility beyond the particular meta site. This masked the problem pretty efficiently, but it is more of a workaround, and one that isn't applicable to all situations.  Voting means something different on meta sites, and not every downvoted question should be hidden from view. Closed downvoted questions can certainly still be affected by the usual rules on the home page, and that should cover the vast majority of questions that actually have a purpose being on the home page. But open questions should be displayed on the home page on meta sites even if they're heavily downvoted.


Using nohup to keep a script running indefinitely

I am very new to Linux and I've only been using it to SSH to my web server using Putty. The issue I am having is this:  Basically I've got 2 php scripts. One get_tweets.php constantly listens for tweets on twitters Streaming API whilst the other - parse_tweets.php logs these into a db. In order for these to work they've to be kept running continuously.   I've been using the following commands to run them in the background and from what I've seen they run for most of the day, however whenever I log on to my computer in the morning the scripts have stopped and I've to run commands again.  nohup php my_script.php > /dev/null &   I'm just wondering if that is normal based on the commands I am using, should they run indefinitely when using nohup and if not what is the alternative? A CRON job?  Thanks for the help


Any reliable method for transferring files between Android-based device and Windows-based computer?

From at least  to at least  (most likely Pie as well) we are forced by Google-Microsoft trust into using MTP as the only (?) files transportation method between Android-based device and Windows-based computer (if not count as pity, sad and dully methods as attaching files to e-mail messages).  For at least five years billions of users around the world are forced into using solution that is:   extremely slow (transferring large files collections or huge files takes hours even on USB 3.1), extremely unreliable (device can stop responding even after sending just a few files), not working at all most of the time (device that stoped working may not "restart" and may not allow you to copy files even after dozens of unplug cable-plug it again  sequences).     (I can see above message after each and every file that I copy; I have to unplug and plug the USB cable again after copying each single file)  Questions:   Supporting, OT and philosophic one: What am I missing? Why we are forced into using this madness? Why nothing had been done for five years to resolve it? Main and real one: Is there any other way? Any fast, reliable method of transferring files from Android-based device to Windows-based PC?   Described problem was tested on Windows 7 and Android 8.0, so not the newest ones, but still very widely used. And on the quite modern phone -- Motorola Moto Z2 Play -- but of course happnes on dozen other Android-based devices that I own and billions of Android-based devices other uses.  And, as stated in links given in first sentence, absolutely nothing had been done into resolving this problem for at least five past years. Is this some kind of sadistic way of understanding market and treating its customers, developed by Microsoft and Google or what?


Salesforce trigger Opportunity and Opportunity product

I am working on a requirement to create an opportunity and opportunity products , when there is an update on the asset object.  The asset object has a filed called Refresh_Asset_To__c, this is a lookup to the product object.   Basically each time I change the product on the Refresh_Asset_To__c, a new opportunity should be generated with the Refresh_Asset_To__c being the opportunity product.  I have tested , and its generating the opportunity , but each time i try to insert the opportunity product I get the error :      Update failed. First exception on row 0 with id 02i3B000003TAk7QAG; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AssetRefreshOpp: execution of AfterUpdate caused by: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: PricebookEntryId (pricebook entry currency code does not match opportunity currency code): [PricebookEntryId] Trigger.AssetRefreshOpp: line 56, column 1: []   This is my code:  trigger AssetRefreshOpp on Asset (after update) {      Pricebook2 ikmBook    = [SELECT Id,CurrencyIsoCode FROM Pricebook2 WHERE Id = '01s46000003K1zXAAS'];  List<OpportunityLineItem> oppLiList = new List<OpportunityLineItem>(); Opportunity opp; OpportunityLineItem oli; string refeshed;     List<asset> refreshedAss = [select Id,Contract__r.EndDate,OwnerId,quantity,Name,Refresh_Asset_To__c,Refresh_Asset_To__r.Id,AccountId,account.name from asset                                      where Id IN : Trigger.new                                      And Refresh_Asset__c = True];          for(asset myAss:refreshedAss){             // Create New Opportunity              Opportunity newopp =new Opportunity();   newopp.Name=myAss.account.name + ' ' + 'refreshed'; newOpp.AccountId = myAss.AccountId; newOpp.CloseDate = myAss.Contract__r.EndDate; newOpp.StageName = 'Create'; newOpp.RecordTypeID = '01246000000TfMZAA0'; newOpp.OwnerId = myAss.OwnerId; newOpp.Amount = 0; newOpp.Type= 'Existing Business'; newOpp.OM_Order_Type__c = 'Regular'; newOpp.CurrencyIsoCode = ikmBook.CurrencyIsoCode; newOpp.Pricebook2Id = ikmBook.Id;  insert newOpp;          List<PriceBookEntry> priceBookList = [SELECT Id, Product2Id,CurrencyIsoCode, Product2.Id, Product2.Name FROM PriceBookEntry WHERE  PriceBook2.isStandard=true LIMIT 1];               for(asset myAssets:refreshedAss){               OpportunityLineItem oli = new OpportunityLineItem();                oli.OpportunityId = newOpp.Id;                oli.Product2Id = myAssets.Refresh_Asset_To__r.Id;                oli.PriceBookEntryId = priceBookList[0].Id;                oli.UnitPrice = 0;               oli.Quantity = myAssets.Quantity;               oppLiList.add(oli);           }           insert oppLiList;               } }


I'm trying to delete a large number of records from SFMC to avoid being charged extra. I've run several different SQLs to help identify the records I don't need, but when I run the Contact Count report, it still shows approx 100K billable contacts and approx 60K distinct email addresses.  Here are the SQLs I've tried:   No Opens in past 5 days Leads/Contacts not in SFDC  SubscriberKey as Email Address Leads/Contacts where SubscriberKey is Empty Unspecified records (DE populated by MC Support)    These efforts reduced the count a good amount, but not as much as I was expecting.   Has anyone else gone through this process before and if so, what queries can you share that might help my case?


As things stand, will House Stark go extinct?

According to the family tree in A World of Ice and Fire Ned Stark's children are in fact the only surviving Starks. And as of S06E09;      Bran is the only legitimate, male Stark.   In the Season Six Finale it is revealed that;      Jon is in fact the Son of Lyanna Stark and most likely, Rhaegar Targaryen.   This means that if Jon was legitimised and there was record of his birth in the Citadel;      He would become a Targaryen.   So I guess my big question is: Can Bran father children? I find it to be quite an important issue considering House Stark's long term survival depends on it.  In season 4 (I can't remember which episode) Locke Bolton gives Bran a cut on the leg to confirm his identity. Bran reacts only with fear and not pain, indicating that he has no feeling below his waist.  Does this mean that he wouldn't be able to...get it up? And if so, why hasn't the show addressed House Stark's impending doom?


Google Drive search for part of a file name

Is there any way I can search based on the last three digits of a file name?  I have a file with many invoices that are easy to reference with the last three numbers. Is there any way I can search something like *765 to search for ends with 765  Another example.. sometimes files are prefixed with a 0, sometimes not.. 093241251 vs 93241251 and if I just search 93241251 it will not find the 0 prefix version


Could not load 'vboxdrv' after upgrade to Ubuntu 16.04 (and I want to keep secure boot)

I upgrade from Ubuntu 15.10 to 16.04 and since then VirtualBox 5.0.18 isn't starting my VMs anymore. It complains that 'vboxdrv' isn't loaded. So I try to load it and get the following error:  $ sudo modprobe vboxdrv modprobe: ERROR: could not insert 'vboxdrv': Required key not available   I believe it is related to secure boot which I use and which I want to continue using. Actually with Ubuntu 15.10 secure boot and VirtualBox were working just fine.  Also I tried $ sudo apt-get --reinstall install virtualbox-dkms which built the kernel module successfully but didn't solve this issue.  Any idea how to get vboxdrv loaded while keeping secure boot enabled?  Update 2: Also I tried executing sudo mokutil --disable-validation. When executing this command, during the next boot I get prompted to disable secure boot, add a key or hash from disk. Since I don't want to disable secure boot, it seems that this doesn't solve my issue either. Also I want to keep UEFI activated for a parallel Windows installation.  Note: If you don't mind disabling secure boot, see  instead.


Displaying `\begin{verbatim}...\end{verbatim}` inside the environment verbatim

I would like to display \begin{verbatim}...\end{verbatim} inside the environment verbatim like in the folowing piece of code. Is it possible ?  \begin{verbatim} Bla, bla, \begin{verbatim}...\end{verbatim} Bla, bla,... \end{verbatim}


Why doesn't Loki use his telekinetic powers more in the Avengers or Thor movies?

In the recent Thor installment, 'Thor: The Dark World', upon receiving the news of Frigga's death, Loki in his cell, out of anger and frustration uses some form of telekinesis to throw all the furniture in his cell, without physically touching it, by clenching his fists.   This is the first time in the MCU that Loki has been seen using this ability and has yet to be formally addressed and elaborated on.    If Loki indeed has telekinetic abilities, why did he not use this useful ability during 'The Avengers' or even in the first 'Thor' film.    An ability like that might have proven useful for him in 'The Avengers' movie.


How to create an "area of interest" polygon mask?

I've created a GP tool using ArcGIS that creates an "area of interest" mask from selected features.  Effectively it creates a new donut polygon layer where the hole was the previously selected features.  Can I replicate this task in QGIS?  Example: For a specific map, I want to highlight a county within the state and mask the rest of the state and features outside the county with a gray, semi-transparent polygon layer above.  Conceptually I would do it similar to this.   User loads state, county, and river layer User selects county of interest Run a utility (if it exists) that exports all of the unselected features to a donut shapefile without the originally selected polygon.  If this layer mask was an "in memory" layer only available to QGIS, that would be just fine, too, maybe even better.   Does this type of tool or capability already exists within QGIS or will I have to write this as a custom function?  Here is how I did it in ArcGIS with ModelBuilder and the result I would be looking for, where the yellow layer and river layer exists statewide (all the way across the image), and the gray layer is transparent with a "donut hole", allowing the bright yellow portion to display through and draw the viewers attention the the area of interest:


What is the problem with post-hoc testing?

My statistic professor says so, all the books that I look at state it:  is unscientific. You must derive a hypothesis from theory first, and then collect data and analyse it.  But I really don't understand what the problem is.  Suppose, I see sales figures for different car colors and form the hypothesis that from numbers of different-colored cars sold the largest group of cars on the street shoud be white. So I sit at some street one day and note all the colors of all the cars that pass me. Then I do some tests and find whatever.  Now, suppose I was bored and sat at some street one day and noted all the colors of all the cars that passed me. Since I love graphs, I plot a pretty histogram and find that white cars form the largest group. So I think that maybe most cars on the street are white and perform some tests.  How and why do the results or the interpretation of the results of the post-hoc test differ from those of the theory-driven* hypothesis test?  * What's the name for the opposite of a post-hoc test, anyway?    I would like to add that most of our knowledge about the universe (the Earth moves around the Sun) is deduced post hoc from observation.  It seems to me that in physics it is perfectly okay to assume that it is not coincidence that the sun has been rising in the East for the last thousand years.


Is it ever competitively viable to use a Pokemon in a lower stage of evolution?

I've decided to give competitive battling a crack. I've been playing around with the battling simulator,  and after watching a few videos and reading some tutorials, I'm starting to put together some teams.  I've read the answers on , but they seem to specifically deal with stat advantages or only holding evolution off as long as it takes the Pokemon in question to learn a move it won't otherwise learn (or so that it learns it sooner).  Is there ever any reason to use not-fully-evolved Pokemon in competitive situations, either in Singles or Doubles (the VGC competitive standard)? What advantage would be gained from doing so?


can I bring a cheese slicer (aka cheese plane) in my carry-on bag? It's a domestic flight, if it matters.  By cheese plane, I don't mean a grater - It slice cheese into thin slices. I'll look for a link on amazon.  By domestic flight, I mean internal U.S. flights.


Proof of the square root inequality $2\sqrt{n+1}-2\sqrt{n}<\frac{1}{\sqrt{n}}<2\sqrt{n}-2\sqrt{n-1}$

I stumbled on the following inequality: For all $n\geq 1,$ $$2\sqrt{n+1}-2\sqrt{n}<\frac{1}{\sqrt{n}}<2\sqrt{n}-2\sqrt{n-1}.$$ However I cannot find the proof of this anywhere. Any ideas how to proceed?  Edit: I posted a follow-up question about generalizations of this inequality here:


Does anyone have a simple work-flow for drawing cross sections of earth features in QGIS?   My thing is that QGIS is being used to present the plan view, but we have a little interest in some elevations as well. All the data is one set and is simply an elevation value in the attribute table, I don't want to have to move all that to CAD.  One logical workaround is to present the z value as the y.  I am a dunce in paper space in CAD, and would be more comfortable with the QGIS Composer.


What´s the most suitable software and way to do this kind of CALENDARS?

I like 2 kinds of annual calendar.  ONE is this   (  )  ANOTHER(numer two) is this   (  )    I usually use Fireworks CS6 (and may be than in a few months I´m going to use Illustrator), but thw question is what do you think is the most suitable software to do this kind of calendars, and little explication of how to making one. A grid? Aligning weeks after aligning columns of the days(numbers)? Is a special way to do this kind of calendar?  Thank you very much. Best Regards.


why is ${n+1\choose k} = {n\choose k} + {n\choose k-1}$?

Can someone explain to me the proof of $${n+1\choose k} = {n\choose k} + {n\choose k-1}$$?


How can I force the ubuntu 16.04 to use all the cores to compile or make opencv 3?  I have found a website to change a cmake file called OpenCVFindLibsPerf.cmake, on this blog   But it did not work! Maybe because I have already TBB  Any idea?  thanks


Double extra damage from the "save-for-half-damage" part of a critical hit?

to my  included the following information from Sage Advice:           Any damage dice delivered by a critical hit—as opposed to a saving   throw—are rolled twice.   This has reminded me of another situation that happened recently; if an Imp were to attack with it's stinger with an attack roll of 20, it clearly doubles the piercing damage die, but what about the poison damage die (assuming the target fails their save against it)?   I previously assumed to double the poison damage die too, but this quote might imply that it isn't, if I'm reading the "as opposed to a saving throw" bit right.   Is that right? The poison damage die shouldn't be doubled in this case? Or is the part about the saving throw just describing spells like acid splash or fireball, where no attack roll exists so there cannot be a critical hit?    To clear that up a bit, does the part reading "as opposed to a saving throw" mean:  1) The poison damage from the Imp would be unaffected because there's a saving throw to determine the amount of damage;  2) The poison damage from the Imp would be affected because this part of the quote is just describing attacks without attack rolls;  Which is the correct interpretation?


Does every infinite group have a maximal subgroup?

$G$ is an infinite group.  Is it necessary true that there exists a subgroup $H$ of $G$ and $H$ is maximal ?  Is it possible that there exists such series $H_1 < H_2 < H_3 <\cdots <G $ with the property that for every $H_i$ there exists $H_{i+1}$ such that $H_i < H_{i+1}$?


Parent theme directory: blablator, child theme directory: blablator-child  Network sites; two different child and parent themes. Both .po and .mo are in child directories' /languages folders.  Added to both child functions:  function my_child_theme_locale() {     load_child_theme_textdomain( 'blablator', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_child_theme_locale' );   Changed in sites, and in network language to Bosnian. .po and .mo are set to bs_BA.  Not working! Why?  Update:  I don't want to override () anything.  My translation exist only in childs theme "language" folder.  I don't mix any strings, or I want strings from childs to work with parent.  I have no idea what "Translating child theme", has to do with "Override parent  theme translation on child theme", except that I tried same function to acomplish different or similar task.  It is as if someone asked "What is WordPress", and any other question about WordPress would be duplicate, because it is about WordPress.  Delete question if its duplicate, I'm off this community anyway.


can't set TTY resolution in ubuntu 16.04

Ubuntu server 16.04 installed on a virtualbox vm - no Xorg. Trying to change resolution same way as with previous ubuntu versions. in /etc/default/grub:  GRUB_GFXMODE=1152x864 GRUB_GFXPAYLOAD=keep   ran  update-grub   as root and rebooted - resolution works during grub menu but as boot continues it reverts to 800x600.   I have tried manually setting the grub_gfxpayload value, using keep, using a different resolution, all do the same thing and ONLY on the 16.04 vm that i have. I have a 14.10 vm and these settings work fine (all of them, actually).  Also tried vga= (which is deprecated), tried using uvesafb which doesn't launch (modprobe doesn't start it correctly and thus the second step of the answer mentioning it doesn't work), and vesafb which gives me the following error:   modprobe FATAL: vesafb not found in /lib/modules/(kernel name)/   I'm wondering if this is an issue with VMs specifically, since I can do this part on my standard computer, which is also running 16.04. Perhaps the drivers for Virtualbox cause the framebuffer to not start properly? Not sure why it'd only be on 16.04 and not previous versions, though.


Change horizontal alignment of equation tags

By default, equation numbering seems to left align.  However, I would like instead to indent the equation number just slightly.  The motivation for this is to align the equation number with the body of text surrounding it (which itself is indented because it appears in a list).  For example, see the following:    In this example, I would instead like to align the (A.1) tag with the text instead of with the left margin.  How do I do this?  EDIT:  As requested, here is a MWE:  \documentclass{amsart}  \usepackage[leqno]{amsmath} \usepackage{enumitem}  \begin{document}  This is text before the list. \begin{itemize}[leftmargin=*] \item This is an item in a list, and this is an equation in the list: \begin{equation} x^2+3x-1=3. \end{equation} \end{itemize} This is text after the list.  \end{document}     It's definitely worth noting that the problem is solved by changing the document class from amsart to article (though this is not an option for my document).


How to remove unneeded ENG International keyboard layout from Windows 10 permanently?

After every update or restart Windows 10 adds English International keyboard layout.  In Settings > Time & Language > Region and Language > Preffered languages > English (Unites States) I click "Options"    And there is only US QWERTY keyboard.  However, the tray icon gives two English choices: ENG US, ENG INTL, LIT.    So to remove it I have to go back to the Preferred languages > English (United States) I click "Options"  Then "Add a keyboard" and then "add "United States-International". Close Settings.  Open Settings again. Now go to Preferred languages (as described before), click on English (United States) > Options and remove "United States-International". Close Settings. Now the tray keyboard list will not have ENG INTL options!    My question is how to permanently remove International layout from the list so that I don't have to do this every time after Windows updates?


If the matrix $A^3 = 0$, is $A$ singular?

How can I show that if the cube power of a matrix is the null matrix, then the matrix itself is singular?


How to backup fresh OEM install of Windows 7 for a restoration

I purchased a laptop with with Windows 7. The OEM did not provide the disc, but there is a Windows installation with a recovery partition. The Windows 7 machine has not been setup or activated.  I need to install a different operating system for testing. Installing the new operating system side-by-side will cause more trouble than its are worth, so I am going to install the new operating system over Windows 7. That is, I am going to "blow out" the existing Windows 7 installation.  Later, I may want to be able to revert to Windows 7. My question is, how do I backup the current Windows 7 installation, without setup or activation, so I can use it again in the future, if desired?    Many existing questions and answers, like ,  and , presume the machine is setup. (I don't have an HP but I expect the process is similar).  I am trying to avoid the setup process because I want the "cleanest" untainted image as possible.    And so I am clear on what I am asking: I am looking for specific instructions, and not vague advice. For example, call out a tool you have used, and provide the two or three steps needed.  Sorry about this item. Without it, its seems like (1) the question could be vague or broad; and (2) I might create a useless backup image that does not restore (and I won't find out until sometime in the future). And testing a broken backup image will blow out things without a way to restore.


Can I install Ubuntu 13.10 without the internet?

I'm new to Ubuntu and Linux in general.  I'm currently out of town and the dorm I am living in has terrible internet connection. It won't be another 2-3 weeks before I can go home and have proper internet connection.  So my question is whether or not I can install Ubuntu 13.10 in my laptop without the internet and then do the updates once I go home?  Also, I'm attempting to do a dual boot with my Lenovo G505s which was pre-installed with Windows 8. Hopefully I can pull this off.  I already did the necessary things (I think and hope so) prior to installation:   Disable secure boot Enable legacy and boot UEFI first Create partition Put installer in my pen drive   As I am quite new to this, any advice would be of great help. Thanks in advance!  EDIT: I tried yesterday. The installation asked me to connect to the internet, so I used my crappy dorm internet. When it reached the downloading/installtion of Ubuntu One, it just stopped and went on forever. So I had to stop it.


If $A\in\mathfrak{M}_{m,n}(F)$ and $B\in\mathfrak{M}_{n,m}(F)$, prove that $AB=I_m$ implies $rk(A)=rk(B)$. Here $A\in\mathfrak{M}_{m,n}(F)$ means $A$ is a ($m \times n$)-matrix with entries in $F$. My approach: I tried to consider $A$, $B$ as linear maps, $L_A:F^n\to F^m$, $L_B:F^m\to F^n$. And we know $rk(A)=\dim{\mathrm{Im}~L_A}$, $rk(B)=\dim{\mathrm{Im}~L_B}$. Then by the Dimension Theorem, it suffices to show that $n-\dim{\ker{L_A}}=m-\dim{\ker{L_B}}$. However, I don't know how to prove this.