I have a spreadsheet with values in a matrix with several rows. For each row I have a N numbers. I want to calculate the average of the M higher values of the row. With M<N. Is there a common function to do it?  If there is no such function, I suppose I can add it using the python plugins for gnumeric or the basic plugin for libreoffice.

How do I automatically average the lowest 3 of the last 6 numbers in a row of 22 that adds one number per week?  Obviously I need at least 7 numbers to begin using this formula.  Also, some cells in some rows may be blank.


Every so often I like to go through my questions and make sure I haven't forgotten to accept an answer on each of them. However, when you have more than a few pages worth of questions it can be kind of cumbersome to page through them all and find the ones you still have outstanding (without an accepted answer).  Is there a way to sort or filter the questions on your profile page by whether or not they have an accepted answer? If not, I'd like to submit that as a feature request.

There is this new acceptance rate feature that appears beneath my signature card when I ask a question.  How do I display all my questions with unaccepted answers? How can I easily see the list of questions that have not been checked as accepted?


I have a project with a floor built from with small cubes (100x100 of them). If I exceed that size, the performance of my game suffers. How can I efficiently draw a larger number of identical models?  Here's how I'm currently drawing the ground:      //Function to draw my ground ( 100 X 100 X 1)     public void DrawGround(GameTime gameTime)     {         // Copy any parent transforms.         Matrix[] transforms = new Matrix[this.model.Bones.Count];         this.model.CopyAbsoluteBoneTransformsTo(transforms);          //loop 1 cube high         for (int a = 0; a < 1; a++)         {             //loop 100 along cube             for (int b = 0; b < 100; b++)             {                 //loop 100 cubic wide                 for (int c = 0; c < 100; c++)                 {                     // Draw the model. A model can have multiple meshes, so loop.                     foreach (ModelMesh mesh in this.model.Meshes)                     {                         // This is where the mesh orientation is set, as well                          // as our camera and projection.                         foreach (BasicEffect effect in mesh.Effects)                         {                             effect.EnableDefaultLighting();                             effect.World = transforms[mesh.ParentBone.Index] * Matrix.CreateTranslation(this.position);                             effect.View = this.view;                             effect.Projection = this.projection;                           }                          // Draw the mesh, using the effects set above.                         mesh.Draw();                     }                 }             }         }     }   I think it is better to use the a vertex buffer, but I have not found a tutorial for that I want to do. Can you explain how I can do this?

