i am running ubuntu gnome. when i attempt to do ANYTHING (update, upgrade, purge, remove, install...) with apt, i get  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  gnome-control-center : Depends: gnome-settings-daemon (&gt;= 3.25.90) but 3.24.0-0ubuntu2 is to be installed                         Recommends: gnome-online-accounts (&gt;= 3.25.3) but 3.24.0-0ubuntu1 is to be installed                         Recommends: rygel but it is not going to be installed or                                     rygel-tracker but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   then when i use   sudo apt-get --fix-broken install    i get:  Preparing to unpack .../gnome-settings-daemon_3.26.2-1_amd64.deb ... Unpacking gnome-settings-daemon (3.26.2-1) over (3.24.0-0ubuntu2) ... dpkg: error processing archive /var/cache/apt/archives/gnome-settings-daemon_3.26.2-1_amd64.deb (--unpack):  trying to overwrite '/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules', which is also in package gnome-settings-daemon-schemas 3.24.0-0ubuntu2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Reinstalling /etc/xdg/autostart/org.gnome.SettingsDaemon.XRANDR.desktop that was moved away Reinstalling /etc/xdg/autostart/org.gnome.SettingsDaemon.Orientation.desktop that was moved away Errors were encountered while processing:  /var/cache/apt/archives/gnome-settings-daemon_3.26.2-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I cannot do anything unless i am using dpkg to install a local package. can anybody help?
Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (&gt;= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?
Correct usage of suspended hyphens I have seen some people using them while others not. Should I still use a suspended hyphen in the following snippet?     I have used upper- and lowercase in my script. This or That person Today I heard a speaker use the phrase "this person", referring to the subject-person of the story they were telling, and I heard it as (that person). Between the words “this” or “that” in context with the phrase and story-tense, which should you use. Cancelled cut and paste, what happens? Prove $S_4$ has only 1 subgroup of order 12 The subgroup in $S_4$ that I know has order 12 is the subgroup of all even permutations, otherwise known as the alternating group $A_4$. However, I know this from a fact and not because I am able to show a subgroup of order 12 exists in $S_4$ in the first place. If I had not been told there existed a subgroup of order 12 in $S_4$, I would not have known there was one. So I guess this is actually a two-parter for me: 1) How do I go about showing that a subgroup of order 12 does indeed exist in $S_4$? I know by Lagrange that if there exists a subgroup, then the order of that subgroup must divide the order of the group. However, this doesn't say anything about the existence of the subgroup. And Sylow only verifies subgroups of a prime to some power order, which 12 is not. I also know that there might be a cyclic subgroup of order 12, but without manually multiplying every possible permutation in $S_4$, I don't know any other way to check the existence of this or if this subgroup is isomorphic to $A_4$ because I don't know how to write these permutations as functions in order to check if there is a homomorphism (I know that a permutation is bijective by definition). And 2) How do I show that this group of order 12 is the only group of order 12 in $S_4$? How to achieve line break in simple $formula$-mode Add a legend in an ArcGIS Javascript API I am quite new to Javascript. I have made a html script that includes services I published to ArcGIS for server. It all does exactly what I want and I made it by copying working scripts together and getting help from more experienced scripters. I want to finetune my service by adding a legend. Unfortunately I am not able to create a working script. I have added the parts of my script I assume that are necessary to create my legend. Does anybody see what I am doing wrong?        &lt;script&gt;         var map;         var wmsLayer;         var URL;         var legend;         require(["dojo/query", "esri/map", "esri/layers/WMSLayer", "esri/dijit/Legend", "esri/config", "dojo/domReady!"],         function (query, Map, WMSLayer, Legend, esriConfig) {          esriConfig.defaults.io.proxyUrl = "/proxy/proxy_gcx.php";            map = new Map("map", {               basemap: "topo",               center: [5.5, 52.485],               minZoom: 8,               maxZoom: 13,               zoom: 8,               slider: true           });            wmsLayer = new WMSLayer("URL", {               format: "png",               visibleLayers: ["31", "30", "29", "28"]           });            map.on("layer-add", function (results) {               //add the legend               legend = new Legend({                   map: map,                   layerInfos: [{                       layer: results,                       title: "test"                   }]               }, "legendDiv");               legend.startup();           });             map.addLayer(wmsLayer);       });     &lt;/script&gt; &lt;/head&gt;  &lt;body&gt;     &lt;div id="map"&gt;     &lt;/div&gt;     &lt;div id="legendDiv"&gt;     &lt;/div&gt; &lt;/body&gt;   EDIT: I have edited the code. I am still not done. It does give me a legend on my browser but it says there is no content in there. On my arcgis server manager there is a legend. I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines? How can I chroot sftp-only SSH users into their homes? I want to give a client access to my server, but I want to limit those users to their home directories. I will bind-mount in any files I want them to be able to see.  I've created a user called bob and added him to a new group called sftponly. They have a home directory at /home/bob. I've changed their shell to /bin/false to stop SSH logins. Here is their /etc/passwd line:  bob:x:1001:1002::/home/bob:/bin/false   I've also changed the /etc/ssh/sshd_config to include the following:  Match Group sftponly         ChrootDirectory /home/%u         ForceCommand internal-sftp         AllowTcpForwarding no   When I try to log in as them, here's what I see   $ sftp bob@server bob@server's password:  Write failed: Broken pipe Couldn't read packet: Connection reset by peer   If I comment out the ChrootDirectory line I can SFTP in but then they have free rein over the server. I have found that ChrootDirectory /home works, but it still gives them access to any home directory. I have explicitly tried ChrootDirectory /home/bob but that doesn't work either.  What am I doing wrong? How can I limit bob to /home/bob/?  ----EDIT-----  Okay so I just had a look at /var/log/auth.log and saw this:  May  9 14:45:48 nj sshd[5074]: pam_unix(sshd:session): session opened for user bob by (uid=0) May  9 14:45:48 nj sshd[5091]: fatal: bad ownership or modes for chroot directory component "/home/bob/" May  9 14:45:48 nj sshd[5074]: pam_unix(sshd:session): session closed for user bob   I'm not entirely sure what's going on there,  but it suggests something is wrong with the user directory. Here is the ls -h /home output:  drwxr-xr-x 26 oli      oli      4096 2012-01-19 17:19 oli drwxr-xr-x  3 bob      bob      4096 2012-05-09 14:11 bob Goal: I have a function $f(x,y)=z$ (two variables for illustration only) which I know almost nothing about--it has a compact domain which I can determine, it is non-negative, and bounded above.  My goal is to find the maximum value $f(x,y)$ takes on its domain.  I can query the function and I know the values at a few points: $f(x_1, y_1)=z_1, f(x_2, y_2)=z_2,..., f(x_n, y_n)=z_n$.  Optimization via Linear Regression:  I have used linear regression (and related methods like the lasso) to model functions like this in the past; this is the method that I am very comfortable with.  Typically, I might try to find a polynomial (of degree $k$) which relatively accurately models the data. The end result would be to say that:   $$f(x,y)\approx \beta_1 + \beta_2 x + \beta_3 y + \beta_4 x^2 + \beta_5 xy + \beta_6 y^2 + ... + \beta_{m}y^{k}.$$  Determining the coefficients is done by solving the .  The "best degree" for the polynomial might be determined using $k$-fold cross validation.  Once the "best" polynomial has been determined, one can choose any of a number of methods to optimize it (Newton's method, gradient descent, hill climbing, etc).  Then, if all goes well, the optimal value on the polynomial corresponds to an optimal value of $f(x,y)$.  Bayesian Optimization:  Recently, I was describing this technique (linear regression) to a colleague who asked: "What is the difference between that and Bayesian Optimization?"  I've been attempting to answer this question for the last couple days, and so far I don't have anything really conclusive.  After reading , trying to read  and getting stuck reading  I think I understand the following about BO:   Start with a prior (a guess as to what family of functions the black box belongs to... or at least some family of functions which you believe might be able to describe $f$ well).  It looks using a  as a prior is popular. Specify whatever is needed to build your prior (for GP this is a covariance function). As you go along, you maintain two evolving functions, a "mean" function $m(x,y)$ and a "confidence interval" function $c(x,y)$.  Basically, you can predict the value at any point by evaluating $m(x,y)$ and you are confident that $f(x,y)\in [m(x,y)-c(x,y), m(x,y)+c(x,y)]$. Bayesian optimization provides a systematic way of updating/exploiting the model by alternatively selecting points where the confidence interval is wide (you are very uncertain about the value) or at optimal points on the model $m(x,y)$.   My Question: Is it fair/correct to say that the major difference between Bayesian Optimization and simply optimizing the linear regression model is that Bayesian Optimization provides the systematic way of sampling with the goal of optimizing the model and reducing uncertainty whereas the linear regression model ignores the idea of uncertainty and doesn't explicitly provide a means of updating the model?  Said another way, is the linear regression model an example of what might be a "mean" function $m(x,y)$ in Bayesian Optimization?  If I stick with linear regression, specify how to compute the uncertainty, and provide a means of updating/improving the model (exploit/explore) am I just doing Bayesian Optimization (without calling it that)?  Background: My background is in pure mathematics (graph theory) but my new job has me working with a lot of data (so I'm self learning statistics).  With that in mind, my statistics vocabulary is somewhat limited (so I appreciate answers that either avoid technical terminology or briefly explain any technical terminology used)--for example, Monday was the first time I heard/read the word "prior" used in a stats sense and I'm still not 100% sure I understand that correctly. Writing USB Joystick for PIC18F using MikroC How to set static IP address? How do I parse command line arguments in Java? What is a good way of parsing command line arguments in Java? I’m looking for a word I’m struggling to remember that refers to a job or role which is inconsequential and usually created in order to install someone in a company, not based on their merit.  An example would be creating a vague new role for a friend’s son. The word I’m looking for refers to the actual job itself - it’s a noun that would replace the ‘job’ (e.g “they put so and so’s cousin in a ____”).   I believe the word may not be a strictly formal or technical word but I don’t think it was slang. Let $x\in\mathbb{Q}$ with $x&gt;0$.  Prove that we can find $n\in\mathbb{N}^*$ and distinct $a_1,...,a_n \in \mathbb{N}^*$ such that $$x=\sum_{k=1}^n{\frac{1}{a_k}}$$ What does !$ mean? I'm following through a tutorial and it mentions to run this command:  sudo chmod 700 !$   I'm not familiar with !$. What does it mean? Which comes first: cat or dog? Which comes first in a sentence?  I know some word pairs such as bacon and eggs, where bacon always comes first. E.g:     Make me bacon and eggs for dinner, honey.   Cats and dogs are the two most common pets I know of. What is the preferred order?   Dogs are superior.     Don't put dogs and cats together, they might fight!  Cats are superior.     Don't put cats and dogs together, they might fight! Discrepency in unanswered questions counts On , I notice that if I use the lower &quot;unanswered&quot; tab (the one in line with &quot;All Questions&quot;), the count is 1,432 questions. If I use the upper &quot;Unanswered&quot; tab (in line with the site title), I get 1,383 &quot;questions with no upvoted or accepted answers&quot;.  This changes the options in the lower tab, one of which is &quot;no answers&quot;.  Clicking here, I now get 1,083 &quot;questions with no answers&quot;. If I run select Id from Posts where PostTypeId=1 and AnswerCount=0;  in the , I get 1158 rows back. Which of these is correct, and why is the first one (1,432) so much higher than the others?  I understand that the numbers may only be updated periodically, but that difference in particular seems much too great for this to be the reason. To clarify:  1,432 is the number of &quot;unanswered questions&quot;. 1,383 is the number of &quot;questions with no upvoted or accepted answers&quot;. 1,083 is the number of &quot;questions with no answer&quot; 1,158 is the number of questions with no answer in the data explorer.  This is not live data, but that means it should be smaller, not larger, than 1,083.  I promise we did not offset this with answers to the tune of 80 questions this week.  The first three are obviously live because they fluctuate. The difference between the first two is ~50, implying they actually don't refer to the same thing, and the difference between the last two seems too great (and in the wrong direction) to be explained by the a live vs. data explorer source. Comment flags are broken If I flag a comment now, it puts the dialog off the page:        It is only fixed by performing one of these actions:   Maximize window (if not already maximized) Restore window (if maximized)         I am running Windows and Firefox; also I tried Firefox in safe mode. I would be interested to see what testing was done on this beforehand - as this seems like a pretty glaring error. Please and thank you.    Inspired by the answer, the following CSS worked for me. It makes me sad to have to fix Stack Exchange CSS; I would figure this community over all others would get it right. Oh well.  aside {   transform: none !important; } The kernel and range of the powers of a self-adjoint operator Is the empty set a subset of itself?