I need your help to cover my wrapper class in the test class : **Wrapper class :** @JsonAccess(serializable='always') public with sharing class HelicoRequestsWrapper  {          public CritereTechnique critereTechnique;     public CritereLocalisation critereLocalisation;     @JsonAccess(serializable='always')     public class CritereLocalisation  {         public AdresseHorizontale adresseHorizontale;          }         @JsonAccess(serializable='always')     public class AdresseHorizontale {         public String codeINSEE;         public String codeRivoli;         public String numero;         public String libelleVoie;      }      @JsonAccess(serializable='always')          public class GammeOffreOperateur {         public String nom;     }    @JsonAccess(serializable='always')     public class SupportAcces {         public String code;         public GammeOffreOperateur gammeOffreOperateur;     }     @JsonAccess(serializable='always')     public class CritereTechnique {         public List<SupportAcces> supportAcces;     }         }   Test class @isTest public class HelicoRequestsWrapperTest {  private static testMethod void testmethod2(){        HelicoRequestsWrapper offer = new HelicoRequestsWrapper();              HelicoRequestsWrapper.AdresseHorizontale adresse = new HelicoRequestsWrapper.AdresseHorizontale ();         HelicoRequestsWrapper.GammeOffreOperateur objGammeOffreOperateur = new HelicoRequestsWrapper.GammeOffreOperateur(); objGammeOffreOperateur.nom='FIBRE DEDIEE';  adresse.codeINSEE='23';         adresse.codeRivoli='44';         adresse.numero='23';         adresse.libelleVoie='rue';               HelicoRequestsWrapper.CritereLocalisation critlocalisation = new HelicoRequestsWrapper.CritereLocalisation ();   critlocalisation.adresseHorizontale=adresse ;         offer.CritereLocalisation = critlocalisation; } }  the coverage still zero .


Is a "log out from every SE site in the network" button technically feasible?  With so many SE sites popping up, it would be a very useful feature.  Edit: has this been implemented now, as @Ben suggests in his comment? I've lost track.


If OP accepts a suggested edit, take it out of the review queue and auto-accept it

A non-participating user did a drive-by edit of an answer, changing the answer. It was in my review queue and I rejected it. However, 3 other users with high accept-reject rates accepted it. I rolled back the edit because it was invalid, and commented on the answer accordingly.  As it turns out, the OP of the answer accepted the change. That was not apparent to me.  Either   it needs to be more obvious that this drive-by change (which should be rejected) was accepted by the OP, or if the OP accepts an edit, it should be removed from the Suggested Edit queue and be auto-accepted, or changes accepted by OP should look like OP edited the question themselves, or something.


How can you distinguish a "Standard" Card fro a "Modern" Card?

I recently played in a Standard draft at Friday night magic and I was informed that there are certain specific sets of cards that can be used in Standard.  I am aware that Modern includes all standard cards also. what I want to know is how can you distinguish which cards you can use in standard?  Is there any symbolisation for a standard card? As the markers in the right hand side of the creature type line such as M14 and so on seem to not make much difference.


How can I observer the desktop GUI interacting with the shell?

For example, if I change the sound volume by the ubuntu desktop widget, I think it will issue some commands to the shell or run a script.  Is it possible to see what it runs?


Error message during backup for Ubuntu 18.04

Message as below; tried deleting backups (not all) but to no avail. Changed to blank USB drive and received same message. Any help appreciated.  "E: Malformed entry 52 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read."


Why does `tr` not work with find and with command substitution?