I found Minecraft's marvelous large worlds extremely slow to navigate, even with a quad core and meaty graphics card.  I assume Minecraft's slowness comes from:   Java, as spatial partitioning and memory management are faster in native C++. Weak world partitioning.   I could be wrong on both assumptions. However, this got me thinking about the best way to manage large voxel worlds. As it is a true 3D world, where a block can exist in any part of the world, it is basically a big 3D array [x][y][z], where each block in the world has a type (i.e BlockType.Empty = 0, BlockType.Dirt = 1, etc.)  I assume that to make this sort of world perform well, you would need to:   Use a tree of some variety (//) to split all the cubes out; it seems like an oct/kd would be the better option, as you can just partition on a per cube level not a per triangle level. Use some algorithm to work out which blocks can currently be seen, as blocks closer to the user could obfuscate the blocks behind, making it pointless to render them. Keep the block object themselves lightweight, so it is quick to add and remove them from the trees.   I guess there is no right answer to this, but I would be interested to see peoples' opinions on the subject.  How would you improve performance in a large voxel-based world?


I've been having a lot of trouble with this problem.     Let $n \ge 0$ be an integer and let $S_0$ be the collection of ordered pairs of disjoint subsets of $\{1, . . . , n\} = [n]$; that is,   $$ S_0 = \{(A, B) : A \subseteq [n], B \subseteq [n], A \cap B = \emptyset\}. $$      Show using a bijection that $|S_0| = 3^n$.

Why is the cardinality of set S is 3^n, where S is the collection of all ordered pairs of disjoint subset of {1,2,3,...,n} where n is non negative. if n = 2, then subset A and B are disjoint and can only contain elements of 1,2, or the empty set, is this correct? I can't get 9 ordered pair. Can someone explain how do I get 9 ordered pair?


I just would like to have $$\frac{643,2-759,9}{340,09} = -0,34$$  in italic. Is there an easy way? It doesn't work with \textit{} here... I am looking forward for some help. Thank you!

I often find myself adding a lot of \textsl{} around inside \emph{} or \textit{} blocks because I find italicized digits to look too "showoffy" and "baroque" and to hinder legibility (I'm using $$ when the number has a mathematical sense, but this situation occurs in less technical texts like CVs, and such.).  Could someone help me write a renewcommand to automate this, or better, a single low level command that makes \emph, \itshape, \textit and friends choose slanted over italic for numbers? I'm not too familiar with the low level latex font selection system nor with a way to detect digits from regular letters.  Edit: MWE of what I need and what I want to avoid  \documentclass{article} \begin{document} He thought: '\emph{Why 1234567890 apples?}' then he realized '\emph{ah yes, he has \textsl{1234567890} childs}' \end{document}   gives:   I find the italicized version (first one) of 2,3,4 and 7 to look especially bad.


I'm using an HP Gaming Pavilion-15-dk0045tx laptop and I recently installed the 20.04 release, after installing the new release my home screen looks like this. If I open any application the screen looks fine but the home screen looks like this. Can someone help me solve this issue?

I have upgraded from Ubuntu 19.10 to 20.04, and now I have a problem with my graphics rendering (strange squares on background and font problems). I use the i915 driver. Graphics card: Skylake GT2 HD Graphics 520. I tried to reinstall GNOME shell and Xorg server. Nothing helped. Also Chrome browser breaks on most of pages.


Euler gave the most concise (I think so) connection between $e,\,i$ and $\pi$ (called Euler's identity), which states: $$e^{\pi i}+1=0$$ I would like to see some proofs of this. You can mention (I mean, give link to the webpage or article) as many as proof as you can. What I want to ask is, give alternatives to Euler's proof (which used Taylor series).

Just as the title asks: I'm looking for a proof of Euler's identity without first proving the general case of $e^{ix} = \cos x + i\sin x$.


Claim: $\sqrt{2} + \sqrt{6} < \sqrt{15}$  a) State the negation of the claim.  b) Use proof by contradiction to prove the claim.  Can anyone explain to me how I would do this question?  A  that these numbers are relatively close to each other; $\sqrt{15}-\sqrt2-\sqrt6 \approx 0.01$.

Prove by contradiction (not using a calculator) that $\sqrt6 + \sqrt2 < \sqrt{15}$.   How do you approach such a problem?  I need to admit that I'm completely new to proof writing and I have completely no experience in answering that kind of questions. I tried to square it as I read online but I'm stuck with having $\sqrt3$ and not knowing how to get rid of it to have the answer as clear as the sun. squaring them yielded: $(\sqrt2 + \sqrt6)^2 =  8 + 4\sqrt3 < 15$ which indeed holds but the problem is that I am not allowed to use calculator to check the little difference.  My final answer was $4\sqrt3 < 7$.


I had gotten the message on my software updater that there was an update from 16.04 to 18.04 and it appeared valid.  I had been putting it off as I usually wait before moving to the latest LTS release.  Long story short I finally chose to update and now I'm stuck.  It appears to be booting up but then goes to a blank screen and nothing seems to work.  I try to get to a console by pressing Cntr + Alt + f1 and I get no prompt to login.  went through all of the console sessions not one of them work.  When I press the power button it appears to be shutting down I see the the Ubuntu splash screen and the laptop powers off.  When I boot up I see the same splash screen and then it just goes to a blank screen??  Anyone have any thoughts??  Dam why would they allow an upgrade to process if the processor type is a miss-match?  Any help or direction on how to recover back to 16.04 would be helpful.  Thanks in advance...

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Let $E_n$ be $$E_n:=\{f\in C[0,1]\mid \text{exist } x_f\in[0,1] \text{ such that } |f(x)-f(x_f)|\leq n|x-x_f|,\, \forall x\in[0,1]\}.$$  How show that $E_n$ is nowhere dense, that is, $\mathrm{int}\  \overline{E_n} = \emptyset$?  Can someone help me?

Let $E_n$ be the set of all $f \in C\big([0,1]\big)$ for which there exists $x_0 \in [0,1]$ (depending on $f$) such that \begin{align*} \lvert\, f(x)-f(x_0)\rvert \leq n\lvert x-x_0\rvert, \end{align*} for all $x \in [0,1]$. Why is $E_n$ nowhere dense in $C\big([0,1]\big)$.  I have been able to show that $E_n$ is closed in $C\big([0,1]\big)$, but haven't been able to show why the interior is empty. Any advice?...


When I am SSH'ed into any one of my Linux devices, the title bar on Terminator displays user@hostname, where hostname is the computer I am SSHing from, rather than the computer I am SSH'ed into (i.e. the title bar mirrors $PS1 from the local device rather than the remote device). This makes it very confusing if I am SSH'ed into all 4 computers at the same time and can't see their prompts (as all their title bars are identical!).  How can I have Terminator display the correct hostname?

I'd like to set the terminal title to user@host so I can easily tell which machine I'm connected to from the window title. Is there a way to do this from SSH or from GNOME Terminal?


If $U\subset \mathbb{R^n}$ is open then $\dim U=n?$ I know this is true from open submanifolds but not sure if it works for any open set.

Does an open subset of $R^n$ exist that has dimension less than $n$ in the standard topology? All the less than $n$ dimensional subsets I can think of are not open.


I have just installed the final 17.04 Release.  Having problems with the Unity Launcher (not Dash, don't use that), compared to what has always worked in 16.04 & 14.04.  [To create a shortcut on Launcher I always run the program first from the shell, then when it's running I right-click its icon in Launcher and Lock to Launcher: if that is not the right way to do things let me know.]  Installed PyCharm (2017.1.1) via tar image from JetBrains.  When running I Lock to Launcher its icon as usual.  But when I exit PyCharm the icon is removed from Launcher (no other app behaves like this)?  EDIT in response to @Videonauth's comment:  From Unity Dash "pycharm" does not find any matching application.  It is "installed" by untaring into /usr/share and I did a ln -s ../share/pycharm/pycharm-community-2017.1.1/bin/pycharm.sh /usr/bin/pycharm, as I did in 16.04.  However, I see in my 16.04 that Dash does find "pycharm", and shows its icon (then again, it's already locked to Launcher, if that makes a difference).  OTOH, under 16.04 I initially did some kind of "Ubuntu install" of PyCharm.  I had problems (can't recall what, may well have been to do with unable to then get updates), and was advised to remove that and do by manual untar method; but it might have left something around to be found from dash, I don't know.  So: What is the relevance of whether it is found in Dash/what do I have to do?  And the fact that you ask that and talk about locking it from there, are you saying that my method of running an app from terminal and locking it while running is not a good idea?  OK, I have just found .  I must look at that....

I have installed PyCharm on my brand new Ubuntu 13.10 laptop.  To launch PyCharm, I find I must navigate to the directory that pycharm lives in, and execute it from there as such:  cd home/matt/software/pycharm/bin sh pycharm.sh   I hope this isn't asking too much, but I would like to be able to click on an icon in the Launcher to launch this application.  I tried right-clicking on the PyCharm icon in the Launcher when the app is running and selecting "Lock To Launcher" but this doesn't work (after pinning, when I try to run the software this way, the icon throbs in a very awkward manner a few times and does nothing).  A small app called Alacart was rumoured to be useful, but I have no idea how it works, and it appears useless.  I'm not sure why the authors teased us with a "Help" button if there are no help files written for us to view.  Further attempt has included reading page after page of technical documentation on how to write scripts that will somehow help me customize my experience.  How can I set up PyCharm to launch from the Launcher???


I am traveling on a BA flight from Amsterdam - Mumbai via London (LHR). I have a visitor visa for the UK starting one month after my current travel.    Will I require a Direct Airside Transit Visa (DATV)?    Also, would my visitor visa, which is yet to start, be cancelled?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


If a gradient points towards a max or a min what stops gradient descent from maximizing error instead of minimizing it?  Is it the nature of the update step that makes this process one way?

In  it says     To make gradient descent work correctly, we need to choose the learning rate η to be small enough that Equation (9) is a good approximation. If we don't, we might end up with $\Delta C>0$, which obviously would not be good! At the same time, we don't want $\eta$ to be too small, since that will make the changes $\Delta v$ tiny, and thus the gradient descent algorithm will work very slowly. In practical implementations, $\eta$ is often varied so that Equation (9) remains a good approximation, but the algorithm isn't too slow. We'll see later how this works.   But just a few paragraphs before we established that $\Delta C\approx−\eta\nabla C⋅\nabla C=−\eta\|\nabla C\|^2$ is obviously always negative (for positive $\eta$). So how can $\Delta C$ be positive if we don't choose a small enough learning rate? What is meant there?


Okay, so I on my site people play with coins now the feature where you go to use the coins can be "Cheated" by using console in javascript using a string that is NaN so I wan't to know how I can filter if the string inputted in the bets are NaN and if they are not a number I wan't to pop up an error message and if they are numbers I want it to continue with the rest of the script.

I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function?


i am trying to show an image in the middle of a section as shown in the latex code posted below. the problem now is, the image always is displayed at the top of the section "before the section starts" and i want it in the middle  please let me know how to do it correctly     the question the moderator suggested, does not contain latex code that         might solve my issue plus, the explanation is really prolongated while, I         think, the solution of question could be solved with few words or few         lines of latex code   please re-activate the question   latex:   \subsection{OSM Vs Google Maps} OpenStreetMap OSM which started in Univesity College London UCL ..... ...... ..... ...... \begin{figure} \centering \textbf{Your title}\par\medskip \includegraphics[width=100mm,scale=0.7]{osm_vs_wikipedia_1} \caption{Your caption} \end{figure}  the rest of the text goes here.. ...

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


I'm performing text classification experiments with Scikit Learn, on a small dataset (100 samples of labelled texts by patients and controls). I tested two supervised machine learning methods: SVM (kernel=RBF) and L2-regularized logistic regression.  The feature selection methods is always the same: SelectKbest (k=200) with mutual information. I experimented with two sets of features: one including character n-grams and one without them. Feature extraction, selection an dclassification are done in a pipeline, to cross validate all steps.  My results showed that:   the SVM classifier performs better than the logistic regression on the feature set with the character n-grams. the SVM classifier performs worser than the logistic regression on the feature set without the character n-grams.   I'm a beginner in supervised machine learning and I'm struggling with all the different possibilities. Now, I can't find an explanation for this results, I can't wrap my head around it. Any suggestions?

Can someone please give me some intuition as to when to choose either SVM or LR? I want to understand the intuition behind what is the difference between the optimization criteria of learning the hyperplane of the two, where the respective aims are as follows:     SVM: Try to maximize the margin between the closest support vectors LR: Maximize the posterior class probability    Let's consider the linear feature space for both SVM and LR.  Some differences I know of already:   SVM is deterministic (but we can use Platts model for probability score) while LR is probabilistic. For the kernel space, SVM is faster (stores just support vectors)


It keeps appearing this red signal in the top right of my screen with this error. If I run sudo apt update all I got is:  Hit:1 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic InRelease Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease sh: 1: /usr/lib/cnf-update-db: not found            Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code   Thanks.

The terminal gave me these errors when updating the software with sudo apt update.    Hit:1 http://it.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                Hit:3 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                                      Hit:5 http://archive.canonical.com/ubuntu bionic InRelease                 Traceback (most recent call last):                       File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator ModuleNotFoundError: No module named 'CommandNotFound' Reading packages list... Done E: Problem executing scripts APT::Update::Post-Invoke-Success     'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db;       then /usr/lib/cnf-update-db > /dev/null; fi'   E: Sub-process returned an error code     These are the results of sudo apt install --reinstall command-not-found  Reading package lists... Done  Building dependency tree         Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/5.188 B of archives After this operation, 0 B of additional disk space will be used. (Reading the database ... 225797 files and directories currently installed.) Preparations for extracting ... / command-not-found_18.04.4_all.deb ... Extracting command-not-found (18.04.4) on (18.04.4) ... Configuring command-not-found (18.04.4) ... libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing...   When I tried the command sudo apt update again after reinstalling command-not-found, the results were the same as described in the first text block.


Here is what I currently use to break out of a double loop and proceed with DoStuff():  foreach (var enemyUnit in nearbyEnemyUnits) {     var skip = false;     foreach (var ownUnit in ownUnits) {         if (ownUnit.EngagedTargetTag == enemyUnit.tag) {             skip = true;             break;         }     }      if (skip) continue;      DoStuff(enemyUnit); }   The whole "defining a temporary boolean variable to check for a skip" seems very hacky to me. In a language like Go I can use labels to break out of loops, or even make the inner loop part of a clojure. What is the best way to do this in C#?  I've been doing it like the above example for the longest time and feel like there must be a better way - almost ashamed to ask at this point.  Thank you

If I have a for loop which is nested within another, how can I efficiently come out of both loops (inner and outer) in the quickest possible way?  I don't want to have to use a boolean and then have to say go to another method, but rather just to execute the first line of code after the outer loop.  What is a quick and nice way of going about this?  I was thinking that exceptions aren't cheap/should only be thrown in a truly exceptional condition etc. Hence I don't think this solution would be good from a performance perspective.  I don't feel it it is right to take advantage of the newer features in .NET (anon methods) to do something which is pretty fundamental.


I am not sure because there is more than one dollar, but when referring to the one million dollars only, would you use "it"?

I read the following sentence on YouTube and initially thought it was grammatically incorrect:     Here are 10 minutes of the movie Black Hawk Down!   I thought "are" should have been "is" but then I realized minutes is plural so the plural form, are, is used correctly. I also thought how most people would naturally say "Here is ten dollars in change" but is the use of the singular form, is, correct since dollars is plural?   Am I misunderstanding a rule?


I have downloaded an ISO file recently.  How do I burn it to a CD or DVD or mount it?

I'm running into trouble trying to mount a large iso:  dev@dev-OptiPlex-745:~$ sudo mount -o loop /home/dev/Hämtningar/matlab2011a_64.iso /cdrom mount: warning: /cdrom seems to be mounted read-only. dev@dev-OptiPlex-745:~$    Can you tell me how I should do it?


I am not entirely sure how to even describe the issue I am having. I am making a pretty simple animation with two people and a cop car. Whenever I move one object a large white circle appears around it and anything inside the circle is affected by where and what I do with the object I am trying to move. I have looked all over but I cant seem to find a solution if anyone knows what I am talking about the help would be greatly appreciated.

I'm facing this frustrating "feature" that I can't seem to remedy; when I duplicate an object (and now, even when I create two completely new objects), their transformations/scaling is synchronized. This is extremely annoying when trying to use any sort of transformation keyboard shortcut.  It should be noted by going to the properties menu (N) and manually setting the properties works just fine.  For instance, here is just the camera selected (trust me, I made sure):   And when I try to transform by clicking+dragging on the X axis OR by hitting G->X, this happens:   They are not grouped (verified by going to the Groups list up in the Scene panel) and they do not have parents (verified by going to Object->Relations).  I have tried the unlink command as well, to no avail.  I have seriously run out of options; what did I change to have my G->X shortcuts transform multiple objects? It seems completely at random, too; certain objects seemed to be "linked" to other random objects, and this "linking" is guaranteed when duplicating even when I do a non-linking duplicate (Shift+D).  What gives?


I remember listening to an audio book years ago about a group of people who did not know each other who were abducted by aliens. That's rather generic, but the hook was that each one of the people had been cloned, and either the original or the clone had been put back into their normal lives with no memory of having been abducted. There was a helmet/VR goggles or something to that effect in the chamber with the people on the ship, which would allow them to see through the eyes of their clones back on Earth. Additionally, one of the humans had 2 clones created; one was placed on Earth and the other was there in the ship. When either of those clones wore the helmet, she saw out of both of the other clones' (the one on Earth and the one on the ship) eyes at the same time, which was extremely disorienting. That's all I really remember about the plot. I think there were a few worldbuilding pieces that have stuck in my brain (such as tigers that had been genetically engineered to be the size and temperament of house cats), but that's about it. Does anyone recognize my description? Any clue what the book is?

I am looking for a book series (almost certainly a trilogy) that starts with some humans in a space station being abducted by a small funny-looking alien and taken to a prison planet. They find out that the way space travel works is by creating copies of the passengers, and the originals remained on the space station. This is actually good for the aliens since they believe every sentient being will resurrect at the Singularity and will be forced to fight a battle, so the more the merrier.  The one other detail I remember is that the world economy has a rampant inflation, so people take any cash they have at the end of the day and buy 20th-century memorabilia that doesn't devalue as much.


It is given that a certain matrix A has eigenvalue 1 repeated thrice, eigenvalue 2 repeated twice, and eigenvalue 3 with no repeats. What are the possible geometric multiplicity for these eigenvalues. Write down the possible Jordan forms of A.  My try : The characteristic equation is (l-1)^3*(l-2)^2*(l-3) . We have to find out the ordinary eigen vectors & corrosponding generalised eigen vectors to check theor geometric multiplicity . Further we will be able to write the possible jordan forms by placing 1's in the super diagonal .   But how to find the A matrix ?


Is 'off of' ever a valid substitution for 'from'? For example,      'It's that guy off of Friends.'   Would it ever be acceptable to use this construction in formal written English?  I live in the West Country (UK) and I hear this construction frequently.

How can I explain to people that the phrase off of is grammatically incorrect?  I‘ve heard this phrase used a lot, especially by Americans (though they aren't the only ones).    In my understanding, off of should usually be replaced by off, as in,     I took the book off the shelf   as opposed to     I took the book off of the shelf   Am I wrong?  Or is there perhaps some simple way I can explain this to most people?


I am trying to pull a random string from an ArrayList. I make sure to populate it before pulling from it yet it still acts as if it empty. I even printed the list out after populating it and it is indeed populated, leaving me to believe the problem must be elsewhere in my code. Any ideas?  Oh, and yes, my code is hilarious. I'm creating a console game for fun about a gross dude who works in my office. (Might as well make practice fun, right?) Enjoy. :P  here is the object class  import java.util.ArrayList; import java.util.Random;  public class Meg {      private String name = "Meg";     private int weight = 300;     private int annoyanceLevel = 1000;      static ArrayList<String> randomBoringTopics = new ArrayList<String>();      public static void populateRandomBoringTopics(){     randomBoringTopics.add("women's underwear");     randomBoringTopics.add("men with backhair");     randomBoringTopics.add("tucked in shirts");     randomBoringTopics.add("shaving at one's desk");     randomBoringTopics.add("pot bellies");     }      public void Fart(){         System.out.println("Meg let's out a huge fart with zero consideration for who hears it");     }      public static void startBoringConversation(){         Random randomGenerator = null;         int index = randomGenerator.nextInt(randomBoringTopics.size());         String randomBoringTopic = randomBoringTopics.get(index);         System.out.println("Meg begins to talk to you about his thoughts regarding " + randomBoringTopic);       }      public void creep(){     System.out.println("Meg suddenly appears behind you, breathing heavily and rubbing his stomach while fingering his belly button");       }      public void interject(){     System.out.print("Meg hears you talking and butts into your conversation, making it instantly boring");      }      public void disappear(){     System.out.print("Meg leaves his desk and is gone for an extended period of time, relieving those in his row but "     + "tormenting the rest of the office");     }      public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     }      public int getWeight() {         return weight;     }      public void setWeight(int weight) {         this.weight = weight;     }      public int getAnnoyanceLevel() {         return annoyanceLevel;     }      public void setAnnoyanceLevel(int annoyanceLevel) {         this.annoyanceLevel = annoyanceLevel;     }  }   And here is my main...  public class Main {      public static void main(String args[]){          Meg.populateRandomBoringTopics();         Meg.startBoringConversation();     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am using Chrome in Windows 10 and disabled dark mode with appending --disable-features=DarkMode to the shortcut.  This workaround is working (as it is described here: ).  But it is still running in a dark mode when I'm opening link http or https, for example, from email: when I'm clicking a link Chrome is launching (as it is default browser) in a dark mode. It happens when Chrome launching in a new window. In a case when Chrome was opened: a new tab from external link runs in a light mode.  How to force light mode when Chrome opening links from 3rd parties applications?

I want to run Chrome with a given set of flags, always  I created a shortcut and added the flag to it in the following way, so my target of the shortcut says:  C:\<application-path>\chrome.exe --user-data-dir=D:\Chrome   But when I double click an HTML file, or if any other application triggers Chrome, it looses the flag value. The result - A new chrome window opens with Default profile directory.  I want to make the flag permanent, so that its active irrespective of however Chrome executes.  I tried changing the following registry key:  HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command   It was this earlier:  "C:\<application-path>\chrome.exe" -- "%1"    I changed to following attempts which did not work:  1. "C:\<application-path>\chrome.exe" -- "%1" --user-data-dir=D:\Chrome 2. "C:\<application-path>\chrome.exe" -- "%1" -- "user-data-dir=D:\Chrome" 3. "C:\<application-path>\chrome.exe" -- "%1 user-data-dir=D:\Chrome"   Conclusively, when I try to open a link from any application, it doesn't open in my current Chrome as a new tab, rather opens a new Chrome window with no plugins and extensions since its from other directory.  Why I have changed my default directory? - because the OS drive was getting low on memory due to heave Chrome caches and apps.


I recently was pulled back into Java programming for academic purposes and I ran into something interesting during my first project.  I had to design a GUI for a storefront with buttons that did various tasks, and I noticed something weird was happening with my variables. Any CLASS VARIABLES that my buttons changed through their Actions did not need to be declared static, while any CLASS VARIABLES my main method touched had to be declared static.  Why is this? My Main Method and ActionListener Methods are all on the same level of execution. (they're all in the same class, none of them are embedded within each other)  I hope this question is not too obvious/dumb, I am trying to relearn as much about Java as possible.

To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?


Can you suggest an easy way to draw these atoms?      \documentclass{standalone} \usepackage{tikz,graphicx} \usetikzlibrary{shadings} \usetikzlibrary{decorations.markings} \definecolor{myyellow}{RGB}{254,241,24} \definecolor{myorange}{RGB}{234,125,1} \begin{document}  \begin{tikzpicture} \def\proton(#1,#2){%     \fill[shade=ball,ball color=myyellow] (#1,#2) circle (10pt);     \node at (#1,#2) {\texttt{+}}; } \def\neutron(#1,#2){%     \fill[shade=ball,ball color=myorange] (#1,#2) circle (10pt); } \def\electron{%     \fill[shade=ball,ball color=gray!30] (0,0) circle (5pt);     \node at (0,0) {\texttt{-}}; } \def\sorbit(#1,#2){%   \draw[   color=violet,   rotate=#1,   postaction=decorate,   decoration={markings,   mark=at position #2 with {\electron}, }]   (0,0) ellipse (1.5 and 3.5); } \def\porbit(#1,#2){%   \draw[   color=violet,   rotate=#1,   postaction=decorate,   decoration={markings,   mark=at position #2 with {\electron}, }]   (0,0) ellipse (4 and 6); } %%Nucleons \neutron(0.8,0.2) \proton(0.5,-0.5) \neutron(-0.25,-0.5) \neutron(0.55,0.8) \proton(-0.5,0.2) \proton(-0.1,0.8) \proton(0.5,0) \proton(0.12,0.6) \proton(0.12,-0.6) \neutron(-0.25,0) \neutron(-0.5,0.6) \neutron(0.5,-0.3) %%orbits \porbit(-20,.15) \porbit(15,.45) \sorbit(40,.9) \porbit(65,.6) \sorbit(100,.3) \porbit(125,.75)  \end{tikzpicture}  \end{document}

This question led to a new package:      I'm making slides with beamer for my chemistry students. I would like to draw a figure in LaTeX to illustrate the electron shells in the Bohr model but I cant find any chemistry package that does that? Is the only way to do it to use TikZ or something and do it manually? Somebody must have had this need before?


Gonna make it brief. Every time I try to render a specificscene, the software crashes (shuts down with no pop up or anything, it shuts down one second after I click render). As for others blend files, the rendering goes smooth and fine.  GPU I'm using: GeForce 920M. Download link:

Essentially, my problem is that i am trying to render a scene, however, blender crashes on me early during the render. I only have about 14 total objects in the scene. (It's not that complex) I tried to render a different blender file which was bigger than the one that i am having problems with, and the scene renders just fine. There is no difference in the render presets for both of these files. However, i still cannot render the other scene. It gets to preparing scene data, but then it crashes.  Thank you.


Suppose $\mu$ is a probability measure and $f$ is its characteristic function. Suppose $f$ has finite first order derivative at $t=0$, can you conclude that $\mu$ has finite expectation?  I know that if $f$ has a finite derivative of even order $k$ at $t=0$, then $\mu$ has a finite moment of order $k$. But I am not sure whether $\mu$ has finite expectation and how to prove it.  Can anyone help me?

I am looking for an example of a continuous distribution function where the first moment does not exist but the characteristic function is differentiable everywhere.  Cauchy distributions do not fulfill this, as their characteristic functions are not differentiable at $0$. Does anybody here have an example?


I've read lots of suggestions on how to make contains case insensitive, but none seem to fit with what I've got.  Sorry if I've missed the obvious.  I've got this.  var data = this.value.split(" ");         $.each(data, function(i, v) {             rows.filter(":contains('" + v + "')").show();         });   How do I make it case insensitive ?  Thanks.  UPDATE  I've got this working using:  var data = this.value.split(" ");     $.each(data, function(i, v) {         rows.filter(":Contains('" + v + "')").show();     }); });  jQuery.expr[":"].Contains = jQuery.expr.createPseudo(function(arg) { return function( elem ) {     return jQuery(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; };

Is there a case insensitive version of the  jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?


I am not able to extract tar file  Command  tar -xvfz node_archive.tar.gz khem  Error   show error tar:z: can't open :No such file or directory tar: Error is not recoverable : Exiting now

I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending them up via ftp isn't practical. I was able to ftp the .tar.gz file to our hosting site, but when I ssh into my directory and try using unzip, it gives me this error:  [esthers@clients locations]$ unzip community_images.tar.gz Archive:  community_images.tar.gz   End-of-central-directory signature not found.  Either this file is not a zipfile, or it constitutes one disk of a multi-part archive.  In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note:  community_images.tar.gz may be a plain executable, not an archive unzip:  cannot find zipfile directory in one of community_images.tar.gz or community_images.tar.gz.zip, and cannot find community_images.tar.gz.ZIP, period.   What command do I need to use to extract all the files in a .tar.gz file?


Are there any neutron stars near enough for astronomers to get a good size-estimate, based on direct observation? I know that there are many theories regarding what happens inside neutron stars, but I want to know if there are any direct observations of nearby neutron stars which give us a clue as to their actual size and density.  Other answers have not helped me, because they were based on THEORY, not DIRECT OBSERVATION !!

Most of the books which I looked at give approximately 10 km as the radius of a neutron star. Just yesterday I looked at a book by Dave Goldberg titled The Universe In the Rearview Mirror (2013) which says that they're "only about 5 km in radius" [p.225]. Is this true, [i.e., is there some recent evidence for this], or did he make a mistake here?


A question from Munkres:  Let $p:E\rightarrow B$ be a covering map; let $B$ be connected. Show that if $p^{-1}(b_0)$ for some $b_0\in B$ has $k$ elements, then $p^{-1}(b)$ has $k$ elements for each $b\in B$.  If I were to show that $p^{-1}(b)$ is bijective to $p^{-1}(b_0)$ then I would be done with the proof. But I don't see how, I mean all I know is that for each $b\in B$ there's a nbhd $U_b$ that is evenly covered by $p$; I think I know that $B \subset \bigcup_{b\ne b_0 , b\in B}\cup U_{b_0}$, but don't see how does this help?  Any hints? Thanks.

Let $p: E\to B$ be a covering map; let $B$ connected. Show that if $p^{-1}(b_0)$ has $k$ elements for some $b_0 \in B$, then $p^{-1}(b)$ has $k$ elements for every $b \in B$.   I know that $E$ has a unique slice because $B$ is connected, but I don't know what to do next.    For the sake of providing some context, this is Section 53, Exercise 3 of Munkres' Topology.


I am facing this problem on my samakal blog Google search console is showing this message "URLs for your site and alternate URLs in 'BN' that do not have return tags." How can I fix it easily?

Google Webmaster Tools has added an International Targeting Report to show hreflang errors. There's a section that reports "no return tags" errors with Originating URL & Alternate URL columns.    What do I need to do to fix these errors? Is there a way to "Mark as Fixed" once that's done like we can for Crawl Errors?


My computer crashed during the upgrade from 14.04 to 16.04 and since then I receive this message when I get to the command line.This is the command I used for the upgrade  sudo update-manager -d   How can I resolve this?  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


I have a collection with more than 1 TB size and wanted to move it another MongoDB cluster  PS: Both clusters are sharded over 5 shards and they are on-prem infra.

I have to move a MongoDB Collection (Size: 1TB+) from Sharded MongoDB Cluster to another[5 shards on both clusters]. During this operation, it is assumed that the accompanying program will be offline, so no need to worry about inconsistent data, but I need to minimize the downtime.  I've tried testing it with mongodump and mongorestore, but looks like that is taking ages to finish.  Please share your experiences for such kind of scenarios.  Note: Cluster has only one collection, so I am open at cluster level sync as well.


Example: He has better dance moves than I/me.  This I/me stuff is sometimes pretty confusing... :(  I think I would say "I" because you could say "He has better dance moves than I have".  But I'm not sure about it...

I read an English grammar article in which the author talked about the correct use of pronouns.  He writes:     If the extended sentence is “She’s more likely to ask him than I am,” in which the comparison is between the subject and the writer, I is correct. However, if the intent is to convey that the man referred to as him is more likely to be asked something by the subject than the writer is, the correct pronoun form is me, but that distinction should be clarified with a revision like “She’s more likely to ask him than ask me.”   Before reading this piece, I thought that the two sentences had the same meaning. While the second example is quite clear for me (“She’s more likely to ask him than ask me”), I don't think that I have correctly understood the first one. Could anyone explain it to me, please?


In Avengers: Age of Ultron when the Avengers are all taking turns trying to lift Mjolnir from the coffee table, Steve Rogers is shown moving it about half an inch or so but not actually lifting it. Presumably whatever enchantment there is on Mjolnir that determines "worthiness"( "whosever wields this hammer", and all that) doesn't do grey areas i.e. someone can't be almost worthy of the power of Thor. Either they can lift the hammer or they can't. If this is as the case, why was Steve not able to lift Mjolnir completely off the table, since presumably if he can move it at all that means that he is in fact worthy?

There've been several questions about the Excalibur-like scene in Avengers: Age of Ultron when no Avenger is able to lift the hammer except for Captain America who seems to be able to move it slightly.  My question is simple: is there any confirmation by any official source (authors, director, any actor, anyone on the team) about whether he is NOT able to lift it, or whether he realises he would be able to lift it but chooses not to as he is not supposed to?


wanted to know how long does it take for Google to update the pagerank of a site and verify the relationships created in web (backlinks).  Another thing, create a relationship with a page that has the authority page very low and Domain Authority very good. That kind of relationship would add to the positioning of my site?  Greetings,

As you may know Google updates PageRank roughly 4 times a year, out of interest and not for ranking purposes I often check when the next incoming update is. I do this by searching various sites and finding out the history, Well since I'm a regular on Pro Webmasters I thought I'd ask the question and provide the answer for myself and others webmasters alike.   So the question is simple, what is the last updates and when we can expect another Google Page Rank (PR) Update.   UPDATE: Still no Google Pagerank update yet - very late.


After I clicked the "start a bounty" link, in the drop down list, the 50 reputation option did not exist:

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


I need to inspect and repair a Raspberry Pi SD card. This is my main goal. And it should be as simple as possible. It's already bad enough that Windows 10 cannot mount that file system and Android also has no idea about it (but creates random junk on the volume it understands). So I got an Ubuntu disk image and started the live system in VMware. I thought this should be the easiest and quickest solution to get to an environment that can handle a Linux file system.  I plugged in the card reader and it showed up as two volumes on the Ubuntu live desktop as expected. But the file I need to edit belongs to root. The default graphical text editor (it has no visible name) that is started from the default graphical file explorer (also has no visible name) only opens the file as read-only. Saving is not possible.  Smart Windows applications ask me for the required privileges when I want to use them. (Dumb Windows applications still don't.) I thought Linux apps were that smart before. But the editor isn't.  So what are my options to edit that file?  Is going to a terminal and using all the funny text UI tools all I can do now? I'd really prefer a GUI solution because I always forget terminal commands after not using them for a month. And the mount path seems to be unreadable for humans, it's so long I can't see it completely. I found the command gksudo nautilus somewhere around but it's not available on my system.

I've read a lot of threads about gksu being removed from many Linux flavours, including Ubuntu 18.04.  Many state that gksu is an abomination and no user should ever need to use anything like it.  I have 2 examples where, as far as I know, I must have something that allows me to run as root (not just for editing files).    First, I have a need to start mysql only after an encrypted folder is opened on (GUI) command.  This means having a script run by the encryption system that starts the mysql service.  That has to be done as root, so I use gksu in that startup script which asks me for a password.  How else can I start a service from a GUI system?  I also run Ubuntu system backups as root, otherwise many system files can't be backed up.  So the desktop file uses gksu to start the backup.  pkexec looks complicated, needing policy files.  Is that the only alternative, and if so, why is it any safer?  Other answers to similar questions don't seem to address individual issues that people have now that gksu is no more (or harder to find...).  I think such questions from non-expert users would benefit from more detailed answers.  I now have some, and so would like to answer my own question.


We use Google Sheets for tech commission sheets (track jobs and hours). Right now we have 2 years (2017&2018) in 1 set of sheets, 1 sheet for each month (jan 17, feb 17, etc). So instead of adding more sheets, I would like to just create a new set of sheets for 2019 but I need to be able to pull/search for data from the 2017/2018 sheets to ensure a tech doesn't accidentally pay themselves for a job twice.  Is this possible? And if yes, how can I do it?

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


The Gamma function $\Gamma(n)$ is defined as $$\Gamma(n)=\int_{0}^{\infty}x^{n-1}e^{-x}dx$$ $$\Gamma(n)=(n-1)!$$ Why isn't it defined as $$f(n)=\int_{0}^{\infty}x^{n}e^{-x}dx$$ $$f(n)=n!$$ This seems a lot more intuitive and easier to apply, or is there something I'm missing in terms of uses for the function?

As a physics student, I have occasionally run across the gamma function  $$\Gamma(n) \equiv \int_0^{\infty}t^{n-1}e^{-t} \textrm{d}t = (n-1)!$$  when we want to generalize the concept of a factorial.  Why not define the gamma function so that   $$\Gamma(n) = n!$$  instead?  I realize either definition is equally good, but if someone were going to ask me to choose one, I would choose the second option.  Are there some areas of mathematics where the accepted definition looks more natural?  Are there some formulas that work out more cleanly with the accepted definition?


In my Microsoft SQL Server 2017 Express Edition, I have created a local temp table using below create statement,  create table #localtemptable (tempid int,tempname varchar(20) )   After creating #table, I  checked the tempdb -> Temporary Table , it is showing the table name along with a lengthy underscore and 0000000004 number. What is it meaning and why it is showing like this?

I created a temp table which resides in the temp table folder. The problem is the name is unacceptably long which make it almost impossible to efficiently work on querying some field from it. Is it any way to have a shorter name like db.#SPR1 instead of the long one as below?   dbo.#SPR1_______________________________________________________________________________________________________________000000003A3E


Is there an easy way to resize partition? I have a dual boot laptop with windows and Ubuntu at the beginning I didn't think I will use Linux this often, so I have given 50GB only, but with time I even stopped using Windows :D Now I would like to take some free space which windows don't use and extend the ubuntu OS storage. I am very new to Linux so I would like sth with UI or a simple way to do, does anyone know? I've tried gparted but didn't work I've tried Easeus but it requires premium for EXT4 DONE ppl in the comments answered my question, if anyone looking for answer

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


Consider, for example, $\frac{1}{N} = \frac{1}{195} = \frac{1}{3\cdot5\cdot13} = 0.0051282051282051282... = 0.0\overline{051282}$, compared to, say, $\frac{1}{N} = \frac{1}{77} =  \frac{1}{7\cdot11} = 0.012987012987... = 0.\overline{012987}$. QUESTION: Under what conditions will the repetend of $1/N$ include all of the zeros following the decimal point, such as in the example $\frac{1}{77}$? Is there a particular class of integers $N$ which this must always happen? I have noticed that this seems to be the case when $N$ is a semiprime, but it is not the case, as we see above, when $N$ has three prime factors.

I am trying to figure out how to prove that all rational numbers are either terminating decimal or repeating decimal numerals, but I am having a great difficulty in doing so. Any help will be greatly appreciated.


I'm trying to build a planning tool for .  It involves selecting a field (polygon), a center point, and then an outer circle to set the outer limits of the system.  From there you select the inner rings based on fixed length sections. to optimize the coverage area.  Anyone have an idea where I can start?

I have been given a shapefile from a client that features pivots, yet they were recorded as 10 circles overlapping. The software my company uses requires that these polygons be rings that don't overlap. I have read about the clip and difference tools, but I think I'm going about it the wrong way.   Can anyone help me clip these polygons so they are rings and not overlapping circles?   I have attached a screenshot of what I mean.


I am trying to install some python packages but I am getting this kind of error every time.  Exception: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main     status = self.run(options, args)   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run requirement_set.prepare_files(finder)   File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files ignore_dependencies=self.ignore_dependencies))   File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 512, in _prepare_file finder, self.upgrade, require_hashes)   File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 273, in populate_link     self.link = finder.find_requirement(self, upgrade)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 442, in find_requirement all_candidates = self.find_all_candidates(req.name)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 400, in find_all_candidates for page in self._get_pages(url_locations, project_name):   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 545, in _get_pages page = self._get_page(location)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 648, in _get_page return HTMLPage.get_page(link, session=self.session)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 757, in get_page "Cache-Control": "max-age=600",   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 480, in get return self.request('GET', url, **kwargs)   File "/usr/lib/python2.7/dist-packages/pip/download.py", line 378, in request return super(PipSession, self).request(method, url, *args, **kwargs)   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 468, in request resp = self.send(prep, **send_kwargs)   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs)   File "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py", line 46, in send resp = super(CacheControlAdapter, self).send(request, **kw)   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py", line 376, in send timeout=timeout   File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 610, in urlopen _stacktrace=sys.exc_info()[2])   File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 228, in increment total -= 1 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'   I looked it up on this site and Stack Overflow and all the solutions suggest installing  wheel   or  setuptools   But I am getting   Requirement already satisfied   The same problem occurs for trying to upgrade python packages. What should I do?

I'm trying install the requests, but I can't do that. I'm using Ubuntu 16.04  I tried to install using  $ sudo pip install requests   and I get the following error   Collecting requests Exception: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main     status = self.run(options, args)   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run     requirement_set.prepare_files(finder)   File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files     ignore_dependencies=self.ignore_dependencies))   File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 512, in _prepare_file     finder, self.upgrade, require_hashes)   File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 273, in populate_link     self.link = finder.find_requirement(self, upgrade)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 442, in find_requirement     all_candidates = self.find_all_candidates(req.name)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 400, in find_all_candidates     for page in self._get_pages(url_locations, project_name):   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 545, in _get_pages     page = self._get_page(location)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 648, in _get_page     return HTMLPage.get_page(link, session=self.session)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 757, in get_page     "Cache-Control": "max-age=600",   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 480, in get     return self.request('GET', url, **kwargs)   File "/usr/lib/python2.7/dist-packages/pip/download.py", line 378, in request     return super(PipSession, self).request(method, url, *args, **kwargs)   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 468, in request     resp = self.send(prep, **send_kwargs)   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 597, in send     history = [resp for resp in gen] if allow_redirects else []   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 195, in resolve_redirects     **adapter_kwargs   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 576, in send     r = adapter.send(request, **kwargs)   File "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py", line 46, in send     resp = super(CacheControlAdapter, self).send(request, **kw)   File "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py", line 376, in send     timeout=timeout   File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 610, in urlopen     _stacktrace=sys.exc_info()[2])   File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 228, in increment     total -= 1 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'   My python version is the 2.7 and the pip is 8.1.1


So I've heard, "Math is not logic," because logic has no notion of order. However, consider the following argument:  There once was a man on a mountaintop. He came down, murdered a villager's cat, and went back up again.  Now, you may think the Police would like to catch this man. So they asked a logitician: "Where is he?" The logitician pondered the question, then, having no notion of chronological order, responded: "He is either somewhere else, or on the mountain top."  The Police officer, not being a logitician, thanked him and promptly visited the mountain top to apprehended the murderer. This is an example of interpreted logic: It takes a layman to add order to the logitician's orderless analysis.  Am I making sense, or is there some other aspect of mathematics that is incompatible with logic?

I was wondering why the field of mathematics and that of logic are perceived as two distinct fields. Although could be pleased with the intuition that logic is rather meta-mathematics, still would like to know: were there any philosophers who may be said to have created this distinction? What is the philosophical background for distinguishing mathematics and logic?


Is there any better method than derivative or trial and error to calculate minima of $$f(x)=x^8-8x^6+19x^4-12x^3+14x^2-8x+9$$  The minima occurs at $x=2$ and $f(2)=1$  We were given option too $-1,9,6,1$ if that helps

The minimum value of $$f(x)=x^8 – 8x^6 + 19x^4 – 12x^3 + 14x^2 – 8x + 9$$ is  (a)-1  (b)9  (c)6  (d)1  Apart from trying to obtain $1$, which in this case is simple and $f(2)=1$ is there a standard method to approach such problems.  Please keep in mind that this is an objective question in one of the competitive exam and you get around 5 mins to solve it.  Also this is asked in elementary section, so only knowledge of basic calculus and polynomials is assumed.


$$\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$$ I learned from one  of the MIT OpenCourseWare course 18.01 that the infinite series $\sum_{n=1}^{\infty} \frac{1}{n^2}$ converge to $\frac{\pi^2}{6}$. It shows the conclusion without a proof. How does one prove it? The lecture note teaches us of the integral test, which does not give the exact number the infinite series will converge to.

As I have heard people did not trust Euler when he first discovered the formula (solution of the ) $$\zeta(2)=\sum_{k=1}^\infty \frac{1}{k^2}=\frac{\pi^2}{6}.$$ However, Euler was Euler and he gave other proofs.   I believe many of you know some nice proofs of this, can you please share it with us?


The first time I walked in my son's bedroom, he was playing with my friends niece (he was 4 and my friends niece was 2), and he had her pinned down on the bed and kneeling on her arms. She was screaming. The second time was with my friend (his dad's partner), and he asked her to bend over on the bed so he could kiss her neck and feel her boobs. We have caught him on a few occasions doing inappropriate things, but only to girls, and when no one is looking he tries something. He is 6 now, and we have a little girl who is 18 months, I was running a bath and she was on the bed naked, the little boy ran up the stairs, got in bed, and when I come back up stairs he had a guilty look on his face as he was trying to pull he's pants back up. What do you think I should do? I'm wondering whether or not to phone social services.

