How to reinstall win 10 update after going back to win 7

I have HP pavillion dv4 laptop carring genuine win7 sp1, i upgraded my win 10 update in august and unistalled it on next day for any reason and roll back to clean install of win 7. Now i again want to reinstall Windows 10 update in my laptop. though Get win 10 app is showing in tray and it's reporting that your free upgrade is on the way but I am failed to get the update since one and half months. Pl help me to get win 10 update again on my laptop.


I created decimal to binary method but ı cant return my method value correctly

I created a method for convert decimal to binary. Here is the working code in main method:   Scanner input = new Scanner(System.in);      System.out.print("Enter a number : ");   int number = input.nextInt(); int size = 4; int binary[] = new int[size]; for (int a = number ; a > 0 && size >= 0; size--, a = a / 2) {     binary[size - 1] = a % 2; }  size = 4;    for(int i = 0 ; i<size ; i++) {                  System.out.print(binary[i] + " "); }   This code works well but when I tried to implement this into a method :   public static int[] convertDectoB(int number, int size) {     int binary[] = new int[size];     for (int a = number; a > 0 && size >= 0; size--, a = a / 2) {         binary[size - 1] = a % 2;     }     return binary; }   When I run my second code, output is : [I@1cd072a9   How can I solve this ? Ty.


15.04 Logitech M325 scroll wheel is too sensitive

The scroll wheel of logitech M325 mouse became very sensitive, I noticed it few weeks ago, so it is probably caused by driver update. It is enough to put my finger on scroll wheel and it scrolls the page.  On Windows I haven't noticed such problem. So there is not problem with mouse.  Can you please advise me what can I do with it?  this question is different from  because it relates to ubuntu 15.04 with package xserver-xorg-input-evdev already installed


PDFlatex : Some Greek letters disappear from PDF when babel package is used

I have a problem with Greek letters in math mode. Some letters disappear from PDF file when babel package is used  I'm using pdflatex engine. and here are two minimal codes.  \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage[LAE, T1]{fontenc} %\usepackage[english, arabic]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{equation}   \omega  \quad \alpha \end{equation} \end{document}   this code create the following pdf :     but when babel package is used some letters disappear and here the other code :  \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage[LAE, T1]{fontenc} \usepackage[english, arabic]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{equation}   \omega  \quad \alpha \end{equation} \end{document}   this code create the following pdf :    Is there any way to solve this problem with out changing the pdflatex engine ?


I'm developing a floating panel that has to be hidden completely on the print screen. I use JSPanel3. I would like the whole panel to be hidden only during the display of the print screen.  Code HTML

         <one-gedfile-form layout="gedfile.TEMATICA.LAYOUT" mode="mode" gedfile-form-control="formControl" show-form-border="false"></one-gedfile-form>

   Created directive  oneApp.directive('floatingPanel', function () {    return {        restrict: 'A',        scope: {         id:'@',         parentTag: '@',         title: '@',         content: '@',         close: '@',         maximize: '@',         htmlTag:'@',         minimize: '@',         ctrl: "=",     },     controller: ['$scope', function($scope) {         var config =         {             id: $scope.id,             headerTitle: $scope.title == undefined ? '' : $scope.title,             position: "center",             size: { width: 350, height: 250 },             content: $scope.htmlTag == undefined ? $scope.content : $('#'+ $scope.htmlTag),             theme: 'rgb(192, 192, 192)',             headerControls: {                 close: $scope.close,                 maximize: $scope.maximize,                 minimize: $scope.minimize             },         };          var size, position;          if ($scope.parentTag != undefined) {             var element = $('#' + $scope.parentTag);             var pos = element.offset();             config.size = { width: element.width(), height: element.height() };             config.position = { top: pos.top, left: pos.left }          }          var panel1 = $.jsPanel({              config         });          var closePanel = function() {              panel1.close();         }          var onCreate = function() {              if ($scope.ctrl) {                  $scope.ctrl.closePanel = closePanel;             }         };          onCreate()     }], }; })   Result    Edit  I added the code  @media print {         .noPrint{display: none !important;} }   and now it only appears the border of the header


Number of question views on mobile version

Is there a specific reason that the number of views is not included as a feature on the mobile version?  I understand there are certain features which are better to be viewed on desktop rather than on a mobile device.  However, the number of views for a question, which is shown along with the topic title on left on the desktop browser shouldn't be much resource consuming to be displayed on the mobile browsers too.  Is it specific to the desktop/mobile browser or is it a feature which is not at all included for mobile browsers.  I am only talking about mobile version and not the mobile application.


What should I do when I got the KEYEXPIRED error message after an apt-get update?

While updating my packages on a debian based system by a   sudo apt-get update   I've got that error message :  Reading package lists... Done W: GPG error: ftp://ftp.fr.debian.org stable/non-US Release:  The following signatures were invalid: KEYEXPIRED 1138684904   What should I do to fix this ?


Using mask as a garbage matte to hide an object

I'm trying to use a mask to hide a part of a render layer, so that when the render layer is shown over a movie, some parts in the movie will appear to be in front of the render layer.  For example, assume I want to add a box to this image, so that it would look like it's behind the person:    I created the following simple object:    If I render the object, it looks great - the object is solid, everything else is transparent (I didn't use any 'sky'):     Now I create a mask to describe the standing person (or at least the part that would otherwise be covered by the box):    What I want now is to create a "hole" in the rendered box, so that when I use Alpha-over, the box look as if it's behind the person, but I can't find an easy way to do that. My first guess was to use 'Set alpha' to apply the mask (inverted) as an alpha for the rendered layer, but this doesn't look good:    The mask did create a "hole" where it should, but now all the other pixels are not transparent. How can I "retain" the transparent pixels while setting more pixels to be transparent based on the mask (use it as a matte)?  Note: I can do this with (I'm ashamed to say) some math work on the alpha channel, but it just doesn't seem right:    Thanks, and sorry for the [oh so] long question.


There is a committee of 18 people, and a board of 5 people will be randomly chosen. What is the probability John, Jane, and Randy will all 3 be on the board of 5?


Multiple Regression in R with y as a Factor

I have a data set that rates customer satisfaction based on three options:  Recommend Neutral Not satisfied I understand those may not be the best options but that's what I have to work with.  Another caveat is that I must build the model in R so I'm trying to determine how to build a multiple regression model when y is a factor.  Once I understand that I want to use a stepwise approach to determine the variables I should use based on the code below:  install.packages("MASS") library("MASS") model <- lm(y~x1+x2+x3+x4, data=DATASET) step <- stepAIC(model, direction = "both") summary(step)   I don't have any issues when y is numeric, but I don't think I can just arbitrarily assign values to the customer satisfaction by making Recommend == 1, Neutral == 2, and Not Satisfied == 3.  I was thinking about creating three new variables called Recommend, Neutral and Not Satisfied and assigning 1s under columns where the feedback applies to a customer and a 0 when it doesn't.  If that is an acceptable approach I'm stuck trying to determine how to incorporate all three variables into my model since all of them represent the output I'm trying to predict.  Thank you for any help you are able to provide.


Sort a list in all possible ways in Python

Let's suppose we make this list  a=[1,2,3]   a can be sorted in 6 possible ways  a=[1,2,3] a=[1,3,2] a=[2,1,3] a=[2,3,1] a=[3,1,2] a=[3,2,1]   How do I make a function that automatically does that but with bigger lists?


Why does this circut not work for Fan-In=1 and Fan-Out=3

Problem: Explain why this circuit does not work for Fan-In=1 and Fan-Out=3 for all logic gates(including the complex logic gate).  Could someone explain me why this circuit does not work?  I tried it since yesterday but I don't have a clue. Especially Fan-In/Out confuses me.  sincerely, Hisoka


Unitary representations of the diffeomorphism group in curved spacetime

In (special) relativistic quantum mechanics there is a standard argument that says that the (rigged) Hilbert space of states $H$ should be equipped with a projective unitary representation $U$ of the Poincaré group $P$ that goes something like this:  Suppose we have two observers $O_1$ and $O_2$ and $x\in P$ is the Poincaré transformation that maps $O_1$s coordinate system into $O_2$s coordinate system.  Then, if $O_1$ and $O_2$ attempt to measure the same thing, they will actual find different states, $\left| \psi _1\right>$ and $\left| \psi _2\right>$ respectively, in $H$ (for example, if you first find the vector $(1,0,0)$, rotate your axes by $\pi/2$ and measure the same vector, the numbers you now record are going to be $(0,1,0)$).  In fact, this gives us a map of states:  $\left| \psi _1\right> \mapsto \left| \psi _2\right>$ (it's only going to be well-defined up to phase).  Let us call this map $U(x)$, so that $\left| \psi _2\right> =U(x)\left| \psi _1\right>$.  However, if we accept the principle of relativity that physics should be the same in two reference frames related by a Poincaré transformation, then we better have that $$ \left| \left< \phi _1|\psi _1\right> \right| =\left| \left< \phi _2|\psi _2\right> \right| =\left| \left< U(x)\phi _1|U(x)\psi _1\right> \right| $$ for all (normalized) $\left| \psi _1\right>$ and $\left| \phi _1\right>$ because this represents a probability (of course, $\left| \psi _2\right> :=U(x)\left| \psi _1\right>$ and $\left| \phi _2\right> =U(x)\left| \phi _1\right>$).   then tells us that this gives a projective unitary representation of $P$ on $H$.  (Note:  I am allowing some elements of $P$ to be represented by antiunitaries.)  Now, if you try to do the same argument in curved spacetime, you run into the obvious problem that you will not in general have an analogue of the Poincaré group (I believe there exist spacetimes which possess no Killing fields); however, it naively seems as if the principle of general covariance suggests that we should 'upgrade' the isometry group of spacetime to the entire diffeomorphism group of the spacetime in the above argument.  (In particular, I don't see how this argument makes crucial use of the fact that both observes coordinate bases are orthonormal.)  That then, would imply, that the Hilbert space of states in a quantum theory of curved spacetime should possess a projective unitary representation of the diffeomorphism group of that spacetime.  This, however, at first glance, seems like it would be false.  So, where does the argument break down if you replace the Poincaré group in special relativity with the diffeomorphism group in general relativity?  Or, is it in fact the case that we should obtain a unitary representation of the entire diffeomorphism group.


What is the best way to implement constants in Java?

I've seen examples like this:   public class MaxSeconds {    public static final int MAX_SECONDS = 25; }   and supposed that I could have a Constants class to wrap constants in, declaring them static final. I know practically no Java at all and am wondering if this is the best way to create constants.


Is the sentence "are you done your soup?" proper English?

My mother in law is Scottish and has lived in Canada for the last 45 years.  She will often omit the word "with."  When asking my child if he is ready to get out of the bathtub she will say "Henry, are you done your bath?" or before clearing his plate she will say "are you done your dinner?"  She has excellent vocabulary and grammar, so this struck me as very odd.  Is this usage proper?  If so, where is this usage common?


How to add blank space in proof environment without changing the position of the word "proof"?

I LaTeX my homework, and for one problem, I want only white space in the proof environment since I'll be hand-drawing a picture. when I type in    \begin{proof} \vspace{1in} \end{proof}   the outcome is    i.e., the word "proof" goes to the bottom. Is there any way to move the word back to the top?


best way to prevent sql injection in php 8

What is the best way to prevent SQL-injection in PHP 8? the only way that I know is Prepared statement.  I want to know is there any other way to prevent SQL-injection in PHP-8? I see these methods are for PHP 5 and PHP 7 to prevent SQL injection. but what should we do in PHP 8? mysqli::real_escape_string mysqli::escape_string mysqli_real_escape_string (PHP 5, PHP 7)   it's not still deprecated but we should use it very carefully. Is there any other way in PHP-8?


My goal is to plot a cartesian plane with a circle centered around the origin, a right triangle touching the origin inscribed in the circle, which has an angle named theta and sides named x and y, the axes shall not be named. Possibly in every single quadrant. I want to make such a plot in order to sort of "explain" the polar coordinates and show how to get the formulae. I know a lot of mathematical LaTeX, but nothing about plotting such graphs whatsoever and would greatly appreciate your help. EDIT: Okay, I'm terribly sorry, that my text was apparently a bit unclear. I added a picture.  I also want to do a similar picture for three dimensional spherical coordinates. I found  and changed it a little bit up. As follows \tdplotsetmaincoords{60}{110} \pgfmathsetmacro{\rvec}{.8} \pgfmathsetmacro{\thetavec}{30} \pgfmathsetmacro{\phivec}{60} \begin{center} \begin{tikzpicture}[scale=5,tdplot_main_coords]  \coordinate (O) at (0,0,0); \tdplotsetcoord{P}{\rvec}{\thetavec}{\phivec} \draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$}; \draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$}; \draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$}; \draw[-stealth,color=red] (O) -- (P); \draw[dashed, color=red] (O) -- (Pxy); \draw[dashed, color=red] (P) -- (Pxy); \tdplotdrawarc{(O)}{0.2}{0}{\phivec}{anchor=north}{$\phi$} \tdplotsetthetaplanecoords{\phivec} \tdplotdrawarc[tdplot_rotated_coords]{(0,0,0)}{0.5}{0}{\thetavec}{anchor=south west}{$\theta$} \draw[dashed,tdplot_rotated_coords] (\rvec,0,0) arc (0:90:\rvec); \draw[dashed] (\rvec,0,0) arc (0:90:\rvec); \tdplotsetrotatedcoords{\phivec}{\thetavec}{0}  \end{tikzpicture} \end{center}  But now, I still want to have dotted lines going from the projetion of the point P to the xy-axis Pxy to the x and y axes.


Ubunto .rar file is downloading instead of .iso

I am trying to download Ubuntu 20.04 LTS (Desktop) for Virtual box to run it on windows, but .rar file is downloading instead of .iso file  I can not find any solution for this. Can someone kindly helo me with this


Javascript Functions: function Footer() vs. const Footer = () =>

What is the difference between these two functions? They both seem to produce the same output. Pros and cons? Or are they exactly the same? const Footer = () => {     return (         This is the footer     ) }  and function Footer() {     return (         This is the footer     ) }


Question incorrectly stated as answer and vice versa

Is there something up with the review queue today? In the text it mentions first question but it is really an answer.    Or it mentions first answer when it is really a question.


I posted a pokemon at one gym and did not collect any pokecoins

Can someone explain this to me? I have one pokemon placed at a gymn and I collected the 10 pokecoins immediately.  When I placed another pokemon at another gym, I was not able to collect any pokecoins because it has not been 21 hours yet.  However, my two pokemons were defeated shortly after I placed them at the gyms.    Does that mean, in order to collect for the 2nd pokemon, I must be able to hang in that gym for more than 21 hours?  So I tried a second strategy - placed the pokemon first and then collect later, hoping that within 21 hours I can place several pokemons at different gyms.  No such luck. My first one was again defeated within hours and I never got to collect anything.  So how do you collect defend bonus for more than one pokemon at a time?  Thanks.


Batch rotate images by 180 degrees from the command-line

I'd like to rotate a series of images by 180 degrees clockwise from the command-line in a way I can write into a shell script to make things faster and more convenient. Is this possible?


Every injection $f: A \to A$ for finite $A$ is surjective

I cannot prove this rather simple theorem in set theory.      Let $A$ be a finite set. If $f: A \to A$ is injective, then $f$ is also surjective.    My Attempt. Suppose for contradiction that this isnt the case. So there exists a mapping $f: A \to A$ that is not surjective. Then the image of $A$ under $f$ is a proper subset of $A$, i.e., $\text{Im}(f) = C$, where $C \subsetneq A$. Define the mapping $g: C \to A$, where $c \mapsto f^{-1} (\{c\})$. By construction, $g$ is not onto, but since $f$ is injective, it is well-defined, since every $c \in C$ has a unique preimage in $A$. Hence, every $c$ is sent to exactly one $a \in A$. But, if that is the case, $|C| = |A|$, as a function is by definition defined on its entire domain. With this contradiction, we conclude that no such function $f$ can exist.


It appears that the product of any pair of twin primes (excluding the first pair 3 and 5) yields a semi prime whose digital root is equal to $8$.   Example: $$ 17 \cdot 19 = 323 $$ The digital root of $323$ is $8$.  I've tested the first twenty and a bunch of random large ones such as $$ 8231 \cdot 8233 = 67765823 $$ Its digital root is also $8$.  As an amateur in advanced mathematics I'm curious to know how I could prove or disprove this conjecture. All tips are welcomed and much appreciated. Thanks.


A. I had visited them two months ago.   B. I visited them two months ago.    Which one is correct?


If relay coil is specified for AC power we have to take into account thar the magnetic force applied to the moving contact will drop to zero each 10 milliseconds (or 8.3 in case of 60 Hz supply) and stays low for several milliseconds.  So the question is: what forces contacts to stay in 'closed' state during this time?


Compute $\sum_{n=1}^{\infty}\frac{\sin nx}{n}$.  I tried compute the series like this: $$ \sum_{k=1}^{n}\frac{\sin kx}{k}=\int_0^x\sum_{k=1}^{n}\cos kt\mathrm{d}t=-\frac{x}{2}+\int_0^x\frac{\sin(n+\frac{1}{2})t}{2\sin \frac{t}{2}}\mathrm{d}t $$ But I do not know how to compute the latter term as $n\rightarrow +\infty$. By Riemann-Lebesgue Lemma, the integral on $[\delta, x]$ is $0$, but I do not Know how to go on. Apprecaite any help!


Is there any way to turn off a USB HDD manually?

I have a USB-powered external HDD connected to my DELL laptop. Some times, after clicking on "Safely remove" item in pop-up menu of its icon in side bar, the drive is un-mounted and is removed from /dev/ folder (sdb and sdb1 both are removed) and lsusb do not show the device, but the HDD remains spinning and I could sense the vibration by putting my finger on it. But some times a few second after clicking on "Safely remove", it stops spinning and has no vibration. Is there any way (may be a CLI command) to turn it off?


Finding the number of normal subgroups of this group which has order 21

This question was asked in my abstract algebra quiz and I was unable to solve it.  How many normal subgroups does a non-abelian G of order 21 have other than identity {e} and G ?  Here 7>3 and 6|3 so there are two groups and one is $\mathbb{Z}_{pq}$ and other is non-abelian generated by c,d such that |c|=3 and |d|=7 ... . But I don't want to use the result for non-abelian groups that  c,d such that |c|=3 and |d|=7 ... . and couldn't think of any result which I can use , so can you please help me with this question.


I am working on a small array sort algorithm and i just dont get why my output looks similar to this:      [I@4e5a5622   when this is not close to what i expected...  public static void main(String [] args){     int[] array = {5,45,234,3};     int n = array.length;     for(int i=0; i<n; i++){         int m = n-1;         for(int j=i+1; j<n; j++){             if(array[j]<array[m]){                 m=j;             }         }     int t= array[i]; array[i] = array[m]; array[m] = t;     }     System.out.println(array.toString()); }   Thanks for helping :D


I am in need of a cheap DC motor that spins at a very low speed, preferably around 10-15rpm. As I am new to electrical engineering, I am not quite sure what to do. The only things I know of are expensive high torque slow motors, which I do not need. The only other idea I had was to make a circuit comprising of only a fast motor, battery, and potentiometer to slow down the motor. Would this work? Would I be able to get a over 1000 rpm motor down to 10rpm? Any feedback is appreciated. Thanks


User cannot see "Shares" relationship on Case

I'm trying to use Apex Managed Sharing to create share records when a record is created, but I'm running into a bit of an issue when Customer Community Plus Login Users create the records...  A user with a Customer Community Plus Login license is unable to see the Shares relationship on the Case object.  @isTest static void CustomerCommunityPlusLoginUserShouldBeAbleToSeeTheSharesChildObject(){     String objectName = 'Case';     SObjectType shareObjectType;     Test.startTest();     System.runAs((User)[select Id from User where IsActive = true and UserType = 'PowerCustomerSuccess' limit 1]){         for(ChildRelationship childRelationship : Schema.getGlobalDescribe().get(objectName).getDescribe().getChildRelationships()){             if(childRelationship.getRelationshipName() == 'Shares'){                 shareObjectType = childRelationship.getChildSObject();                 break;             }         }               }     Test.stopTest();     System.assertNotEquals(null, shareObjectType); }   This test method will fail with: "System.AssertException: Assertion Failed: Same value: null"  I would really like it to find the Share object with these users... Is there a reason for this, or a way that I can change/fix this?


Background  The latexmk tool can be used to automatically process your LaTeX files enough times to generate the output.  As discussed  and , latexmk now supports setting out_dir which passes the -output-directory to pdflatex and places build products in this alternate location.  Unfortunately, this makes it difficult to use latexmk with feynmp.  Question  How can I configure latexmk to call mpost for processing Feynman diagrams generated by feynmp?  Especially using the new out_dir configuration?  Partial Answer 1  One can try to add a custom rule to the latexmkrc file like  add_cus_dep('mp', '1', 0, 'mpost'); sub mpost {     system("mpost $_[0]"); }   but this fails in three ways: 1) if there are multiple images, then the extensions .1 changes and it is not clear how to specify all the dependences. 2) I don't know how to tell latexmk that pdflatex needs to be run again after the figure is generated. 3) Even if out_dir is specified, latexmk still runs the mpost command in the source directory, thereby missing the generated .mp files.  Partial Answer 2  As suggested , one can use the -shell-escape option of pdflatex to allow the figures to be processed by the call to pdflatex.  Unfortunately, the call to mpost still takes place in the top-level directory.  Is there some way of using -output-directory to ensure that shell commands are executed in the appropriate place?  Here is a MWE demonstrating this second attempt:  latexmkrc  mkdir _build; $out_dir = '_build'; $pdflatex="pdflatex -shell-escape -interaction=nonstopmode %O %S";   tst.tex  \documentclass{scrbook} \usepackage{feynmp} \usepackage{etoolbox}  \DeclareGraphicsRule{*}{mps}{*}{} \makeatletter \show\endfmffile \preto{\endfmffile}{\let\the@fmffile\thefmffile} \appto{\endfmffile}{   \ifnum\pdfshellescape=\@ne     \immediate\write18{mpost \the@fmffile}%   \else     \message{       Run pdf(la)tex with -shell-escape to generate feynmp diagrams}   \fi   \let\the@fmffile\relax } \makeatother  \begin{document} \begin{fmffile}{title}   \begin{fmfgraph}(40,25)      \fmfleft{i1,i2}      \fmfright{o1,o2}      \fmf{fermion}{i1,v1,o1}      \fmf{fermion}{i2,v2,o2}      \fmf{photon}{v1,v2}   \end{fmfgraph}  \end{fmffile} \end{document}


Can I visit other Schengen countries while on a French student visa?

I have student visa 'D'. Is it possible for me to travel and stay in other Schengen countries like Belgium, Germany, etc.?


Permission denied error when trying to install with wubi

I run into problem when tried to install Ubuntu 11.04 on Windows 7 using wubi installer . It downloads the image for sometime and ends up with the error that says   Permission denied: for more details see the log file  In the log it seems to be like  DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')  but my network is good and I checked it.  Tried using wubi several times, but ends up with same problem.  Log content:  10-08 16:56 DEBUG  TaskList: ### Finished get_metalink 10-08 16:56 DEBUG  TaskList: New task download 10-08 16:56 DEBUG  TaskList: ### Running download... 10-08 16:56 DEBUG  btdownloader: downloading http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-amd64.iso.torrent > C:\ubuntu\install\ubuntu-11.04-desktop-amd64.iso 10-08 18:02 ERROR  TaskList: Traceback (most recent call last):   File "\lib\bittorrent\RawServer.py", line 229, in listen_forever   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Traceback (most recent call last):   File "\lib\bittorrent\RawServer.py", line 221, in listen_forever   File "\lib\bittorrent\Rerequester.py", line 96, in fail   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')  Traceback (most recent call last):   File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__   File "\lib\wubi\backends\common\btdownloader.py", line 79, in download   File "\lib\bittorrent\download.py", line 303, in download   File "\lib\bittorrent\RawServer.py", line 256, in listen_forever   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Traceback (most recent call last):   File "\lib\bittorrent\RawServer.py", line 229, in listen_forever   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Traceback (most recent call last):   File "\lib\bittorrent\RawServer.py", line 221, in listen_forever   File "\lib\bittorrent\Rerequester.py", line 96, in fail   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')   10-08 18:02 ERROR  TaskList: Non fatal error Traceback (most recent call last):   File "\lib\bittorrent\RawServer.py", line 229, in listen_forever   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Traceback (most recent call last):   File "\lib\bittorrent\RawServer.py", line 221, in listen_forever   File "\lib\bittorrent\Rerequester.py", line 96, in fail   File "\lib\wubi\backends\common\btdownloader.py", line 70, in error_callback DownloadError: Problem connecting to tracker - urlopen error (10060, 'Operation timed out')   in task download 10-08 18:02 DEBUG  TaskList: ### Finished download 10-08 18:02 ERROR  TaskList: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso' Traceback (most recent call last):   File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__   File "\lib\wubi\backends\common\backend.py", line 492, in get_iso   File "\lib\wubi\backends\common\backend.py", line 347, in download_iso OSError: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso' 10-08 18:02 DEBUG  TaskList: # Cancelling tasklist 10-08 18:02 DEBUG  TaskList: # Finished tasklist 10-08 18:02 ERROR  root: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso' Traceback (most recent call last):   File "\lib\wubi\application.py", line 57, in run   File "\lib\wubi\application.py", line 131, in select_task   File "\lib\wubi\application.py", line 157, in run_installer   File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__   File "\lib\wubi\backends\common\backend.py", line 492, in get_iso   File "\lib\wubi\backends\common\backend.py", line 347, in download_iso OSError: [Errno 13] Permission denied: u'C:\\ubuntu\\install\\ubuntu-11.04-desktop-amd64.iso'


Behaviour of $f'(1)$ for an analytic function $f$ from open unit disc to open unit disc satisfying $f(0)=0$ and $f(1)=1$

If $f(z)$ is analytic on $\Delta$, the open unit disc such that $f(0)=0,|f(z)|<1$ for all $z \in \Delta, f(z)$ is analytic at $z=1$ and $f(1)=1 .$ Then prove or disprove $|f'(1)|\geq 1$.  Here I can't deal the question with Schwarz's lemma or Schwarz Pick's lemma etc. For the functions like $f(z)=z^n, n\in \mathbb N,$ we are getting $|f'(1)|\geq 1 $.


I am using Miktex2.9. I added \usepackage{signalflowdiagram} to draw block  diagrams. Then an error message appeared  "file signalflowdiagram.sty not found"   Where do I place the .sty file? Please show me how to do step by step!


We very well know that  is given by $E = mc^2$. My question however is how would we actually convert an object or some mass into its pure energy state and then if possible even back to its original state. The answer needs to state the requirements for conversion into pure energy. We all know its possible theoretically but how would it be done in a practical world. Just assume that the mechanism required for the process is possible. In short I want the process/mechanism for how to go about it.


A list of what each of the Winter Bash 2016 hats are named after

Continuing the tradition of asking for the meanings of .  Hats like  can be deciphered easily as related to . However, hats like  are difficult to .   bluefeet has already mentioned about the number-only hats .   Hence the question is: can we have a list of what inspired each of the (secret and non-secret) hats?


What does :: mean in front of a function call?

I2CDevice::I2CDevice(unsigned int bus, unsigned int device) {     this->file=-1;     this->bus = bus;     this->device = device;     this->open(); }  int I2CDevice::open(){    string name;    if(this->bus==0) name = BBB_I2C_0;    else name = BBB_I2C_1;     if((this->file=::open(name.c_str(), O_RDWR)) < 0){       perror("I2C: failed to open the bus\n");       return 1;    }     if(ioctl(this->file, I2C_SLAVE, this->device) < 0){       perror("I2C: Failed to connect to the device\n");       return 1;    }     return 0; }   The above is part of a code doing Linux I2C interface, my question is in the line:  this->file=::open(name.c_str(), O_RDWR)   I think this is trying to assign a value to the file descriptor this->file using open() function. But why there is a "::" symbol? Why not just "open()".


Are gauge choices in electrodynamics really always possible?

If $B$ is magnetic field and $E$ electric Field, then $$B=\nabla\times A,$$ $$E= -\nabla V+\frac{\partial A}{\partial t}.$$ There is Gauge invariance for the transformation $$A'\rightarrow A+{\nabla L}$$ $$V'\rightarrow V-\frac{dL}{dt}.$$ Now, we can write:   (CG): the choice of a $L$ that implies $\nabla\cdot A=0$.   (LG): the choice of a $L$ that implies $\nabla \cdot A - \frac{1}{c^2} \frac{\partial V}{\partial t}=0$.   Now, I'm trying to mathematically prove that it's always possible to find such an $L$ satisfiying $CG$ or $LG$.


How can I handle intellectual property violations in user-generated content?

I recently made a simulation game like Gamedev Tycoon where you are in charge of a game company and planning to release it on app stores soon.   I have few questions about trademark and copyright laws, as in game there are different companies (competitor) who release games, make sequels to previous games, release consoles etc. I know that under parody law I can change a company name from MICROSOFT to MICROCRAFT or MINORCRAFT etc. But what if I provide users an editor where they can change company names (if they want to) from MICROCRAFT to MICROSOFT?  Do changes made by players with my editor violate any copyright or trademark law? How can I handle that?


With LaTeX, I would like to set all my section titles in small capitals but I need the \textsc to be 'cancelled' in my table of content. Is that possible somehow ?  I currently do this :   \section[Introduction]{\textsc{Introduction}}   Is there a automatic way?


Latex Command for Greatest Integer Function

I tried browsing and cant fnd the command for the double bracket symbol found below:


Is this correct: "This is the view from Alice and mine's office"


I still haven't quite realized how to solve binomial coefficient problems like this, can someone show me an elaborated way of solving this?  I need to write this expression in a more simplified way: $\sum_{k=0}^{10} k \pmatrix{10 \\ k}\pmatrix{20 \\ 10-k}$  I'm aware of the binomial identity $\sum_{k=i}^{n-j}\binom{k}{i}\binom{n-k}{j}=\binom{n+1}{j+1}$  Just can't seem to see how to use it.  Many thanks.


Because the server side only accepts PUT method, I used method='PUT' in the HTML form. But the browser didn't use method PUT as expected, it's GET. When I set method='POST' it's POST. I don't know why method='PUT' doesn't work. I have tested on Chrome and Firefox.


Adapter to use DSLR lens on Mirrorless cameras

I am planning to use adapter for dslr prime/zoom lenses from Nikon/Canon with Sony Mirrorless A7iii camera. Will this impact the quality photos taken? Will it be advisable to go for Sony E mount prime/zoom lenses rather than using adapter.


If every vector is an eigenvector, the operator must be a scalar multiple of the identity operator?

I am posed with the following question:     Suppose that $T\in \mathcal{L}(V)$, where $V$ is a finite-dimensional vector space,  is such that every vector in $V$ is an eigenvector of $T$. Prove that T is a scalar multiple of the identity function.     My attempt goes as follows:  If $T$ is a scalar multiple of the identity function, then $Tv=av$ for all $v\in V$, where $a$ doesn't depend on $v$. We will start off assuming that that may not necessarily be true, and work our way to the result.  From the problem statement, we know that $Tv=a_j v$, where $a_j$ may depend on the choice of $v$. To show that it doesn't, consider two non-zero vectors $v_1$ and $v_2$ both in $V$ (It would be pointless to consider zero vectors). Consider $T(v_1+v_2)$. Also, let us first consider the case where $v_2$ is not a scalar multiple of $v_1$ (so $v_1$ & $v_2$ form a linearly independent set). On one hand we have  $$\begin{align*} T(v_1+v_2)&=\alpha (v_1+v_2)\\ &= \alpha v_1 + \alpha v_2 \end{align*}$$  Which is true because of the the assumption that every vector is an eigenvector. On the other hand, we have  $$\begin{align*} T(v_1+v_2)&=T(v_1)+T(v_2)\\ &=a_1 v_1 + a_2 v_2 \end{align*}$$  So we are left with the following equality  $$a_1 v_1 + a_2 v_2=\alpha v_1 +  \alpha v_2$$ $$\implies (a_1 - \alpha)v_1 + (a_2 - \alpha)v_2 = 0$$  Because $v_1$ & $v_2$ are linearly independent, $a_1=a_2=\alpha$.  Now consider $\beta v$, a scalar multiple of $v$.   $$\begin{align*} T(\beta v)&= \beta T(v)\\ &= \beta (a v)\\ &= a (\beta v) \end{align*} $$  Because every vector in $V$ that is not equal to an arbitrary vector $v$ is either a scalar multiple of it or the sum of $v$ and some other vector in $V$, $Tv=av$ for all $v\in V$.    Is my prove valid? Please criticize my proof holistically.   P.S: Is the same proof valid for infinite-dimensional vector spaces? I ask because such truth would lie in the validity of the last paragraph, and I don't know if it is true in infinite-dimensional vector spaces.


For a real Banach space $X$ let $A:X\rightarrow X^*$ be a positive operator in the sense that $(Ax)(x)\geq 0$ for all $x\in X$. Show that $A$ is bounded.   I don't know how to do that, maybe it's an application of the closed graph theorem?


dual boot problem. error: unknown command 'drivemap'. error: invalid EFI file path

I have installed Ubuntu 12.04 on my computer with Windows 8.1 pre-installed. But when selecting Windows to boot I get following error: error: unknown command 'drivemap' error: invalid EFI filepath  I ran boot-repair twice. The output can be found here:   Hope you can help me


8085 μp; Why does Read cycle take 3 T-states and not 2?

In the text I'm following,  it's explained that,   During T1, address in Program Counter(PC) is latched onto the Memory Address Register(MAR),  During the falling edge of T2 \$\overline{MEMR}\$ becomes active, and during the rising edge, contents in the Memory Data Register is placed on the bus \$^\dagger\$ During T3, contents in the bus is latched on to the accumulator.   \$^\dagger\$ My question is, during the rising edge of T2, why is the MDR not directly latched onto the accumulator, but takes another T-state to latch it on?


$A, B$ are $n\times{n}$ matrices over the field F. Do $AB$ and $BA$ have the same characteristic polynomial? I have been able to prove that they have the same set of characteristic values. Also if any one the matrices $A$, $B$ are invertible, then $AB$, $BA$ are similar and they have the same characteristic polynomial. What if they are both non invertible? Do they have the same characteristic polynomial then?


What are the benifits of using a point to an array in practical programming?

string (*add(string (*str)[10])) [10]; //function return a point to array of 10 string  int main() {     string s[10] = {"a","b","c","d","e","f","g","f","i","j"};     string (*str)[10] = &s;     string (*str2)[10] = add(str);     cout << (*str2)[1] << endl;     return 0; }  string (*add(string (*str)[10])) [10] {     for (int i = 0; i < 10; i++)         for (auto &c : (*str)[i])         {             c = toupper(c);             cout << c << endl;         }     return str; }   i think those codes which used a point to an array are complex for a fresh man,  and other approaches make it easier.   i would like to what it is like to use it in general.


My current OS is Windows and I want to start using Ubuntu. After I downloaded Ubuntu, I got a iso file and I have no idea what to do next.


How do I cross-play on Minecraft with someone on pc when I’m on xbox 360?

I play Minecraft of the xbox 360, but my friend plays Minecraft Java edition on pc. We want to figure out how to friend each other. I’ve already friended him by typing in his gamer tag. His account did show up and it is pending. Somehow he didn’t get it. We tried to figure out how he can accept my friend request but he couldn’t find it. Then we decided to try me joining his server except I can’t do that since I’m on the xbox 360. We just need to know how we can friend each other so we can cross-play on the same world/server.


I would like to know that if i get a call from my iphone,is it possible to differentiate whether it is Land line call or mobile line call?  Please help me out...I searched a lot and found nothing.


Find center of mass and moment applied on beam structure

I have a simple physics problem to solve but it is giving me a slightly difficult time to figure out. The problem:  I have a beam structure with same cross section. It consists of three beam. First in vertical with length 1meter. Second beam joined on top with a angle of 20degrees to the right with lenth 1.1meter and on top of the second beam, a third beam parallel to the ground with 1meter length. I need to find the center of gravity and how much moment I have on the base of the structure so I would add a mass that would be sufficient to avoid the structure to fall over.  any ideas how?


Maybe I'm overlooking something but is there a way to get your current bash history for the current session you are using like  if i run  ssh host $ pwd $ ls $ cd /tmp   I just want to see those 3 commands and nothing else


Show that $e^x > 1 + x + x^2/2! + \cdots + x^k/k!$ for $n \geq 0$, $x > 0$ by induction

Show that if $n \geq 0$ and $x>0$, then   $$ e^x > 1 + x + \frac{x^2}{2!} + \dots + \frac{x^n}{n!}.$$  Not sure where to get started with this induction proof.


When I try to sudo apt-get upgrade I get:  Preconfiguring packages ... dpkg: error: unable to create new file '/var/lib/dpkg/info/format-new': No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2)   What should I do to fix it?


