Is it true that if every continuous real-valued function on a metric space is bounded, then that metric space is compact

Let $X$ be a metric space. Prove that if every continuous function $f: X \rightarrow \mathbb{R}$ is bounded, then $X$ is compact.  This has been asked before, but all the answers I have seen prove the contrapositive. Realistically, this may be the way to go, but is there way to exhibit an unbounded continuous function (under the assumption $X$ is not compact) without appealing to results beyond introductory real analysis (e.g., the solution I've seen involves the Tietze Extension theorem)?  Because we're working with metric spaces, it's clear that the assumption that $X$ is noncompact (towards proving contrapositive) will lead us to extract a sequence of points in the space with no convergent subsequences. But how can we infer the existence of an unbounded continuous on the space knowing only about some sequence of points in this space (without using anything too advanced)?


Total amateur here. I've been watching video lectures on Quantum Mechanics and it's said that there is no way to know both position and momentum of an electron at the same time. But is it because when people measure one they change the other or because the particle somehow can't have both inherently. If it is the latter, is there any non-mathematical way to explain how come?

I ask this question because I have read two different quotes on the  that don't seem to match very well. There are similar questions around here but I would like an explanation that reconciles these two interpretations specifically:   Feynman talks about the uncertainty principle in one of his lectures and mentions it as the reason why electrons don't crash into the atom's nucleus: If they did they would have an exact location and momentum which is not allowed by the uncertainty principle. In saying this it is clear that the uncertainty principle is a fundamental property of nature because it has an effect on where an electron can reside. Recently I read - somewhere else but I forgot where exactly - an account of the uncertainty principle where there was explained how we can measure position of a particle by firing another particle into it, the collision disturbs the velocity of the observed particle therefore we can not know its momentum anymore.   Now, 2) very much seems like a limitation of what the observer can know, while 1) attributes a fundamental property of nature to it (electrons don't crash into the nucleus). What is the correct way to think about this?


With few capabilities: celeron Processor 4gb ram ssd  what would be fastest distro for this Laptop?  and Command line and suppoerted programms(skzpe,virtualbox and so on) is seem in ubuntu and ubuntu mate?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


If I hear the word "magician" I think most immediately of an old man in a dark robe. He wears a pointy hat. Sometimes with stars and moons.  Also this is what you get when you type "wizard" into your favorite web search enige.  What is the origin of this representation?

They don't always wear a hat, but when they do, it's pointy.   Why do fantasy writers depict pointy hats as the headgear of choice for Witches and Wizards?


Why is the Ubuntu kernel (4.1.5) so far behind the current Linux Kernel (5.2.6, soon to be 5.3)?  I would love to use Ubuntu, but my development work depends on solid kernel code.

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


I apologize if this question is exceedingly simple, but I did not find the answer here on Cross Validated or on  or on .  For example, imagine I have a normal distribution and I know that its mean is 200 and its standard deviation is 10. No problem for its median and its 1-2-3 standard deviations. How can I calculate the value which corresponds to the 75 percentile? How can I calculate the percentile which corresponds to the value of 75?  Numbers are provided as an example only.  (I use R)

Does anyone know what the Inverse Cumulative Distribution Function of Normal Distribution is? Does it have a closed form expression? I did not find any good answer using Google.


I want to create a html based chart like below , not sure how to proceed

How can I create rounded corners using CSS?


I see that people born to parents who are both magical are pure-bloods, if either of the parental sides is muggle they are half-bloods, and if both the parents are muggles, the child is muggle-born.  But what is the blood status of the child born to a half-blood and a pure-blood? Since there are muggles in the ancestral line is he/she still a half-blood, or considering that both the parents are magical, is he/she a pure-blood?

I was checking on something in the Harry Potter wiki and saw Harry listed as "Half-Blood."  Both his parents were magical, but, as we know, his grandparents on his Mother's side were muggles.  This reminds me of the racially loaded terms like octoroon.  (In the south, you still hear those terms every once in a while.)  When there was still segregation, having only 1 great-grandparent of an ethnic group was enough to classify a person of that group.  So how far down the line did it go in the Harry Potter universe?  Just how many generations removed from a muggle-born would a person have to be before they're no longer classified as half-blood or something similar?


My question is this. Is there a way to measure the distance of two points? (The points are drawn with TikZ.)  Thank you for your answer.

Given two points (defined, for instance using nodes), I want to compute the distance between them.   Is there some build in functionality in tikz to do this? If not, how can it be done using the mathematical engine?   The application I have in mind is to draw an circular arc centered at (a) and passing through some second point (b), where only (a) and (b) are known.


#include <stdio.h> int a[3] = {1,2,3};  void cal(int* item){     printf("Length(inside) is %lu\n", sizeof(item)/sizeof(item[0])); }  int main(){     printf("Length(outside) is %lu\n", sizeof(a)/sizeof(int));     cal(a); }   The code above comes out with the result that   Length(outside) is 3 Length(inside) is 2   However, it is wrong, because both of them should be 3, what's wrong with my code?

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


Possible Duplicate:          I don't know how Markdown recognize which language used in the code blocks. But sometimes it doesn't guess right.

I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?


I have a question ban on Stack Overflow. I read that I must improve my posts if I want to be unlocked, but I deleted 2 of my questions. How can I see the full list of my removed posts and undelete my questions? I would like to improve them.

What circumstances can cause a question or answer to be deleted, and what does that actually mean?    How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen?       For more information, see the articles about  and  in the .


Why do people say:     Where are you headed?   To me, it should be:     Where are you heading?   because you usually say "We are heading out" or "I was heading north". The initial sentence looks to me like passive voice.

Consider:  Two units are headed your way. Two units are heading your way. Don't get me started! Don't get me starting!  Is there any difference in meaning? And I don't see why passive voice is used here. I would think they have similar meaning here. Help me to clarify!


If I dropped book and feather from same height. Why book falls first, however book has more windage(air resistance), more area(square) than feather?

We all know that in an idealised world all objects accelerate at the same rate when dropped regardless of their mass.  We also know that in reality (or more accurately, in air) a lead feather falls much faster than a duck's feather with exactly the same dimensions/structure etc.  A loose explanation is that the increased mass of the lead feather somehow defeats the air resistance more effectively than the duck's feather.  Is there a more formal mathematical explanation for why one falls faster than the other?


Prove that $$\sum_{k=0}^n(-1)^k {{n}\choose{k}} = 0$$  I have no idea about how to approach this problem.

I'm sure there's an identity or some known "trick" to solve this but I couldn't find it (Looked in Wikipedia, Wolfram and here):  $$ \sum_{k=0}^n (-1)^k{n \choose k} =0 $$  I want to know how this can be proven. I tried induction but I'm not sure what to do with ${{n+1}\choose k}$.  Thanks!


How would I say?      I have gone to the cinema twenty times this year   Or I better say:     I have been to the cinema twenty times this year

I understand the difference between these constructions: "has gone to", "has been to", "has been in":   "has gone to" — there or on his way to; "has been to" — someone has been there but he is on his way back; "has been in" — someone is still there;   But now I am puzzled by next statements:   Have you ever been to / in Greece? — Yes, it's a very beautiful country; When did you last go to Canada? — I've never been to Canada.   If I use "has you ever gone to Greece" construction in the first case or "I have never gone to Canada" in the second statement will it be uncorrect? Or just will sound odd? May I say "I have never been in Canada" in the second sentence. Or in these case all of the variants are possible, the problem is in how people usually say it (in what how it perfectly sounds)?


I use a lot of applications on my Android phone, and I'd like to know which applications are using the Internet at a given point of time, and also the bandwidth consumed by each one of them.  from 2010 suggested , but it's not currently available for download.  Is there a way to accomplish this?

I have a Samsung Spica running Eclair (rooted). I've noticed on a number of occasions that inspite of the Autosync option turned off, the sync icon appears in the notification bar. By default, Gmail, Calendar & Contacts are set to sync whenever the Autosync option is turned on.  I don't use any scheduler app like Locale or Tasker.  Is there an app or some way to see which app is connecting to the Internet at any given time? Or can someone verify if this sort of behaviour of the sync icon appearing is normal?


Can someone please let me know if I can reopen my old Gmail address?  I deleted it about 2 years ago. I need to use this email again as I posted comments on YouTube video that I need to look at again.  Very urgent. Can you advise what I need to do to retrieve my old email address? Your assistance would be appreciated.  If I cannot reuse this account, is it possible to at least view my old YouTube comments with the old Gmail address so I can see my comments?

A long time ago, I created a Google mail account. I fell for a trap that was common back then (not sure how it is nowadays) and ended up with two Google accounts—one for Gmail (using the Gmail email address I would like to use) and one for everything else (using an email address at an external mail provider).  Hoping that I could associate my Gmail and my actual Google account, I deleted my Gmail account only to discover that deleted account names cannot be used again. So basically my old Gmail account along with the Google email address I would like to use is gone.  My main Google account got assigned a different Gmail account in the mean time.  Do you know if it is possible to re-use my preferred Gmail address? If possible, I would like to assign it to my main Google account. But I'd also be happy to have it as a second Google account, anything is better than the current situation.


For example, suppose I've data set and I want to perform a non-linear regression on the data set as follows: $Y=B_1e^{B_2 X} + B_3$ and I found that if I exclude $B_3$ the $R^2$ increased also standard error of the regression decreased, can I exclude $B_3$?

I am trying to calibrate two variables $(X,Y)$ of different measuring techniques from two instruments, the result of the linear regression analysis appears as shown in the image. The result shows the regression constant is not statistically significant but the model is significant. I have tried to remove the regression constant (it is a very small value close to zero) and $R$ of the new model is raised to 90%. Is it correct to remove the regression constant?