My son is 5 years old.   Over the last few months I have been observing some disturbing sexual behavior from my child.  He is rubbing his penis on  the bed or pillow. Sometimes he would get naked and rub very tightly and make some sounds of pleasure! Previously, I thought he was playing... but later I understood.   His father doesn't want me to scold him, but one day I was really surprised and shocked by one incident... when I was in deep sleep in the afternoon, I suddenly woke up and saw he had pulled up my skirt and trying to mount me! I was really shocked!  I'm really upset.  What should I do?


I am doing scp using below code deployed on server.     String cmd = "scp /'location'/'file' useracc@xxx.xxx.xxx.xxx:/'location'/" ;     Runtime run = Runtime.getRuntime();     Process pr = run.exec(cmd);     pr = run.exec("password");  The file is not being copied. It throws no error. This is deployed on linux server. What should I change ?

I know it is not recommended, but is it at all possible to pass the user's password to scp?  I'd like to copy a file via scp as part of a batch job and the receiving server does, of course, need a password and, no, I cannot easily change that to key-based authentication.


I had installed Ubuntu on my D: drive and when I wanted to get rid of Ubuntu I cleared the drive through windows disk manager. Now I want to get rid of the EFI Ubuntu entry so i took the necessary steps to gain access to the EFI partition and located the Ubuntu entry. When I tried to rmdir /S ubuntu it says that Ubuntu doesn't exist. The D: drive where Ubuntu used to reside is formatted. And if try to access the folder through explorer it says that I don't have permission.