Prove that $1^n-3^n-6^n+8^n$ is divisible by $10$ for all $n\in\mathbb{N}$  It is divisible by $2$ and $5$ if we rearrange it will it be enough   $(1^n -3^n)$ and $(6^n -8^n)$ is divisible by $2$.  And $(1^n-6^n)$ and $(8^n-3^n)$ is divisible by $5$.  Hence $\gcd(2,5)$ is $1$ and it is divisible by $2\cdot5=10$.  Is it correct?


I am trying to write a batch script and trying to wait 10 seconds between 2 function calls. The command:   sleep 10   Does not make the batch file wait for 10 seconds.  I am running Windows XP.  Note: This is not a complete duplicate of  as the other question is about also about python, while this is about windows batch files.


Are the movies, Ewoks: The Battle for Endor (1985), and Caravan of Courage - The Ewok Adventure (1984) considered canonical, or just children's movies that happen to involve a Star Wars license?  Some parts of the movies, such as the Witch, Charal, don't really feel at home with the universe of the three movies.


Is there a way to find out how many memory cells on a SSD are broken

A Solid-state drive consists of Flash-EEPROM (electrically erasable programmable read only memory) which is is build up of FGMOS (Floating-Gate metal–oxide–semiconductor field-effect transistor). With the MLC (multi-level-cells) technology a cell can be changed  until the isolation of the floating gate is destroyed. If a cell is ruined there are about 10% extra cells which will will be selected by the SSD-control unit to replace the broken cells.   So is there a way to find out how many cells have been replaced (are broken) and how many cells for replacing broken cells are left? (Windows/Linux)


