I used this command for downloading software center    sudo apt-get install software-center   this error pops up   python-lxml but it is not going to be installed   Tried     sudo apt-get purge python   sudo apt-get install python2.7   and now I got more errors   software-center :Depends: gvfs-backends                  Depends: python-lxml but it is not going to be installed                  Recommends: update-notifier but it is not going to be installed
Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (&gt;= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?
In most sentences that use the word lunch, I found this word does rarely take the definite article the. For example:     I have lunch in three hours.      Shall we go out for lunch?      Let's have some lunch.      I'll take my lunch to school.   But now I wonder if this word really cannot take the definite article, and if it can, in what cases do I use the definite article and in what cases not?  And also, if the word lunch cannot take the definite article, why cannot it have it? NIST randomness test p values I have a binary sequence of length $2^{20}$. I am using the NIST statistical test, assess.   What should be taken for ./assess and  How many bitstreams? in this test? In the final Analysis report, what p-values should be there to pass this test? register_globals error in php I was stuck up with the error   directive 'register_globals' is no longer available in PHP in unknown on line 0   when tried to check the php version using "php -v" after enabling register_globals in php.ini file. I am not getting any php version info by doing so. Instead it throws the above mentioned error.After turning off this option, php info works quite well. It is very essential for me to have register_globals to be turned on.How can I have this corrected.  my php.ini is as follows:   ; Default Value: None ; Development Value: "GP" ; Production Value: "GP" ; http://php.net/request-order request_order = "GP"  ; Whether or not to register the EGPCS variables as global variables.  You may ; want to turn this off if you don't want to clutter your scripts' global scope ; with user data. ; You should do your best to write your scripts so that they do not require ; register_globals to be on;  Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. ;  register_globals = On  ; Determines whether the deprecated long $HTTP_*_VARS type predefined variables ; are registered by PHP or not. As they are deprecated, we obviously don't ; recommend you use them. They are on by default for compatibility reasons but ; they are not recommended on production servers. ; Default Value: On ; Development Value: Off ; Production Value: Off ;  register_long_arrays = Off  ; This directive determines whether PHP registers $argv &amp; $argc each time it ; runs. $argv contains an array of all the arguments passed to PHP when a script ; is invoked. $argc contains an integer representing the number of arguments ; that were passed when the script was invoked. These arrays are extremely ; useful when running scripts from the command line. When this directive is ; enabled, registering these variables consumes CPU cycles and memory each time ; a script is executed. For performance reasons, this feature should be disabled ; on production servers. ; Note: This directive is hardcoded to On for the CLI SAPI ; Default Value: On ; Development Value: Off ; Production Value: Off ; register_argc_argv = Off  ; When enabled, the SERVER and ENV variables are created when they're first ; used (Just In Time) instead of when the script starts. If these variables ; are not used within a script, having this directive on will result in a ; performance gain. The PHP directives register_globals, register_long_arrays, ; and register_argc_argv must be disabled for this directive to have any affect. ; auto_globals_jit = On Assume I have a dataset for a supervised statistical classification task, e.g., via a Bayes' classifier. This dataset consists of 20 features and I want to boil it down to 2 features via dimensionality reduction techniques such as Principal Component Analysis (PCA) and/or Linear Discriminant Analysis (LDA).  Both techniques are projecting the data onto a smaller feature subspace: with PCA, I would find the directions (components) that maximize the variance in the dataset (without considering the class labels), and with LDA I would have the components that maximize the between-class separation.  Now, I am wondering if, how, and why these techniques can be combined and if it makes sense.  For example:   transforming the dataset via PCA and projecting it onto a new 2D subspace transforming (the already PCA-transformed) dataset via LDA for max. in-class separation   or    skipping the PCA step and using the top 2 components from a LDA.   or any other combination that makes sense. So I'm trying to install Visual Studio 2015 Community on my Windows Server 2012 R2 box which will end up being a Jenkins build server. Attempting to do so gives an error saying that I need to install KB 2919355.    So I attempt to download the right KB from the . The two files that I would assume to work are either Windows8.1-KB2919355-x64.msu and Windows8.1-KB2919355-x86.msu (just to try) and neither update work, saying that the update is not applicable.    I've not been able to get this working and I haven't been able to find a proper way to fix this. Can anyone offer any suggestions or solutions? Thanks! I read about Drupal behaviors today, and I tried writing the following code.  (function ($) {    Drupal.behaviors.mymodule = {     attach: function (context, settings) {       $('#mymodule_id', context).change(function () {         alert('Handler for .change() called.');       });     }   };  }(jQuery));    Is Drupal.behaviors.mymodule the namespace? What are the context and settings parameters passed to the Drupal behavior? Is this the equivalent of document.ready()?   Can I attach any number of functions?  Can I define JavaScript functions which will be called somewhere? How do I diagnose not being able to reach a specific website as an end user? get the Eyes of the Dark feature (XGtE, p. 51):     When you reach 3rd level in this class you learn the darkness spell [...] If you cast it with sorcery points, you can see through the darkness created by the spell.   Does this mean that if a Shadow Sorcerer casts darkness using sorcery points and then moves into a different area of magical darkness (not the one s/he created), the Sorcerer would not be able to see?  Or does the ability mean that the Sorcerer would possess the ability to see through the magical darkness created by the darkness spell in general (provided they were maintaining their own casting of the spell)? How to set up Dolphin as default file manager? pgfpages and section I'm making a Beamer presentation. I need to show some notes on a second screen, so I'm using pgfpages.  Whereas, when I put a section, it appears 2 times :/ Here, it's a minimal code with the problem. Have you any idea ?  \documentclass{beamer} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[francais]{babel}  \usepackage{pgfpages} \setbeameroption{show notes on second screen=right}    \begin{document} \begin{frame} \tableofcontents \end{frame}  \begin{frame} \section{test} toto \end{frame}  \end{document}   Thanks ! .NET offers a generic list container whose performance is almost identical (see Performance of Arrays vs. Lists question). However they are quite different in initialization.   Arrays are very easy to initialize with a default value, and by definition they already have certain size:  string[] Ar = new string[10];   Which allows one to safely assign random items, say:  Ar[5]="hello";   with list things are more tricky. I can see two ways of doing the same initialization, neither of which is what you would call elegant:  List&lt;string&gt; L = new List&lt;string&gt;(10); for (int i=0;i&lt;10;i++) L.Add(null);   or  string[] Ar = new string[10]; List&lt;string&gt; L = new List&lt;string&gt;(Ar);   What would be a cleaner way?  EDIT: The answers so far refer to capacity, which is something else than pre-populating a list. For example, on a list just created with a capacity of 10, one cannot do L[2]="somevalue"  EDIT 2: People wonder why I want to use lists this way, as it is not the way they are intended to be used. I can see two reasons:   One could quite convincingly argue that lists are the "next generation" arrays, adding flexibility with almost no penalty. Therefore one should use them by default. I'm pointing out they might not be as easy to initialize. What I'm currently writing is a base class offering default functionality as part of a bigger framework. In the default functionality I offer, the size of the List is known in advanced and therefore I could have used an array. However, I want to offer any base class the chance to dynamically extend it and therefore I opt for a list. How to select faces by area I found this documentation:   Under "Face Selection Mode" it says:     Face Selection Mode:      ...        Area   Selects all faces that have a similar area as those already selected.   But I can't figure out where in blender this option is hiding? Calculate the last digit of $3^{347}$ On finding polynomials that approximate a function and its derivative (extensions of Stone-Weierstrass?) I am trying to pull logs and doing few others things directly. written a small line BASH but not working. I am sure thats with IF Condition.    sed -rne '/21:25:07/,/21:50:07/ p'  server.log.2015-04-21 &gt; /tmp/filename.log ; du -sh  /tmp/filename.log ;  if [`du -sh  /tmp/filename.log` -gt 0] then gzip /tmp/filename.log ; Java: Cannot find symbol? Unbiased estimator for geometric distribution parameter p Calculate limiting distribution of $\frac{\sum_{i=1}^n X_i}{\sum_{i=1}^n Y_i}$ Joel Spolsky asked what rhymes with orange. The official answer is, "Nothing," although a creative poet can get close by using half words, just the -nge part or resorting to place names and foreign words.  Does orange somehow violate the basic phonotactics of English? (And hence we wouldn't expect other English words to rhyme with it?) How to connect to Office Online Server in Office365 I just wondering if we can use existing Office Online Server in Office365 for SP2013 on premise. If yes, how this can be achieve?   In SP2013 we normally run Get-SPWOPIBinding to find out the server binding and to connect to Office web App we normally run  New-SPWOPIBinding -ServerName. Is this the same command if I want to connect to the existing new Office Online Server in Office365?  Thanks