I have Windows 8 pre-installed, and then I installed GRUB with Ubuntu. Ubuntu is not my thing, so now I want to remove it along with GRUB. From what I have learned, with UEFI, GRUB does not overwrite the windows bootloader in the EFI partition and is stored elsewhere. How would I remove GRUB and make my PC use the Windows bootloader instead? It should be noted that I created a separate /boot partition when installing Ubuntu.


I have accidentally set the association for .bat files to notepad. This was done by going to the Default Programs panel and setting it to run with notepad. I've tried everything I can find on this subject. I've deleted the USER CHOICE option in regedit, I've tried merging with the reg file, I've tried multiple association restoration programs, I've removed the association all together, and it has not worked. No matter what I try, it will open in notepad or ask for a program to open in. I'm not sure if there is a program it opens in by default, but I could really use some help. I've been researching and trying everything for a week with no progress towards a solution.

What do I set the 'Opens with...' property to in order to get the system to run .bat files again (when they are double-clicked)?  Somehow my boss convinced his workstation that the handler for .bat files was supposed to be Word. Now, when double-clicking .bat files, they're opened up in Word.


I am looking for one word to describe making a mistake that ordinarily should have been well within your ability to perform properly.  For example, if someone is considered especially gifted in perceptual organization, yet they fail to notice how to open an extremely simple lock, what type of mistake is that?  The connotation I'm looking for is something like a gross blunder, or an uncharacteristically stupid mistake.  The one word can be any type of word, i.e. noun, adjective, verb, etc. For example:   "You have made a (noun)." "You just (verb)ed." "That was very (adjective)."   Words like "gaffe", "blunder", "mistake", to me at least, don't indicate the extreme uncharacteristicness of the stupidity involved.