Replacing the core of a solenoid to increase the pulling force

I have a number of  I would like to use in a project. The problem is that they're not quite powerful enough so I've been trying to come up with ways to increase the their pulling force without increasing the voltage.  The solenoids use a core that is tapered on the end. I would think that would lower the pulling power when the solenoid first engages. If I replace the core with a one that has the same thickness would I be right in thinking that the initial pull when the solenoid engages would be stronger?  If this would work what type of core should I use? If I just google "steel rod" there is a lot of types available. Is there some in particular material I should be looking for?


Is it meaningless to pass Dictionary by ref?

Since Dictionary objects are Reference type themselvesIs it meaningless to pass Dictionary to method by ref ! this method MUST edit the dictionary items and add new items as wellThose dictionary objects are Global and they are used in all of my app classes and formsDoes Dictionary objects are passed to the methods by ref by default? As example consider this method defintion:  internal static void GetUserData(ref Dictionary<string,int> UserNameIdDictionary) {...}   I use this dictionary to store User Name/ID data which will be retrieved from SQL Server Database this Dictionary will allow the use of these data from The whole application  Side Note/Question Does it wrong approach storing the retrieved data inside dictionary objects [from performance perspective] ?


Wup.exe is consuming a lot of CPU power.  I have tried the following things:  To end task but it's useless, it starts again To delete from registry, it also didn't work Uninstalled all useless softwares Reinstalled Chrome  Now, I am fed up, so somebody has any idea, how to remove it completely, I don't want to reinstall Windows please.