[ Flags ] public enum StatusType { a,b,c,d,e,f,g }  StatusType m_StatusType = a | b;  If ( m_StatusType only contains a and b )  // I need help here {   }   Hi,  I need some help on comparing flags. How can I know if a flag enum variable contains only some particular values?

From time to time I see an enum like the following:  [Flags] public enum Options  {     None    = 0,     Option1 = 1,     Option2 = 2,     Option3 = 4,     Option4 = 8 }   I don't understand what exactly the [Flags] attribute does.  Anyone have a good explanation or example they could post?


I am new to ArcGIS.   I have a data set with air pollution concentrations for 20 locations in the Netherlands. I would like to interpolate this data with IDW, so that I can estimate the approximate concentration for every address in the Netherlands.  I used the IDW geoprocessing tool in ArcGIS Pro. My problem is, that the estimation only is made for between the data points, which leaves the parts at the borders of the country without estimation (see image).   What I would like is to expand the size of the interpolation that all of the Netherlands is captured in the estimation.  I symbolized the Netherlands in this way:     I tried to define the extent of the interpolation in the IDW geoprocessing tool with the shape of the country that I acquired with the method in the link (under Environments, I set Extent to: Same as layer 'The Netherlands'). But then the interpolation is spread out way too far, like 10x the surface of the Netherlands.  Does this mean I should select the country in a different way to make it work?

I have been struggling to extrapolate beyond the extent of the point features input into the IDW tool of ArcGIS Pro.   I believe IDW interpolation is the method for me, i just need the process to extend beyond the input points slightly to fit a bigger area.   Specifying a mask in the environment settings seems only to clip the same extent (that is that of the input points), to the mask.


I am planning on installing Ubuntu on my computer that already has windows on it. I have a x64 based processor and windows is also in 64 bit operating system.  By using the uname -mcommand in the Ubuntu OS I get that it is x86_64 which I am guessing means that the Ubuntu I want to install also is a 64 bit operating system.  I have created an additional 20GB partition so all that is done too.  Is there anything else I should check before I install it or should it be fine to go ahead?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


From the , we know that if a k-dimensional random vector X = (X1, X2, ..., Xk) is (multi-variate) normally distributed if every linear combination of its components is normally distributed. This  that every component of X is also normally distributed. What about the reverse? What is an example of k-dimensional random vector X where each of X1, X2, ..., Xk are normally distributed but X is not? If there is a good example in 2-d, that would be even better, because I could plot the probability density in 3-D and visualize to improve my intuition. Motivation for this question: I have been studying professor Andrew Ng's  where we model a dataset using multi-variate normal distribution to detect anomalies / outliers. So, I am trying to understand when is it "ok" to model the data this way. For the univariate case, I can plot the data, and see if it "generally" follows a bell curve. But it's hard to get an understanding of a multi-dimensional dataset.

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?


Is there a way to limit the amount of items that show up on a Site Feed? We are using our Site Feeds as a sort of conversational wall. It seems to default showing 10 items, but I would really like to change it to show only 5. Is there any way to do this? I didn't see it in the configuration anywhere and there was no view for me to edit.

Newsfeed (within a site, as a microfeed) works really nicely on Sharepoint, except for the fact that I can't limit the Newsfeed webpart to a certain height (or number of posts). It looks like it is stuck at 10 and there's no way to change this from the interface/webpart editor. In some instances, the webpart can be so tall and not very wieldly.  So, granted there's no way to tweak it from the Sharepoint UI, is there a way to do it using another tool/via programming method, so we can set the initial post number to, say, 5 posts only?  Many thanks!


Sometimes I face this ethical dilemma when I want to downvote a bad answer but I'm not sure whether I should.  On the one hand, there's the chance of a conflict of interest: I have answered the question as well and deep down I want to win the green checkmark ;)  On the other hand, the answer is objectively bad or counterproductive.  Should I restrain from voting and let others in the community take care of the bad answer?

I just wrote an answer to , which was trying to find numeric strings with or without commas (e.g. 1,234,567.89). I wanted to be thorough because I've seen this problem a lot, both on SO and in real-world code.   When I finished, I found 7 other new answers waiting for me, mostly variations on each other. Which would be fine, except for one thing: They're garbage answers. Unless I'm severely mistaken, every answer but mine (so far) is deeply flawed, and I want to downvote all of them. Yeah, I'm a stickler on regex, but IMHO if your pattern lets stuff like  ...,.,,.,,..9 or even ... pass as "numeric input," then you've failed to meet even the bare minimum requirements.  Enough venting. The reason I'm whining to Meta about this is that I'm about to do something that'll REALLY look like tactical downvoting, and I'm mildly concerned about the consequences. If I answer a question and then rain downvotes on every competing answer, will I get flagged for abuse? That would certainly seem like suspicious behavior to me.  More of an opinion question: At what point does a semi-correct answer deserve a downvote? Obviously, if it were just a typo, I'd edit it myself. Where's the line between "close enough" and "this answer sucks?"  Basically, is it just me? You've seen the question; am I right that these answers deserve downvotes? Seven people thought that [0-9,.]+ was good enough to declare something a number, so why am I the only one who doesn't?    Note: I found some related questions, but nothing that seemed like a duplicate:    - More of an etiquette question, plus the voter hadn't posted his own answer.  - I guess this pretty much covers my second question.   Also, as some have noted, my answer ended up pretty long and thorough. I put in a lot of effort because, with all this talk about how the other answers sucked, I wanted to be extra sure mine didn't. I don't expect pages of detail in a normal SO answer.


Not a Duplicate Claim:  Before you flag this question as a duplicate of , please consider that I'm not discussing if such a warning is useful (I fully agree that it's useful), but instead I have problems following the advice given in the warning because I seem to have ran into a special case (deleted questions which I can't see anymore). This topic might need attention from an SE developer.  Question:  When I go to  then I get the warning     Wait! Some of your past questions have not been well-received, and   you're in danger of being blocked from asking any more.   along with some helpful links for resolving this issue.  However, when I go to my profile, I see only one question, and it's currently upvoted with 2. I think that this can't be the reason for the warning, so I don't understand why the warning is there.  Maybe in the past I had bad style questions on android.stackexchange.com which were deleted, but now I barely remember and I can't find them and I can't improve them. So the warning is there for a reason which I can't reconstruct. So ultimately, the warning is almost useless for me, except that it vaguely tells me to do better.  I think that this warning shouldn't be there, or that it should give me more information what I have been doing wrong. Can I switch it off somehow or do something else about it?

When I  question, It says following:     Wait! Some of your past questions have not been well-received, and   you're in danger of being blocked from asking any more.      For help formulating a clear, useful question, see: How do I ask a   good question?      Also, edit your previous questions to improve formatting and clarity.   Here is screen-shot:   So, What should I do? (How long to wait?)


Im trying to fix bugs, but i just cant find how to solve this part:  This is the error. The program runs a bit, then in throws null-pointer  Properties value: DEVELOPEMENT App is running... Exception in thread "main" java.lang.NullPointerException     at hu.citec.hazi.hazi.service.Service.print(Service.java:12)     at hu.citec.hazi.hazi.Main.run(Main.java:26)     at hu.citec.hazi.hazi.Main.main(Main.java:20)   my code: Repo class:  package hu.citec.hazi.hazi.repo;  import java.time.LocalDateTime;  @org.springframework.stereotype.Repository public class RepoImpl implements Repository {      public String getPropertyMsg() {         StringBuilder sb = new StringBuilder("Hello");         sb.append("\n")         .append("\t").append("HOME: ").append(System.getProperty("user.dir")).append("\n")         .append("\t").append("USER: ").append(System.getProperty("user")).append("\n")         .append("\t").append("TIME: ").append(LocalDateTime.now()).append("\n");          return sb.toString();     }      public String runTest(String msg) {         System.err.println(msg);         return msg;     } }   Repository interface:  package hu.citec.hazi.hazi.repo;  public interface Repository {  String getPropertyMsg();  String runTest(String msg); }   Service class:  package hu.citec.hazi.hazi.service;  import hu.citec.hazi.hazi.repo.Repository;  @org.springframework.stereotype.Service public class Service {  private Repository repo;   public String print() {     return repo.getPropertyMsg(); }  public String test(String msg) {     return  repo.runTest(msg); } }   MainConfig class:  package hu.citec.hazi.hazi.config;  import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.PropertySource;  import hu.citec.hazi.hazi.entity.User;   @ComponentScan("hu.citec.hazi.hazi") @PropertySource({ "classpath:application.properties", "classpath:application-${spring.active.profiles}.properties" }) public class MainConfig {  @Bean public User defaultUser(@Value("${project.profile.name}") String name) {      System.out.println("Properties value: "+ name );     return new User(name); }    }   Main class:  package hu.citec.hazi.hazi;  import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.stereotype.Component;  import hu.citec.hazi.hazi.config.MainConfig; import hu.citec.hazi.hazi.service.Service;  @Component public class Main {      @Autowired     private Service service;      public static void main(String[] args) {         ApplicationContext ctx = new AnnotationConfigApplicationContext(MainConfig.class);         Main main = ctx.getBean(Main.class);         main.run();     }      public void run() {         System.out.println("App is running...");          System.out.println("ÜDV! \n\t" + service.print() + "\n " +service.test("Sikeres teszt"));     } }   Maybe I have made some mistakes. Sorry about that.   I also got to write more details to make this qquestion pass.

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?


Let $M$ be a noetherian $R$-module and $I=\mathrm{Ann}_R(M)$. Then $R/I$ is a noetherian ring.   I was trying to show that $R/I$ is a submodule of $M^n$ if $M=\langle f_1,...,f_n\rangle$. Now $M$ is an $R/I$-module too. Now how do we try?

Let $M$ be an $R$-module and $\text{Ann}(M)=\{r \in R: rm =0 , \forall m \in M\}.$ Suppose $M$ is Noetherian. Could anyone advise me on how to prove $R/\text{Ann}(M)$ is also Noetherian?   Hints will suffice. Thank you.


I'm finding two different definitions for what the displacement of an object is:  1) How far the object is from a starting point in a specified direction (direction represented through a straight line with an arrow).  2)The position vector of the point which represents the location of the object.  Aside from the fact that definition 1 gives us a scalar quantity and definition 2 gives us a vector quantity, these two definitions sound as if the application of them produce similar conceptual understanding, and that there's simply a difference in methodology.  However, this is not the case. When textbooks (and my teachers) use definition 1, this "specified direction" remains constant no matter what point in time we examine the position of the object. When we use definition 2 however, the direction can constantly change as time progresses. People using these different definitions will give different answers as to what the magnitude of displacement is at a given time.  Let me give you a thought experiment so you can see what I mean. Suppose we have an object moving in a two dimensional plane (with a y-axis and x-axis), where we measure the position of an object at different points in time through Cartesian Coordiantes.Let: "x=t" and "y=x^2", where "t" represents time elapsed in seconds.  Someone using definition 1 will choose a direction beforehand for making measurements. Let the starting point be (0,0). They might choose the "positive y-direction"(a vertical straight line with the arrow pointing upwards) for making measurements of displacement.  After 3 seconds, the object will be at (3,9).Using the y coordinate we can see that (displacement)=9.  Now lets use definition 2 for examining the displacement after 3 seconds. The magnitude of displacement here is (90)^(0.5), by using the Pythagorean Theorem. (90)^(0.5)≠9. Also notice that the direction of this vector is obviously different from that in definition 1. By looking at different points in time we get different directions by applying definition 2.  And now for velocity. I'm fairly confident that velocity is the differential of displacement with respect to time, but because I don't know what the nature of displacement is, I don't know what the nature of velocity. Supposing that definition 2 is true, I would have to learn how differentiating works for vector quantities.        So I want to know what displacement REALLY is. Any answers would be much appreciated, since this topic is bugging me. This problem generalizes to understanding vector quantities as a whole. Anything mentioned about Forces would be a bonus for me, since I don't understand the proper way of describing them. I probably sound like a bit of an idiot entertaining definition 1 since displacement is described as a vector quantity from the get go (and not a scalar quantity) but I felt the need to do so in order to convey the frustration I'm feeling from reading conflicting sources of information.

What is the "official" or most useful definition of displacement in the context of kinematics?  There are two common ones:   Displacement is the length and direction of a line from a fixed reference point. (Basically position). Displacement is the change in position.   Textbooks using the first  definition  frequently define velocity as $v=\Delta s/\Delta t$ (where $s$ is displacement) but then for acceleration give equations such as $s=ut+1/2at^2$ (if they were consistent, they would have to use $\Delta s$). What throws me off is that  are the better textbooks.  A similar confusion comes through in Wikipedia: A  vector is the straight path between the initial and the final position. But  is defined as $v=\Delta d/\Delta t$.  Background: I am writing on a learning tool for students but different textbooks require them to learn contradicting definitions and I would appreciate your help on which is the right definition to learn.


I have a Server that is running SQL Server 2000 and I need to add a Reorganize Index Task.  I haven't been able to find a way to create a Maintenance Plan so I am performing maintenance tasks using SQL Jobs.  One of the tasks I want to perform is to reorganize the index.  What sql code do I need to use to reorganize an index?  I've seen the code ALTER INDEX ALL ON [TABLE] but I need to reorganize the index on all tables in the database rather than just an individual table and I want to avoid a looping script if possible.

Hi I've stumbled into the administration of a Legacy SQL 2000 server that has had next to no maintenance for the past 8 years (and is very slow).  As I have only been doing DBA / PT for the past 2 years (I'm primarily a Developer) I don't have allot of experience on 2000.  Can anyone point me in the direction of some maintenance, tuning scripts.  Just figured I'd ask first before I reinvent the wheel for something I will rarely use.  Thanks Guys / Girls !