What is a nicer, less immature saying?  I love using 'A Freudian slip', but that is only applicable in certain situations.


I am trying to modelize our galaxy with a simple program.   I know how to find the period speed and acceleration of a satellite but I don't know how to get the angle and the current distance between the satelite and the object it is orbiting.

Recently I was surprised to discover that no exact solution for the position of a planet as a function of time exists. I am referring to the two-body problem in a gravitational field where Newtons law of gravity holds.  Well known are proofs that the planet will move in an ellipse, Keplers laws can be derived fairly easy etc., but for the exact position of the planet on the ellipse as a function of time, no formula exists, only numerical approximations.  Is this correct? Can anybody elaborate on the deeper reason(s) that this relatively simple case cannot be solved?


If I remove my upvote on a comment, then after some time try to re-upvote the same comment, I won't be allowed to. I don't get why we can't re-upvote a comment after we upvote it then revoke our vote. Why is that?

I recently tried to un-upvote a comment, and received a message that if I did so, I would not be able to upvote it again:     Are you sure you want to undo your upvote on this comment? You will not be able to upvote it again.   Unlike , I completely understand what the message is saying. However, why am I not allowed to upvote it again? What's the reasoning behind this decision?


Recently while re-watching Deadpool 2 I realized how blatantly unaware I am of any of the names of X-Men especially in this scene.                                  Could somebody name these X-Men for me?