Convolution of an integrable function an $L^\infty$ function

Let $f$ be an integrable function on $\mathbb{R}$, and $g$ be an $L^\infty$ function on $\mathbb{R}$.  Then, the convolution $f*g$ is said to be continuous and bounded on R. I managed to show that it is bounded, but can't show that it is continuous. The convolution is defined as an integral, so it seems intuitively clear that it is continuous. Could anyone show me how to rigorously prove this?


Why can less difficult encounters be worth more experience?

So I'm checking out the 5e DMG on encounter building, and it seems that XP is awarded based on monsters defeated (ie; defeating 3 Goblins worth 50xp each is 150xp), but encounter difficulty is based on an additional multiplier for the number of creatures.  This means that fighting a single CR 1 Bugbear earn a 4 player party 200xp and would be considered a Medium difficulty encounter, yet fighting a group of 3 CR 1/4 Goblins would earn them 150xp (3x50xp) even though according to the encounter difficulty calculator this would actually be a Hard encounter.  Is there any reason given anywhere why supposedly harder encounters are worth less experience than easier ones, just because they happen to involve more monsters?


Projecting a Non Negative Vector onto the Simplex

Given an elementwise nonnegative vector $y$, I'd like to find the projection of $y$ onto the simplex $S: \{ (x_1, \ldots, x_n) ~|~ \sum_{i=1}^n x_i=1, x_i \geq 0 \mbox{ for all } i \}$.    Is there a closed form expression for this? If not, I need to write a computer program which will compute this projection; is there something simple I could do to compute this?   Simplicity is more important to me than running time; I don't want to spend a long time coding this. I do realize this is a convex optimization problem and could be solved by using various optimization solvers, but that seems like overkill.


I'm trying to bind two parameters to a prepared PDO select statement. This is what I have so far:  $query = "select * from books where ? LIKE ?"; $result = $db->prepare($query); $result->bindValue(1, $searchTerm, PDO::PARAM_STR); $result->bindValue(2, "%$searchValue%", PDO::PARAM_STR); $result->execute(); $rows = $result->fetchAll(PDO::FETCH_ASSOC); print_r($rows);   This executes successfully but I don't get any rows returned.  But when I use only 1 param  $query = "select * from books where title LIKE ?"; $result->bindValue(1, "%$searchValue%", PDO::PARAM_STR);   I get rows returned. I've checked 1000 times for my param values and names and they are fine.  I don't understand why this doesn't work with two params. Please advice.