I have a two-class problem. Let's call the first class W1 and the second W2. I am trying to find the posterior distributions of both W1 and W2. I assume W1 and W2 have normal distributions with mu_1 = 4, sigma_1 = 2, mu_2 = 6, sigma_2 = 3 and with priors P(W_1) = 0.5 and P(W_2) = 0.5. I know the denominator is supposed to be a normalization constant... but looking at the formula I don't understand how the denominator would become a constant. Aren't P(X|W_1)P(W_1) and P(X|W_2)P(W_2) both distributions? Would I have to sum all the values of both distributions together? Thanks for any help and I apologize if this is a silly question. Code attempt is below: P_w1_likelihood <- rnorm(n = 1000,mean = 4,sd = 2) P_w1_prior <- 0.5  P_w2_likelihood <- rnorm(n = 1000,mean = 6,sd = 3) P_w2_prior <- 0.5  P_w1_posterior <- P_w1_likelihood*P_w1_prior/(sum(P_w1_likelihood*P_w1_prior)+sum(P_w2_likelihood*P_w2_prior)) P_w2_posterior <- P_w2_likelihood*P_w2_prior/(sum(P_w1_likelihood*P_w1_prior)+sum(P_w2_likelihood*P_w2_prior))  Posteriors <- data.frame(   "Posterior" = c(P_w1_posterior,P_w2_posterior),   "Distribution" = c(rep("W1|X",times = 1000),rep("W2|X",times = 1000)) )  ggplot(Posteriors,aes(x = Posterior,group = Distribution,fill = Distribution))+   geom_histogram(alpha = 0.7)+   scale_fill_manual(values = c("orangered","darkorchid2"))

I have a two-class problem. Let's call the first class W1 and the second W2. I am trying to find the posterior distributions of both W1 and W2. I know I can use the following formula to do so... $$ P(W_j|X) = \frac{P(X|W_j)P(W_j)}{P(X)} $$ where $$ P(X) = \sum_{i=1}^{2}P(X|W_i)P(W_i) $$ So if I was trying to find the posterior distribution of W1, I would do the following $$ P(W_1|X) = \frac{P(X|W_1)P(W_1)}{P(X|W_1)P(W_1)+P(X|W_2)P(W_2)} $$ I know the denominator is supposed to be a constant... but looking at this formula I don't understand how the denominator would become a constant. Aren't $P(X|W_1)P(W_1)$ and $P(X|W_2)P(W_2)$ both distributions. Would I have to sum all the values of both distributions together? Thanks for any help and I apologize if this is a silly question. Code attempt is below: P_w1_likelihood <- rnorm(n = 1000,mean = 4,sd = 2) P_w1_prior <- 0.5  P_w2_likelihood <- rnorm(n = 1000,mean = 6,sd = 3) P_w2_prior <- 0.5  P_w1_posterior <- P_w1_likelihood*P_w1_prior/(sum(P_w1_likelihood*P_w1_prior)+sum(P_w2_likelihood*P_w2_prior)) P_w2_posterior <- P_w2_likelihood*P_w2_prior/(sum(P_w1_likelihood*P_w1_prior)+sum(P_w2_likelihood*P_w2_prior))  Posteriors <- data.frame(   "Posterior" = c(P_w1_posterior,P_w2_posterior),   "Distribution" = c(rep("W1|X",times = 1000),rep("W2|X",times = 1000)) )  ggplot(Posteriors,aes(x = Posterior,group = Distribution,fill = Distribution))+   geom_histogram(alpha = 0.7)+   scale_fill_manual(values = c("orangered","darkorchid2"))


I have a problem complete figuring out the difference between Deviance and Pearson residuals. So what I have intepreted both deviance and Pearson residuals are kind off a distance measurement between the y and the mean in generalized linear models. But then how can we extinct one from the other?

In answering  question John Christie suggested that the fit of logistic regression models should be assessed by evaluating the residuals.  I'm familiar with how to interpret residuals in OLS, they are in the same scale as the DV and very clearly the difference between y and the y predicted by the model.  However for logistic regression, in the past I've typically just examined estimates of model fit, e.g. AIC, because I wasn't sure what a residual would mean for a logistic regression.  After looking into  a little bit I see that in R there are five types of glm residuals available, c("deviance", "pearson", "working","response", "partial").  The help file refers to:     Davison, A. C. and Snell, E. J. (1991) , eds. Hinkley, D. V., Reid, N. and Snell, E. J., Chapman & Hall.     I do not have a copy of that.  Is there a short way to describe how to interpret each of these types?  In a logistic context will sum of squared residuals provide a meaningful measure of model fit or is one better off with an Information Criterion?