I want to transform/"translate" all files in a folder from lower to uppercase. I could use a for loop to do that:  for i in ./* ; do mv $i $(echo $i | tr "a-z" "A-Z") ; done for i in `find . -maxdepth 1 -mindepth 1` ; do mv $i $(echo $i | tr "a-z" "A-Z") ; done   But I'm wondering why tr does not work within find:  find . -maxdepth 1 -type f -exec mv {} $(echo {} | tr "a-z" "A-Z") \;   It just prints the file names once again, with changing them to upper case. Why does the find version not work?  My goal is to use find instead of a for loop.


Prove there are $\xi$, $\eta$ with $f'(\xi)f'(\eta)=1$

Let $f:[0,1]\to\mathbb{R}$ be continuous with $f(0)=0$, $f(1)=1$ and $f$ is differentiable on $(0,1)$. Show that there are distinct $\xi,\eta\in(0,1)$ so that $f'(\xi)f'(\eta)=1$.  I think this requires mean value theorem. But this does not help since if apply the theorem to $f$ we can only get $f'(c)=1$ for some $c$.


Proving a polynomial has a solution in the interval (0,1)

I have no idea how to start this problem. I am assuming that the Mean Value Theorem is needed in the proof but I am not exactly sure how to apply it to the given polynomial. Any hints/help would be appreciated.   If  $ \frac{a_n}{n+1} +  \frac{a_{n-1}}{n} + \cdot \cdot \cdot + \frac{a_1}{2} + a_0 = 0 $,  prove that the polynomial equation  $ a_n x^n + a_{n-1}x^{n-1} + \cdot \cdot \cdot + a_1x + a_0 = 0$  has a solution in $(0,1)$.


How can I display a link to a specific comment in Stack Overflow? Like how can I find the url?


I am creating an external tool to help with auditing user access across multiple applications. One of those on the list is Marketing Cloud to be able to see which users have accounts and their status.  I am trying to find out if I can get this information from the API but I am coming up short.  I have an API user with Read on the User object, but it doesn't seem to let me access it.  When I make a retrieve call to "UserAccess", I get the following error: Error: The specified principal does not have permission to view the requested UserAccess data.  Can I access this user list through an API?


Since everyone freaked out, I made the variables are the same. $$ \sum_{x=1}^{n} 2^{x-1} $$  I've been trying to find this for a while. I tried the usually geometric equation  but I couldn't get it right (if you need me to post my work I will). Here's the outputs I need:  1, 3, 7, 15, 31, 63  If my math is correct.


I want to upload a file in background using JavaScript and XMLHttpRequest but my page "upload.php" receive empty $_POST and $_FILES.  var formData = new FormData(); formData.append("file", file); xhr.open("POST", "upload.php", true); xhr.setRequestHeader('Cache-Control','no-cache'); xhr.setRequestHeader("Content-Type","multipart/form-data");      xhr.send(formData);   I have try a lot a things in xhr.setRequestHeader() but nothings work.


You can't come back here once you leave/ you've left --- the difference in meaning

You can't come back here once you leave.  You can't come back here once you've left.  Do both the above sentences mean the same?


my question it's because previously i tried to install windows 10 on external ssd but it doesn't work correctly so, i wonder if ubuntu 20 or linux mint have the same problem. Actualy, i use dual boot with Ubuntu 20 and windows 10, but i have been thinking on use completely Ubuntu 20


Does Samsung Galaxy Grand 2 support Otg?  I have read various opinions but they are all very confusing...  Please help.


python 3 int' object has no attribute 'isdecimal'

Very new to python and trying to create a program which takes an inputed number and tells the user if the number is odd or even. I have part of it working, it takes an number and gives the correct output depending on weather its odd or even, but the problem is, if you enter anything but a number, the program dosn't recongise it and crashes the program.   My solution dosn't work and I don't understand the error message.  Enter any number above 0   45 Traceback (most recent call last): line 5, in <module>     if not number.isdecimal(): AttributeError: 'int' object has no attribute 'isdecimal'   My implementation:    while True:     print()     number = int(input("Enter any number above 0   ")) # Ask user to input a number      if not number.isdecimal(): # Trying to get code to reject a input that is not a number instead of crashing the program         print()         print("Incorrect format, please enter numbers")         print()     else:         if number % 2 == 0: # Tell user inputed number is even if number is even             print()             print("That number is even!")         else:             print()              print("That number is odd!")  # Tell user inputed number is odd if number is odd


Error while adding any field in custom content type

I am unable to add any field in my custom content type, when I click on save button or click on upload after adding images it gives me the following error and for the text field the error is simply Exception thrown without a stack frame in unknown on lne 0, after this a white screen appears. :  After this website appears to be blank until I import the database again.  UPDATED After adding following lines of code in the bottom of settings.php,   error_reporting(-1);  // Have PHP complain about absolutely everything  $conf['error_level'] = 2;  // Show all messages on your screen, 2 =   ERROR_REPORTING_DISPLAY_ALL. ini_set('display_errors', TRUE);  // These lines just give you content on WSOD pages. ini_set('display_startup_errors', TRUE);   I got the errors appears instead of white screen:


I am learning how to code HTML from websites and other people. This one site mentioned the <div> and <span> element but didn't really give a good definition of them. Can someone tell me exactly what they are for and how to use them?


How to find which RAM to get for my computer?

I don't have any knowledge in hardware and would like to know which RAM should I buy for my laptop.  How do I discover what RAM I need & how much my machine can take?  I have a Razer Blade 15 (RZ09-02705F76) 2018 but don't know if there is a specific type or format of RAM that suits it and don't know where to find this information.


How fast does the force of pulling a straight rope propagate along the rope?

Is it instantaneous or does it somehow propagate like a wave along the particles of the rope ?


Can anyone identify the S notification icon

Someone please help me identify the S at the top left corner of my picture


What is the difference between conditioning on regressors vs. treating them as fixed?

Sometimes we assume that regressors are fixed, i.e. they are non-stochastic. I think that means all our predictors, parameter estimates etc. are unconditional then, right? Might I even go so far that they are no longer random variables?  If on the other hand we accept that most regressors in economics say are stochastic because no outside force determined them with some experiment in mind. Econometricians then condition on these stochastic regressors.  How is this different from treating them as fixed?  I understand what conditioning is. Mathematically, it means we make all observations and inference conditional on that particular set of regressors and have no ambitions to say that inferences, parameter estimates, variance estimates etc. would have been the same had we seen a different realization of our regressors (such is the crux in time series, where each time series is only ever seen once).  However, to really grasp the difference between fixed regressors vs. conditioning on stochastic regressors, I am wondering if anyone here knows of an example of an estimation or inference procedure that is valid for say fixed regressors but breaks down when they are stochastic (and will be conditioned on).  I am looking forward to seeing those examples!


Please someone tells me why, after installing Ubuntu 12.04, that my clock displays the incorrect time. My operating system time is delayed several hours, and I don't know how to fix it. Thank you.


What are some examples of statistics problems where Bayesian and frequentist approaches give different answers?

I've heard of the one found here:    about flipping a coin fourteen times, having it come up heads ten times, and then betting on whether the coin would come up heads on the next two tosses.  Are there others? Are there any really classic problems in this area?


biblatex seems to be not compatible with RevTeX. As RevTeX automatically loads natbib, I load biblatex with the option natbib=true, but still LaTeX compiler complains that lot of commands are already defined. I make them undefined as follows:  \let\bibhang=\undefined \let\citename=\undefined \let\textcite=\undefined \let\bibfont=\undefined \let\Citeauthor=\undefined \let\citet=\undefined \let\citep=\undefined \let\citealt=\undefined \let\citealp=\undefined \let\Citet=\undefined \let\Citep=\undefined \let\Citealt=\undefined \let\Citealp=\undefined \let\citefullauthor=\undefined \let\citetext=\undefined \let\defcitealias=\undefined   but still obtain various errors such as  ! Package biblatex Error: Incompatible package 'natbib'.  See the biblatex package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.78 \begin{document}  ?    I've checked that natbib compatibility mode is switched on:   Package biblatex Info: Trying to load natbib compatibility... Package biblatex Info: ... file 'blx-natbib.def' found.  ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\blx-natbib.def" File: blx-natbib.def 2011/02/13 v1.2a biblatex natbib compatibility   So, it looks as if that trouble comes from RevTeX. I tried both RevTeX4 and more recent RevTeX4-1. No difference.


Create a hyperlink to a pdf file in the attribute table

I want to add a hyperlink to a pdf file into the attribute table of a vector layer. I already read the documentation about evis and the answered questions about this here. It didn't seem difficult, but I still can't create a hyperlink...can someone give me a short step by step information about this? Unfortunately I have no access to youtube...  I'm using Qgis (2.0.1) and evis is a plugin that should allow to create such hyperlinks via a event browser. I first added a column "Link" to the attribute table and put the link to the document in this column.  this is the link to the documentation for evis:   Thanks a lot! G.H.


Allamanda blanchetti fertilization mechanism

Here is an  flower in my garden. My question is based on the observation that the flower seems to be devoid of any reproductive structures, i.e., Stamen or Carpel, so how does it set seed? In the picture below it can be seen that the plant isn't sterile and successfully produces seed pods.


I have a div that has text that is right aligned.  I want to then center that div within its parent.  The code below only applies the right-alignment.  CSS  .outerDiv {     text-align: center;     width: 100%; }  .innerDiv {     text-align: right;     width: auto; }   HTML

         10
                      + 2
         12

   I know this can be done with using margin-left: auto; margin-right: auto in the outer div, but that requires that you set the inner div's width, which I don't know ahead of time.  Ideas?


Batch error : System.LimitException: Too many SOQL queries: 201

I have this error when I run my batch "FATAL_ERROR System.LimitException: Too many SOQL queries: 201" even when changing the batch size to 10 ?! I know I need to remove the SOQL queries from the for loop, but I'm unsure how to get the same result otherwise.


I have a 500 GB HDD in my laptop, but when I add up the partitions, they take up 465GB, and there are no unallocated spaces anywhere. Where did that 35GB go?  This is what my HDD looks like in the Windows partition manager:    As you can see, the space used is 0.6 + 0.3 + 409.19 + 37.25 + 2.79 + 15.53 = 465.66GB. On the left, Windows does indeed report the size of the drive as being 465 GB, but I know for a fact that this is a 500GB HDD, unless Newegg, Ebay and Amazon all made mistakes. Can someone please help me get back the 35GB I'm entitled to?   Note: I do know that the HDD has 7 partitions, even if only 6 are shown. The one that you can't see is Microsoft Reserved, and is very small, so that's not what is missing.


Will LG Optimus Exceed update to Lollipop?

The LG Optimus Exceed ships with KitKat 4.4.2. Will that automatically update to Lollipop, or would I need to root the phone?


Use Euclid’s Algorithm to find the monic gcd of (i) X^3 + 3X^2 + 4X + 2 and 2X^2 + 7X + 5  I ended up with 13/4X+13/4 = 45/13(169/180X +169/180), but these are not monic and I don't know where I went wrong as I just followed Euclid's algorithm.


Make and prove a conjecture about when the Fibonacci sequence, $F_n$, is divisible by $7$.   I've realized it's when $n$ is a multiple of $8$. I just don't know how to go about proving it.


Arduino Nano and water pump (2n2222a switch)

Hi there, I've created the circuit following  thread. The arduino D9 pin get 5v and I measured with the tester a VBE of 0,82v, which is right for the transistor saturation. Unfortunately the pump doesn't start! I've tried attaching the pump directly to the 8.3v battery pack (2x18650 batteries in series) and works fine, consuming 150mA. To calculate the 200ohm resistance for the driving current of the base I've followed  guide. The arduino port when HIGH provides 4.7v, so 4.7-0.80=3.9v drop. The resistance should be 3.9V/0.02A=195ohm, i've just rounded to 200.  The pump is connected with the + to the + of the battery.  Any suggestions on how to make it working?


I have a question bout euclid polynomials.  If $C(x) =x^4−1$ and $D(x) =x^3+x^2$  How do I find a polynomials $A(x)$ and $B(x)$ such that $A(x)C(x) +B(x)D(x) =x+1$ for all $x$?


Can I add a cron job without editing a file?

I want to write a script that add a cron job to my crontab but without user intervention like editing a file using crontab -e. Is there a way to programatically manipulate the cron jobs from command line? Any suggestion on how to do that? Thanks in advance.


Setting up network from a "minimal" CentOS 6.4 install

Just installed CentOS 6.4 from a "minimal" ISO.  On first boot, I discover that I cannot ping the outside world, yum update, or anything like that: connect: Network is unreachable.  In fact, I can't even ping the router.  This is on a wired ethernet connection that works fine with no configuration on the same box in Haiku and even BeOS (and at one point, PC-BSD.)  Is my somewhat ancient onboard ethernet not supported by CentOS, or do I need to do something special here?  I noticed on another CentOS 6.4 minimal install on a different box and network that if I didn't specify network settings manually during the GUI installer, I was stuck in a similar situation afterwards, but IIRC I could at least get to the router.


Does registering [name]overflow.com violate Stack Overflow's trademark?

I am considering registering a domain name in nameoverflow.com format.  Would doing so violate the trademark of /Stack Overflow Internet Services?  I ask because "overflow" can be a generic word.  I will not use Stack Overflow-like design on my domain, nor will my site be a Stack Exchange site.


So I ran two regressions with the exact same regressors and regressand but in one of them I took the log(y) because according to the RESET test there was some non-linearity and after applying the test I no longer rejected that the specifications should require higher orders. My question is with regards to comparing the r squares of both regressors, I actually expected that given that the $log(y) vs X $ is a better specification it would have a higher R'2 but it was the opposite. Is the R^2 scale sensitive, or? Summary:  Model1: $y = X$ , $R^2_1$ , RESET H_0 rejected Model2: $log(y) = X$, $R^2_2$, RESET H_0 not rejected $ R^2_1 > R^2_2 $


Where should the apostrophe go on a possessive abbreviation?

When expanding an abbreviation in parentheses, sometimes the thing that was abbreviate was used in a possessive context.  Consider the following example:     If the Giant Ostrich Bomb's (GOB) fuse is too short, you may be too close when it goes off and you may get kicked in the face.   Is the above correct, or should it be rewritten this way instead:     If the Giant Ostrich Bomb (GOB)'s fuse is too short, you may be too close when it goes off and you may get kicked in the face.   If this is a matter of style, do any of the popular style manuals have a recommendation?


Can CBC ciphertext be decrypted if the key is known, but the IV not?

Let's say that there is a binary file encrypted with AES in CBC mode (i.e. using a key and initialization vector). If key is known, but IV is not, is it easy to fully decrypt the file?  How hard is it?


Take half a square with side length $1$. The resulting right-angled triangle ABC has two angles of $45^\circ$. By Pythagoras’ theorem, the hypotenuse AC has length $\sqrt{2}$. Applying the definitions on the previous page gives the values in the table below. that  $\sin 30^\circ= \frac{1}{2}$  Sorry I cannot provide diagram, but from my understanding $\sin =$ opposite / hypotenuse. How is the value $0.5$ derived then? No possible combination. What point of reference should I be looking from?


The higher your credit score, the better. If you ever had the choice of two different credit scores, you are always better off preferring the higher one.  However, while the utility of a higher score is always positive, it is not always large. Sometimes it may even be minuscule. Since having a higher score takes effort (and possibly money) it's not uncommon to end up in a situation where increasing your credit score isn't worth it, since the benefits are too little.  For example,  it is claimed that:     there is no difference between a 750 score and an 850 score; you are already eligible for the best loan rates.   I was curious: What are the major breakpoints of credit scores where it does matter? Are there major score thresholds, that once you pass them, you suddenly experience tremendous noticeable benefits (like suddenly qualifying for a whole class of better credit)? Are there ranges of score (like the 750-850 asserted above) where, it doesn't really matter which part of the range you are in, you still enjoy the same benefits financially?


How to generate a 555 fixed time delay even if trigger button is held on?

Can any one help me how to make it when the switch is presed for long time but it will not affect the time delay


question about an inequality in calculus

Please, carefully show that   $$ e^{\pi} > \pi^e $$  You are not allowed to use a calculator!  thanks


The title pretty much summarizes my question. I am trying to prove the following:  $$\displaystyle \forall N \in \mathbb{N}: \sum^{2N}_{n=1} \frac{(-1)^{n-1}}{n} = \sum^{N}_{n=1} \frac{1}{N+n}.$$  I tried proving this using induction. Starting with the base case $N = 1$:  $$\displaystyle \sum^{2}_{n=1} \frac{(-1)^{n-1}}{n} = \frac{1}{1} + \frac{-1}{2} = \frac{1}{2} = \frac{1}{1+1} = \sum^{1}_{n=1} \frac{1}{N+n}.$$  My problem is the inductive step for $N+1$, starting with  $$\displaystyle \sum^{2(N+1)}_{n=1} \frac{(-1)^{n-1}}{n} = \sum^{N+1}_{n=1} \frac{1}{(N+1)+n}.$$  And now my problem:  \begin{align} \sum^{2(N+1)}_{n=1} \frac{(-1)^{n-1}}{n} &\Leftrightarrow \sum^{2N}_{n=1} \frac{(-1)^{n-1}}{n} + \sum^{2}_{n=1} \frac{(-1)^{n-1}}{n} \\[1em] &\underset{\Leftrightarrow}{\text{ind. hyp.}} \sum^{N}_{n=1} \frac{1}{N + n} + \sum^{2}_{n=1} \frac{(-1)^{n-1}}{n} \end{align}  Is this the correct start, and if so, how do I continue?


Logitech SetPoint software button remapping

My Logitech G5 Laser mouse has 9 buttons but it's SetPoint software only allows 5 of them to be used as "mouse buttons" and the remaining 4 can only be assigned special windows functions (Forward, Back, Cruise Up, etc) or Keystroke Assignments.  Many of the games I play will take up to 10 "MOUSE BUTTON" inputs for in-game actions but wont recognize the remaining 4 buttons even when assigned keystroke assignments.  Is there a way to make these last 4 buttons "Generic Buttons" as well as buttons 3,4,and 5? (1 is left click and 2 is right click).  My other question is if the above is not possible, maybe I can use AutoHotkey to remap keystrokes as assigned by my SetPoint software to mouse button commands?  If so how?


If $A$ is a noetherian ring and $a$ is an ideal of $A$, then $A$ and $A/a$ are not isomorphic rings.

I have started the course in commutative algebra. I am facing problem in how to approach this type of questions. How to think of a mapping between these two rings. Help me in this case. here ideal is non-zero.


Determine position of a rotated element in Tetris

Tetris-Tiles are stored as a 4x4 boolean matrix. Each rotation step has it's own matrix, the representation of the T-Block would look like this:  [     0, 0, 0, 0,     0, 1, 1, 1,     0, 0, 1, 0,     0, 0, 0, 0 ], [     0, 0, 1, 0,     0, 0, 1, 1,     0, 0, 1, 0,     0, 0, 0, 0 ], [     0, 0, 1, 0,     0, 1, 1, 1,     0, 0, 0, 0,     0, 0, 0, 0 ], [     0, 0, 1, 0,     0, 1, 1, 0,     0, 0, 1, 0,     0, 0, 0, 0 ]   I'm trying to find a way to calculate the position of the block when it's being rotated and collides with the board (the board is also a matrix). The original Tetris would simply not allow rotation of a block when the rotation would result in a collision. Modern variants of the game will resolve the collision and move the block to a valid position.  Here are some situations that should be solved. The board is 6x6, red = active block, grey = placed/occupied blocks. Each time, a counter-clockwise rotation should be performed. The green overlay indicates the matrix for the block. The arrow indicates the resulting correction to resolve the rotation:     Block is at the left side of the board. Since the block cannot leave the board, it should be moved back inside after a rotation. Block hits "ground", but isn't placed/committed yet. In this case, the tile must be moved up to resolve the collision (in case of a "I"-Block, the movement would be 2 cells up). Tile would hit occupied blocks, must be moved left to resolve collision. Tile cannot be rotated.   What would be the best approach to tackle this problem? Optimally, the solution should be generic, eg. work with arbitrary 4x4 matrix blocks on an arbitrarily sized and populated board.


Prove, with restriction, that $\pi\neq\sqrt{2}+\sqrt{3}$

Assuming any commonplace, but rigorous, definitions and properties of $\pi$, what could be a simple, rigorous and non-numerical argument for the following inequality?  $$\pi\neq\sqrt{2}+\sqrt{3}$$  By simple I mean within the framework of a typical elementary analysis course at university, say, and thereby excluding deeper properties like transcendence etc.   By non-numerical, I mean arguments that avoid calculating approximations.


When I render in Cycles it turns into solid white.  I've spent the past 2 hours researching the answers to this online, mostly through this Blender Stack Exchange.    1.) All my layers are turned On 2.) My World is not emitting anything, it's just black. I have my camera facing the model (as you can see in the screenshots).   And after messing with it some.. it now renders in solid static (as seen in screenshots). Trying to upload the file now to tiny upload.. so hopefully during this weekend someone can figure this out for me. Ugh!!.. lol. Thanks so much!


/etc/sudoers file corrupted and I can't run 'pkexec visudo' over SSH

Following the instruction  I get:  pkexec visudo  ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run `/usr/sbin/visudo' as the super user Authenticating as: Thomas,,, (tuc) Password:  polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie ==== AUTHENTICATION FAILED ===  Error executing command as another user: Not authorized  This incident has been reported.   I am doing this via ssh since the box I am doing this on is used as a music server with no screen and is rather inaccessible. This happened when I upgraded from Ubuntu 14.04 to 16.04. I tried to copy a sudoers file from another recent 16.04 installation, but I can't do that because of the sudoers file:  sudo mv ~/gyrf sudoers  >> /etc/sudoers: syntax error near line 36 <<< >> /etc/sudoers: syntax error near line 37 <<< >> /etc/sudoers: syntax error near line 38 <<< >> /etc/sudoers: syntax error near line 39 <<< >> /etc/sudoers: syntax error near line 40 <<< >> /etc/sudoers: syntax error near line 41 <<< >> /etc/sudoers: syntax error near line 42 <<< >> /etc/sudoers: syntax error near line 43 <<< >> /etc/sudoers: syntax error near line 44 <<< >> /etc/sudoers: syntax error near line 45 <<< >> /etc/sudoers: syntax error near line 46 <<< >> /etc/sudoers: syntax error near line 47 <<< >> /etc/sudoers: syntax error near line 48 <<< >> /etc/sudoers: syntax error near line 49 <<<  sudo: parse error in /etc/sudoers near line 36     sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin   Should I go get the box from the attic and try pkexec visudo or is something else wrong here?


Multinomial Coefficients Definition in expansion of $(1+x+x^2+\cdots+x^l)^n$

The literature defines multinomial coefficients (or extended bnomial coefficients) as   $$ \binom{n}{r_1,r_2,\cdots,r_l} = \frac{n!}{r_1!r_2!\cdots r_l!}$$ where $$ r_1+r_2+\cdots+r_l = n$$  Which is the coefficient of $x_1^{r_1}x_2^{r_2}\cdots x_l^{r_l}$ in expansion of $(x_1+x_2+\cdots+x_l)^n$.  Question: How do we call the coefficients of $x^r$ in expansion of $(x+x^2+\cdots+x^l)^n$. Is it bad to name them multinomial coefficients?  In case of binomial coefficients the two are same in expansion of $(x_1+x_2)^n$ and the expansion of $(x+x^2)^n$. Obviously the two are different for multinomial expansion.   Example: As $(x_1+x_2+x_3)^2= x_1^2+2 x_2 x_1+2 x_3 x_1+x_2^2+x_3^2+2 x_2 x_3$. The coefficients are $\{ 1,2,2,1,1,2 \}$. Are these MULTI-NOMIAL?  $ As (x+x^2+x^3)^2=x^2 + 2 x^3 + 3 x^4 + 2 x^5 + x^6$. The coefficients are $\{1,2,3,2,1\}$. Are these too the MULTI-NOMIAL?  I prefer different terminologies to avoid confusion. Therefore want to know how these are distinguished in existing literature.


combinatorics: sum of product of integer compositions

I am trying to solve a problem from Stanley's book, it says:  Fix $k,n \in \mathbb{P}$. Show that: \begin{align} \sum a_1 a_2 \cdots a_k = \binom{n+k-1}{2k-1} \end{align} where the sum ranges over all compositions $(a_1 , a_2 , \ldots , a_k)$ of $n$ into $k$ parts.  I am trying to reason like this:  we need to find the coefficient $c_n = \sum a_1 a_2 \cdots a_k$ from this generating function --  \begin{align} \sum_n c_n x^n &= \sum_n \sum a_1 a_2 \cdots a_k x^n \\  &= \sum_n \sum a_1 a_2 \cdots a_k x^{a_1 + a_2 + \cdots + a_k}\\ &= \sum_n \sum a_1x^{a_1} a_2x^{a_2} \cdots a_kx^{a_k} \end{align}  after that, I have no clue, how do I solve this ?   moreover, what is the range in the inner sum ?    If we consider Mark Riedel's answer, and assume $n=4$, $k=2$; then the sum will be  \begin{align} \sum (z + 2z^2)^2 = z^2 + 4z^3 + 4z^4 \end{align}  On the other hand the compositions will be $(1,3), (2,2), (3,1)$, therefore the above sum will be counted as:  \begin{align} (1.3)z^{1+3} + (2.2)z^{2+2} + (3.1)z^{3+1} &= 1z^1.3z^3 + 2z^2.2z^2 + 3z^3.1z^1\\  &= 3z^4 + 4z^4 + 3z^4 = 10z^4 \end{align}   what's going on? what am I missing?


Do you have information to confirm that flight TOM672 from Manchester to Dalaman departing at 15.15 did happen. I was booked on that flight and was told it had been cancelled and was placed on a much later flight.  I was notified by somebody who travelled on that day that they did fly on that flight and it wasn't cancelled. I need confirmation of this then I can challenge TUI about it


Ubuntu 20.04 installation from USB fails pre-installation

I've acquired the 20.04 ISO via the official torrent and created a bootable USB drive via Rufus 3.11 The drive boots into the GRUB menu where I can select Ubuntu Ubuntu (Safe Graphics) OEM install (for manufacturers) Boot from next volume UEFI Firmware Settings  Selecting Ubuntu results in: usb 1-14: device not accepting address 5, error -62 usb 1-14: device not accepting address 6, error -62 usb 1-14: device descriptor read/64, error -110 usb 1-14: device descriptor read/64, error -110 usb 1-14: device descriptor read/64, error -110 usb 1-14: device descriptor read/64, error -110 usb usb1-port14: unable to enumerate USB device ln: /tmp/mountroot-fail-hooks.d//scripts/init-premount/lvm2: No such file or directory stdin: Invalid arguement Windows is hibernated, refused to mount. Falling back to read-only mount because the NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting.) Could not mount read-write, trying read-only stdin: Invalid arguement stdin: Invalid arguement stdin: Invalid arguement stdin: Invalid arguement ... stdin: Invalid arguement stdin: Invalid arguement stdin: Invalid arguement  Then there is a busybox shell, where if I exit twice I end up with a kernel panic. What's wrong with this installation? I've redone the whole creating a bootable USB thing multiple times but it has no change.


Why does AuthorizeAttribute redirect to the login page for authentication and authorization failures?

In ASP.NET MVC, you can mark up a controller method with AuthorizeAttribute, like this:  [Authorize(Roles = "CanDeleteTags")] public void Delete(string tagName) {     // ... }   This means that, if the currently logged-in user is not in the "CanDeleteTags" role, the controller method will never be called.  Unfortunately, for failures, AuthorizeAttribute returns HttpUnauthorizedResult, which always returns HTTP status code 401. This causes a redirection to the login page.  If the user isn't logged in, this makes perfect sense. However, if the user is already logged in, but isn't in the required role, it's confusing to send them back to the login page.  It seems that AuthorizeAttribute conflates authentication and authorization.  This seems like a bit of an oversight in ASP.NET MVC, or am I missing something?  I've had to cook up a DemandRoleAttribute that separates the two. When the user isn't authenticated, it returns HTTP 401, sending them to the login page. When the user is logged in, but isn't in the required role, it creates a NotAuthorizedResult instead. Currently this redirects to an error page.  Surely I didn't have to do this?


An expression for quick and nervous behaviour

I am looking for the verb or expression to use to describe when for instance you type quickly and nervously on your computer keyboard, perhaps to find something (on a search engine for instance).


How to exclude objects from light sources in cycles?

Some of my scene objects need a little bit of extra lighting, but it would be nice to exclude the my reflective ground from that (see the picture bellow).     Is there an option in cycles to don't effect objects or exclude objects from lights?


I'm trying to figure out how to solve this equation by induction and I really don't know where to begin. I have seen some YouTube tutorials, but can't understand how I can go from $k(k+1)$ to $n+1$ in the equation. The task is:   Use induction to show that:  $$\sum_{k=1}^{n} {1 \over k(k+1)} = {n \over n+1}$$  Can someone help me solve this equation? Or give me some tips for where to start? I would really appreciate it.  Thanks in advance!


I want to archive my photos into tar archives.  The directory containing photos has one dir per year and multiple dirs inside each year dir:  Photos     2005     2006         Some dir with spaces             Pic1.jpg             Pic2.jpg             ...         Other dir here         ...     2007     ...   Target structure should also contain a directory per year, but inside a year dir I would have tar.gz files for each subdir from source dir, like this:  Backup     2005     2006         Some_dir_with_spaces.tar.gz         Other_dir_here.tar.gz         ...     2007     ...   Script which I'm creating to do this looks as follows:  cd ~/Photos for y in * do     YEAR_DIR=~/Backup/$y     mkdir -p $YEAR_DIR      pushd $y      for d in *     do         f=`echo $d | tr ' ' '_' | tr -d ',.!'`  # Clean the name         t=$YEAR_DIR/$f.tar.gz         d=$(printf '%q' "$d")         # echo tar czf $t "$d"  # This outputs the command as expected         tar czf $t "$d"  # but executing it results in error: Cannot stat: No such file or directory     done      popd done   As hinted in the comment, echoing the prepared command looks fine, and also if I copy that statement and execute it from terminal it works, but executing it within the script (tar czf $t "$d") results in an error:   tar: Some\ dir\ with\ spaces: Cannot stat: No such file or directory   What am I doing wrong?  P.S. I'm doing this on a Mac.


This is a question from Atiyah and Macdonald, Introduction to Commutative Algebra.     Problem: Let $M$ be a Noetherian $A$-module. Show that $M[x]$ is a Noetherian $A[x]$-module.   Solution:  So, I can solve the problem with an extra assumption. That is, if we assume that $M$ is faithful (i.e., $Ann(M)=0$). In this case, it follows that $A$ is necessarily Noetherian as well. Hence, by Hilbert's Basis Theorem, it follows that $A[x]$ is Noetherian as well.  It can easily be shown that $M[x]\cong A[x]\bigotimes_A M.$ I can also show that the tensor product of two Noetherian modules is Noetherian, hence the result.   I am wondering though, does this result hold without this extra assumption? I guess, I'm not also sure whether the ring $A$ is always necessarily Noetherian if we do not require that our module $M$ be faithful? All I can show is that if $M$ is Noetherian as an $A$-module then $A/Ann(M)$ is necessarily Noetherian as a ring.  Thanks!!


Assuming either $|z|=1$ or $|w|=1$ , prove that  |$\frac{z-w}{1-\bar zw}$| $=1$  When assuming that only $|z|=1$, we can easily deduce that $|{z-w}|=|{1-\bar zw}|$  But it's more complicated when we take the case where only $|w|=1$   Any hints please ?


The potential and the intensity of the gravitational field in the axis of a circular plate

Calculate the potential and the intensity of the gravitational field at a distance $x> 0$ in the axis of thin homogeneous circular plate of radius $a$ and mass $M$.    Could anybody describe how to calculate this? Slowly and in detail. I'm helpless.  Answer is: potencial $\phi = - \frac {2 \kappa M}{a^2}(\sqrt{a^2+x^2}-x)$ and intesity $K = \frac {2 \kappa M}{a^2} \left( \frac{x}{\sqrt{a^2+x^2}}-1 \right)$


Is Stack Exchange a type of exploitation?

These sites ask for a professional level of research both in questions and answers. They are for-profit sites, but people are not paid for questions or answers. So, is this a form of exploitation? If, for whatever reason, somebody wants to spend time helping others to learn for free, why don't they do that for a non-profit site, for example improving articles in Wikipedia?  The question is about ethics, not law. The answer should address the fact that some people are making a huge amount of money while the work is been doing for free by other people. I also wonder if all of the site is purposefully designed for this to happen (the "rewards" system, the rules for a question to not be deleted...) which would make this site even more unethical. Of course anybody is free to contribute or not and of course I won't contribute.


Question about reduced relative clauses: Can "having..." mean both "which had... " and "which have..."?

I saw a question today asking which one is correct, and the answer is (2) (1)  Literacy opened up entire realms of verifiable knowledge to ordinary men and women having been previously considered incapable of discerning truth for themselves.  (2)  Literacy opened up entire realms of verifiable knowledge to ordinary men and women who had previously been considered incapable of discerning truth for themselves.  Question: I originally thought both are ok because I remember adjective clauses involving participles, both "which had.." or "which have...", can be reduced to "having..." Am I wrong? Or there are other reasons that make (2) the answer?


This is probably a duplicate but I m too dense to make this work. I m trying to learn capture groups etc but I cant make this one work, I get the right matches but only the last digit gets matched.      class Program    {      static void Main(string[] args)     {         string testTxt = "sadsadas168.asdsad";         string asdf = "wrongwrong";         string abc = "abc.png";         string bsdf = "100";         string lolol = "155abx.text";         string another = "sasd199.ong100";          TryMatch(testTxt);         TryMatch(asdf);         TryMatch(abc);         TryMatch(bsdf);         TryMatch(lolol);         TryMatch(another);          Console.ReadLine();      }      private static void TryMatch(string txt)     {         var rgx = new Regex(@"\w*(?<t>\d+)\w*\..*");         var m = rgx.Match(txt);          if (m.Success)         {             int mainID = int.Parse(m.Groups["t"].Value);             Console.WriteLine(m.Groups["t"].Value);         }         else         {             Console.WriteLine("Did not match " + txt);         }     } }


Unable to mount Windows 8.1 partition in Ubuntu

I have to install Windows 8.1 on a new laptop and it works O.K. I installed Ubuntu on the same lap and also works O.K.  There is only one problem: Ubuntu can't mount the windows partitions and an error appears for each one of them. Every time I turn on the lap, I have to press "S" to skip mounting those partitions. I tried with config-ntfs to mount / unmount those partition, but it didn't work.  Config-ntfs has disabled undo option. I have experience with windows, but it's the second time I install Ubuntu. Windows 7 and Ubuntu work perfect on this laptop !! How can I fix the problem ?


Book from the late 1980's about an abandoned space station

I read this book about 1988-89. Sci fi, dealt with an alien space station (out in deep space) that humans stumble upon, long abandoned by a possibly insect-like race, human sized (they can tell from the shape of the chairs and such) and the station is full of ships. If you get in one and press a button it will go on an indeterminable round trip to another star. It could be a day, could be months and months. People get paid 'rewards' for taking out a ship and if they return with valuable destinations (another station or something of interest) they are paid quite well.  It's written from the perspective of one of these would-be 'gold rush' guys who wants to try his hand... he ends up almost landing in a black hole or something like that.  Any help identifying this book? Author/title etc? I would love to read it again :)  Thanks a bunch!!


SSD MobileNet v1 loss not converging bounding boxes all over the place

I've trained SSD MobileNet v2 model using Tensorflow API on my own dataset of ~4k dog pictures and it displays bounding boxes all over the place. I've trained with batch size 1.   The same dataset trained on faster rcnn works really well, and detects dogs properly. I've run 50k iterations, and total loss was spiking from 1.5 to 3 all the time in the end, with random bigger spikes, but overall it went down from 20  There wasn't a smooth and gradual decline, but a really spiky and uneven one with both models  Learning graph   I know it's a fast model with low precision, but it should at least more or less detect the object. How can I increase accuracy so it at least partially detects objects without showing completely false bounding boxes ?


listings changes the order of characters in a line of code

This is my minimum example  \documentclass[a4paper, 10pt]{article} \usepackage{listings} \begin{document} \begin{lstlisting} loads = {'-g·M·e·(Σsines),'; 'wind-like·half-sine,'}; \end{lstlisting} \end{document} %%% Local Variables: %%% TeX-engine: xetex %%% End:   and here it is what I get, using XeLaTeX on Debian Sid     Please notice the position of "Σ" with respect to "(" in the source and in the figure.  My question is, what is going on?


Proving an analytic function is constant

Let $f(z)$, and $g(z)$ be two analytic functions defined on a region $D\subset\mathbb{C}$. Suppose there exist a constant $r>0$ such that $|f(z)|^2+|g(z)|^2=r$ for every $z$ in $D$. Show that both functions must be constant.   How do I solve this problem? I just need some hints to solve this.


I like Ubuntu 16:04. What's new in 16:10?  Is it worth upgrading?  What's the difference?  Will there be support for the same software or is this gonna be like after Windows XP?


Deriving a constant in a probability mass function

Let $Y_1, . . . , Y_n$ be a random sample from a zero-truncated Poisson distribution with probability   mass function:      $p_Y (y|λ) = k\frac{λ^ye^{-y}}{y!},$   $k > 0, λ > 0, y = 1, 2, . . . ,$   where k is an unknown constant.   I know that the sum of a probability mass function is 1, but I do not know how to use this information to find $k$.


Is it possible to load a raster file (e.g. geotiff or erdas img) directly into a Leaflet map? If so, can you guide me to the correct documentation or method to do this? I am trying to do this with the imageOverlay() function in Leaflet currently.   var imageUrl = 'http://localhost/test/my_raster.tif',         imageBounds = [[30.430224, -87.193133], [30.435867, -87.185944]];         L.imageOverlay(imageUrl, imageBounds).addTo(map);    I am new to Leaflet.


Yesterday I created a question. But because I thought that I won't get far with the Answers, I deleted it.    Now I've found a rather good solution by myself and I would like to post it as an answer so others can see it since there doesn't exist a clean solution for this problem in my eyes.  How do I undelete my deleted question?


Math Professors -- On average, how many hours per week do you think is required to gain tenure?

I have a question particularly for the math professors here. I just finished my second year as a PhD student at a top30 University, passed all my qualifying exams, and I've begun working with an adviser in an area I'm excited about. Since the end of the Spring semester I've done a LOT of thinking, and I'm not sure academia is for me. The main issue is my perception of the time that will be required (in terms of hours per week) to get tenure. I have a wife and kids, and I just can't sacrifice the time spent with them, even if it means giving up something I love. I figure I could put in 40-45 hours a week, but then I need to be home. My first year of grad school, I put in 60-70 hours a week, and I certainly never want to go back to that. This last year, I've kept it between 40-50, and that seems about right for work/life balance.  So my question is this... am I correct in ruling Academia out for this reason? I had considering smaller colleges, but I'm looking to earn at least $60k and from what research I've done, I won't make that much.  My next question involves research outside Academia. Is there any place for research in combinatorics, asymptotics, probability, and analysis of algorithms outside of Academia, where the work-culture is a typical 40 hour workweek? I see a lot of research in other areas of mathematics that I'm not interested in (PDE's, Scientific/Engineering, Number Theory) -- but not really what I'm interested in.  So with all that, it seems to me that I'm not even sure why I would get a PhD anymore, other than it might open doors, but it's hard to stay motivated when there is no clear goal, or thing to work towards. My current thinking is just take some CS courses and learn some programming languages, get an internship next summer and perhaps leave with a masters after a year or so unless I can think of a very good reason to stay.  Any advice is appreciated!!


What is the best scripting language to embed in a C# desktop application?

We are writing a complex rich desktop application and need to offer flexibility in reporting formats so we thought we would just expose our object model to a scripting langauge. Time was when that meant VBA (which is still an option), but the managed code derivative VSTA (I think) seems to have withered on the vine.  What is now the best choice for an embedded scripting language on Windows .NET?


How does line of effect work with spells targeted through the Sentinel Raven's sight, from the UA Raven Queen warlock patron?

I'm playing a warlock in a D&D 5e campaign. I am playing a multiclassed Rogue 11/Warlock 1. For my one level in warlock, I chose the . According to the description for the Sentinel Raven feature:     You can see through the raven’s eyes and hear what it hears while it is within 100 feet of you.   Consider this example:  There is an enemy about 40 feet away, and there is a wall between us. I send my raven over the wall to recon, and I want to cast Hex on the enemy on the other side of the wall. The range for the Hex spell is 90 feet.  Am I able to cast Hex on this enemy given that he is within range of the spell and I can see him through my raven's eyes, even though there is a stone wall between us?   How does line of effect work with regard to casting spells at targets I can see through the raven's eyes?


My textbook tells me verb forms of 'lie' are : Lie, lay, lain, lying, lies.  So, where does 'lied' fit in? Google search results show that 'lied' is simple past tense form and past participle form of 'lie'. Please enlighten me.  Some usages of 'lain' would also be interesting.  Feel free to point out grammatical errors in my sentences. Thanks


The theory presented to me didn't make me understand how to do this kind of problem. I need help. Thanks you!


The Windows Installer for Ubuntu desktop instructions say that an ISO image for Ubuntu is downloaded during the installation process.  But what if I already have an ISO image for Ubuntu. Can I make the Windows Installer use that, so it doesn't have to download an ISO image again?  12.04 LTS and 12.10 are the versions of Ubuntu I'm interested in installing, in case that matters.


Which sentence is correct with regard to "do they"/"don't they"?     It just seems that C++ developers usually don't follow this rule in case of pointers, do they?      It just seems that C++ developers usually don't follow this rule in case of pointers, don't they?


How to find size of a character array from its pointer in C

How should I define the function size_of so that it will return me 25, size of array A  from pointer p.      #include <stdio.h> #include <string.h>  int main() {     char A[25], B[]="My String";     strcpy(A, B);     size_of(A);     return 0; }  int size_of(char *p) {   }


When does Professor X lose his ability to walk?

At the end of the X-Men first class movie, magneto deflects a bullet causing it to render professor X - who was a boy at the time - to become paralyzed in his legs. However in The last stand when Charles and magneto recruit Jean Grey we can clearly see that he's walking!


Equifax credit score discrepancy in 1 month, why?

I just went to Citi Bank's website (which gives free FICO scores from Equifax for users of some credit cards) and I realized that the score I saw there was a whopping ~50 points higher than the number I saw on Mint.com, despite the fact that they both claim to have received the number from Equifax. The only difference is the fact that Mint checked my score at the end of February 2015, whereas Citi checked it at the end of January 2015.  However, nothing unusual has happened to my credit history in between these two. I can confirm on Mint's credit report that nothing seems wrong, so I'm quite confused:   What can cause such a discrepancy? Whom should I contact to understand what is going on -- Mint, Citi, Equifax, or other? How should I contact them -- file a dispute, call them, or go somewhere in person?   Note that I don't feel I'm "disputing" anything, since I don't know if there is any cause for a dispute, and hence I'm not sure it makes sense to open a dispute with Equifax. I just want to know what is going on and why two third-party agencies claim to have received such wildly different numbers from the same agencies in the span of 1 month.


I noticed that my /var/log/boot.log file has date 2016-04-22, last time I booted in 15.10. Where are Xenial boot.log files located?


The bias neuron in a neural network : Is my understanding right?

I was just going through Neural-Network tutorials and I have some question regarding Bias neuron :-  1.] Is the act of introducing bias neuron same as introducing the X(index 0)=1 in the logistic regression i.e. [1, X1, X2]  2.] Is bias neuron an additional degree of freedom ?  3.] Can bias neuron be analogous to the constant term in  the linear equation :-  Y= mX+C   because without C i can only rotate the line x around the origin, but if I take into consideration C also then I can translate this line up or down also.  For example consider the figure below :-    Then the blue line (hypothesis) is simply Y=m*X (blue line passes through origin), so even if you keep fiddling with the m paramater but you wont be able to seperate the green and blue dots ever with just this hypothesis. So with just m to fiddle with, my hypothesis will always have to pass through the origin, i.e. I can choose from the infinite numbers of lines through the origin by tweaking the parameter 'm'.  Whereas if I include C/constant term (which Im calling the bias) in my hypothesis then my equation becomes Y=m*X+C then a line like Y=.4*X+3  (magenta line ) easily classifies the data. So now that I have an additional parameter "C" , I can translate(shift up/shift down) apart from the rotation.  Is my understanding correct ?


Unanswered section does not include questions with negatively scored answers

On each Stack Exchange site, you find an  section where all unanswered questions or questions with not upvoted answers with be listed. In a blog post  answered. You said:  As of today, here’s how we do it:  Answered Questions have at least one answer with one upvote (or accepted) Unanswered Questions have no answers with upvotes (or accepted)   However, you forgot to include unanswered questions with downvoted answers to the Unanswered Questions instead, the system is labelling them as Answered Questions though the answers are downvoted. I detected the bug when trying to answer a member's question on . It seems also the member had open  about it  on this meta site. Live experiment, when viewing  questions: David's  had a vote of 0:    Then I went to downvote David's , it had a -1 now:    Surprisingly it got removed from the list, and it shouldn't since it is unanswered.


Suppose we have a Fourier pair of  $f(t)={1\over 2\pi}\int_{-\infty}^{\infty}F(w)e^{-iwt}dw$ and $F(w)=\int_{-\infty}^{\infty}f(t)e^{iwt}dt.$  How can we prove the following pair? $f(t)=\int_{-\infty}^t g(\tau) d\tau $ and $F(w)=G(w)/iw+\pi G(0)\delta(w),$ where $\delta$ is a delta function.


I'm wanting to alter the commerce cart page form.  By using var_dump($form_id) or chrome inspect I can see the id is id="views-form-commerce-cart-form-orange-default-42". If I write my hook as :  function module_form_views_form_commerce_cart_form_orange_default_42_alter   I can see that I am altering the form. But this has been altered in my theme hence the extra bit on the id orange_default_42. If I do :  function testingstuffs_form_views_form_commerce_cart_form_alter   I cannot alter the form.     How do I hook into this form correctly / is there  a correct way to find form ids?


I have plenty of rep to upvote and comment everywhere but when I try to upvote an answer I get an error message saying that because I have less than 15 rep points my vote doesn't count publicly.  What gives?   App Version: 1.6.6.2 Device: iPhone 7 Plus OS Version: Version 11.4.1 (Build 15G77)   Edit: Does rep not carry over between sub-sites? Like, if I have rep on Network Engineering, it doesn't mean I have rep on Ask Different (Apple)?


Experimental Fractional scaling makes fonts dirty in Ubuntu 17.10

I updated to 17.10 from 17.04.   I activated the fractional scaling by running the following command.   gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"   Then, I changed 125% scale. The scale was changed, but the fonts and icons are so dirty.    The launcher icon and font in Google Chrome and other application except the system setting are dirty.  How can I resolve this problem?  For some reason, font in the system setting is not dirty...


Is there a way to find comments you made on YouTube?

I made a comment on YouTube and want to see if someone replied to it.


I would like to add a tikz node within a text in such a way that it doesn't add space between the lines. In particular, I'd like to animate (in beamer) a frame around the text without it taking space.  Below is an example of what I'm trying to do.  Many thanks in advance!  \documentclass{beamer} \usepackage{tikz}  \tikzset{      alt/.code args={<#1>#2#3}{%        \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}      },     BeamerAlert/.style={alt=#1{draw=red,thick,rounded corners}{},anchor=base} }  \newcommand<>{\tikzMe}[1]{    \tikz[baseline]\node[BeamerAlert=#2] {${#1}$}; }  \begin{document} \begin{frame}   This is an \tikzMe<2>{\mathsf{example}} of   text with the space between lines changed because of the tikz   node. Here is another line whose spacing is natural.  \end{frame} \end{document}


I have bought and will buy another or I'm going to buy

Is this sentence ok or should it say I have bought one and will buy another. The first sentence seems to lead the reader into the idea that I have not bought any music yet.     i'm going to buy the two songs he wants me to memorize for $6 a piece. I already have one purchased and I'll practice it.


How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7?

I'm working on Windows 7.  How can I permanently add a new path to the 'PATH' environment variable of the current user?  I tried to do so with wmic:  wmic ENVIRONMENT where "name='Path' and username='<%USERNAME%>'" set VariableValue="%Path%;%NEW_FOLDER_PATH%"   The result was:  No Instance(s) Available   And nothing was affected.  However if I try with the following with Administrative privilege:  wmic ENVIRONMENT where "name='Path' and username='<system>'" set VariableValue="%Path%;%NEW_FOLDER_PATH%"   It could always succeed.  The NEW_FOLDER_PATH doesn't contain any blank spaces.  How could I resolve this problem?


DBSCAN clustering - How to choose "Distance" parameter

I have a dataset where each data point is characterized by two variables: X(time) and Y(volts).  When I plot my data it would be something like this:     The plot shows some data points created a cluster (I demonstrated those with the red boundary). The other data points are noise points which are not important for me. I finally found "DBSCAN clustering" could help finding true data points (points in the red boundary). In particular, two parameters needed to be determined for running this method: (1) Distance (2) MinPts.  I have a question: - How I can find a correct value for "eps" (distance)?   BTW: (1) two variables are not on the same scale. (2) I wanna use R-programming for clustering process.


Show/Hide function folding margin on Notepad++

Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.


Given a positive integer $n$. How to find a Galois extension $K/F$ such that $Gal(K/F)=S_n$?  With the restriction $F=\mathbb{Q}$, this is the . But if we are allowed to choose $F$ and $K$, I suspect there is a simpler example.


I'm a bit of a novice Linux user and I'm trying to prepare a CentOS VM through Azure.  I have it built and can operate on it through the serial console on the Azure portal.  I've installed GNOME and now I'm trying to install xrdp so I can access it through RDP.  The instructions I found said a requirement first was to first install the EPEL repo which I did this way:  rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm  That completed with no issue.  But when I tried to actually install xrdp this way:  yum -y install xrdp tigervnc-server  I get errors that look like this:  Error: Package: 1:xrdp-selinux-0.9.11-1.el7.x86_64 (epel)            Requires: selinux-policy >= 3.13.1-252.el7.1            Installed: selinux-policy-3.13.1-229.el7_6.15.noarch (@updates)                selinux-policy = 3.13.1-229.el7_6.15            Available: selinux-policy-3.13.1-229.el7.noarch (base)                selinux-policy = 3.13.1-229.el7            Available: selinux-policy-3.13.1-229.el7_6.5.noarch (updates)                selinux-policy = 3.13.1-229.el7_6.5            Available: selinux-policy-3.13.1-229.el7_6.6.noarch (updates)                selinux-policy = 3.13.1-229.el7_6.6            Available: selinux-policy-3.13.1-229.el7_6.9.noarch (updates)                selinux-policy = 3.13.1-229.el7_6.9            Available: selinux-policy-3.13.1-229.el7_6.12.noarch (updates)                selinux-policy = 3.13.1-229.el7_6.12 Error: Package: xorgxrdp-0.2.11-1.el7.x86_64 (epel)            Requires: xorg-x11-server-Xorg(x86-64) = 1.20.4            Installed: xorg-x11-server-Xorg-1.20.1-5.6.el7_6.x86_64 (@updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.6.el7_6            Available: xorg-x11-server-Xorg-1.20.1-3.el7.x86_64 (base)                xorg-x11-server-Xorg(x86-64) = 1.20.1-3.el7            Available: xorg-x11-server-Xorg-1.20.1-5.el7.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.el7            Available: xorg-x11-server-Xorg-1.20.1-5.1.el7.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.1.el7            Available: xorg-x11-server-Xorg-1.20.1-5.2.el7_6.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.2.el7_6            Available: xorg-x11-server-Xorg-1.20.1-5.3.el7_6.x86_64 (updates)                xorg-x11-server-Xorg(x86-64) = 1.20.1-5.3.el7_6  You could try using --skip-broken to work around the problem  You could try running: rpm -Va --nofiles --nodigest  So I research that and someone said I could resolve these dependencies by installing the following:  rpm -Uvh http://scientificlinux.mirror.ac.za/7.6/x86_64/updates/security/selinux-policy-3.13.1-252.el7.1.noarch.rpm  But when I do that I get another dependency error that looks like this:  error: Failed dependencies:         selinux-policy = 3.13.1-229.el7_6.15 is needed by (installed) selinux-policy-targeted-3.13.1-229.el7_6.15.noarch  But that seems really odd because isn't the version of selinux-policy that error is saying I need the version I have installed according to my xrdp error?  Anyway, that was the brick wall on my journey.  I'm not sure what to do next.  And if I can't get xrdp installed is there another way to access the GNOME desktop of my machine?  I am a novice at both Linux and Azure and I didn't see a console option besides the serial console on the Azure portal.  Thanks.


Using an xparse macro inside parenthesis adds an extra space

I've defined a macro using xparse to have one or two arguments, and to use different commands depending on the number of arguments given. It's been working very well until I had to put one of the macros inside parenthesis, then there's a space added before the closing parenthesis.  MWE:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xparse}  \title{xparse MWE}  \NewDocumentCommand\Da{m+g}{%     \IfNoValueTF{#2}         {#1 Dalton}         {#1 Dalton to #2 Dalton} }  \begin{document} \section*{No parenthesis} Number: \Da{10000} and range: \Da{20000}{30000} \section*{Parenthesis with xparse} Number: (\Da{10000}) and range: (\Da{20000}{30000}) \section*{Parenthesis without xparse - the expected result}[![enter image description here][1]][1] Number: (10000 Dalton) and range: (20000 Dalton to 30000 Dalton) \end{document}   Output:


How to completely delete and app from iphone (including all the data and history)

So this problem particularly emerged with the Tinder app. I was using Tinder with a user account (A) and one day I logged out and created a new user account (B) which I never succeeded to activate due to sms verification problems, so I decided to login again with my old account. But even when I delete the Tinder app and reinstall it again, it still shows the B account logged in to the app. This means that IOS is somewhere storing a history for this app. Now I'm looking for a way to delete this history.  Note that this question is not necessarily about a certain app, but rather about where IOS stores historical data of apps and how to delete those histories alongside with the app.  P.S: If there are solutions like changing UUID of my i-phone that wouldn't damage my phone (I'm new to iphone so I'm not sure what I'm saying. For instance this jailbreaking thing which I keep hearing about and I'm not sure what it exactly does to my phone, doesn't sound like an I idea that I like), I'm open to them.


How did Vader know that Obi-Wan was helping Luke?

Vader: He's just a boy. Obi-Wan can no longer help him (Empire Strikes Back)   How does Vader know that Obi-Wan helped Luke before?   He doesn't know that Luke grew up on Tatooine even if he guessed, he doesn't know Luke met Obi-Wan there from what I can tell, Vader wasn't aware that Luke was in the Millennium Falcon when the Death Star captured it after blowing up Alderaan


How can I remove the figures from a draft of my document?

I'm working on a research paper with many figures in it. To save paper, I would like to exclude the figures when I print drafts of the paper. Is there an easy way to do this (via command-line option, graphicx option, or something else)?


I could just prove that the sequence is bounded but couldn't find the exact limit.


What is the caret (^) for in a generic template in C++?

I see this code in c++ template examples:  void Main(array<String^>^ args)   but I don't understand the reason for the ^ terminating the String and closing angle bracket.    Is it to allow multiple types or something?  If someone could someone straighten me out, I would appreciate it.  Thanks!


It is very rare for me to need a parenthesis without \left and \right. Is there a way to redefine the parenthesis () to being treated as if I wrote \left( and \right).  Of course, I would need another command \noleft( and \noright) or something similar to get back the original meaning.  I know I can run a Perl script before every latex compilation to achieve this, but I am looking for a LaTeX solution.


Consider the  determinant of the matrix $A = [x_{ij}]_{n\times n}$ as a polynomial in the ring $\Bbb{R}[x_{11},\dots,x_{nn}]$. How can I show that it is irreducible ?


Add context to "top {x}% this {period}" in user profile

Currently, under the gigantic Avatar, you see these details  {rep} reputation top {reverse percentile}% this {period} {count} views flag weight {z} (max) << private got flair?   It is hard to make out whether "0.1% this quarter" is better or "0.03% this week".  It also seems to have negative connotations - a percentile report favours the "bigger is better" approach but doing a "top" decreases your "number" as you go higher.  Yes you can click on it to be brought to the /leagues page, but since we're congregating information into this page, it seems appropriate to give it some context   perhaps a little {?} icon next to the link to show more info, such as "title" (mouseover) tag showing "#146 of 35248"; or perhaps just a bracket next to the link (146/35248)   I know someone  precision for the "top {x}% this {period}" feature but even on the largest site (StackOverflow), it is ridiculous to show a differentiation at 0.01% which equates to 3 users (for the quarter, 4 users for overall)?!  For reference, compare the top 2 users at physics.SE   - top 0.58% overall  - top 2% overall  "Top 1%" and "Top 2%" would suffice?  In fact, "top user overall" and "#2 overall" looks more sexy. ("edge cases" yadda yadda)


kitchen.bat called by postgresql plpython3u: java.lang.NullPointerException

I use plpython3u call pdi kitchen.bat execute a job task. subprocess.Popen('PG_inter_exec.bat > pg.log 2>&1', cwd='E:\\temp\\data-integration-83\\', shell=True)  execute in python env is OK. I create a language plpython3u function in Postgresql 13 on windows CREATE OR REPLACE FUNCTION public.f_exec_cmd2(     cmd text)     RETURNS SETOF text      LANGUAGE 'plpython3u'     COST 100     VOLATILE PARALLEL UNSAFE AS $BODY$ import subprocess       process = subprocess.Popen('PG_inter_exec.bat  > pg.log 2>&1', cwd='E:\\temp\\data-integration-83\\'                            , stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) stdout, stderr = process.communicate() return stderr $BODY$;  execute this function, the pg.log display error as followings: E:\temp\data-integration-83>"C:\Program Files\Java\jdk1.8.0_241\bin\java.exe"  "-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m" "-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" "-Djava.library.path=libswt\win64" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\launcher.jar -lib ..\libswt\win64  -main org.pentaho.di.kitchen.Kitchen -initialDir "E:\temp\data-integration-83"\ /rep:pg_rep /user:admin /pass:admin /job:Test_PG_PDI_JD /param "checkPeriod=1908338"  06:40:04,909 INFO  [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled 06:40:13,147 INFO  [KarafInstance]  ******************************************************************************* *** Karaf Instance Number: 1 at E:\temp\data-integration-83\.\system\karaf\ *** ***   caches\kitchen\data-1                                                 *** *** FastBin Provider Port:52901                                             *** *** Karaf Port:8802                                                         *** *** OSGI Service Port:9051                                                  *** ******************************************************************************* 六月 04, 2021 6:40:13 上午 org.apache.karaf.main.Main$KarafLockCallback lockAquired 信息: Lock acquired. Setting startlevel to 100 2021/06/04 06:40:13 - Kitchen - Start of run. java.lang.NullPointerException     at org.pentaho.di.core.plugins.PluginRegistry.getPluginId(PluginRegistry.java:689)     at org.pentaho.di.core.plugins.PluginRegistry.getPlugin(PluginRegistry.java:715)     at org.pentaho.di.core.plugins.PluginRegistry.loadClass(PluginRegistry.java:370)     at org.pentaho.di.base.AbstractBaseCommandExecutor.establishRepositoryConnection(AbstractBaseCommandExecutor.java:195)     at org.pentaho.di.kitchen.KitchenCommandExecutor.execute(KitchenCommandExecutor.java:115)     at org.pentaho.di.kitchen.Kitchen.main(Kitchen.java:286)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0  PG_inter_exec.bat as follows: E:\\temp\\data-integration-83\\Kitchen.bat /rep:pg_rep /user:admin /pass:admin /job:Test_PG_PDI_JD /param="checkPeriod=1908338"   OS: windows 10 pro PDI: 8.3 Postgresq: 13.3.2 JAVA:  jdk1.8.0_241  Thanks!


Given $a^3 + b^{3}+ c^{3}= (a+b+c)^{3} $.  Prove that for any natural number $n$, $$a^{2n+1}+b^{2n+1}+c^{2n+1}=(a+b+c)^{2n+1}$$  I first tried mathematical induction but did not proceed anywhere. Can the formula $(a+b+c)^{3}=a^{3}+b^{3}+c^{3}+3(a+b)(b+c)(c+a)$   be directly used? Can this problem be solved using mathematical induction?


cd command is not functioning in Terminal "desktop: No such file or directory"

I have been trying to access a folder to install a program and I keep receiving the following error message:  bash: cd: *: No such file or directory   I then tried accessing the desktop with the command cd desktop and received the following message:  bash: cd: desktop: No such file or directory   I've tried re-installing Terminal to see if that fixes the problem but still get the same messages.  Can anyone help with this issue? Accessing files and folders works normally through the Unity user interface.  EDIT: Solution found in comments and is not part of existing command-line questions.


Duplicate content in Top Level Domain and country specific website

I have myproduct.com which is my master product page.  For UK I also own myproduct.co.uk which is a copy of myproduct.com with some localized content: landing page, promotions, prices, and specific tags.  But there is also duplicate content: myproduct.com/FAQs/ is the same as myproduct.co.uk/FAQs/  I don't want to do a redirect from myproduct.co.uk/FAQs/ to myproduct.com/FAQs/ as I don't want people to leave the localized website.  The myproduct.com/FAQs/ is my "go-to" FAQ page and it's the most likely to be up to date - so I want this page to be indexed my search engines, where as I don't care about myproduct.co.uk/FAQs/ being indexed (unless indexing this page would increase my page rank :) ).  What to do now to be SEO friendly & SEO optimal?   Stop indexing of myproduct.co.uk/FAQs/ via robots.txt? Do some rel="alternate" hreflang="x" configuring on both /FAQs/ page? Something else?


Can Apple mail only sync the last month of a Exchange email?

I just synced my Mountain Lion Mail app with my Exchange work email account in order to have it locally on my machine (rather than continuously going through the web interface). However, now Mail fetches all the mails since the very beginning (which are a couple of years).  Is there a way (like on iOS devices) to tell Mail to only sync the last month or something configurable amount based on message count, download size or other similar restriction to prevent all messages from being stored locally?


New Hard Drive is missing - was present in Bios not in Windows 8 Administrative storage

I have a HP dV7t-7000 laptop with windows 8. I added a second HDD which gets detected in the BIOS, but not in windows 8. Both drives are 1TB in size.


How to see details (e.g. inner exception) of unhanded exception

In visual studio if exception is unhanded and studio cannot find source code that caused it, screen like this will be shown:  And that's ok. Let's say I don't need the code, but how can I at least see some exception info except type and message? Inner exception would be helpful for example. Edit: As suggested in @victor-alexandru-papa's answer if "Break when thrown" for Common Language Runtime Exceptions is checked, it will indeed show more info about exception. (in my case break mode was caused by exception in not awaited task). Wanted to do this edit to add some screenshots of what happens. So, as you can see, new View details button appears, which actually shows details of the exception. Also I can see stack now and state of my application when exception was thrown.


Book taking place in NW U.S., People find a portal

The book takes place in the U.S. northwest (Washington or Oregon). Young people find a portal to another place / time and begin creating a base there. Eventually they bring across parts for a small plane. As I remember, there are no people on the other side and it was a version of their current location but pristine.


How can I convert an audio signal from a phone to 0-5v for a microcontroller?

I am trying to build a micro controller system where I input music from a phone/tablet and control the volume using a hardware keypad and do other stuff with the audio. I am trying to understand how to convert the +/- 2.5 V audio signal from phone to 0-5V for micro controller input. Thanks


How often should I remove the charger from my rMBP?

I want my battery to remain healthy. I used to charge it full then remove the charger after it's done, then put it back on when it goes down to 10% .. However this is becoming hectic and I was wondering if I can keep it plugged in the whole day and probably remove just an hour or so before going to sleep.  What is the best way to charge and discharge my Retina Macbook Pro while keeping the battery healthy ?


I'm a newbie to Tex, cannot understand how I used MS word soooo long. Here's my first question.  I'm using MacTex which came with TexShop, which so far seems useful. TexShop has a basic LaTex template which until recently worked just fine (i.e. if I hit "typeset" it produced the PDF of a simple document. Here is the template:  \documentclass[11pt, oneside]{article}      % use "amsart" instead of "article" for AMSLaTeX format \usepackage{geometry}                       % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper}                          % ... or a4paper or a5paper or ...  %\geometry{landscape}                       % Activate for for rotated page geometry %\usepackage[parfill]{parskip}          % Activate to begin paragraphs with an empty line rather than an indent \usepackage{graphicx}               % Use pdf, png, jpg, or epsÂ§ with pdflatex; use eps in DVI mode                                 % TeX will automatically convert eps --> pdf in pdflatex         \usepackage{amssymb}  \title{Brief Article} \author{The Author} %\date{}                            % Activate to display a given date or no date  \begin{document} \maketitle %\section{} %\subsection{}    \end{document}    Suddendly the template stopped working. But 1-TexShop processes other Tex files just fine, and 2-the offending template above works just fine in Latexian. When I hit "typeset' in TexShop I get the image below. I re-installed MacTex, to no avail. Grateful for any suggestions. Apologies if this is not the right venue for this question.


I'm thinking of following some kind of education in physics online. I have a master degree in Computer Science and have reasonable good knowledge in physics. I would like a program of 1-2 years and I'm more interested in particle physics.   Is there any good online program that offer something similar?


I am trying to show that $f(t)=t^{5}-4t^{2}+2$ is not soluble by radicals over $\mathbb{Q}$.  I think I need to show that $\text{Gal}(f)$ is not soluble. I think I need to construct an embedding $\text{Gal}(f)\hookrightarrow A_{5}$ which is not soluble since the commutator subgroup of $A_{5}$ is $A_{5}$. So how do I do this?


100mb/s upgrade to 1gbps network - To Prevent DDOS

I have been under constant DDOS attack the last couple of weeks.  Now it seems my servers network is being flooded till it just doesn't have space anymore to receive and send normal packages.  I run CENTOS 5.6, and i have hardened SYSCTL and iptables to fight off SYN attacks as much as possible.  I have a 100Mbit network card and connection to my hosting company.  Normal incoming traffic is around 8mbit/s. Incoming data spikes go up to 100mbit when the attacks happen.  Could it help me fight off attacks if i were to upgrade my server to a 1GBPS network card + network connection?  I'm hoping the pipe doesn't flood so quickly when it's under attack.


What is the double slash (//) directory?

I mistakenly typed cd // instead of cd /. To my surprise, current directory showed up as //.   What is that directory? Why does it exist?  apple@snipped $ pwd /home/apple apple@snipped $ cd / apple@snipped $ pwd / apple@snipped $ cd // apple@snipped $ pwd // apple@snipped $ cd /// apple@snipped $ pwd /


Providing that $f :\Bbb R\to\Bbb R$ is continuous . prove that Range of $f$ is $\Bbb R$ if $|f(x)-f(y)|\ge|x-y|$ .

Providing that $f :\Bbb R\to\Bbb R$ is continuous, and suppose $$|f(x)-f(y)|\ge|x-y|$$ for all real $x$ and $y$. Prove that the range of $f$ is $\Bbb R$ This problem is taken from an exercise placed at the end of the Limit chapter and before Differentiation one, so I think we should solve it without using Differentiation and I have no idea how.


I have generated a summary for a particular multiple linear regression > mod1 <- lm(log(wage) ~ education + experience + age) > summary(mod1)  Call: lm(formula = log(wage) ~ education + experience + age)  Residuals:      Min       1Q   Median       3Q      Max  -2.03367 -0.33094  0.04165  0.31958  1.84066   Coefficients:             Estimate Std. Error t value Pr(>|t|) (Intercept)  0.84480    0.71884   1.175    0.240 education    0.13805    0.11791   1.171    0.242 experience   0.05353    0.11796   0.454    0.650 age         -0.04173    0.11786  -0.354    0.723  Residual standard error: 0.4699 on 530 degrees of freedom Multiple R-squared:  0.2117,    Adjusted R-squared:  0.2072  F-statistic: 47.44 on 3 and 530 DF,  p-value: < 2.2e-16  Since the F-statistic = 47.44 is larger than the cut-off value qf(0.95, 3, 530) = 2.622, I can reject the null hypothesis that states the model is not significant. But on the other hand, I find that the p-values are larger than 0.05. What is the reason for this? Is there a way to solve this?


Should i get a new kit lens for my 450D or a new body with kit lens altogether?

I recently broke my kit lens for my 450D and have been looking into replacements. At the moment i have a 55-250 mm objective as my primary objective since it is all i have at the moment.   My question is mostly based on the fact that i have found the 18-55 IS II lens for ~135$. Meanwhile i've spotted the 1300D with the same kit lens (18-55 IS II) for about ~350$~280£. Is the jump in price worth it for the kit lens only or the whole package?


Is it possible to patch without spiking the CPU?

I'm using unattended upgrades to patch about 300 ubuntu (16.04 LTS) machines (network appliances really), some are 1 CPU VMs running on ESXi, azure and AWS and others bare-metal quad core Atom IOT devices.  I haven't experienced this issues on the bare-metal machines, but on the VM's, which are powered just enough to do what they need to do, when the machines patch themselves our SNMP monitoring goes nuts and we get high CPU spikes, swap memory alerts, etc..    Rather than work in ways to suppress these alerts (which is not what I'm asking about), are there any ways to let renice patching and just let it take its time patching?   I wouldn't mind if it took 4 hours to patch, unattended that is (I wouldn't want to have patching go that slowly if I kicked it off with ansible or apt directly).


Why is arcpy.CalculateField_management() writing 1899-12-30 00:00:00 instead of expected date?

I'm using ArcGIS 10.3.1 for Desktop to test before writing an answer to  I have written the test code below that I am running against a test feature class (testFC) with four line features to try and update its dateField with a constant date value of "01.07.2015".  import arcpy  dmyString = "01.07.2015" fc = r"C:\temp\test.gdb\testFC" item = "dateField"  dmyDate = datetime.datetime.strptime(dmyString,'%d.%m.%Y') print dmyDate  arcpy.CalculateField_management(fc,item,dmyDate,"PYTHON")  with arcpy.da.SearchCursor(fc,[item]) as cursor:     for row in cursor:         print row[0]   I think the above should work, and from the output below you can see that the date object (dmyDate) seems to be created fine, but the values written to each of the four features are not what I would expect.  >>> ================================ RESTART ================================ >>>  2015-07-01 00:00:00 1899-12-30 00:00:00 1899-12-30 00:00:00 1899-12-30 00:00:00 1899-12-30 00:00:00 >>>    Can someone explain why 1899-12-30 00:00:00 is being written instead of 2015-07-01 00:00:00?  The attribute table displays as below:    If I replace the CalculateField line above with either:  arcpy.CalculateField_management(fc,item,"date '2015-07-01 00:00:00'","PYTHON")   or  arcpy.CalculateField_management(fc,item,"date '2015/07/01 00:00:00'","PYTHON")   as per @Vince's comments I receive an error:  Traceback (most recent call last):   File "C:\temp\test.py", line 11, in <module>     arcpy.CalculateField_management(fc,item,"date '2015-07-01 00:00:00'","PYTHON")   File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 3457, in CalculateField     raise e ExecuteError: ERROR 000539: SyntaxError: invalid syntax (<expression>, line 1) Failed to execute (CalculateField).


Allow rejected editors to be @replied to

Within the canonical answer on  it is clear that post editors can be replied to.      Notifications apply to the author, users with active bounties,   commenters (associated to current non-deleted comments), and editors   of the question or answer that you are commenting on—users not in that   list cannot be notified. You can also notify a ♦ moderator who closed   the question. The question and answers are all considered   independently. For example, if Alice was the author of, commented on,   or edited the question or her answer, then you cannot notify her by   commenting on Bob's answer (unless Alice also participated in that   answer), and vice versa.   However, thanks to , it has become clear that this only applies to approved editors (in addition to binding editors). I wish to request that comment replies be extended to include any user who suggested a rejected edit on the post.  Background The reason I would wish to reply to a rejected editor would be if their edit, while inappropriate, hinted at important information; for example that the answer was wrong or incomplete. In those cases I may wish to encourage them to outline this in a comment or competing answer.


How does a unitary operator acts on an entangled $|\psi\rangle$?

If there is:  $$ U = \sum_{x,y \in \mathbb{Z}_2} |x \dot{+} y\rangle |y\rangle \langle x| \langle y| $$ acting over $|\psi\rangle$ which can be $|00\rangle, |01\rangle, |10\rangle, |11\rangle$, does it act on the first qubit or on both? Also if I want to take the partial trace: $$ Tr_{1}[U(|\psi\rangle\langle\psi|U^{\dagger}] $$ would it be correct to do: $$ Tr_{1}[U(|\psi\rangle\langle\psi|U^{\dagger}] $$ $$ = \sum_{ n,u,w,x,y,z \in \mathbb{Z}_2} \langle n| x \dot{+} y\rangle \langle x | \psi\rangle\langle\psi|w\rangle\langle w\dot{+} z|n\rangle  |x \dot{+} y\rangle \langle x | \psi\rangle\langle\psi|w\rangle\langle w\dot{+} z| $$


How can I calculate how much an option would be worth after X days if the underlying stock changed by +/- $Y?

I don't really know how to anticipate the changes in an option's price.  If I have an call set to expire the following Friday at $10 above the current share price, I know in the absence of other changes it loses value with each day that passes getting closer to its expiration. (Talking about American options.) But it gains value as the share price gets closer to the strike price.  So, if two days pass but the stock goes up $3, would the option have gained value or lost value? Is there any way to calculate this?


What is an example of two k-algebras that are isomorphic as rings, but not as k-algebras?

Let $k$ be a field. Let $A$ and $B$ be two $k$-algebras, ie. two rings that are also $k$-vector spaces and their multiplication is $k$-bilinear.  Any isomorphism of $k$-algebras is also a ring isomorphism, so if $A$ and $B$ are isomorphic as $k$-algebras, they are isomorphic as rings.  I would guess that the converse fails. Is there any example of $A$ and $B$ that are isomorphic as rings, but not as $k$-algebras?  The reason I came up with this question is the following. Two affine varieties are isomorphic if and only if their coordinate rings are isomorphic as $k$-algebras. I am interested in finding an example where coordinate rings are isomorphic as rings, but the varieties are not isomorphic.


Nowadays I do some optimize work in java, and got an interesting(?) question.  My test environment is jdk 1.8 and Windows 10 and with intellij 2018.1. And there is a test-code below.  int count = 1000000; int listSize = 10;     {         // case 1         List<Integer> list = new ArrayList<>(listSize);         long start = System.nanoTime();         for (int i = 0; i < count; i++) {             for (int j = 0; j < listSize; j++) {                 list.add(j);             }         }         long end = System.nanoTime();          long result = end - start;         System.out.println("Result: " + result);     }      {         // case 2         List<Integer> list = new ArrayList<>(listSize);         long start = System.nanoTime();         for (int i = 0; i < count; i++) {             list.add(0);             list.add(1);             list.add(2);             list.add(3);             list.add(4);             list.add(5);             list.add(6);             list.add(7);             list.add(8);             list.add(9);         }         long end = System.nanoTime();          long result = end - start;         System.out.println("Result: " + result);     }   And the result is   Result: 134686088 Result: 183671342  And my question is Why is there the performance difference between the above two codes? With the visual studio on c++, i remember the compiler(visual studio) optimize two case to same machine language.  Anyone could help me? and tell me the best way(best performance) with java loop programming.  Thx.


Can you store the base64 encoded text that you get when encoding a file (txt) in a byte array?

I want to make an http request using a stream (because I think there is no other way) but I can only send a byte array using streams. I want to send a file by encoding it in Base64 then sending the encoded base64 code so I can decode it later. So far I can easily encode it using byte[] contentBytes = loadFile(txt); byte[] encoded = Base64.getEncoder().encode(contentBytes); String encodedContentString = new String(encoded, StandardCharsets.US_ASCII);  But as one can see I get a string. Can I turn it into a byte array not or can I encode the file into a byte array directly? Maybe I used it wrong but I am pretty sure I can't just use encodedContentStrin.getBytes()


In my WP_Query I'd like to have a tax query and a meta query, but I want the results to include results that match the tax query AND/OR the meta query - if I do it like the below, then it only returns posts that match both the tax qury and meta query.                  $args = array(                     'post_type' => 'product',                     'posts_per_page' => 12,                     'tax_query' => array(                         array(                             'taxonomy' => 'product_cat',                             'field'    => 'term_id',                             'terms'    => $product_cats_to_show,                             'include_children' => true                         ),                     ),                     'meta_query' => array(                         'relation' => 'AND',                         array(                             'key' => 'color',                             'value' => 'red',                             'compare' => '!=',                         )                     )                 );   The above returns products that have a color of red AND products of those categories. I want it to be AND/OR, not just AND. I.E. I want the query to return all products with color of red and all products that are in the categories specified in the tax query.  Is this possible using WP_Query args? Or do I need to build a custom query?  Thanks


What are all the $k$-dimensional unimodular subspaces of $\mathbb{Z}^n$?

I am trying to prove the following assertion: The set of subgroups of $(S^1)^n$ which are isomorphic by an element of $\operatorname{Aut}((S^1)^n)$ to the standard copy $(S^1)^k$ is naturally parametrized by the set of $k$-dimensional unimodular subspaces of $\mathbb{Z}^n$.  By a $k$-dimensional unimodular subspace of $\mathbb{Z}^n$ we mean a rank $k$ submodule which is a direct summand.     My guess is that the $k$-dimensional unimodular subspaces of $\mathbb{Z}^n$ would be those that are isomorphic by an element of $\operatorname{Aut}(\mathbb{Z}^n)$ to the standard copy of $\mathbb{Z}^k$. Is that correct?   In that case, since $\operatorname{Aut}(\mathbb{Z}^n)\cong GL(n,\mathbb{Z})\cong\operatorname{Aut}((S^1)^n)$ I thought I could do the following:  Given any subgroup $H$ of $(S^1)^n$, as in the stated assertion, there is an $f \in GL(n,\mathbb{Z})$ such that $f(\mathbb{(S^1)^k}) = H$. So I can send this subgroup to $f(\mathbb{Z}^k)$. But this map need not be well defined. So what do I do?  Thank you.


Is it "0.4 miles away" or "0.4 mile away"?  My intuition tells the first form is correct, but a colleague isn't convinced.


I once asked a question about the time line of an incredibly complex time travel movie on this site and received some incredibly elegant explanations. I'm wondering if you guys can explain Arrival too.   She learns an alien language which allows her to think in such a way that she knows the future. In the future, an important leader tells her at a world convention that he remembers when she called him on his personal number and got his attention by telling him his wifes dying words.  He then proceeds to give her his cell number and tells her his wife's dying words. In the "past", as she "sees" this "memory" of the future conversation, she uses this number to call him and tells him those words.   How does that work? Mind blown. Is there even a logical way to explain this?


How do I link a cell in Google Spreadsheets to a cell in another document?

I have a monthly spreadsheet that relies on figures from the previous month. I'd like to import these values dynamically rather than cutting and pasting them. Is this possible? How do I do it?


"the Poincare conjecture" but "Bolzano's theorem"

Consider these two ways of coining a name: 1) Bolzano's theorem, Rolle's theorem 2) the Poincare conjecture, the Kantorovich theorem. What is the difference between these ways, why do people choose one over the other?  My guess is that the main difference is when you put 's at the end of a name, you strictly imply that the theorem/conjecture was written by this very person (Bolzano wrote Bolzano's theorem). But when it is "the [Name] theorem/conjecture," it doesn't mean that the person which name is used actually created this thing, maybe he just inspired it (Poincare might have only inspired the Poincare conjecture but did not propose it).  Sometimes there is only one way: ; you can not call it hairy ball's theorem.


Unity doesn't work on VNC server under 14.04 LTS

After upgrading to Ubuntu 14.04 LTS, I find the Unity destkop in vnc4server never works as it did under Ubuntu 12.04 LTS.  Here is my ~/.vnc/xstartup for vnc4server:  #!/bin/sh  xrdb $HOME/.Xresources xsetroot -solid grey  /usr/bin/gnome-session &   That works fine starting Unity desktop on Ubuntu 12.04 LTS, but unfortunately on 14.04 LTS only a gray screen is seen in vncviewer.  I searched a little and find  shows the way to start legacy gnome desktop (gnome-fallback) in vnc on 14.04, but what I want is the solution for a normal Unity desktop in vnc.  Has anyone successfully run Unity desktop in a vnc session (vnc4server, or any other vnc server) on Ubuntu 14.04 LTS?


Export iMessages in human readable form for archival

I have a long (several months' worth) iMessage conversation with a contact.  He lost these messages when he re-installed his OS, but I still have the archive.  There is some important information there that we'd like to keep.  Is there a simple way to export this conversation for archival in a human readable form, and also keep any images?  I can select parts of the conversation, copy it to the clipboard and paste it into a rich text document, but this discards all images.  I'm looking for a way that keeps the images.  Note: I use iMessage on OS X only, not iOS.  (Ideally I'd also like to export all non-image file attachments, but I'm not expecting that this will be possible.)


How to prove biased estimator with SVD of X

Hi guys, I'm assuming that I am able to use SVD of X to solve this question. So, X = UΣV where U and V are nxn and pxp orthogonal matrices respectively and Σ is an nxp matrix containing the singular values on the diagonal.  I tried to get the expectation of both sides to show the biases. So RHS of the equation would be (1/λ)E[X'X]+E[β̂]=(1/λ)E[VΣ'ΣV']+E[β̂].  However, I am unable to prove (1/λ)E[VΣ'ΣV'] is not 0. Is this the right way to tackle this question? Any help would be appreciated!


Find a closed form $g_n$ defined by $g_n = \prod_{k=1}^n (1+\frac{1}{k!})$.

One can derive a recurrence for $g_n$ as $g_n = g_{n-1}+g_{n-1}\frac{1}{n!}$, and letting $g_n = \sum_{j=0}^n a_j x^j$ gives a formula for the characteristic polynomial as $n! a_n x^n - \sum_{j=0}^{n-1}a_j x^j=0$. I feel like this is not a bad start but I can't think of what to do next, any ideas?


What happens to capacitor’s charge when the plates are moved further apart?

In my physics textbook there is an example of using capacitor switches in computer keyboard:     Pressing the key pushes two capacitor plates closer together, increasing their capacitance. A larger capacitor can hold more charge, so a momentary current carries charge from the battery (or power supply) to the capacitor. This current is sensed, and the keystroke is then recorded.   That makes perfect sense, and is kind of neat. What I am curious about, is what happens to that extra charge afterwards. Is there some sort of discharge mechanism? I suppose, that would be also necessary to differentiate between single keystrokes and continuous depression (register stroke current, then register the discharge). What would happen to the capacitor if there was no such discharge mechanism, but its capacitance was suddenly reduced?  If capacitance is reduced, and the charge stays the same, then, according to $Q = C  \Delta V_C$, the difference of potentials on plates of capacitor should increase and exceed that of a power supply thus reversing the current. Is that what is happening, and the keystrokes are recorded by sensing not only the existence of the current, but also its direction?


Can I use python to run a C# script file(.cs)?

I'm working with python on a project using OPT GIGE cameras. What I need now is to show the camera vision and capture a frame with my Python script. I didn't find anyway to connect to the  gige camera with opencv in python, so I decide to use halcon to capture the image. But halcon can only export to .cs file  I wonder is there anyway to use python to execute a .cs script?