Sometimes @username option doesn't work and enable me to tag a person in a comment who answered a post of mine. In that case, how can I tag the person so that he gets informed?


elementary ring proof with composition of functions and addition of functions as operations

Consider the set $\mathcal{F}=\lbrace f\mid \mathcal{f}:\Bbb{R}\to\Bbb{R}\rbrace$, in which an additive group is defined by addition of functions and a second operation defined as composition of functions. The question asks to verify that the resulting structure does not satisfy the ring properties.     This is the question 24.10 from Modern Algebra, by Durbin, 4th edition.  So what I have so far is that all of the properties for the additive group (with addition of functions as the operation here) hold, associativity of the composition of functions hold, and that the failure must come from the distributive laws.  My proof of my claim, so far;  $$1\,\,\,\,\,[(\mathcal{f}\circ\mathcal{g})+\mathcal{h}](\mathcal{x})=\cdots=\mathcal{f}(\mathcal{g}(\mathcal{x}))+\mathcal{f}(\mathcal{h}(\mathcal{x})).$$ ...but,  $$2\,\,[(\mathcal{f}\circ\mathcal{g})+\mathcal{h}](\mathcal{x})=$$ $$3\,\,(\mathcal{f}\circ\mathcal{g})(\mathcal{x})+\mathcal{h}(\mathcal{x})=$$ $$4\,\,\,\mathcal{f}(\mathcal{g}(\mathcal{x}))+\mathcal{h}(\mathcal{x}).$$ ...which brings me to my contradiction of the properties of rings that;  $$5\,\,\,[\mathcal{f}\circ(\mathcal{g}+\mathcal{h})](\mathcal{x})\neq[(\mathcal{f}\circ\mathcal{g})+\mathcal{h}](\mathcal{x}).$$  So my question is, is this the correct path to showing the distributive laws are not obeyed when composition is taken as an operation on $\mathcal{F}$? particularly my proceeding from 2 to 3 to 4 is what i feel uncomfortable about, like i may be missing a step in there.  thanks


Parsing CSV with comma as decimal separator in pgfplots

How can I plot data from CSV file when comma is separator of decimal part?  Part of my CSV file:  U f(U) 0 6,12323399573677E-016 0,1257 1,2536924115 0,2514 2,4876019375   I've tried this trick but it doesn't help me.  \pgfkeys{/pgf/number format/.cd,fixed,precision=2,use comma}   Is any elegant solution of my problem (without replacing characters in data file)?  Here is how I generate the plot:  \begin{tikzpicture} \begin{axis}[ xlabel={$x$}, ylabel={$y$}, ] \addplot[blue] table {wykres-2.1-przyklad 3.csv}; \end{axis} \end{tikzpicture}


What is the time complexity of the following code? in Big O notation

for(int i = 0 ; i < n ; i++) {          a[i] = scan.nextInt();     }     for(int i = 0 ; i < n ; i++) {         for(j = n ; j >= 0 ; j--)             a[j] = a[j] + a[i];     }   I cant seem to properly find the time complexity of the code or convert to big O. I know the first loops is 1 + (n+1) + 1 and i think the 2nd/3rd ones are N*(1 - (N-1) * 1)


what is the person who is always nosing in people's business?

what is a person called who is always nosing on other people's business - like having a neighbor always outside on the balcony or window to check the neighborhood out.


Why do I get an error when using apt-get?

Whenever I try to install any package using apt-get install package it shows an error massage like the one below.  dpkg: dependency problems prevent configuration of unixodbc:i386:  unixodbc:i386 depends on odbcinst1debian1 (>= 2.2.11-3); however:   Package odbcinst1debian1:i386 is not installed.  libodbc1:i386 (2.2.14p2-5ubuntu3) breaks unixodbc (<< 2.2.14p2-3) and is installed.   Version of unixodbc:i386 to be configured is 2.2.11-21. dpkg: error processing unixodbc:i386 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  odbcinst:i386  odbcinst1debian2:i386  unixodbc:i386 E: Sub-process /usr/bin/dpkg returned an error code (1)


Did i just destroy my work by incorrectly using git rebase

I executed the following line:  git rebase -i dev --onto master    I figured this would cut my dev branch and paste it on top of my master branch. And the -i would let me collapse the changesets.  But when it brought up the editor, I did not see any of the changesets. All I saw was "noop". So I just exited it. And then I look at my git history, all my changes are gone. My dev branch is at the same place my master is at!  Can some one help me recover? Thanks!


Destructive interference in vacuum (energy conservation)

The following question was proposed by a student durante a lecture for a grad course in EM.  What happens to the energy of an EM wave during destructive interference in vacuum, in regards to the conservation of energy?  Interestingly, for some reason I've never gave the proper thought about it, and while we indeed arrived at a solution, I thought it would be interesting to share it here due to the conceptual importance to undertanding the nature of waves.  I'll post the answer later in the day, so in the meanwhile feel free to offer your answers or interpretations regarding this question (note that there's a similar question on the site but it only deals with material media, so please don't flag this)


Errors when installing wine in ubuntu 14.04 LTS

I have followed the below procedures to install wine in Ubuntu 14.04 LTS:  add-apt-repository ppa:ubuntu-wine/ppa  apt-get update  apt-get install -y wine     However, I see the below error messages:  The following packages have unmet dependencies:   unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (>= 3.0.1) but it is not going to be installed   wine : Depends: wine1.6 but it is not going to be installed or                  wine1.8 but it is not going to be installed  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.     After I did a check on the system, unity-control-center has already been installed. And I encounter the same error message when trying to install wine1.6.  Any help will be appreciated!  Thanks!  ============  updated  According to A.B.'s suggestions, these are the outputs:  lsb_release -a  LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core- 3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description:    Ubuntu 14.04.3 LTS Release:    14.04 Codename:   trusty   uname -a  Linux yiliang-PORTEGE-Z930 3.19.0-43-generic #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   apt-get install libcheese-gtk23 libcheese7  Reading package lists... Done Building dependency tree        Reading state information... Done libcheese-gtk23 is already the newest version. libcheese7 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.   apt-get install wine1.8  Reading package lists... Done Building dependency tree        Reading state information... Done 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:  wine1.8 : Depends: wine1.8-i386 (= 1:1.8.0-0ubuntu1) E: Unable to correct problems, you have held broken packages.   The output of   apt-cache policy wine wine1.6 wine 1.8 unity-control-center libcheese-gtk23 libcheese7   is very long and can be accessed from .  wine:   Installed: (none)   Candidate: 1:1.8.0-0ubuntu1   Version table:      1:1.8.0-0ubuntu1 0         500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages      1:1.6.2-0ubuntu4 0         500 http://sg.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages  wine1.6:   Installed: (none)   Candidate: 1:1.6.2-0ubuntu4   Version table:      1:1.6.2-0ubuntu4 0         500 http://sg.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages  wine1.8:   Installed: (none)   Candidate: 1:1.8.0-0ubuntu1   Version table:      1:1.8.0-0ubuntu1 0         500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages  unity-control-center:   Installed: 14.04.3+14.04.20150916-0ubuntu1   Candidate: 14.04.3+14.04.20150916-0ubuntu1   Version table:  *** 14.04.3+14.04.20150916-0ubuntu1 0         500 http://sg.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages         100 /var/lib/dpkg/status      14.04.3+14.04.20140410-0ubuntu1 0         500 http://sg.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages  libcheese-gtk23:   Installed: 3.10.2-0ubuntu2   Candidate: 3.10.2-0ubuntu2   Version table:  *** 3.10.2-0ubuntu2 0         500 http://sg.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages         100 /var/lib/dpkg/status  libcheese7:   Installed: 3.10.2-0ubuntu2   Candidate: 3.10.2-0ubuntu2   Version table:  *** 3.10.2-0ubuntu2 0         500 http://sg.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages         100 /var/lib/dpkg/status  wine1.8-i386:   Installed: (none)   Candidate: (none)   Version table:


Beamer : after the last page -- initiate a loop

I'd like that the presentation goes to a specific page after the last page, as it would be the natural next page.  I know : \hypersetup{pdfstartpage=1}  But it works only to go back to the first page.  My point is to loop on a set of selected slides to make a looping animation at the end of the presentation. I know how to make the set of selected slides, how to change the \transduration, the last point is how to initiate the loop.  \documentclass{beamer}  \hypersetup{pdfstartpage=1,pdfpagemode=FullScreen,colorlinks=true} \pdfcatalog{ /AA << /WC << /S/JavaScript/JS (app.fs.loop=false;) >> >> } \pdfpageattr{ /AA << /O << /S/JavaScript/JS (app.fs.loop=true;) >> >> }  \begin{document} \begin{frame}[label=bob] \begin{enumerate}[<+->]  \item a \item b \item c  \end{enumerate} \end{frame}  % save current value of \pdfpageattr \edef\pdfpageattrOrig{\the\pdfpageattr} % append page duration to the page attributes (do it manually) \begingroup \edef\x{\endgroup   \pdfpageattr{\the\pdfpageattr /Dur 0.2}% }% \x  \againframe<2->{bob}  \end{document}