Does anyone know how to solve this error? I tried viewing the content of the files in question, but I can only see weird characters.  cannot load module `/usr/lib/vlc/plugins/gui/libqt4_plugin.so' (/usr/lib/libEGL.so.1: undefined symbol: _mali_clz_lut)

VLC suddenly stopped working, this is what I get now when I try to run it:  main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. main interface error: option qt-volume-complete does not exist skins2 interface error: no suitable dialogs provider found (hint: compile the qt4 plugin, and make sure it is loaded properly) skins2 interface error: cannot instantiate qt4 dialogs provider   I tried reinstalling multiple times, and there is no other program using the qt4 libraries. Also, the command line interface doesn't appear to do anything. When I try to "force" the qt4 interface, I get:  main interface error: no suitable interface module main libvlc error: interface "default" initialization failed   ldconfig -p | grep libQt:  libQtXmlPatterns.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4 libQtXml.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtXml.so.4 libQtSql.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtSql.so.4 libQtScript.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtScript.so.4 libQtNetwork.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtNetwork.so.4 libQtGui.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtGui.so.4 libQtDeclarative.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtDeclarative.so.4 libQtDBus.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtDBus.so.4 libQtCore.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtCore.so.4 libQtCLucene.so.4 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4


What is the filter size for Nikon D5100 with 18-55mm lens kit?   Is it 52mm or 58mm?

I was looking to get a circular polarizing filter and an UV filter for my Canon 550D, 18-135mm lens. When I checked online I found these filters came in different sizes, like 62mm, 67mm, 72mm, 77mm. How do I know which is right?  Also, will there be any degradation of photo quality if I put both these filters on the lens?


Is there anybody, who is able to install Ubuntu 12.04 or 14.04 (64bit) on Lenovo Thinkpad T440p and get fully functional NVIDIA Optimus? This laptop model is certified by Canonical to be fully supported by Ubuntu, but install Ubuntu 14.04 is nearly impossible, due to the fact, that 14.04 desktop ISO image crash during initial boot.   Any help?  See, for exmaple:   Add info regarding bad 12.04 support:

Is there anybody, who is able to install and fully configure Ubuntu 12.04 or 14.04 on Thinkpad T440p (ver 20AN)? If yes, could you post here your procedure step by step?  Please does not include your experience with any other ThinkPad models.  Edit: Situation is not so simple, see:


Would i simply create a bootable grub install and copy the files from the iso over, then edit the commands as needed?

Is there any way to create a bootable Ubuntu USB flash drive from the terminal without using any third-party applications like , , ,  etc.  I tried to create a bootable Ubuntu flash drive with dd method,  sudo umount /dev/sdb sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=1M   It creates files on the USB disk, but when I try to boot the USB disk it shows an Operating System Not Found error.


In   comments, the user has been able to submit a custom off topic reason that says:     This question appears to be off-topic because it is about   While it's not really feasible to check for complete sentences, can the system at least detect when the user does not add anything of significance to the custom off topic reason and act accordingly? Maybe it can open up a dialog saying "Please enter a custom comment", or let the vote through without leaving the autocomment.

It appears that it's possible to select the "Other" off-topic close reason, and vote to close without actually providing a close reason. This results in a custom close reason and comment which read:     This question appears to be off-topic because it is about     It should be required that someone actually alter the comment text before being able to submit the "Other" close reason.


Consider the following document:  \documentclass{memoir} \usepackage{tabu}  \makeindex  \begin{document}  This is the \emph{aaa} variable.\index{aaa variable@\emph{aaa} variable}  \begin{tabu}{l} \emph{aaa}\index{aaa variable@\emph{aaa} variable} \end{tabu}  \printindex  \end{document}   In this document I use the index string \index{aaa variable@\emph{aaa} variable} twice, once outside a tabu environment, once inside it. The result is that the generated .idx file contains these lines:  \indexentry{aaa variable@\emph{aaa} variable}{1} \indexentry{aaa variable@\emph  {aaa} variable}{1}   which means that \printindex will print two entries in the index, rather than just one.  What can I do?  EDIT  A comment referred me to a related question where a \string in front of \emph in the tabu environment would solve the problem, and indeed it does.  But if I need to use the tabu* environment instead of tabu this still not works.  Replacing tabu with tabu* and \index{aaa variable@\emph{aaa} variable} with \index{aaa variable@\string\emph{aaa} variable} inside the environment, gives me this content in the .idx file:  \indexentry{aaa variable@\emph{aaa} variable}{1} \indexentry{aaa variable@\string \emph {aaa} variable}{1}

In document class book, and package caption, creating index with makeidx. Index entries for the main text and for footnotes collate properly; but those for captions create their own entries.  Example: for the tag \index{New York!Custom House!\textit{Cartouche}}, text and footnotes collate properly; but used in a caption, a new entry is created at the third level, and is also out-of-alphabetic-sequence. Note: the top level, and first sub are correct; only the second sub is duplicated.  How to get the caption index entries under the same entry?


I bought recently a Lenovo E490. This laptop only comes with Windows 10. So I made a new partition and installed Ubuntu on it. Used manly for programming, but sometimes I playing one or two rounds of CS:GO.  The specs are:   Intel i7, 8th generation 16 gig RAM 512 SSD Radeon RX 550X / Intel UHD 620   But I only could play on ultra low settings with a resolution of 1600x900. I figured out, that Ubuntu doesn't used the dedicated rx500x. So I tried to used switcheroo-control. Didn't changed. I set DRI_PRIME=1 steam. Also didn't brought the beneficial change.  But what all these steps above did, the game crashes without any error and I get thrown to my desktop and the game ended.  I also tried to install the amdgpu-pro driver, but I did that, I couldn't start up ubuntu anymore. Had to remove that from the cli.  So I just want to have the basic setup when I installed Ubuntu 3 months ago. Is there a reset option? Of course without losing my local git branches, etc. I did every week a backup with dejavu.

I've had a lot of problems lately and now I'm having problems logging in at the login screen. I'm giving up and just want to reset and start over. How can I "factory reset" Ubuntu, in this situation, or, for future reference, in general?


I have done a little study on stackoverflow like  [they talk on OOP perspective] and others. But, none adequately answer my question. I would also like to know the pros and cons of each. What I have now is a DB class as:  class DB extends DBWrapper{      private static $pdo = null;      public static function getInstance(){         if(self::$pdo == null){             self::PDOConnect();         }         return self::$pdo;     }      private static function PDOConnect(){         try{             self::$pdo = new \PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASS);             self::$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);             self::$pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false);         } catch (\Exception $e){             die("Database Connection Failed");         }     } }

What is the benefit of using singleton instead of global for database connections in PHP? I feel using singleton instead of global makes the code unnecessarily complex.  Code with Global  $conn = new PDO(...);  function getSomething() {     global $conn;     .     .     . }   Code with Singleton  class DB_Instance {     private static $db;      public static function getDBO()     {         if (!self::$db)             self::$db = new PDO(...);          return self::$db;     } }  function getSomething() {     $conn = DB_Instance::getDBO();     .     .     . }   If there's a better way of initializing database connection other than global or singleton, please mention it and describe the advantages it have over global or singleton.


Let $(X,\tau)$ be a topological space. Consider $X^2$ with the product topology. Show that $X$ is Hausdorff iff the diagonal $D = \{(x,y) \in X^2 \mid x=y\}$ is a closed subset of $X^2$.

Let $X$ be a topological space. The diagonal of $X \times X$ is the subset $$D = \{(x,x)\in X\times X\mid x \in X\}.$$   Show that $X$ is Hausdorff if and only if $D$ is closed in $X \times X$.   First, I tried to show that $X \times X \setminus D$ is open using the fact that $X \times X$ is Hausdorff (because $X$ is Hausdorff), but I couldn't find an open set that contains a point outside $D$ and is disjoint to it...


Can we build two messages with same MD5 but different size? I researched MD5 collisions, but everything I found targets messages of the same size.

There are many examples of MD5 collisions (some of them can be found here ). But as far as I know two inputs should have the same length to have the same MD5 (or same hash in general). Is it correct? Is there any proof of that?  Or otherwise examples of inputs of different lengths with the same MD5?


The following code creates a string array 'one' as [c, a, t, a, n, d, d, o, g]. Now I want to create an int array 'two' in which place of every 'a' is  3 and all other places are filled by 5 forming   int two= {5, 3, 5, 3, 5, 5, 5, 5, 5}   but the code is giving  every element equal to 5, so it prints as   5 5 5 5 5 5 5 5 5 :   The code I used starts here:      import com.google.common.collect.ObjectArrays; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.commons.lang3.ArrayUtils;  public class StringInt {   public static void main(String[] args) {        String str= "cat and dog";       String[] word = str.split("\\s");        String[] one = new String[0];       for(int i=0; i<word.length; i++){            one = ArrayUtils.addAll(one, word[i].split("(?!^)"));       }           System.out.println("One : " + Arrays.toString(one));          int[] b = new int[one.length];          for(int j=0; j<one.length; j++){             if(one[j]=="a"){                 b[j]=3;              } else {                 b[j]=5;              }             System.out.print(b[j]+" ");            }          }    }   Being new to programming and java I need help to rectify this code to get the required output:  5  3  5  3  5  5  5  5  5

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Is there someone show me Why this is not true ?  $$-1=(-1)^1=(-1)^\frac{2}{2}=({(-1)}^{2})^{1/2}=\sqrt{1}=1$$  then :$$-1=1$$  Thank you for any help

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I've a fix35 branch from master contains 20 .dll files. What I did was replacing several of them with the same name .dll files to fix a bug. Then what I wanted was merging fix35 into master. In other words, now I want master exactly the same as fix35.   But git told me 4 .dll files got conflicts, and I got to resolve them manually. For dlls, it looks like I can't manually edit them.   May you point me a right direction?

I've been using Git on Windows (msysgit) to track changes for some design work I've been doing.  Today I've been working on a different PC (with remote repo brian) and I'm now trying to merge the edits done today back into my regular local version on my laptop.  On my laptop, I've used git pull brian master to pull the changes into my local version. Everything was fine apart from the main InDesign document - this shows as a conflict.  The version on the PC (brian) is the latest one that I want to keep but I don't know what commands tells the repo to use this one.   I tried directly copying the file across onto my laptop but this seems to break the whole merge process.  Can anyone point me in the right direction?


I need to run an rsync command from Python. Is this possible and if so, how do I do it?  rsync -Ccavz --delete DJStatic username@website

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I have a geo tiff image of a County/State consisting of useful bands data. I have a kml/geojson file consisting of many small territories' boundaries inside this State/County. I would like to clip geotiff Image at all small territories and export it as a tiff. I cant clip each small sub-territory manually as there are around few thousands of them.  How this can be accomplished in rasterio?

I wrote the function which cutting geotiff image by bounding box.  First image is original. At second you can see result off my code. I don't use gdalwarp or any console utilities. But I have no idea how to cut by geojson file. Also I can use only GDAL and numpy modules.       Here is my code:  import os, sys from osgeo import gdal,gdalconst,osr   def cut_by_bounding_box(min_x, max_x, min_y, max_y):     xValues = [min_x, max_x]     yValues = [min_y, max_y]     #     # Register Imagine driver and open file     #     driver = gdal.GetDriverByName('GTiff')     driver.Register()     dataset = gdal.Open(filename)     if dataset is None:         print 'Could not open ' + filename         sys.exit(1)     #     # Getting image dimensions     #     cols = dataset.RasterXSize     rows = dataset.RasterYSize     bands = dataset.RasterCount     #     # Getting georeference info     #     transform = dataset.GetGeoTransform()     xOrigin = transform[0]     yOrigin = transform[3]     pixelWidth = transform[1]     pixelHeight = -transform[5]     #     # Computing Point1(i1,j1), Point2(i2,j2)     #     i1 = int((xValues[0] - xOrigin) / pixelWidth)     j1 = int((yOrigin - yValues[0]) / pixelHeight)     i2 = int((xValues[1] - xOrigin) / pixelWidth)     j2 = int((yOrigin - yValues[1]) / pixelHeight)      new_cols = i2 - i1 + 1     new_rows = j2 - j1 + 1     #     # Create  list to store band data in     #     band_list = []     #     # Read in bands and store all the data in bandList     #     for i in range(bands):         band = dataset.GetRasterBand(i+1) # 1-based index         data = band.ReadAsArray(i1, j1, new_cols, new_rows)         band_list.append(data)      new_x = xOrigin + i1 * pixelWidth     new_y = yOrigin - j1 * pixelHeight     new_transform = (new_x, transform[1], transform[2], new_y, transform[4], transform[5])     #     # Create gtif file     #     driver = gdal.GetDriverByName("GTiff")     dst_ds = driver.Create(output_file, new_cols, new_rows, 3, gdal.GDT_Byte)     #     # Writting output raster     #     for j in range(bands):         data = band_list[j]         dst_ds.GetRasterBand(j+1).WriteArray(data)     #     # Setting extension of output raster     #     dst_ds.SetGeoTransform(new_transform)     wkt = dataset.GetProjection()     #     # Setting spatial reference of output raster     #     srs = osr.SpatialReference()     srs.ImportFromWkt(wkt)     dst_ds.SetProjection( srs.ExportToWkt() )     #     # Close output raster dataset     #     dataset = None     dst_ds = None   if __name__ == '__main__':     # Imput/output file name and set directory     os.chdir('/home/sant/test/satellite_images')     filename = '20160501.tif'     output_file = '/home/sant/test/20160501_cutted_by_bounding_box.tif'     cut_by_bounding_box(531961.73, 535987.34, 4894164.57, 4888631.61)     print 'cutter.py script done!'


I followed the tutorial on  and there is no error in the syntex. There seems to be no problem in the code and I have added the JACKSON jar files to the library also in Netbeans using the standard method of adding a library to a Netbeans project. Still I am unable to convert the JSON string to the java object. Here is my code.  class Car {      private int doors;     private String brand;      public int getDoors() {         return doors;     }      public void setDoors(int doors) {         this.doors = doors;     }      public String getBrand() {         return brand;     }      public void setBrand(String brand) {         this.brand = brand;     }      void printCar() {         System.out.println("car.brand = " + getBrand());         System.out.println("car.doors = " + getDoors());     }  }//class Car ends here.   Here is the code using method readValue of class ObjectMapper  import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger;  public class ObjectMapperExampleWithString1 {      public static void main(String args[]) {         ObjectMapper objectMapper = new ObjectMapper();          String carJson                 = "{ \"brand\" : \"Mercedes\", \"doors\" : 5 }";          Car car = null;         try {             car = objectMapper.readValue(carJson, Car.class);         } catch (IOException ex) {             Logger.getLogger(ObjectMapperExampleWithString1.class.getName()).log(Level.SEVERE, null, ex);         }         if (car != null){             car.printCar();         }else{             System.out.println("Object car of type Car is null. Problem!!!");         }      } }   And here is the exception that I get.     run:   Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.JavaType.isReferenceType()Z       at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findDefaultDeserializer(BasicDeserializerFactory.java:1522)       at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.findStdDeserializer(BeanDeserializerFactory.java:167)       at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:132)       at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:403)       at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:352)       at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)       at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)       at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)       at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:461)       at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:3804)       at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3698)       at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2714)       at myJackson.ObjectMapperExampleWithString1.main(ObjectMapperExampleWithString1.java:18)   Java Result: 1   BUILD SUCCESSFUL (total time: 0 seconds)

I'm getting a NoSuchMethodError error when running my Java program.  What's wrong and how do I fix it?


Which is preferred:     Children will have their picture displayed.   OR   Children will have their pictures displayed.   The actually photographs of children not drawings

In a situation where say a group (or at least a plurality) of men is being addressed — for example on a sign passed by many married men — which is correct?  "Remind your wife."  or  "Remind your wives."


Since the Miktex Update yesterday LuaTeX doesn't work any longer. Running from command line, I only get the following output:  >lualatex Main.tex This is LuaTeX, Version beta-0.79.1 (MiKTeX 2.9 64-bit) (rev 4971)   and nothing thereafter. Anyone got the same problem or an idea how to solve it? FNDB and Formats are updated.

After updating packages of MiKTEX 2.9 lualatex stopped working.  I execute this code:  \documentclass[12pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[] at (0,0) {A}; \end{tikzpicture} \end{document}   and I get this error:  "Process started: lualatex.exe -synctex=1 -interaction=nonstopmode "test".tex Error: Command crashed: lualatex.exe -synctex=1 -interaction=nonstopmode "test".tex Process exited with error(s)"   Why does the command crash? What should be done to continue my work?   PDFLatex and XeLatex work fine, but I need lualatex, cause my thesis is with lualatex.


<input id="ok" />   $('.hor-minimalist-a').on('blur','#ok',function(){  });   with this code above, i can handle events which fire If i leave the input field.   How can I detect if someone clicks outside of inputfield without coming to input. I mean the user never came to this input field before, so there was no focus at all.   $('.hor-minimalist-a').on('?','#ok',function(){   ? });

I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });


I'm on (an upgraded) 64bit Ubuntu 15.04 and am using Skype 4.3.0.37. It had been working fine, but today I couldn't seem to login any more. The load circle keeps going round and round. Internet connection seems fine, username/login combination is correct, yet it just won't connect. Nor does it give a "no connection" error or something similar. So not sure what is causing the delay.  I tried fully removing and reinstalling skype and its folder, but that did not do any good either.  Anyone got a solution for this problem?

I have being using Skype for a long time on my Ubuntu 14.04 LTS. From this morning on, Skype simple cannot connect to my account anymore.  That is my Skype version:     Skype 4.3.0.37   © 2014 Skype and/or Microsoft   My Ubuntu system:  LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description:    Ubuntu 14.04.3 LTS Release:    14.04 Codename:   trusty   Any suggestion why or how to fix it?  Thanks in advance.


I want to make a minigame world where you press a button and it has 3 command blocks behind it that teleport you to different areas. But I don't know how to make it select one random command block

I'm working on a game for my Minecraft server that includes the element of chance.  The idea is that there are 6 buttons. One of them (randomly determined by redstone circuitry) results in wealth, prizes, etc. The other five result in doom.  When you enter the room the doors close initiating the game and beginning the primary circuit which selects which of the 6 buttons is the winning button. How to actually make the circuitry do this is my problem! I've got the door controls, win/lose circuits, and the reset circuit to prepare the room for the next player all worked out, but I'm stumped on how to make redstone do something random.  How can I use redstone to choose one of the 6 buttons to be active, randomly?


Airplane mode is always on so can't use wifi. How to solve?

When I use gnome network manager it indicates that wireless is disabled by hardware switch while it is not. Even in windows I can not turn on my wireless!


I've just imported a soil map of Ireland into QGIS.  However, all soil associations are displaying in one colour.  The associated zip file includes a 'layer file' containing the colour scheme for the soil associations in ESRI ArcGIS format - please can someone tell me if and how I might import this into QGIS?

I am putting together a GIS server using GeoServer and need some help with importing my layer styles from ArcGIS 10 to  format.    I have one layer in ArcMap properly symbolized and labeled, how can I get this layers symbolization and labeling into a SLD file?


I have six directories with command files. These are /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin and /usr/local/sbin.  What are the differences between these? If I'm writing my own scripts, where should I add them?    Related:

In Windows there’re perhaps only a couple of important folders (by important I mean important in my logical picture of the Windows file system) in the installation drive (in my case C:\). Namely Program Files and Windows. I simply stay away from Windows folder and the “add remove program files” is good enough to handle the program files folder of Windows. Of course there’s a folder named Users where the users (who are not admins) can access only their folders.  Thus there’s a clear picture at some level in my mind of the Windows file system. In Ubuntu, when I reach the location /, there’s a huge list of folders, most of which I have no clue as to what they contain. The /bin folder seems to be the equivalent of the Windows folder in windows. The /usr folder seems like it’s the equivalent of the Users folder in Windows. But even the /home folder looks like it can fit the bill.  Please understand that I do understand, that Ubuntu (Linux) has a different character than that of Windows, i.e., there need not be exact equivalent of Windows functions, in Ubuntu. All I am looking for is a bit more clearer picture of the Ubuntu file system.   This question is a part of a bigger question which I am splitting up to make it more answerable. The original question can be found here:


What is the difference between the statements  $$\exists K> 0\, \forall x \in \mathbb{R}\, : |f(x)|< K   $$ and  $$\forall x \in \mathbb{R}\, \exists K> 0\, : |f(x)|< K   $$ I know what $\forall$ and $\exists$ mean but I just can't see a difference between the two statements? I know that say $f(x)=x^4$ has the first property I just don't really understand why. Any help would be gratefully appreciated.

I am reading nested quantifiers. I am confused in between two cases,   1. Existential Quantifier before Universal Quantifier  2. Universal Quantifier before Existential Quantifier   I would be very thankful if someone highlights the difference between them and also give an example.   Thanks in advance.


Why are the pictures not filling, when I use style property for background-image url. What is shown on the page :       body {     background-image: url("../Bilder/ikkephotoshopped.jpg"),                      url("../Bilder/photoshopped.jpg" );     }    the pictures suppose to go into the page

Is it possible to have two background images?  For instance, I'd like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the entire page is behind the one which repeats across the top.  I've found that I can achieve the desired effect for two background images by setting the background of html and body:  html {     background: url(images/bg.png); }  body {     background: url(images/bgtop.png) repeat-x; }   Is this "good" CSS?  Is there a better method?  And what if I wanted three or more background images?


I have this rather long text which is the output of a several console inputs. I'd like to have the text as it is as of right now.  Here a link to the raw text since I didn't want to include it in this post:    I tried replacing the special characters with the correspondending escape characters. But it still causes a lot of issues. I am fairly new to LaTeX too.

Is there any way to include Python code in a LaTeX file and automatically color its syntax? Is it possible to do syntax coloring with any other language? If yes what packages can I use to do that?


In Java you can create a class, like Bicycle, and then a subclass of that class, RoadBike.  You could then instantiate a RoadBike object like this:  Bicycle bike = new RoadBike();   or like this:  Roadbike bike = new RoadBike();   or even like this:  Object bike = new RoadBike();   My question is, what is the purpose of declaring a specific object, like RoadBike, as a more general type, like Object or Bicycle? Why and when would you do this, and does it take more memory to declare it as a more general object?

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


I have a dualboot setup,but I cannot see how to change some color. I keep getting the black and grey stuff. If I change some line in the grub.cfg file and when I do update-grub it reverts back to black. The only thing that the graphical GRUB customizer was able to do is change the default boot order and sound a beep. It can do nothing about the colors! I can not really read Ruby if that is what it is. Where can I comment something out or put a line in that let's me see some effect?

I managed to change the background on the boot screen and now I need to set the font colours to something I can read. I've been lurking around the Ubuntu Forums and the Ask site and I've also tried with the grub-customizer with no luck. All I need is the right code for grub file.  Here's a copy of my current grub:  GRUB_DEFAULT="saved" GRUB_SAVEDEFAULT="true" #GRUB_HIDDEN_TIMEOUT="0" GRUB_HIDDEN_TIMEOUT_QUIET="true" GRUB_TIMEOUT="10" GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_BACKGROUND="/home/autumn/Pictures/grub/suckng.jpg"  menu_color_normal=black/black menu_color_highlight=yellow/dark-gray color_normal=black/black color_higlight=black/black


Should one use regression analysis when all independent variables are binary categorical (0,1) to see their effect on continuous dependent? Some suggest that regression shouldn't be used in this case.

I am trying to fit a model to predict a quantitative response variable, using several binary variables. In particular, I am interested in measuring the relationship between one of the binary variables and the outcome variable, holding the other binary variables constant.  My inclination is that ANOVA is the appropriate method to use. The advantage of ANOVA over a series of t-tests should be avoiding Type 1 errors. But I seem to recall from stats that ANOVA is primarily designed for predictor variables with more than 2 levels, aka not binary.   Which is preferable?  Final question: is there any reason not to use multiple regression in this case? Thanks.


I'm using 18-55 canon kit lens on Canon 700D body, the lens works fine with f/3.5 to f/14 , when increase that to f/16 , f/22 a black dot appears on the image, I have tried cleaning lens and body body. Please help.

I took some shots recently and I noticed that I'm getting a lot of little black dots in my images.  I cleaned my lens thoroughly with the Nikon camelhair brush and retook the pictures but once again, the dots appear.  I'm shooting with a Nikon D7000 and using a starter lens. I've attached an example (notice the black spots on the chairs, on the ceiling, etc).


Why is $\lim\limits_{n\to\infty}(1+\frac1n)^n=e$?  I think it involves $\sum\limits_{n=0}^\infty\frac1{k!}=e$ but not sure how to get from one to the other.

I guess the proof of the identity $$ \sum_{n = 0}^{\infty} \frac{1}{n!} \equiv \lim_{x \to \infty} \left(1 + \frac{1}{x}\right)^x $$ explains the connection between such different calculations. How is it done?


macOS creates a history or previous version of each any every document/file I edit and this not only happens across the os but also happens across every mac apps.  These version files takes up huge chunks of unnecessary storage so how can I stop macOS from making this histories/previous document versions and storing it on your HDD.  I don't have Time Machine backup enabled and it still stores and saves the previous versions of a file!

I hate the automatic saving and versioning in Mac OS X Lion.  Is there a way to completely turn it off?  (This has been asked before , but the answer and the linked article are completely wrong, so I thought I'd try again.)


I'm running 18.04TLS, and have Cockpit version 164-1.  If I go to  I see there's a new package 170-1, but I can't install it, because it is not Stable.  Is there any workaround to use these packages to install the new version? I don't want to build it from source.

How to enable the backports repository so I can get newer versions of software?


When you post  with more then 200 internal links, only the first 200 are automatically converted to show question titles. All internal links after the first 200 just display the URL.

On this  there are more than 50 links to Stack Overflow questions. However, the last 6 links aren't converted to titles (http://facebook.stackoverflow.com/questions/6530420/control-the-image-that-facebook-shows-when-i-like-a-url should be converted to ).   However:  all http://facebook.stackoverflow.com/... into http://stackoverflow.com/... fixes this, both in the preview and the final result. Also, the preview won't show any title for http://facebook.stackoverflow.com/... links.  My question is, what limitations does this converting have? How are these question titles retreived? Via API? Through database?  I'm not sure about title, feel free to edit that


I find a lack of coherency between the many people that review in SO specially related to new-users. The actual help says:     No Action Needed when this post needs no action from you.      I'm Done is only available if you've done one of the following:         Vote up or down to rate the answer's helpfulness   Edit to improve theanswer's appearance, clarity, or accuracy    Comment to leave constructive feedback for the author, or vote up existing comments   Flag to notify the moderators of serious problems         Be sure to leave a comment if you can help the user out, or click Skip if you are not sure and want to go to the next item.   But which is the most important which should be done first? Which would be a manual, guideline to do with this post? I adapted  to a similar question but focusing in review, not so much on interaction with the user.   Flag if it is appropiate Edit 2.1 Edit the grammar 2.2 Edit code/ quoted blocks 2.3 Edit tags Up/Down Vote Comment 4.1 Something to improve of the question 4.2 Require more details to answer the question 4.3 Refer to a manual/help page   Is this a good protocol? I tried  not to forget to .

About reviewing The review queues contain posts that possibly need further action from the community, like improvement, closure or deletion. By presenting those posts for peer-review, the system aims for higher quality content. Some user actions, such as suggesting an edit, casting a flag, close vote or reopen vote, or posting for the first time, can trigger the inclusion of a post on a review queue. There are also posts included on the queues algorithmically, such as the contents of Late Answers and Low Quality Posts. General guidelines  Always read the full post you are reviewing. Don't rush. Take the necessary time to read the post carefully. If you don't care about a post, just click Skip or Not sure. When you need more context, open the post link to see the question and all answers. Most posts coming up for review can be improved. Use the Edit option, and edit thoroughly. If you're unsure how to review a post (perhaps it's outside your areas of expertise), skip it. Someone who understands it better will review it later.  Guidelines for specific review queues         (Stack Overflow only)


I want to convert the NSString into asterix (*) format depending on the length,So how to do it..  if([str1 lenght]) {     str2 = "*"; }   Regards Ranjit

This should be easy, but I'm having a hard time finding the easiest solution.  I need an NSString that is equal to another string concatenated with itself a given number of times.  For a better explanation, consider the following python example:  >> original = "abc" "abc" >> times = 2 2 >> result = original * times "abcabc"   Any hints?    EDIT:  I was going to post a solution similar to the one by , after looking at this implementation from the OmniFrameworks:  // returns a string consisting of 'aLenght' spaces + (NSString *)spacesOfLength:(unsigned int)aLength; { static NSMutableString *spaces = nil; static NSLock *spacesLock; static unsigned int spacesLength;  if (!spaces) { spaces = [@"                " mutableCopy]; spacesLength = [spaces length];     spacesLock = [[NSLock alloc] init]; } if (spacesLength < aLength) {     [spacesLock lock];     while (spacesLength < aLength) {         [spaces appendString:spaces];         spacesLength += spacesLength;     }     [spacesLock unlock]; } return [spaces substringToIndex:aLength]; }   Code reproduced from the file:  Frameworks/OmniFoundation/OpenStepExtensions.subproj/NSString-OFExtensions.m   on the OpenExtensions framework from the  by .


I want to calculate limit of  $\lim _{\left(x,y\right)\to \left(0,0\right)}\left(\left(xy\right)\ln \left(x^2+y^2\right)\right)$ using Squeeze theorem or using definition of limit. please help

First I let $x=r\cos \theta, y = r\sin \theta$ and so limit  $$\lim_{r\to 0} r^2\sin2\theta \log(r)$$  Now, in region $0<x<1$, $\log(x) < 1/x$  $$|r^2\sin 2\theta \log (r) - 0| < |r\sin 2\theta| \le |r| < \delta < \epsilon$$  So limit exist if $\delta < \epsilon$ and limit is 0.    Other way, I used L hospital, I don't know if we can apply, but I wrote $r^2 \log r$ as $\log(r) / (r^{-2})$ which again gave 0.


The March 2014 issue of Physics Today has an article by Lee Smolin in which he argues that natural laws must change over time. As examples of such theories, he gives Penrose's CCC and his own cosmological natural selection (CNS):  My understanding was that CNS had already been falsified in 2010 by the discovery of a 2-solar-mass pulsar:  But in the Physics Today article, Smolin says that CNS makes predictions and that, "The two main predictions,[4] first published in 1992, have survived despite several chances to falsify them since.[7] One of those is actually easy to state: The upper mass limit of neutron stars is at most two solar masses." The footnotes are:  [4] L. Smolin, Class Quantum Grav 9, 173 (1992); The Life of the Cosmos, Oxford U Press, New York (1997) [7] L. Smolin,  ; .  The two arxiv papers are from 2012 and 2008, respectively. Their abstracts don't mention anything about empirical tests of the theory. I searched the text of the 2012 paper for the word "neutron," and found only one mention of neutron stars, which is in a reference to this 1997 paper: ; since it's from 1997, it's from before the discovery of the 2-solar-mass pulsar.  What's up here? Did Smolin move the goalposts? Did he decide that the 2-solar-mass limit was fuzzy rather than sharp? Was the mass of this neutron star found to be a mistake? Are the error bars on its mass too big to allow it to falsify CNS?  The article also describes Penrose's CCC as alive and kicking, whereas in fact I think it's clearly been dead for several years. Can anyone edit my tag

Regarding the cosmological selection hypothesis and testable predictions, Lee Smolin asserted the following:     "Smolin: I did make two predictions which were eminently checkable by   astrophysical and cosmological observations, and both of them could   easily have been falsified by observations over the last 20 years, and   both have been confirmed by observations so far.      One of them concerns the masses of neutron stars and the prediction is   there can't be a neutron star heavier than about twice the mass of the   sun. This continues to be confirmed by the best measurements of the   masses of neutron stars."   What is he referring to? As far as I know, the neutron star mass limit is a prediction of GR, and doesn't suggest that any fine-tuning is involved in it. Is this correct?


How can I find the maximum number of clients that can connect to my web service at the same time?  Is there any way to know how many clients can connect to the web service at the same time?  What is the limitation of number of connections to the web service depend on?

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


I'm eating clotted cream-covered scones.   or     I'm eating clotted-cream-covered scones.   or     I'm eating clotted cream covered scones.   Formally, I thought they'd have to be clotted-cream scones, but Grammarly insists they're merely clotted cream scones.  I thought a compound adjective should be hyphenated when it appears before the noun it modifies, but it looks like I'm wrong.  Can anyone tell me what the rule is here, please?

As a non-native speaker of English and an engineer by training, I always get confused about hyphenation and almost always end up referring to Google every time I need to make that decision.  Does anybody know of a concise, comprehensive style guide to hyphenation that explains this rather complex issue, once and for all?


I have three different websites that I check daily. I want to set all of these sites as homepages so that they'll be loaded as soon as I start Firefox, preventing me from having to navigate to each one manually.  How do I do this?

Any website can set as the homepage of Firefox which loads spontaneously. Is this for multiple tabs? Then BBC Health, CNN, Yahoo Health, msn.com would all extemporarily materialise (in four separate tabs); I then wouldn't have to open each website manually.


I did run all tests in my sandbox and also tried to run them each individually - the overall avg code coverage is around 88%. However, when i try to validate my change set in prod, it is throwing an error saying "Code Coverage Failure Your code coverage is 73%. You need at least 75% coverage to complete this deployment." None of the test classes failed. Now i'm stuck at a place where it is unable to show what's causing this error nor any directives. I would really appreciate your help! Thanks!

This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How is code coverage obtained and calculated? How do I increase my coverage?  Why can't I cover these lines? Why isn't the body of my loop or conditional statement covered?


How do I handle multiple keys?  Like I have multiple saving options, and I want to handle one button at a time. I am not getting how to handle multiple saving buttons on an entire page. I am using jQuery in an ASP.NET MVC project. How can I do this?  I am using this code:  $(document).bind('keydown', 'ALT+S', function() {     // Alt + S for saving shortcut     if (e.keyId == '#btnSaveCompany') {         // Here I want to handle a function for the key btnSaveCompany         funSaveCreation();     } });   Here I want to handle the save button for a keyboard shortcut for saving. I want to handle multiple buttons through this.

How can I wire an event to fire if someone presses the letter g?  (Where is the character map for all the letters BTW?)


What is the difference between $\vdash A $ and $\models A$? I'm not asking about the general difference between syntactic entailment and semantic entailment. I specifically don't understand the difference in the case where the antecedents are empty. According to Wikipedia, $\vdash A $ , whereas $\models A$ . I think I understand the double turnstile being a tautology, but with the single turnstile is $A$ an axiom (which is )? I'm confused on how a formula could be derivable without premises.

Consider A $\Rightarrow$ B, A $\models$ B, and A $\vdash$ B.  What are some examples contrasting their proper use? For example, give A and B such that A $\models$ B is true but A $\Rightarrow$ B is false. I'd appreciate pointers to any tutorial-level discussion that contrasts these operators.  Edit: What I took away from this discussion and the others linked is that logicians make a distinction between $\vdash$ and $\models$, but non-logicians tend to use $\Rightarrow$ for both relations plus a few others. Points go to Trevor for being the first to explain the relevance of completeness and soundness.


Below is a two droplet merging together,in 2d. I want to simulate the behavior when I exert combination force(through mouse or fling force on touch screen) on one of them to  make them to be a larger droplet. I suppose there exists some kind of function by the distance of these two droplet's center,when the distance is closer,one becomes smaller,the other one becomes larger. What kind of model should I build? Particles or geometry circles or sth else?

I want to simulate blobs of water in a 2d game in Unity3d. One possible way of doing it is to use 3d  moving in a 2d plane though this is very processor intensive. Do you think it would be possible to make 2d metaballs, so I end up with a 2d meshes something like in the picture (In this case its 2 metaballs in conjunction) and then apply some kind of shader to make it look like they are bulging out and refracting the texture behind them like drops of water? I ask because I dont have much experience with shaders and am not sure what is possible.


I have some struggles with this exercise. Let $X$ and $Y$ be infinite dimensional Banach spaces. Show that no $T\in \mathcal{K}(X,Y)$ is onto. We assume that $T\in \mathcal{K}(X,Y)$, so we have that $T\in \mathcal{L}(X,Y)$. I am thinking of showing this by contradiction, so I assume that T is onto, then I have by the open mapping theorem that T is open. Since we have that X,Y are Banach spaces, we have that they are normed vector spaces, and we have that T is open, then we have that  $B_Y(0,r)\subset T(B_X(0,1))$, then we'll have $\overline{B_Y(0,r)}\subset \overline{T(B_X(0,1))}$. Since we know that T is compact (since $T\in \mathcal{K}(X,Y)$) then we'll have that $\overline{T(B_X(0,1))}$ is compact hence $\overline{B_Y(0,r)}$ is compact. I am thinking that I will be done, if I can show that $\overline{B_Y(0,1)}$ is not compact, but I have trouble doing so.

I am reading a book about functional analysis and have a question:      Let $X$ be a infinite-dimensional Banach-space and $A:X \rightarrow X$ a compact operator. How can one show that $A$ can not be surjective?


Sorry, I am having a hard time explaining this, so bear with me.   I am looking for a term describing incorrect grammar as in the following example:     He drove the car and himself into a rage.    For the life of me, I just can't remember what it's called.

In the quote in the title, "of" refers both to the material that makes up the cup and to the stuff that the cup holds. I remember reading that there is a literary device that describes this, but I can't remember what it's called. The device, if I remember correctly, refers to the parallel structure of a phrase whereby a thing is described in two aspects or, as in this case, an aspect and a function. Shakespeare commonly used it, though I can't think of a quote.   Syliva Plath uses it in the line:     I am silver and exact   to refer to a mirror--what it's made from and how it does its job.  Could someone tell me what this structure is called.


Sorry for this basic question, but I haven't found a solution anywhere: I have a set of x-y-z points that represent the surface of a property. I would like to import these points and have blender create a (triangular) mesh. How can I do this? And if it is possible, how can I then export the edges or faces?

I'm trying to create a 3D heat map model out of data that I have from a csv file. I have a few thousand data points with XYZ coordinates.  I'm able to import the data into blender as a point cloud with , however I would like to create a model with solid faces. Is there a way when importing the data to somehow join the points to create faces instead of generating thousands of separate points?  Currently, this what I have in terms of point cloud  The end product would look something like this (minus the texture) and obviously the model wouldn't be as regular as this one  Any help is greatly appreciated!


I know this is pretty basic, but I don't know why my code doesn't work. The code below is supposed to reverse the array, but I'm seriously dying to know why the output stays the same! Any explanation will be appreciated :)  public class Test {     public static void main(String[] args) {         int[] oldList = {1, 2, 3, 4, 5};         reverse(oldList);         for (int i = 0; i < oldList.length; i++)             System.out.print(oldList[i] + " ");     }     public static void reverse(int[] list) {         int[] newList = new int[list.length];         for (int i = 0; i < list.length; i++)             newList[newList.length] = list[list.length - 1 - i];         list = newList;     } }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I want to convert the string to float with out losing it's precision.  String str = "140000.01"; float val = Float.valueOf(str);   Here, I'm getting the output i.e float value as 140000.02, is there any way to convert it into float without losing precision.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I need to create a demo version of an existing large application consisting of multiple projects.  I'd like to use the existing projects, and just neuter the functionality via preprocessor directives   #if DEMO     mycode.NeuterNow(); #endif   We are building our app using MSBuild, and I'd ideally use something along the lines of:  MSBuild -DefineProperty:DEMO MySolution.sln   Does such functionality exist?

I'm possibly just blind, but is there a command line to specify conditional compilation symbols in MSBUILD?  I currently have this Line in my buildscript:  SET MSBUILD=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe SET CONFIG=Debug %MSBUILD% /p:Configuration=%CONFIG% /p:OutputPath=..\..\output source\MyProject\MyProject.csproj   And I'd like to add a condition. In Visual Studio, i can just go into Project Properties => Build => Conditional compilation symbols, but I have not seen that option for msbuild?  Bonus Karma if you know if I can completely override all symbols already specified in the .csproj files to make sure that only the conditionals from my Buildscript go in.


After installing katoolin on Ubuntu 16.04 64-bit and rebooting my laptop, I got this message:        What should I do to get back my Ubuntu?

I updated from 14.04 to 16.04 and used katoolin to add some Kali tools. After restart, the boot up of Linux ran codes, but stopped at a certain point never to load login. So I reinstalled 16.04, ran updates and tried again. This time, the boot menu was changed to Kali as well as the OS name (I'm using Windows 7 dual boot with Ubuntu); login started in Ubuntu style without user name, had to type in the name... then it goes to the logo screen never to log in.  How can I use katoolin without it affecting the boot menu interface? Does this happen when the user selects the option 'add Kali repositories and updates'? Are the Kali repositories necessary? I'd much rather just install the tools and not mess with the Ubuntu interface.


I am writing my thesis in overleaf and want to add a bibliography sinced with Mendeley.  However, i'm having issues using biblatex package... Can i overwrite these issues or should I change my entire document type?  This is my code and the errors im facing:  \documentclass{dissertation}  \usepackage[style=authoryear]{biblatex}  \addbibresource{references.bib}  \begin{document}  \include{Introduction/Introduction}  \include{Methods/Methods}  \include{Results/Results}  \printbibliography  \end{document}   Errors   /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty, line 462 LaTeX Error: Command \bibhang already defined.  /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty, line 9791 LaTeX Error: Command \citename already defined.   /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.def, line 270 LaTeX Error: Command \bibfont already defined.  usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.def, line 2067 LaTeX Error: Command \Citeauthor already defined.   Package biblatex Error: Incompatible package 'chapterbib'.  Package biblatex Error: Incompatible package 'natbib'.

I am using  to write my thesis. The template uses Natlib for references, whereas I really need Biblatex.   When I simply try to change \usepackage[natbib] for biblatex I get the error message  This is BibTeX, Version 0.99d (TeX Live 2016/Debian) Capacity: max_strings=100000, hash_size=100000, hash_prime=85009 The top-level auxiliary file: aagot-1-report.aux The style file: acm.bst Illegal, another \bibstyle command---line 80 of file aagot-1-report.aux  : \bibstyle  :          {acm}  I'm skipping whatever remains of this command Database file #1: Mendeleytry.bib.bib Warning--I didn't find a database entry for "" You've used 14 entries,code here   The solution  \usepackage[backend=bibtex, natbib=true, style=numeric]{biblatex}   didn't work.  Another possible solution was said to be to recompile from scratch to delete the .aux file, but that resulted in  /usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.sty:462: LaTeX Error:  Command \bibhang already defined.            Or name \end... illegal, see p.192 of the manual.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.462 \newlength{\bibhang}   I have tried to use this "marco" to override the \requirePackage settings, but that also didn't work and resulted into  LaTeX Error: Two \documentclass or \documentstyle comm ands.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.45 \documentclass[whitelogo]{                            tudelft-report}    Where I can't seem to delete any of the document classes without getting the functionality of the tudelft-package and the biblatex citing (or in fact getting it to work at all!)  (no line number): [0] Config.pm:343> INFO - This is Biber 2.5 [0] Config.pm:346> INFO - Logfile is 'aagot-1-report.blg' [62] biber:290> INFO - === Tue Apr 24, 2018, 22:24:06 [246] Utils.pm:165> ERROR - aagot-1-report.bcf is malformed, last biblatex  run probably failed. Deleted aagot-1-report.bbl [246] Biber.pm:113> INFO - ERRORS: 1   Is there any way I can still make this template work with Biblatex? Natlib seems to deeply rooted in the file and I don't know how to change it/access the settings/the ".sty"-file. Can I use the example documentclass combined with biblatex (instead of the standard natbib) without losing the great parts of the rest of the document class?  Thanks very much :)


Just installed a ssd drive with 16.04 how can i point Ubuntu to the old drive for home folder with all my files?

I have Ubuntu 10.10 install on my system with /boot, swap, /root and /home partition. I wish to install 11.10 in my system. In the installation screen The options were: 1 - Erase Ubuntu 11.04 and reinstall 2 - Upgrade Ubuntu 11.04 to 11.10 3 - Erase everything and reinstall 4 - Something else  Which option should I choose to get benefited ? If I choose the last option should I have to mark the /home partition and If I hadn't choose it what should I do  now?


I have a list as follow:  list1 = [['10', 'John', 'python'], ['1', 'Sara', 'java'], ['3','Tom', 'C']]   and as sorted result I expect following outpt:  3 Tom C 1 Sara Java 10 John python   in fact I want to sort it base on second parameter in internal list. This code does not work:  sort1 = sorted(list1, key=lambda x: x[0][1])

I have the following data structure (a list of lists)  [  ['4', '21', '1', '14', '2008-10-24 15:42:58'],   ['3', '22', '4', '2somename', '2008-10-24 15:22:03'],   ['5', '21', '3', '19', '2008-10-24 15:45:45'],   ['6', '21', '1', '1somename', '2008-10-24 15:45:49'],   ['7', '22', '3', '2somename', '2008-10-24 15:45:51'] ]   I would like to be able to   Use a function to reorder the list so that I can group by each item in the list. For example I'd like to be able to group by the second column (so that all the 21's are together)  Use a function to only display certain values from each inner list. For example i'd like to reduce this list to only contain the 4th field value of '2somename'    so the list would look like this   [      ['3', '22', '4', '2somename', '2008-10-24 15:22:03'],       ['7', '22', '3', '2somename', '2008-10-24 15:45:51'] ]


If I add texture of just a horizontal or vertical pattern, then how do I manipulate it to be circular, like the top of toilet paper?

I'm trying to create a procedural rainbow spiral in cycles like this:     The reference created by rotating the center vertex with proportional editing on, then assigning material slots to multiple colours. I'd like to have something more adaptable, like controlling number of turns and number of iterations of colours.  My attempt at a procedural texture led me to the radial vector which currently has a simple setup like this:    Which then gives something like this:    I have read related questions from  and  but I'm currently at a loss as to how I could integrate my colour ramp to the nodes given.  Any help would be greatly appreciated, Thank you!


I want to create a class hierarchy based on a generic abstract class. I need to be able to recognize my subclasses in a codebase. I tried to use Type.IsSubclassOf, but it did not work as expected.  namespace TestIsSubclassOf {     public class Program     {         private static void Main()         {             var testClass = typeof(TestClass);             var isSubclass = testClass.IsSubclassOf(typeof(TestBaseClass<>)); // expected - true, actual - false         }     }      public abstract class TestBaseClass<T>     {     }      public class TestClass : TestBaseClass<int>     {     } }   What is the correct way to recognize TestBaseClass subclass?

I have a generic class in my project with derived classes.  public class GenericClass<T> : GenericInterface<T> { }  public class Test : GenericClass<SomeType> { }   Is there any way to find out if a Type object is derived from GenericClass?  t.IsSubclassOf(typeof(GenericClass<>))   does not work.


I am looking for a proof for the fact that $3n^4+3n^2+1$ can never be a perfect square for a natural number $n>0$. I know for a fact that the statement must be true as it came up as one of the cases in a solution of the diophantine equation $y^2=x^3-1$ using the LTE lemma and, according to two different solutions I have come across, this equation has no solutions apart form $(x,y)=(1, 0)$. I have spent a considerable amount of time looking for a suitable attack strategy, however, I was not able to make any progress. Can anyone help?

If $x,y \in \mathbb Z$ , then find all the solutions of   $$y^2=3x^4+3x^2+1$$       I was asked this question by my friend who said that he encountered this while solving another problem. I have tried several things but am unable to solve this question. Moreover, this has to be done using elementary methods only. So far, I have tried to factorize and use Pell's equation. At the end, I'm getting $$2y_{n} + (2x^2_{n}+1)\sqrt{3}=(2+\sqrt{3})^{n}$$   where $n \in \mathbb Z^{+}$    But I'm not able to figure out how to show a contradiction from here. Can anyone please help me out? Thanks.


On this very popular question on Unix.SE: ,  the answer by Marnanel Thurman (with approximately 1.6k votes) shows before the accepted answer (by Jaroslav Kucera, with approximately 300 votes).    I am on the sorted by votes tab, which should list the accepted answer first.   Is this a bug, or was it intentionally modified for this question specifically?

Answer in question:   I have the answers sorted by votes, but strangely the answer marked as accepted is listed last. The top answer is the one with most votes:    I've never seen that happen before. Is it because the answer was posted by the asker, or is it a bug?