When Deadpool is in the hallway talking      he makes a joke about Fox springing for a few more X-Men and the camera pans to show Beast closing the door to get rid of the noise.   Who else was in the room?


I am not fully understanding the Towers of Hanoi. The recursion is very elegant and the answer has eluded me for a very long time. I am currently learning python, so lets use python.  def TowerOfHanoi(n,from_rod, to_rod, aux_rod):     if n==1:         print ("Move disk 1 from rod", from_rod, "to rod", to_rod)         return     TowerOfHanoi(n-1,from_rod, aux_rod, to_rod)     print ("Move disk", n, "from rod", from_rod, "to rod", to_rod)     TowerOfHanoi(n-1,aux_rod, to_rod, from_rod)  n=4 TowerOfHanoi(n,'A', 'C', 'B')]   This is the correct code for the Tower of Hanoi.  I understand the two calls within the function. I have drawn a picture that shows the disk moving from from_rod to aux_rod, then the next call moves it from aux_rod to to_rod. That makes sense now.   I do not understand how the function is calling the disks in that order and how the program continues for so long. If you understand the TowersOfHanoi in C, Java, pseudocode, python, or Matlab then your help is greatly appreciated.

I'm having trouble understanding precisely how the proof by induction is used to show that it takes at most $2^n-1$ moves to get all the disks from one peg to another.  Are there any helpful sources or particular insight that you have that may help me, and others, understand this problem more intuitively?


After installing Ubuntu 18.04 LTS the OS does not work as it should. I have a login loop issue and the whole operating system does not work right.  My hardware:   MSI Z370 PRO NVIDIA RTX 2070

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


I am trying to solve using contour integration $$\int_0^{\infty} \! \frac{\ln(x)}{x^2+a^2} \, \mathrm{d}x = \frac{\pi \ln(a)}{2a}$$ Where $a>0$. I am stuck in finding roots and residue for the given problem. Can somebody help?

I'm trying to find $\int_0^\infty \frac{\log(x)}{x^2+\alpha^2}dx$ where $\alpha>0$ is real.  My approach was to take an integral along the real line from $1/R$ to $R$, around the circle counterclockwise to $-R$, along the real line to $-1/R$, and then around the circle clockwise to $1/R$.  I have encountered 2 problems with this:   This path encloses one pole, at $z=\alpha i$.  I found the residue at $z=\alpha i$ to be $\frac{\ln(\alpha)+i\pi/2}{2\alpha i}$.  However, this gives me that $\int_0^\infty \frac{\log(x)}{x^2+\alpha^2}dx=\frac{\pi(\ln(\alpha)+i\pi/2)}{2\alpha}$.  Since I have a real function integrated over the real line, there cannot be an imaginary part.  Where did I go wrong?  (Also, doing a few examples, the correct answer seems to be $\frac{\pi\ln(\alpha)}{2\alpha}$, the same as I have but without the imaginary part.) At first chose my path so instead of going all the way around the upper semicircle, it only went 3/4 of the way around, as I wanted to avoid anything that might go wrong with the discontinuity of $\log(x)$ at the negative real axis.  When I do this, though, I get a different answer than before (the denominator of the fraction is $\alpha(1-e^{3\pi i/4})$ instead of $2\alpha$.  What am I doing wrong that gives me different answers?


I would multiple domain on single hosting. My project files inside this hosting plan. I run same server.  How to multiple hosting (vhost) acccess to my project files?  For example: my project files in:  /var/www/virtual/myproject.com/htdocs   and clients...  /var/www/virtual/myclient1.com/htdocs /var/www/virtual/myclient2.com/htdocs /var/www/virtual/myclientN.com/htdocs   When access to www.myclient1.com run project file.  Please help me.

I have a VPS that I've installed a Apache Web Server on. What I want to do is forward my own website domains to that server and host those websites' files inside my Apache Web Server. As far as I understand a DNS server is required to manage which domain is hosted where (IP-wise). But what I want to do is host my websites under the same IP address, the one that my web server has. How can I separate those websites' files inside my web server so I don't have to use http://host/foo for www.foo.com and http://host/bar for www.bar.com?