I am pretty new to jQuery so I have a problem with this. I am trying to check if input is empty by jQuery. I have this script:    $('#submit').click(function(){   if($.trim($('#username').val()) == ''){     alert('Input can not be left blank');   } }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input name="username" id="username" type="text" placeholder="Enter your Username"/> <button class="btn btn-info btn-block login" name="submit" id="submit" type="submit">Create an Account</button>     Thanks for reply.


"Take the tour" message about how to obtain first badge doesn't make sense on child metas

On child meta sites, new users (those who don't have a badge yet) see the message "Take the Tour and earn your first badge" in their profile page. The message is the same as on the normal Q&A sites.    However, on meta pages, the tour is linked to their parent site and it's not possible to obtain the informed badge on sub meta sites, so the message is useless on meta. For my user, I saw this message on  and


Delete a partiular line and 17 lines after that

I have a report that pulls some information IP address and host name, etc.  Some some servers have a heading like: NOTICE TO USERS (followed by about 17 lines of text information) when I cat the file, I do not need the NOTICE (and 17 more line after that on some servers).  How can I get rid of it?


zip all files and subfolder in directory without parent directory

I have the following folder structure  folder | |--foo.txt | |--sub_folder    |    |--bar.txt   I want to zip the content (files and sub folders) of folder without including the root folder in the zip.  I have tried command  zip -r package.zip folder  But this includes the root folder. Also tried the following form  zip -j -r package.zip folder  But this will flatten all the directory structures and just include the files. How do I preserve the internal directory structure but ignore the parent folder?


What short story has crew drifting away from a wrecked spaceship, one towards Earth?

I read a story long ago that has gotten stuck in my mind lately, but I have no idea of the author or title!  It's about a wrecked spaceship. All the crew get into spacesuits, but have no maneuvering packs. They are all being thrown away from the wreck in various directions. There's no hope of rescue, and the story consists almost entirely of the crew’s radio communications with each other and the thoughts of the protagonist.  The protagonist is the only one heading towards Earth, and the story ends with him thinking "I'll burn like a meteor. I wonder if anyone'll see me" and then cuts to a kid saying "Look! A shooting star!" And mommy saying "Make a wish!"  Obviously, it had an impact on me! I probably would have read it between the late '60's and early '70's.  Thanks for any help!


When we use "return 4,5" in c++ it does not give error but instead returns 5 (at least 4 would be understandable as it should return the first number it encounters) . Why does this happen and can we use this to return 2 values in any way?  Here is the code that i tried  #include<iostream> using namespace std; int something() {     return 4,5; } int main() {     int a=0,b=0;     a,b = something();     cout<<a<<b<<endl; }   also in the above code for some reason 5 is assigned to b instead of a


why regexp.FindAllString return matched results with unwanted empty strings?


Are Fresnel lenses widely used for solar electricity? If not, why not?

I was just wondering why Fresnel Lenses are not widely used in the production of solar electricity. Their use there would mean that you could produce heat within a fraction of a second, up to a few minutes and run a turbine to produce electricity.  Though it is used in welding, I am not sure what are the problems in producing electricity, as stated by :     New applications have appeared in solar energy, where Fresnel lenses can concentrate sunlight (with a ratio of almost 500:1) onto solar cells.


Using \iupac{\D} or \D in a \paragraph{} environment

How can I use the \D or \iupac{\D} command from chemmacros package in a \paragraph environment? The result I get is a lower case d instead of the D- for the Fischer stereo descriptor.   \documentclass[a4paper]{scrreprt}   \usepackage{chemmacros}    \begin{document}   \paragraph{\D-Proline}   \end{document}


Speed of sound and Break the sound barrier

What happens when plane exceeds the speed of sound? and What is the interpretation of the conical shape that appears behind the plane?


Where does BlueStacks store my app's data (e.g. save game files)?

Where does BlueStacks install my apps and where does it store the data (e.g. saved game files) for those apps?


How can I determine if it is possible to check luggage during a layover?

A common desire among some travelers with long layovers is to leave the airport for a while, and perhaps do some shopping, or even buy goods in the airport.  But this then often necessitates the ability to check additional luggage during the layover, for the remainder of the journey.  There might be other reasons to want to check luggage mid-journey as well.  Are there any general rules one can use to determine whether this is an option in a given airport when traveling with a given airline, and the associated costs (when it is possible)?


There is no simple group of order 400.  My attempt: Firstly, I started supposing that $G$ was not simple, and using the Sylow theorems I got that $G$ must have $25$ $2$-Sylow and $16$ $5$-Sylow. The thing is I don't know how to end in a contradiction at this point. As the number of Sylows is quite considerable, I cannot use the fact that $G$ divides $n!/2$ because obviously does. Finally, I tried to count on elements but I cannot afirm that the intersection of Sylows is trivial and even get a minimum value


How to prove that tr(A) = tr(B) given that B is similar to A

If A and B are similar, how does one prove that tr(A) = tr(B)


How to create a instance of custom class using generics on the fly

I have a class definition like this:  public class LuRequest<T>     { ...     }   I want to create a instance of it by assigning the type T dynamically like  Type t = OtherObject.GetType(); LuRequest< t>  inst = new LuRequest<t>();   However it does not allow me do so, everything in the brackets need to be in compile time. Is there any way I can do that?  Thank you


How to monitor process/program execution in windows?

We are trying to develop a small application that can monitor the programs/processes that are executing in a windows machine.  If the program/process is not supposed to run, it should be blocked. It works similar to an antivirus.  This is the basic idea.  I want to know the ways to hook into the OS to get notified about every single program/process trying to run in the machine.


Why do we have minimum deviation angle in a Prism?

why do we have minimum deviation angle in a prism? I mean why does the angle of emergence first decreases, attains a minimum value and then increases.why?


Separation space between tableofcontents items in beamer

In beamer, I guess, the separation space between the items from tableofcontents is stretchable:    Can you set it to a fixed value? e.g. to equal the value used in the itemize environment.  Partial answer:  \begin{minipage}{\textwidth}    \linespread{1.4}    \tableofcontents \end{minipage}   Could someone patch this command with etoolbox and make it happen whenever typing only \tableofcontents? Thanks!  Here is a MWE (with default theme):  \documentclass{beamer}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[english]{babel} \usepackage{lipsum}   \title{Whatever Title Works} \author{Remus M. Prunescu$^1$} \institute{\tiny$^{1}$ Automation and Control Group, Department of Electrical Engineering, Technical University of Denmark (DTU)}  \begin{document} \frame{     \maketitle }   \frame{     \frametitle{Outline}     \begin{minipage}{\textwidth}        \linespread{1.4}        \tableofcontents     \end{minipage} }  \section{Introduction} \frame{     \frametitle{Random}     \lipsum[1] }  \section{Project Description} \frame{     \frametitle{Random}     \lipsum[2] }  \end{document}


Griffiths's take on degenerate perturbation theory

I've searched around here and it seems I'm not alone with my frustration towards Griffith's explanation of degenerate perturbation theory. Right from the start, Griffiths claims that some perturbation $H'$ will split a degeneracy (assume 2-fold degeneracy) and if we 'turn off' the perturbation then the 'upper' and 'lower' state will be some mutually orthogonal linear combinations of the degenerate states $\psi_A$ and $\psi_B$. Where did this claim come from? Is this because the linear sum $c_1\psi_A+c_2\psi_B$ is also an eigenstate of the unperturbed Hamiltonian $H^0$?   My intuition so far is that we resort to linear sums because we can now have distinct wave functions to use in the first order correction $E_1^1=\langle \psi_A^0 |H'|\psi_A^0 \rangle$ or $E_1^1=\langle \psi_B^0 |H'|\psi_B^0 \rangle$; I guess it was unclear which wave function we must choose? Is this why Griffiths goes on to solve $H\psi^0=E^0\psi^0$ where $H=H'+H^0$ and $\psi^0=c_1\psi_A+c_2\psi_B$?   I found some more formal mathematical reasoning behind this. I can't understand the explanations as I don't have a very advanced understanding of linear algebra, but from what I get we are trying to change basis? Can I get some clarification on the mechanism and reasoning behind this?


Is it possible to connect a PS3 Controller wireless (bluetooth) to the Google Nexus 4 without rooting it? There was a way on earlier Android versions, i heard. How about now?  Thank you


I belive I have accepted some updates yesterday and now my laptop doesn't reach the login screen. It keeps loading and showing the Ubuntu logo, but when I press on F7 key it shows me the following errors:    Edit1: I followed this solution  the Black/purple screen after you boot Ubuntu for the first time section and i basically got the same issue, it tried to start few jobs, login services and network manager etc... but fails in all of them, i belive the network manager services is the one causing all of this, however, i switched on windows and also tried ubuntu from my usb and internet works just fine, so its not a hardware issue  Link to original image:


Reuse existing Windows 10 Pro license key on same computer but new installation?

I have recently upgraded my computer and bought new storages drives, I would like to know how can I re-use my existing Windows 10 Pro (Genuine) license key when installing Windows 10 on the new computer? Thanks.


Was Thor putting the Helicarrier in danger by dropping his hammer on floor?

In the Avengers movie, Thor dropped Mjölnir on the floor of the Helicarrier. As proof, I can remind you that the Hulk tried to lift Mjölnir on the Helicarrier.  Due to Odin's enchantment, was Mjölnir limiting the altitude of the Helicarrier and putting it in danger? (According to aerodynamics, it's essential to go up or down, even by a very small amount, due to non-ideal air conditions for flying.)  Or was it not dangerous because the condition of being worthy or unworthy to lift Mjölnir is not applicable to an artificial object like the Helicarrier?


Screen resizing stuck for question with a lot of answers

Open question with many of answers, e.g. . Scroll down several times to force loading of the rest of answers. Rotate your iDevice (tested on iPad) quickly. Screen resizing stuck after stoping rotation.                 Rest of UI is working well: can scroll, select tabs etc. Looks like screen size is locked with one dimension from portrait mode and another one from landscape mode.  Dropping app to background and restore - fixes dimensions.   App Version: 1.6.2.5 Device: iPad Air 2 (Wi-Fi) OS Version: Version 10.2 (Build 14C92)


Is the busybox cpio THAT different from GNU cpio?

I'm trying to do an incremental backup using cpio but it seems that the busybox version doesn't work the same as the normal one? This is what I've got so far:  find data/Backup -mtime -2 | cpio -cm media/USB_FLASH_2  I origianlly used:  find . -mtime -2 | cpio -cm /media/USB_FLASH_2  However, I've seen people say busybox doesn't like definitive paths while using cpio. Unsure about that though.   It returns an error that basically says I'm using cpio wrong. I can't find anyone using the busybox cpio to do things like this, does that mean i can't do it? I've looked at using rsync as well but again, it doesn't do what i would expect.  For reference I'm using PuTTY to connect through SSH to a ReadyNAS 102.  After using find . -mtime -2 | cpio -o | { cd /media/USB_FLASH_2 && cpio -imd; }  i get the output:   BusyBox v1.20.2 (Debian 1:1.20.0-7) multi-call binary.  Usage: cpio [-dmvu] [-F FILE] [-H newc] [-tio] [EXTR_FILE]...  Extract or list files from a cpio archive, or create an archive using file list on stdin  Main operation mode:         -t      List         -i      Extract EXTR_FILEs (or all)         -o      Create (requires -H newc)         -d      Make leading directories         -m      Preserve mtime         -v      Verbose         -u      Overwrite         -F FILE Input (-t,-i,-p) or output (-o) file         -H newc Archive format


How would I make it so that I get vertical and horizontal axes at 0 in the chart created below?  \documentclass{article} \RequirePackage{pgfplots} \begin{document} \begin{tikzpicture}     \begin{axis}     \addplot+ [data cs=polar,domain=0:360] (\x,1);     \end{axis} \end{tikzpicture} \end{document}


How do I keep Python print from adding newlines or spaces?

In python, if I say  print 'h'   I get the letter h and a newline.  If I say   print 'h',   I get the letter h and no newline.  If I say  print 'h', print 'm',   I get the letter h, a space, and the letter m.  How can I prevent Python from printing the space?  The print statements are different iterations of the same loop so I can't just use the + operator.


Forcing a text field to be a valid email?

I was wondering if it were possible to force an input field to be an valid email?  <input type="text" name="emailaddress" >  I would like it to use Javascript/JQuery rather than PHP if possible!  Thanks for the help.


make order of bibliographic entries same as order of citation call-outs within body of document

I am writing an article. I would like the references to appear in the order in which they occur in the paper. I am using natbib, but can't seem to figure out how to do it.


Adding a program to the launcher with a script

I'm writing a bash script that modifies a program, then adds an icon to the unity launcher. Although I've created the .desktop file in /usr/share/applications, I can't see a way to programmatically add the shortcut to the launcher.


When you write something down is it in or on your notebook?     I wrote it down on/in my notebook.      Please, take notes in/on your notebook.   What about newspapers?     I read the article on/in the newspaper.      It was in/on the newspaper.


I am attaching a motor to a atmega32 chip. I want to build an H-birdge but before doing that, I want to control the motor using the chip. I bought few NPN Transistors from RadioShack.  I have 5V running though the breadboard. I attached Vcc to the Collector, Base to the Pin, and Emitter to the motor. And other wire of motor is hooked up to Ground. Unfortunately,  the power coming out of the transistor is too low, the motor is barely moving (As oppose when I hook up my motor straight to 5V). What is wrong? Do I need a different transistor or is my setup wrong? If it is the transistor, can you please recommend me the right one, I am not too good at those.   Thanks in advance!


Child-to-Parent Query - [object Object] is the result

I'm trying to perform the following multilevel relationship query.   SELECT ID, SystemModstamp, Product__r.Catalog__r.Active__c  FROM Journal__c      WHERE SystemModstamp > 2013-10-02T00:00:00.000+0000  AND SystemModstamp < 2013-10-05T00:00:00.000+0000    In the Product__r.Catalog__r.Active__c column I'm getting a value of [object Object] for every single record. I can substitute any field name from the Catalog__c object and get the same response. Does anyone know why this is happening or how to get the field's actual value?


Can I separate email id in spreadsheet based on domain in columns?

I have a list of 20000 email id which have emails from domains like gmail, ymail, gmx, hotmail, custom domains etc I have those list in a spreadsheet Column A. Can you help me separate them according to their domain in different columns?   For example gmail ids in column B and ymail in column C and so on....


Why is this php time not being subtracted correctly?

Basically, there is a "type" in a database that has "Probation" in it. There is also a time stamp of "2017-01-15 22:18:44" for example in RealDate. No matter how long ago the date is, the difference still returns true like it's within three days. Any suggestions?  $doR = $totalArr[$i]['RealDate']; $start = strtotime($doR); $today = time(); $diff = ($start-$today)/(60 * 60 * 24); if($diff < 5){     $parole = " - ON PAROLE"; }


Why are there only three Agents at a time in the Matrix?

In all of the Matrix movies, we only see three  at a time (Brown, Jones and Smith in the original and Jackson, Johnson and Thompson in the sequels).  Why are there only three? The Matrix being a software system, loading new instances of programs should be trivial for the machines rather than having three instances running around trying to catch both rebels and exiles. I can understand why three would be enough before Neo, but after the defeat of Agent Smith in the first movie, the machines could have increased the number.  Or, are there actually more than three, say in other parts of the world within the Matrix? If rebels show up in China, would Agents that look like Chinese secret service agents (probably called Ching, Ling and Wong) pursue them?


Can LCM of n numbers be obtained by taking LCM of 2 numbers and then taking LCM of this resulting LCM with the next number in the queue?

Can LCM of n numbers be obtained by taking LCM of 2 numbers and then taking LCM of this resulting LCM and the next number in the queue until all the numbers are exhausted by repeating this process?  In other words, Is the following formula valid?  LCM of (a,b,c,d,....) = LCM of ((LCM of ((LCM of (a,b)),c)),d)...


Is there a word or phrase meaning to plant my idea in someone else’s mind?

Is there a word or phrase that means to plant my idea in someone else’s mind so they think it is their own idea?  Just like what happened in the movie Inception.


Why is the phrase "less than 15 people" incorrect?

Why is the phrase less than 15 people incorrect? I just heard a radio personality flipping out over this usage.


Is there a way to put the time above the date with the Gnome Extension, Dash to Panel?

Just to be clear, I have no idea if this is the right place for this or anything. I just want help. I'm also on the mobile site so some important things may not be visible.   I'm on Ubuntu 18.10, have enabled the date, installed Gnome Tweaks and the extension, Dash to Panel.


Can I confirm that a variable is never defined by inspecting compiler/linker output?

I have a C++ project with a variable that appears to be defined/declared as extern everywhere; the actual definition does not seem to exist, yet the project/solution builds and runs. Is it possible for me to confirm that this variable really isn't defined anywhere by inspecting build outputs (e.g. .lib files, .exe files, etc)? Is there a more practical way of identifying variables that are defined everywhere as extern, e.g. some compiler strictness setting? I've checked this discussion for subtleties of extern:  It appears that all of the declarations in my solution do not include initializers, thus all of the declarations really are declarations and not definitions. My project/solution is built with Visual Studio 2019 (v142). The reason I'm wondering about this, is that I was refactoring some code and this variable was marked as undefined. When I searched for the location of the definition, I couldn't find it. At that point, I realized that it was 'extern' everywhere and I didn't understand how it was working. The variable declarations look like this: extern VariableType * variableName ;  There are no other special keywords or declspec annotations. The variable is used like this: extern ThisType * thisVar;  if(thisVar->flag) {  //Do something }  Per @Michael Dorgan's suggestion, I've tried inspecting the .map file. In the .map file, it appears that the variable is first declared as extern, and in the next occurrence it's used as a function parameter. So I am not sure how to proceed with the .map file.  Edit: For future readers, I ended up creating a tags file as suggested in the link. This worked fine using the universal-ctags pre-built binary for Windows. The commands I used were: ctags.exe -R   readtags.exe variableName    This printed out the location where the variable was actually defined; it was not extern everywhere, I had missed it in one location. The Visual Studio feature 'Go To Definition' does not seem to be working on this variable; I had to right-click and choose 'Find all References', which showed the correct location.


My arrival at Heathrow Airport is one day earlier than the start date of the validity of my UK visa, can I wait at the airport until the next day?

I am an Indonesian national and planning to visit UK on July 21. But for some reason the embassy give me a UK visa with the validity date start from July 22. I already bought a ticket with the arrival time at Heathrow on July 21 at 09.30. Since it's a promo tickets, I can't change the date and refund it.   My question is, is it possible for me to pass through the border control with my visa, which won't be valid yet at the time? Or if it's not possible, can I wait at the airport and go pass the border control after midnight on July 22? Is there any transit hotel or other facility that I can get some rest while waiting?  Thank you very much.


Can I install from a Windows 10 ISO or USB stick and still get the free upgrade?

I am trying to upgrade my Win7 system to Windows 10 (because I am, apparently, masochistic). It's not working, locking up at about 30 to 35%, requiring me to reset, which then backs out the upgrade.  The whole process takes about three to four hours. A large part of this is having to download 3.5GB of upgrade every time, because Microsoft's tool doesn't cache the install files.  The tool has an option to create a bootable USB stick, which I can use to do an install. This should be way faster.  However, Microsoft seem really firm that if I want to get my free upgrade, I need to pick to 'Upgrade this PC' option from the upgrade tool. This seems peculiar. Can anyone confirm (i.e. who actually knows from first hand knowledge) whether upgrading from a USB stick actually works?


I have an attribute table with a lot of lines.   I want to classify them considering their length:   SHORT (from 0 to 50) MEDIUM (from 50 to 150) LONG (from 150 to 180)   How can I do avoiding to modify manually every 391 row?    This does not work:  Reclass(!Lenght!)  Code Block: def Reclass(Lenght):     if Lenght>= 0 and Lenght<= 30         return "Short"     elif Lenght> 30 and Lenght<= 90):         return "Medium"     elif Lenght> 90 and Lenght<= 180):         return "Long"     elif Lenght> 30):         return "VeryLong"       Tried with   def lenght_cat(length,lenght_cat):       if lenght> 0 and lenght< 14:         return (length_cat*short)       elif lenght> 14 and lenght< 20:         return (length_cat*long)       else:         return None   but does not work unfortunately.


PHP download large files to server using url

I have to download large size file  >  xxx MB/GB using PHP code. How can i download this? I ve wrote this code but I can't download  biggest < 45 mb. But I need download lass then 1 GB..  <?php ##Simple download file for URL's##  if(isset($_POST['download'],$_POST['downloadurl'])) {     $downloadurl = htmlspecialchars($_POST['downloadurl']);     if(!empty($downloadurl)) {         if (@fopen($downloadurl, "r")) {             $file = basename($downloadurl);             if(copy($downloadurl, $file)) {                 echo "Fayl serverga ko'chirildi!
";                 echo '<textarea>'.$_SERVER['HTTP_HOST'].'/'.$file.'</textarea>';             } else {                 echo "We're sorry we can't download this file!";                 }         } else {             echo "This url is empty or not file!";         }        } else {         echo "Please enter url filei!";      }      exit();  }   echo '<form action="download.php" method="post">     URL FILE:
<input type="text" name="downloadurl" >
     <input type="submit" name="download" value="submit">';


How to enable default file manager(nautilus) to handle desktop icons

How can I allow nautilus to draw desktop icons in 20.04? I made org.gnome.desktop.background.draw background= true but nothing happened. Before I made it done by enabling org.gnome.nautilus.desktop.show desktop to true. But now, even the schema is not available  now. What's wrong with it?  Is I'm only able to make desktop icons with an extension only?


let a,b be real  numbers and $\varepsilon>0$. prove the above inequality. I dont know how to even start. please, I need your help.


Installing Ubuntu server after Ubuntu desktop

I have Ubuntu desktop.  How do I install LAMP to run on it or can I?


Can real numbers on $[0,1]$ be well-ordered?

I know that order type $\omega + 1$ can be well-ordered, but I am not sure if real numbers on $[0,1]$ can be well-ordered.


How can see call history in iPhone one month back, i also tried with tried party software but that is not perfect , is the any solution from apple?


I have been approached to submit an extended version of a research paper in a journal. The original paper is already published in a conference proceedings by publisher A.   What "degree of extension" do I have to provide so that publisher B will (legally?) be able to publish my work?  Also, does "extended version" in this case mean additional results, or purely textual extension?


What is the difference between buying the same stock traded on two different exchanges?

Some US ETFs (Vanguard, iShares) that I am interested in are traded on several exchanges, typically including NYS and ASX. I live and pay taxes in Australia. Does is make any difference if I buy the stock on NYS or ASX? Is one of the options better? Taxwise it seems to be the same as I am still subject to 15% witholding tax from dividends paid by the US company in both cases.


No hyperref link in stackrel with xelatex