I format my notebook because this problem, but it wasn't solved. Any suggestion to fix it?  The following packages have unmet dependencies:  python-qgis : Depends: python-qgis-common (= 1:2.14.4-1+20trusty-ubuntugis) but it is not going to be installed                Depends: libqgispython2.14.4 but it is not going to be installed                Depends: libqgis-analysis2.14.4 but it is not going to be installed                Depends: libqgis-core2.14.4 but it is not going to be installed                Depends: libqgis-gui2.14.4 but it is not going to be installed                Depends: libqgis-networkanalysis2.14.4 but it is not going to be installed                Depends: libqgis-server2.14.4 but it is not going to be installed  qgis : Depends: gdal-abi-2-1-0 but it is not installable         Depends: libgdal20 (>= 2.0.1) but it is not installable         Depends: libgeos-c1v5 (>= 3.4.2) but it is not installable         Depends: libqgis-analysis2.14.4 but it is not going to be installed         Depends: libqgis-app2.14.4 but it is not going to be installed         Depends: libqgis-core2.14.4 but it is not going to be installed         Depends: libqgis-gui2.14.4 but it is not going to be installed         Depends: libqgis-networkanalysis2.14.4 but it is not going to be installed         Depends: qgis-providers (= 1:2.14.4-1+20trusty-ubuntugis) but it is not going to be installed         Recommends: qgis-plugin-globe but it is not going to be installed         Recommends: qgis-provider-grass but it is not going to be installed  qgis-plugin-grass : Depends: qgis-provider-grass (= 1:2.14.4-1+20trusty-ubuntugis) but it is not going to be installed                      Depends: libgdal20 (>= 1.8.0) but it is not installable                      Depends: libqgis-app2.14.4 but it is not going to be installed                      Depends: libqgis-core2.14.4 but it is not going to be installed                      Depends: libqgis-gui2.14.4 but it is not going to be installed                      Depends: libqgisgrass7-2.14.4 but it is not going to be installed E: Unable to correct problems, you have held broken packages.

Until yesterday my whole qgis and python-qgis worked fine with version 2.14 under Ubuntu 14.04. After a simple sudo apt-get update and sudo apt-get upgrade qgis failed to update... Several attempts to reinstall it with different versions failed.  Current error message (for version 2.14.3) goes like this:  qgis-providers (2.14.3+dfsg-2~trusty1) is configured ... /usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libgdal.so.20: undefined symbol: GEOSDelaunayTriangulation_r   I also tried to reinstall all gdal libraries - not sure if I got all?!  Maybe it is somehow related to this one:  ?  UPDATE:  Trying to install version 2.16.0 it gives different but similar error:  /usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libqgis_core.so.2.16.0: undefined symbol: GEOSNearestPoints_r   UPDATE Sources:  For version 2.16.0 there are these sources in /etc/apt/sources.list:  deb http://qgis.org/debian trusty main deb-src http://qgis.org/debian trusty main deb http://qgis.org/debian trusty main deb-src http://qgis.org/debian trusty main   which are all the same, right?   When I do apt-cache policy qgis it gives me:  qgis:   Installiert:           1:2.16.0+20trusty   Installationskandidat: 1:2.16.0+20trusty   Versionstabelle:  *** 1:2.16.0+20trusty 0         500 http://qgis.org/debian/ trusty/main amd64 Packages         100 /var/lib/dpkg/status      2.0.1-2build2 0         500 http://de.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages


I have the following table:  \documentclass{article}  \begin{document}  \begin{tabular}{ll} this row should be blue & \\ this row should be red & \\ %% these rows alternate between green and yellow a & b \\ c & d \\ e & f \\ f & g \end{tabular}  \end{document}   and I would like to have different background colors for the cells, as mentioned in the table. Any ideas?

Sometimes you can see in books tables, that have alternating background color for rows in a table to support readability. How I can achieve this with LaTeX?  And yes, I could put macros \odd and \even into each row, but in that case I would have to change all following rows, if I input later another row into the table. I want TeX to decide itself, which row is odd or even and put the appropiate style into it.


I was looking over some repo that was from a bootcamp to learn full stack development. On the jquery lesson, they were asked to build a calculator. There was a part of the html that had some weird variable where the text content should be. I wanna know what the purpose of this is and how and when I should use it? Perhaps it's nothing at all and I am just overthinking it. I am talking about the ÷ and × etc...
             <button id="button-1" class="btn btn-primary number" value="1">1</button>             <button id="button-2" class="btn btn-primary number" value="2">2</button>             <button id="button-3" class="btn btn-primary number" value="3">3</button>             <button id="button-plus" class="btn btn-danger operator" value="plus">+</button>

             <button id="button-4" class="btn btn-primary number" value="4">4</button>             <button id="button-5" class="btn btn-primary number" value="5">5</button>             <button id="button-6" class="btn btn-primary number" value="6">6</button>             <button id="button-minus" class="btn btn-danger operator" value="minus">&minus;</button>

             <button id="button-7" class="btn btn-primary number" value="7">7</button>             <button id="button-8" class="btn btn-primary number" value="8">8</button>             <button id="button-9" class="btn btn-primary number" value="9">9</button>             <button id="button-multiply" class="btn btn-danger operator" value="times">&times;</button>

             <button id="button-0" class="btn btn-primary number" value="0">0</button>             <button id="button-divide" class="btn btn-danger operator" value="divide">&divide;</button>             <button id="button-power" class="btn btn-danger operator" value="power">^</button>             <button id="button-equal" class="btn btn-success equal" value="equals">=</button>

             <button id="button-clear" class="btn btn-dark clear" value="clear">clear</button>

This has been confusing me for some time. With the advent of UTF-8 as the de-facto standard in web development I'm not sure in which situations I'm supposed to use the HTML entities and for which ones should I just use the UTF-8 character. For example,   em dash (–, &emdash;) ampersand (&, &amp;) 3/4 fraction (¾, &frac34;)   Please do shed light on this issue. It will be appreciated.


I have a directory structure for a web java application + standalone application like this: src/logic/view/desktop src/logic/view/web and src/logic/bean,control etc... In src/logic/view/web i have my web application with WEB_INF, META_INF, mypage.jsp etc... mypage.jsp  <%@ page language="java" contentType="text/html; charset=ISO-8859-1"     pageEncoding="ISO-8859-1"%>    <!-- dichiarazione e instanziazione di un BeanAddReport !--> <jsp:useBean id="addReportBean" scope="request" class="logic.bean.AddReportBean"/>  <!DOCTYPE html> <html lang="en"> <head>     <meta charset="ISO-8859-1">     <title>Add Report</title>          <link rel="stylesheet" href="css/mycss.css">  </head> <body>          <img class="backImg" alt="" src="<%=request.getContextPath()%>/img/backgroundImage2.jpg" width="1366">          </body> </html>   and the bean class package logic.bean;  import logic.controlgrafico.AddReportGuiControl;  public class AddReportBean {      private String queueLen;     private boolean isLast;     private Object gui;     private String attractionName;          public void setQueueLen(String s) {         queueLen = s;     }          public void setIsLast(boolean b) {         isLast = b;     }          public void setGui(Object gui) {         this.gui = gui;     }          public void setAttraction(String a) {         attractionName = a;     }          public String getAttraction() {         return attractionName;     }          public String getQueueLen() {         return queueLen;     }          public boolean getIsLast() {         return isLast;     }          public Object getGui() {         return gui;     } }   Now my problem is: when I start the tomcat server I receive a org.apache.jasper.JasperException: /addReport.jsp (line: [5], column: [0]) The value for the useBean class attribute [logic.bean.AddReportBean] is invalid.  I think the problem is the project structure and I would tell if there are some configurations, for example in web.xml, that can resolve my problem. I try to run another dummy project with a different directory structure: DummyProject/src/bean.java DummyProject/web/index.jsp where the index.jsp use "useBean" in the same way and all works fine. Suggest me more detail of how the target class works in useBean tag. Ty so much Edit: The difference between the two projects is in C:\Users\simon\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps The project where all works fine had the path WEB-INF/classes/logic/bean/AddReportBean.class Why the other project doesn't have this path?

I want to use a Java file SaveProp which is written in a package user. The class file has been placed in WEBINF/classes. Below are the two lines which cause the issue.  jsp:useBean id="user" class="user.SaveProp" scope="session"  jsp:setProperty name="user" property="*"   It throws:  The value for the useBean class attribute user.SaveProp is invalid   I'm using Tomcat 6.0.


Books like word power suggest "Ramu and I are going to theatre today" may be wrong. Does "Ramu and me are going to ..." a right structure.

From some comments in the answers for  (now deleted, 10k only), there's confusion around the usage of I vs. me:  While the sentence, "the other attendees are myself and Steve," is agreed to be incorrect, there's confusion about whether the correct form is "the other attendees are me and Steve" or "the other attendees are Steve and I."  (I've always used the heuristic of removing the other people from the sentence, so I always thought "the other attendee is me" would be correct, instead of "the other attendee is I." Is this true, or am I using a flawed heuristic?)


Houston, we (The ers) faced a problem today,  this post on meta.SO:  The accounts of none of the posters has been removed. Yet . . .  Yes, there should be room, but since the 404 is an image, it would be somewhat difficult to convey whitespace :) – Mark Rushakoff   (There should be a link to @Mark's profile page, but there isn't) This doesn't happen on meta.SO only. The comments on  on meta.SU aren't clickable either. However,   (On meta.SE) doesn't suffer the same symptom. The only thing the former two posts have in common is they're both very, very old, but the third post is also old. This could be the cause, but how? What has happened? Can it be fixed, please?

Background: when question is migrated from site A to site B and the author doesn't have account in site B, their name will appear "gray" until they log in to site B and associate the accounts, then the avatar show and all is good. No problems here, same for answers and their authors. Problem: if user from site A posted comments while the question was still in site A, their name will stay gray and unclickable even after they logs in and have account in site B:  , but most likely it's global problem, not specific to that one occurrence.


How do I make a transparent material always display? I have turned the transparency on but its clearly not showing in the 3D view.

I'd like to do motion graphics type work in blender and it would be really helpful if I could see the results of keyframing material opacity to cut items in and out of view.  Blender internal is sufficient, using shadeless materials.  I could have swore there used to be something in view options.  Any ideas?