Consider the following example document:  \documentclass{article}  \usepackage{amsmath} \usepackage{hyperref}  \begin{document}  \begin{equation}     \label{eq:eq1}     a = b\quad \wedge \quad b = c \end{equation}  \begin{equation}     \text{\eqref{eq:eq1}} \Rightarrow a = c \end{equation}  \begin{equation}     a \stackrel{\text{\eqref{eq:eq1}}}{=} c \end{equation}  From \eqref{eq:eq1} we know that $a = c$.  \end{document}   There are 3 occurences of \eqref. With pdflatex all of them create links to the first equation, but with xelatex for the second occurence (inside \stackrel) only the label text is printed while no hyperlink is created in the resulting pdf file.  How does this come about and what are possible solutions?


I want program to print in one line but keep these two lines in code. How to do that ? I tryed to use comma but it's same  print(end1 + end2 + end3 + end4 + end5 + end6)  print(end7 + end8 + end9 + end10 + end11 + end12)


What is the difference between Stack Overflow and Stack Exchange?

I've discovered that there are many Stack Exchange sites: , ,  and perhaps others.  What are the differences between these sites, and what is  mainly about?  Where can I find a list of all the Stack sites?


Why use an indefinite article in “It’s a hot and uncomfortable 33 degrees”?

I heard this sentence on the radio:     It’s a hot and uncomfortable 33 degrees.   Does the indefinite article in that sentence suggest “this certain type of day”?  Is it just a variation on “It’s a hot and uncomfortable 33-degree day”?


How to find intersection of two lines in 3D?

Given two lines joining A,B and C, D in 3D how do I figure out if they intersect, where they intersect and the ratio along AB at which the intersection happens?  I can quite hapilly work out the equation for the lines in different forms. I'm guessing that you need to change them to parametric form, equate the equations and do some algebra manipulation


How to determine approximate maximum number of requests?

I'm building a quite simple web application, and need to get some rough understanding of how much load my server can take.  Of course, this depends on a whole lot of factors, but I just need a rough idea if we're talking about ten or ten thousand users, because at the moment I have no idea.  Standard LAMP-setup, with a quite small database and a reasonably simple and fast PHP. Each non-static request requires about 20 simple SQL queries. With no load, the runtime for such a request is around 50 ms. No explicit caching.  Current hosting is on a VPS w/ 1GB RAM and unknown CPU.  Is it possible to give a rough estimate given this? What is the bottleneck? CPU, RAM? Does 50 ms / request mean 20 requests per second? How much can caching help (factor 10? 100? 1000?)? Where would caching make most sense? How do I perform load-testing?  Uuh, lots of questions, not expecting detailed replies but would greatly appreciate pointers to where I can go from here to read up on system requirements/testing/possible ways of scaling up!


How do taxes work if I don't live in any country

Say I work remotely whilst traveling around the world for a year or two. During this time I will not have a home address.  Would I have to pay income taxes during my travels? If so to which government? My "home" country where I lived before starting my travels? The country whose passport I have? The country in which I was when I got paid?  If it helps I live in the U.K and am thinking about traveling whilst working part time for a couple years. Mostly within the E.U.


Xubuntu installer shows no partitions, crashes

I'm trying to install Xubuntu 13.04 on an HP Envy h8-1414 desktop computer running Windows 8. I would like to set it up dual-boot. I downloaded the 64-bit AMD desktop ISO onto a USB device and booted from it. I am able to "try ubuntu" just fine - in fact I am writing this message from within Firefox while trying it. But when I try to install it, the installer shows me this when trying to select a partition, see screen shots here:  (I'd love to show the screen shot inline instead of with a link, but I don't have the 10 reputation points.) I used gparted to carve out some space for Ubuntu, and it shows me the partition list just fine. I also read in other threads on askubuntu that I should try using gdisk to check for errors in the GPT disk. But that seems to show that everything is fine.  I'd love to get xubuntu going on this machine. Thanks in advance for your help!  Sridhar  Edit: I forgot to mention that when I click the buttons in the partition screen on the installer, it crashes.


Story identification: A book with three sci-fi short stories

I don't remember much, but I recall reading a book with three short sci-fi stories like 20 years ago from my old school library.   I just remember that one of the stories took place on the moon or some asteroid and the main character had some kind of encounter with some kind of ghosts/clones. Maybe another of the stories had something to do with Jupiter, but I am not sure at all. The title could be something like "Title of the first story" + "And another two stories", but not sure either.   Sorry not having more details but it is being a long time and I just wanted to try here if there was any luck.


As the title says, I started incubating a 10 km egg that I actually wanted to keep for later when I had leveled up some. Is there any way to get the egg out of the incubator for now? If so, does it reset the distance progress?


How can I make the mean goth kids talk to me and be my friends?

The goth kids behind the school are jerks. But I want to be friends with everybody! And besides, they have pretty okay taste in music. When I try to talk to them, they blow me off because I 'look like a conformist' and mention an old dude by the U-Stor-It who sells 'clothes like theirs'.  I found the Hobo merchant in question, and was able to buy an Emo Haircut, Eyeliner, Du-Rag (which doesn't seem very goth, to be honest) and some gloves from him, but even when wearing all of those items, the goths won't give me the time of day. What gives?


Let $A$ be nonempty set, check whether $\subseteq$ is a partial order on $P(A)$.

did not really help because I got confused           I found it to be *Transitive since if $A\subseteq A$ and $A\subseteq B$ then $A\subseteq B$ *Antisymmetric since $A\subseteq A$ and $A\subseteq A$ so $A=A$ *Reflective since $A\subseteq A$ and $A\subseteq A$    But I am not sure if my way of solving this or the answer is whether true or not, can anyone confirm?


Are the eigenspaces of a 3x3 symmetric matrix orthogonal?

I'm finding experimentally that if I take two non-zero eigenvectors of a symettric 3x3 matrix from two distinct eigenspaces then they are orthogonal to each other.  (their dot product is zero). Is this true in general that any two distinct eigenspaces of a symettric 3x3 matrix are orthogonal to each other?  What about higher dimensions (2x2, 4x4, 5x5, ...)? If it is so, why is it so?


How to get to the formula for the sum of squares of first n numbers?

Possible Duplicate:                I know that the sum of the squares of the first n natural numbers is $\frac{n(n + 1)(2n + 1)}{6}$. I know how to prove it inductively. But how, presuming I have no idea about this formula, should I determine it? The sequence $a(n)=1^2+2^2+...+n^2$ is neither geometric nor arithmetic. The difference between the consecutive terms is 4, 9, 16 and so on, which doesn't help. Could someone please help me and explain how should I get to the well known formula assuming I didn't know it and was on some desert island?


Must PDF always eat source code indentation?

The packages listings and minted present source code inline.  My publication target is PDF. From my own documents as well as from the documentation for those two packages, copying and pasting the source code listings omits all indentation. My students are not happy to have to fix the indentation to try a sample snippet of Python.  I suspect this is down to an inherent limitation in PDF, which places characters (not whitespace) on the page. Is there any way to make a TeX source code listing published in PDF whose indentation can be copied and pasted?


In my main method, when I create an empty SLList, and I call the addLast_iterative() method, if I try to create a reference to the null instance variable 'first' (within addLast_iterative()), then try to reference a new node with the corresponding value, it doesn't change the previous reference 'first' to reference the new IntNode object? I have gotten it to work, but am curious why this doesn't change 'first' to reference to newly created IntNode object. You can skip ahead to addLast_iterative(int x) if this is unclear. I commented out the part that doesn't work, the top "if" loop does work. In other words, "first" still will reference Null, if I use the 'if' statement I commented out. Thanks  public class SLList {      private static class IntNode {         public int item;         public IntNode next;          public IntNode(int i, IntNode n) {             this.item = i;             this.next = n;         }     }      private IntNode first;     private int size;       /* initialize empty SLList */     public SLList() {         this.first = null;         this.size = 0;     }      public SLList(int x) {         this.first = new IntNode(x, null);         this.size = 1;     }      public void addFirst(int x) {         this.first = new IntNode(x, this.first);         size += 1;     }      public int getFirst() {         return this.first.item;     }      /*************************************************************/     public void addLast_iterative(int x) {          this.size += 1;          if (this.first == null) {             this.first = new IntNode(x, null);             return;         }          IntNode p = this.first;          // why does this bottom 'if' statement not work, but the top          //does?         /*if (p == null) {             p = new IntNode(x, null);             return;         }*/          while(p.next != null) {             p = p.next;         }         p.next = new IntNode(x, null);     }      /*************************************************************/       /*************************************************************/     public int size() {         return size;     }     /*************************************************************/      public static void main(String[] args) {         SLList lst = new SLList();         lst.addLast_iterative(3);     } }


Did anyone see you or Did anyone saw you?

Did anyone see you   or     Did anyone saw you   ?  I saw this in a movie, which used "Did anyone see you". I wonder why "see" is present tense not past tense. Can someone tell me?


Should SE Staff have a Special Character in Their User Name?

Referring to this question and answer:  I along with other immediately wondered why a low rep user was editing and posting as if they had the authority of a SE staff member:    Clicking on  reveals he is a SE Director, but technically any user could post such a claim in their Bio.  Danny further writes:     I'm working on getting a diamond added. As I typically don't "moderate", nor am I a developer, I've never needed the diamond before as the text in my profile usually suffices.   Which indicates he doesn't have the diamond because he doesn't generally "Moderate" and that character is generally reserved for mods.  Should SE Staff have a special character in their user name and if so which character should they have (a diamond or a different protected character)?  EDIT:  In the , one of the Mods/Staff mentions that "We don't want this to be an us vs. you site" and also "we like some of our staff to act as normal users under the radar". (both quotes paraphrased)  Why shouldn't a staff member have an account specifically marked as staff for posting official responses and a fly-under-the-radar account for interacting with the site?


Why do I lose control over my comments after the question gets migrated?

My question got migrated from  to . When it was at Skeptics I had commented:       How is this better? I am changing it.      After the migration, I commented:     Ah! Migrated! Good.   But Even after logging in and associating the accounts on both the site, I can't delete my original comment.    The new one(has a cross mark):         The old one has gone blank:   What to do? Is it a bug? Should I just comment for deletion? Is there a need to change this?


Setting up server, so no gui. Trying to copy output to paste in config file via terminal

Cannot find an answer that is actually for non gui Linux to copy output of command line and paste into a config file.  The output of curl -s https://api.wordpress.org/secret-key/1.1/salt/ to setup wordpress on a server is what I'm trying to do.  Sorry if repeated, but can't find a working answer. Thanks.


Apt-get update comes up with "Sources list couldn't be read

I tried to update the packages through the terminal and I get this error every time, david@david-Satellite-C55-B:~$ apt-get update E: Type '  Now the Software center doesn't work and I have a warning sign on the task bar next to the wifi symbol. Please help!


What is ?  Please be pedagogical.  Edit: I have updated my background under my profile.