I'm having a drupal form (7.x) of type checkboxes.  I have an array of values for my checkboxes.  $options = array(     'uid'         => 'UID',     'name'        => 'Name',     'mail'        => 'E-mail',     'created'     => 'Created',     'edit_node'   => 'Edit',     'cancel_node' => 'Cancel', );   I have an array of default selected values.  $defaults = array(     'uid'         => 'UID',     'name'        => 'Name', );   And now I try to make the default values selected by default, like this:  $form['dynamic_user_fields'] = array(     '#type' => 'checkboxes',     '#title' => t("Dynamic User Fields"),     '#options' => $options,     '#default_value' => $defaults,     '#description' => t("Select the fields to display in the view."), );   But this is not working, all checkboxes are unchecked by default. Where is my mistake?    What is not working so far: I've seen  but the answers do not work.  What I've tried:  (1) using numeric keys does not work.  '#default_value' => array(1, 2),     (2) using array keys does not work.  '#default_value' => array('uid', 'name'),     (3) using array structure does not work.  '#default_value' => array('uid' => 'UID', 'name' => 'Name')     Any ideas?    References   This is the full code I'm Using:  This is a demo site:  Related issue:    I stepped up to maintain this module but the code base is a migrated D6 module.

I am using an checkboxes element within a form in module that I started developing for Drupal 7. This is my first attempt at module development and using the Form API. I am creating a list of checkboxes that list down all the content types of a specific site. An array of all the content types can be obtained by using the following: $nodeTypesRaw=node_type_get_names();. An array with the machine names of the content types as the keys and the human readable names as the values are obtained.  By default, I would like all the checkboxes to be selected and when the form is submitted. How do I achieve that? The Form API pages on the drupal site aren't very helpful with regards to setting the default values for checkboxes.   $nodeTypesRaw=node_type_get_names(); $nodeMachineNames=array_keys($nodeTypesRaw); $form['process_comments']['custommod_published_comments_select_node_types']['custommod_published_comments_node_types_checkboxes']=array(           '#deafult_value'=>$nodeMachineNames,           '#options'=>$nodeTypesRaw,           '#type'=>'checkboxes', );   I initially started out with the above code, but it won't work. It does display the list of checkboxes, but they are not checked by default. The variable does get on form submission though (checked via drush and var_dump).


Asking community to help identify anime (animation film) from my childhood.  By the style of that animated cartoon it seems like it was from 70s or 80s, and it had Japanese picture style to it. I saw it approx. in 1994 on some local TV channel that does not exist any more. I think it called "KS video".  All I remember is that there was a boy/man hiding in some buildings or ruined sky scrapers in partially destroyed city. It was dark. He was hiding from a giant hovering robot-like thing, that looked like a giant (as tall as buildings) metal sphere with a hood-like "head" and no legs or arms. This robot was slowly hovering, scanning with creepy noise for any movement, and firing a destructive beam out of his "head". Under that hood there was no face but something glowing red or orange. If I remember correctly there was 2 of that "robots" slowly destroying the city.  Unfortunately I don't remember any more details, I have seen this on TV long time ago, but I remember that it was cool and scary animation cartoon.  I have created a rough image of how this robot looked like:   Click image to enlarge.

I have been trying to find a cartoon I watched as a kid. It was shown on Sky Movies (UK) in 1989 or 1990 in the kids cartoons slot on Sky Analogue. It featured a team of four characters, possibly starting out in a spaceship, that land on a planet. The planet was empty except for sand and various buildings. There were one or two giant (70ft or more) oval shaped robots that the characters were hiding from. The robots were primary colors (red and blue I think), with heads that turned constantly looking for the characters. It was anime in appearance (certainly looked different from the Danger Mouse/Hanna Barbera cartoons that were usually shown on TV at the time) with lots of fast paced running sequences. One of the main characters had a cigar that stayed in the air when he spoke (shouted really). Any ideas??


My Solaris 11 cron appears to have stopped working.  Here is the last output of a cron job I run:  -rw-r--r--   1 root     root          60 Jul  2 20:30 locked_passwords.txt   I setup a test, like this:  * * * * * touch /tmp/testing.txt   It never touches the file  I checked if the service is running:  svcs cron STATE          STIME    FMRI online         Mar_09   svc:/system/cron:default   I truss the file and see this:  root   532     1   0   Mar 09 ?           3:08 /usr/sbin/cron pfexec truss -f -p 532 532:    pollsys(0xFC7FC1A8, 1, 0xFC7FC750, 0x00030414) (sleeping...)   Is my cron process sleeping? why?   UPDATE: I have restarted cron 2 times and it continues to stop. The majority of my log reads:  ! c queue max run limit reached Mon Jul 24 12:53:00 2017  ! rescheduling a cron job Mon Jul 24 12:53:00 2017  ! c queue max run limit reached Mon Jul 24 12:53:00 2017  ! rescheduling a cron job Mon Jul 24 12:53:00 2017  ! c queue max run limit reached Mon Jul 24 12:53:00 2017  ! rescheduling a cron job Mon Jul 24 12:53:00 2017    How do I diagnose this situation?

We have a job that is set to run Monday thru Friday. Up until two weeks ago, it ran fine 5 days a week. For the last two weeks it has failed on Monday. I am unable to locate where to find the point of failure.   ### Example Scripts 0 2 * * 1-5 /admin/scripts/example.exp 1>/dev/null 2>&1   We run AIX 7.1.  I've looked in the /var/log/ and there is no cron file there. Looking for advice to add to this so we can troubleshoot.   I found that the log is located in /var/adm/log. Further we are getting this error repeatedly ever since this date/time. How do I clear this max limit?  c queue max run limit reached Fri Nov 25 21:52:00 2016 ! rescheduling a cron job Fri Nov 25 21:52:00 2016


This is not about keeping the picture or table close to where they have been mentioned.  It is about keeping the caption of the picture (or table) together with the picture. Otherwise the picture and the caption will be displayed in different pages (or columns). Then, how to do it?.  \documentclass[journal,twoside]{IEEEtran} \usepackage[spanish,english]{babel} \usepackage{circuitikz} \usepackage[justification=centering]{caption}  \begin{document} \title{Minimal Working}  \maketitle  \begin{center} \includegraphics[scale=0.2444]{MultiplierSimulationI.png} \captionof{figure}{\small Multiplier circuit x3.} \end{center}  \begin{center} \begin{circuitikz}[american] \draw (-0.5,-0.5) to[open, l=$Anode$] (0,-0.5); \draw (-1,0) to[D, v=$V_D$] (-1,-2); \draw (-1,0) to[open, o-o] (-1,-2); \draw (0,-0.5) -- (0,-1.3) to[short, i=$i_D$] (0,-1.5); \draw (-0.5,-2.3) to[open, l=$Cathode$] (0,-2.3); \end{circuitikz} \captionof{figure}{\small Ideal Diode.} \end{center}  \end{document}   This is how I insert pictures (correct me if I am wrong, I insert them like this to put them wherever I want and avoid that the position itself anywhere in the page, and to give them a location). Anyway, if you add forced spaces before the picture there is a time where the picture will stay in the first column and the caption in the first line of the second column (same situation with the circuit).

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


Do I have to enter USA within first  6 months after visa issued date . I am on tourist visa ?

I'm a bit surprised from my US Visa. I plan to go to a conference on 3rd of April. Amazingly though, the visa expiration date is written as April 3rd.  So what does that mean. Can I enter the US on April 3rd? or should I enter one day earlier?


Does potential energy of molecule and therefore bond length change with temperature?

Does bond energy depend on temperature? Also why is it defined at 298 Kelvin if some substances cant be in gas phase in that temperature?


I saw some users with userxxxxx with some of them blue and grayed out. Why  are some grayed out?

Sometimes when reading through user comments on a particular answer, some usernames that appear like user[digit] e.g user12345 are not links. Is this a known behaviour or any other thing I am not aware of?


If  $X \sim N(0,{a^2})$,  $Y \sim N(0,{b^2})$ and   $Corr(X,Y) = \rho $,   then can we say that $(X,Y) \sim BVN(0,0,{a^2},{b^2};\rho )$?  If this is true, then can someone please tell me how can I proceed to show this mathematically?  Thanks!

Somebody asked me this question in a job interview and I replied that their joint distribution is always Gaussian. I thought that I can always write a bivariate Gaussian with their means and variance and covariances. I am wondering if there can be a case for which the joint probability of two Gaussians is not Gaussian?


In the  a line is delivered at around 1:41 where Han Solo says "a 190 years old!? You look great" and I was wondering if there is a defined concept of a year in the Star Wars universe or would Han Solo just be familiar with the duration of a  solar orbit.

I seem to remember several dating systems mainly in the Star Wars Expanded Universe. Furthermore, I was wondering if periods of time such as seconds, days, or months represent the same amount of time as they do in the real world.  So these are the main points of this question:   Which are the different dating systems (if there is indeed more than one) in the Star Wars galaxy? How are they related in regard to time offsets and such? (e.g. One system's year 5000 is another's year 268) An explanatory timeline graphic - perhaps including some important events - would be especially appreciated! Do amounts of time in the dating system(s) such as minutes or hours represent the same amount as in the real world? If more than one system exists, do the amounts of time carry over between them? (e.g. 1 minute is the same amount of time in all systems.) If the times carry over (or there is, in fact, only one system), what planet are the units of time based on? Coruscant?   Sorry if it seems I have asked too much in one question - splitting this question up into multiple questions did not appear to be a good idea as much of its content is very related.  Thanks for your time!