Delete one word backward:  Ctrl + w   Delete one word forward:  ?   Can anyone answer the above or do I need to add a command to stty as I can see by running the following command:  stty -a   that the action associated with Ctrl + w is defined there.

I do Ctrl+W in the mac terminal to delete a word (deletes from where the cursor is at to the beginning of the word)  How do I do the opposite - deletes from where the cursor is to the end of the word?


Recent news from Yale... We can predict the quantum leap before the particle collapses its superposition. We can even change it to whichever position we like in real time. In layman terms, as I understand with my limited knowledge, Schrodinger's cat can be SAVED.  But... Also to my limited knowledge, the core of how a quantum computer works is because of its superposition feature and its uncertainty.  Then put these two paragraphs together... If the superposition is now old news, so would quantum computers. Right? What am I missing here?

new finding by Minev et al. seems to suggest that transitions between atomic states are not instantaneous, but continuous processes wherein a superposition smoothly adjusts from favoring one state to another (if I understand it correctly). The authors also claim to be able to catch a system "mid-jump" and reverse it. Popular articles are  and .  I am curious if this finding rules out any interpretations of QM. It seems to generally go against the Copenhagen attitude, which describes measurements as collapsing physical systems into a definite classical state. The popular articles indeed claim that the founders of QM would have been surprised by the new finding.  The link with the asterisk mentions that something called "quantum trajectories theory" predicts what was observed. Is this an interpretation, or a theory? And are they implying that other interpretations/theories don't work?


I have a set of 2000 numbers that form an approximately normal distribution, with a mean of about 0.24, and an SD of 0.06.  These form an estimate of the population.  I now have a single sample measurement of 0.38 and would like to determine the chance (p value) that this single sample measurement comes from the same population distribution.  (Unfortunately, in my work the nature of the "test" means that it is unfortunately theoretically impossible to obtain another measurement).    It must be true that the further that the single sample is from the mean of the population, the more unlikely that single event is.  Furthermore, of course one needs to take into account the distribution of the population - had the SD of the population been 6 rather than 0.6 the chance of obtaining the single measurement at 0.38 would be much higher, and hence the p value lower.  I am happy to assume for my purposes that the distribution from which the sample has been obtained would have the same SD as the population.  The question is how I calculate the likelihood (p-value) that the observed single sample comes from a distribution with the same mean as the population?  I have thought about carrying out a one sample t-test, testing whether the observed population is different from the single sample value, but that doesn't seem right to me as that test assumes that the single sample value is the mean of the distribution being tested against, rather than a single sample.  What is the best approach to this analysis?  Thanks in advance for any advice and help.

For an ecology project, my lab group added vinegar to 4 tanks containing equal volumes of pond water, 1 control with no elodea (an aquatic plant) and 3 treatments with the same amount of elodea in each. The purpose of adding the vinegar was to reduce the pH. The hypothesis was that the tanks with elodea would go back to their normal pH quicker. This was indeed the case. We measured the pH of each tank daily for about two weeks. All the tanks eventually returned to their natural pH, but the length of time that this took was much shorter for the tanks with elodea.  When we told our professor about our experimental design, he said that there exists no statistical test that can be performed on the data to compare the control to the treatment. That because there was no replicate for the control (we only used one control tank) we cannot calculate variance and so we can't compare the sample means of the control and the treatment. So my question is, is this true? I definitely understand what he means. For example, if you took the height of one man and one woman, you can't draw conclusions about their respective populations. But we did 3 treatments, and the variance was small. It seems reasonable to assume that the variance would be similar in the control?  Update:  Thank you for the excellent answer. We got more water and elodea from the wetland and decided we would run the experiment again with smaller tanks but this time with 5 controls and 5 treatments. We were going to combine this with our original data but the starting pH of the tanks was different enough that it doesn't seem valid to consider the new experiment to be sampled from the same population as the original experiment.  We considered adding different amounts of elodea and trying to correlate speed of pH remediation (measured as time elapsed until pH returned to its original value) with amount of elodea, but we decided that wasn't necessary. Our objective is only to show that the elodea makes a positive difference, not to construct some kind of predictive model for exactly how the pH responds to differing amounts of elodea. It would be interesting to determine the optimal amount of elodea, but that's probably just the maximum amount that can survive. Trying to fit a regression curve to the data wouldn't be especially illuminating because of the various complicated changes that occur to the community when adding a large amount. The elodea dies, decomposes, new organisms start to dominate, and so on.


editor is a vector::iterator object and list is obviously a vector.  I'm wondering why it will not (vector).erase() the first element of the list, and when I try to with only 1 item, it throws an exception.  for (editor = list.begin(); editor < list.end(); ++editor)     if (*editor == title)                    list.erase(editor);

I want to clear a element from a vector using the erase method. But the problem here is that the element is not guaranteed to occur only once in the vector. It may be present multiple times and I need to clear all of them. My code is something like this:  void erase(std::vector<int>& myNumbers_in, int number_in) {     std::vector<int>::iterator iter = myNumbers_in.begin();     std::vector<int>::iterator endIter = myNumbers_in.end();     for(; iter != endIter; ++iter)     {         if(*iter == number_in)         {             myNumbers_in.erase(iter);         }     } }  int main(int argc, char* argv[]) {     std::vector<int> myNmbers;     for(int i = 0; i < 2; ++i)     {         myNmbers.push_back(i);         myNmbers.push_back(i);     }      erase(myNmbers, 1);      return 0; }   This code obviously crashes because I am changing the end of the vector while iterating through it. What is the best way to achieve this? I.e. is there any way to do this without iterating through the vector multiple times or creating one more copy of the vector?


I have a domain: example.com.   I've created an A record for www.example.com with an alias targeting the load balancer’s DNS; this works just fine for www.example.com.  Now, I want to redirect all requests to example.com to www.example.com (note the www. prefix).  So I created an S3 bucket named example.com with a redirection to www.example.com, and an A record for example.com with an alias targeting the S3 bucket named example.com I just created. The idea here is to make all requests to example.com go to my S3 bucket and then get redirected to www.example.com.  But when I go to example.com, the browser just keeps loading forever. No redirection seems to be happening.  All I want is to redirect requests to example.com to www.example.com. How can I make this work? Why is my browser loading forever and not giving any error message?

I want to redirect all requests from example.com to www.example.com.   Preferably, this should happen at DNS level. I tried using PTR records, but that simply fails, returning a 404.  wwww.example.com is an ALIAS for an Elastic Load Balancer.  What’s the simplest way to achieve this?


When I type mount <device> <folder> I get message "mount: only root can do that", how so? if mount has -rwsr-xr-x. permissions?

Why does Linux require that a user be root/using sudo/specifically authorized per mount in order to mount something? It seems like the decision as to whether to allow a user to mount something should be based on their access rights to the source volume/network share and to the mount point. A couple of uses for non-root mounting are mounting file-system images to a user owned direction and mounting a network share to a user owned directory. It seems like if the user has control over both sides of the mount equation everything should be cool.  Clarification of access restriction:  I feel I should be able to mount anything that the user otherwise would have access to to a mount-point that the user is the owner of.  For instance, on my computer /dev/sda1 is owned by user root and group disk with permissions brw-rw----. Therefore non-root users can't mess with /dev/sda1 and clearly mount shouldn't allow them to mount it. However if the user owns /home/my_user/my_imagefile.img and mount point /home/my_user/my_image/ why shouldn't they be able to mount that image file on that mount point with:  mount /home/my_user/my_imagefile.img /home/my_user/my_image/ -o loop   As kormac pointed out there is a suid problem. So some restrictions would have to be added to prevent suid from being a problem as well as potentially some other issues. Perhaps one way to do this would be to make the OS treat all files as belonging to the user that did the mounting. However for simple read/write/execute, I don't see why this would be a problem.  Use case:  I have an account in a lab where my home space is restricted to 8GB. This is tiny and very very annoying. I would like to mount an nfs volume from my personal server to essentially increase the amount of room that I have. However, because Linux does not allow such things I'm stuck with scp'ing files back and forth to stay under the 8GB limit.


I do not know if it is correct to use a hyphen between the words wrap, and around, in describing a porch that wraps around a house.

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 recently obtained a bottle caper, some sassafrass bark chips, and some root beer extract flavoring from a coupling moving out. It also contained a recipe for rootbeer(non-alcoholic), listed below:  Beginners Quick Bottling Recipe: Uses 2 used 2-L plastic soda bottles   1/8 teaspoon dry yeast, in a 6oz cup of warm water 2 & 1/4 cups sugar, 1 tablespoon extract Mix in 1 gallon container Pour 1/2 mixture in each soda bottle Top off each bottle with plain water to within 1 & 1/2 inches of top use resealable cap and shake store at room temp in the 70's for 4-6 days   How would I modify this recipe to allow for the soda to be alcoholic AND also be stored in smaller used beer glass bottles?  Doing some of my own research, and only having made "hooch" before I assume that I could simply add more yeast and sugar to allow for more alcohol, but then regardless how would I deal with a loss of carbonation when decanting my product from the 2 L bottles to the smaller glass bottles, or the possible risk of still active yeast? I do not have access to alot of fancy equipment like kegs or carbonators, not even a siphon.

I picked up some rootbeer extract at my local brewshop, and I've made a few batches in old soda bottles... but is it possible brew it with an alcohol content similar to that of beer?


so i wanted to make a MR ROBOT default banner, but i don't know how to make the output in a red Color in terminal, could somebody please help?  also does anybody have the Original MR ROBOT ascii art? if so please drop it here.  ps: using kali linux 2018.1 release

Short question:  Using bash, is it possible to print a sentence such that each individual word has a different color?   I.e; print a word in-line, change the text color, repeat?


I would like to know if there are showers in Dubai terminal 3 transit area. As we only have an hour half between flights

I've got two transfers between long-haul flights coming up at DXB, and I'd like to freshen up with a shower. Information on the net is outdated and contradictory, and the  is remarkably useless. I will be in the Terminal 3 (Emirates), although I'll do the long schlep to T1 and back if I need. I have no frequent flier lounge access.  What are my options for a shower?


I want to have a black color underline as shown below:  My MWE seemed a bit long: \documentclass[12pt,oneside]{book}  % Remove draft option to show figures (for final draft), otherwise keep for faster production  \usepackage{uorthesis}  % Loads the LaTeX style package \usepackage[backend=biber, style=authoryear, dashed=false]{biblatex} \addbibresource{references.bib} \usepackage{uorbib}  \usepackage{titlesec} \titleformat{\chapter}[block]   {\normalfont\sffamily\LARGE\bfseries\filcenter}   {\filcenter\chaptertitlename\ \thechapter\filcenter\\}{20pt}{\huge}      % Put custom packages to be loaded here % \usepackage{linguex}  % For linguistic examples % \usepackage{tikz}     % For drawing  \begin{document}  % Title page \include{structure/title}  % All subsequent pages must be numbered, title page is considered page i, % front matter is numbered in lowercase Roman numerals \pagestyle{fancy} \pagenumbering{roman} \setcounter{page}{2} \doublespacing  % Dedication (optional) \include{structure/dedication}  % Acknowledgments \include{structure/acknowledgements}  % Abstract \include{structure/abstract}  % Table of Contents, List of Tables, List of Figures \tableofcontents  %List of Tables & Figures \include{structure/tablesfigures}   %%%%%%%%%%%%%%%%%%%% DISSERTATION CONTENT %%%%%%%%%%%%%%%%%%%%  % Regular numbering starts now, first page of first chapter is page 1 \clearpage \setcounter{page}{0} \pagenumbering{arabic}  % Body   \include{chapters/01-introduction}  \include{chapters/02-background}  \include{chapters/03-chapter}  \include{chapters/04-chapter}  % References \clearpage \addcontentsline{toc}{chapter}{Bibliography} \markboth{\MakeUppercase{Bibliography}}{} \singlespacing \printbibliography  \appendix \include{chapters/99-appendix}  \end{document}  However, I think the main code is: \usepackage{titlesec} \titleformat{\chapter}[block]   {\normalfont\sffamily\LARGE\bfseries\filcenter}   {\filcenter\chaptertitlename\ \thechapter\filcenter\\}{20pt}{\huge}

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline does that, but I'm not sure where in the \titleformat syntax to place it.


I love this site and the community, and I would like to be informed immediately when I receive new answers to my questions.  It would be preferable to have an automatic way to enable e-mail notifications on all of my questions, but I would be ok with enabling it manually on new questions. I just can't find that feature on the site.  Where can I enable this feature?

I'd like to have Instant notifications by email of answers to my questions.  Can this be implemented?


Find all functions $f: \mathbb{R}\rightarrow \mathbb{R}$ satisfying: $f\left ( x \right )f\left ( y \right )+ f\left ( xy \right )+ f\left ( x \right )+f\left ( y \right )= f\left ( x+y \right )+ 2\,xy$  I tried the standard way: $x=0, x=y, x=1,...$ but without any success. I spent quite some time trying to solve it but didn't succeed.   I tried to reduce it to Cauchy's 1-4 equations but didn't succeed. In the corse of it, I found interesting works of Aczel, Erdos and even Putnum, but they are not directly related, I guess.  Any idea? I am interested in this problem but I couldn't solve!

Let  $f(xy) =f(x)f(y)$ for all $x,y\geq 0$. Show that $f(x) = x^p$ for some $p$.    I am not very experienced with proof. If we let $g(x)=\log (f(x))$ then this is the same as  $g(xy) = g(x) + g(y)$   I looked up the hint and it says let $g(x) = \log f(a^x) $   The wikipedia page for functional equations only states the form of the solutions without proof.  Attempt  Using the hint (which was like pulling a rabbit out of the hat)  Restricting the codomain $f:(0,+\infty)\rightarrow (0,+\infty)$ so that we can define the real function $g(x) =  \log f(a^x)$ and we have $$g(x+y) = g(x)+ g(y)$$   i.e $g(x) = xg(1)$ as $g(x)$ is continuous (assuming $f$ is).  Letting $\log_a f(a) = p$ we get $f(a^x) =a^p $. I do not have a rigorous argument but I think I can conclude that $f(x) = x^p$ (please fill any holes or unspecified assumptions) Different solutions are invited


On StackOverflow, I just went from a reputation 2,452 to 2,412 in a matter of seconds, no Idea how. Who do i ask and how to I report this to?  Resolved  A question had been deleted, and that is the reason I lost the reputation.

I logged in today and saw that 15 of my reputation points had vanished. When I opened the reputation tab, I noticed that even though at the top it showed -15, it didn't list exactly where or how my reputation went. Even the reputation counts for today and yesterday show nothing. Is this a bug of some sort?


How to show that $x$ is irreducible in $\frac{\mathbb R[x,y]}{(x^2+y^2-1)}$?   I can show that x is not prime But unable to show x is irreducible.  Please can any one help me to solve this problem ANy Help will be appreciated

Let $R$ be the ring of functions that are polynomials in $\cos t$ and $\sin t$ with real coefficients.    Prove that $R$ is isomorphic to $\mathbb R[x,y]/(x^2+y^2-1)$.  Prove that $R$ is not a unique factorization domain. Prove that $S=\mathbb C[x,y]/(x^2+y^2-1)$ is a principal ideal domain and hence a unique factorization domain.  Determine the units of the rings $S$ and $R$. (Hint: Show that $S$ is isomorphic to the Laurent polynomial ring $\mathbb C[u,u^{-1}]$.)


So I've been trying to compute $$\int\sin^4(x)\mathrm{d}x$$ and everywhere they use the reduction formula which we haven't learned yet so I've been wondering if theres another way to do it? Thanks in advance.

Suppose $\displaystyle P(x,y)$ a polynomial in the variables $x,y$.   For example, $\displaystyle x^4$ or $\displaystyle x^3y^2 + 3xy + 1$.  Is there a general method which allows us to evaluate the indefinite integral     $$ \int P(\sin x, \cos x) \text{d} x$$   What about the case when $\displaystyle P(x,y)$ is a rational function (i.e. a ratio of two polynomials)?   Example of a rational function: $\displaystyle \frac{x^2y + y^3}{x+y}$.    This is being asked in an effort to cut down on duplicates, see here:   and here:


How to show if $p$ is prime, then group $Z_{p}^{*}$ is cyclic.  Tip    Let $g$ and $h$ of a commutative group $G$ have orders $n$ and $m$ respectively. There exists and element $x \in G$ of order $LCM (n,m)$  In any field $\mathbb{K}$ a polynomial $f \in \mathbb{K} [x]$ of degree $n$ has at most $n$ different roots.   I have no idea.

In undergraduate course, the two groups which are most frequently used may be $$\{ 0, 1, 2, ... , p-1\}$$ and $$\{ 1, 2, ... , p-1\}$$ where $p$ is a prime.   The first one is a group under addition and in addition it is a cyclic group whose generator is $p-1$. Also we can describe it by the solution set of $x^p=1$ in ${\bf C}$.  The latter is a group under multiplication. Fermat's theorem implies that $$a^{p-1} =1~~~ (\text{mod}\;\;p)$$ for $a\in \{ 1, ... , p-1\}$. But this is not sufficient for $  \{ 1, ... , p-1\}$ to be cyclic.   My question is :   $$ \{ 1, ... , p-1\}$$ is cyclic ?   Thank you in advance.


I have some .apk files and want to run on lubuntu 13.10. Please tell a detailed solution

In Windows, you can run android application using BlueStack.   I was wondering, is there any way these apps can be run on Ubuntu 12.04?


Assuming the class in question is only used hold data fields which are directly accessed, which would be more performant to use, class or a struct with similar fields.

This question was .  Now I'd like to learn the differences between a struct and a class in C++. Please discuss the technical differences as well as reasons for choosing one or the other in OO design.  I'll start with an obvious difference:   If you don't specify public: or private:, members of a struct are public by default; members of a class are private by default.   I'm sure there are other differences to be found in the obscure corners of the C++ specification.


How do i make sku private but allow the getter access to it:  var Product = function (sku) {     this.sku = sku; };  Product.prototype.getSku = function() {     return this.sku; }  module.exports = {Product: Product};

Is there any way to make “private” variables (those defined in the constructor), available to prototype-defined methods?  TestClass = function(){     var privateField = "hello";     this.nonProtoHello = function(){alert(privateField)}; }; TestClass.prototype.prototypeHello = function(){alert(privateField)};   This works:  t.nonProtoHello()   But this doesn’t:  t.prototypeHello()   I’m used to defining my methods inside the constructor, but am moving away from that for a couple reasons.


Is it possible to find the complex roots of a function by using Newton's method? If the answer is yes, how to do it?

The function $f(x) = x^2 +1$ has zeros in the complex plane at $x = +i$ and $x = -i$. Is there a real starting point for complex Newton's method such that the iterates converge to either of these zeros? Is there a complex starting point too?  I know that Newton's method for finding roots is $x_{n+1} = x_n - \frac {f(x)}{f'(x)}$. But I don't know how to find the proper starting point.


My computer is a Lenovo IdeaPad U410 Touch with Ubuntu 14.04 LTS. I want to  install Chrome. When I tried to install Google Chrome I was asked what download package to choose:  32 bit deb (for Debian/Ubuntu) 64 bit deb (for Debian/Ubuntu) 32 bit rpm (for Fedora/openSUSE) 64 bit rpm (for Fedora/openSUSE)   So what should I choose?

I downloaded and installed Ubuntu from the official site. However, I don't know if I installed the 32-bit or 64-bit version.  In Windows 7 I could right click My Computer and it listed which version it was.  Is there an easy way to check in Ubuntu?


Which one of the following is correct?        Allen is one of the few people who understands the importance of hard work.   Allen is one of the few people who understand the importance of hard work.      Does understand(s) refer to Allen or to the few people?

In the construction "one of the [plural noun] who ...", should the verb agree with "one" or "[plural noun]"?   For example, which of the two following sentences is grammatically correct? Or are both acceptable?        She was one of the several children who was sold at the auction    She was one of the several children who were sold at the auction.


I am trying to install virtualbox on Debian 10. But when I run # /sbin/vboxconfig I get the following error message:  This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel for adding new hardware support to the system. The distribution packages containing the headers are probably: linux-headers-amd64 linux-headers-4.19.0-13-amd64  But # apt install linux-headers-$(uname -r) leads to  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4.19.0-13-amd64 E: Couldn't find any package by glob 'linux-headers-4.19.0-13-amd64' E: Couldn't find any package by regex 'linux-headers-4.19.0-13-amd64'  It is a fresh install of Debian 10. Output of uname -a is Linux c2 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux. Any ideas what I am missing? How do I install the correct headers so that vboxconfig is happy? Kind Regards,

After running below command i got error:  # apt-get install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4.9.0-3-amd64 E: Couldn't find any package by glob 'linux-headers-4.9.0-3-amd64' E: Couldn't find any package by regex 'linux-headers-4.9.0-3-amd64'   To troubleshoot i checked following:  # apt-cache search linux-headers aufs-dkms - DKMS files to build and install aufs linux-libc-dev-arm64-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-armhf-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mips-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mips64el-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mipsel-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-ppc64el-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-s390x-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-alpha-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-hppa-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-m68k-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mips64-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-powerpc-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-powerpcspe-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-ppc64-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-sh4-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-sparc64-cross - Linux Kernel Headers for development (for cross-compiling) linux-headers-4.9.0-11-all - All header files for Linux 4.9 (meta-package) linux-headers-4.9.0-11-all-amd64 - All header files for Linux 4.9 (meta-package) linux-headers-4.9.0-11-amd64 - Header files for Linux 4.9.0-11-amd64 linux-headers-4.9.0-11-common - Common header files for Linux 4.9.0-11 linux-headers-4.9.0-11-common-rt - Common header files for Linux 4.9.0-11-rt linux-headers-4.9.0-11-rt-amd64 - Header files for Linux 4.9.0-11-rt-amd64 linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package) linux-headers-rt-amd64 - Header files for Linux rt-amd64 configuration (meta-package)```   and   # apt-cache search linux-image linux-headers-4.9.0-11-amd64 - Header files for Linux 4.9.0-11-amd64 linux-headers-4.9.0-11-rt-amd64 - Header files for Linux 4.9.0-11-rt-amd64 linux-image-4.9.0-11-amd64 - Linux 4.9 for 64-bit PCs linux-image-4.9.0-11-amd64-dbg - Debug symbols for linux-image-4.9.0-11-amd64 linux-image-4.9.0-11-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT linux-image-4.9.0-11-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-11-rt-amd64 linux-image-amd64 - Linux for 64-bit PCs (meta-package) linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package) linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package) linux-image-4.9.0-3-amd64 - Linux 4.9 for 64-bit PCs   After running  apt-cache search linux-image i get linux-image-4.9.0-3-amd64 kernal version which i want in the result of apt-cache search linux-headers command also.   Few people suggested to change sources.list and then try. But as i am new to this i don't have idea how to search proper link for sources.list and what will be best suited to resolve my problem.   I did search on google but did not find solution. Any link or solution which can provide solution will be of great help.


I got so many solutions to merge values by comma. I have some tricky requirement of merging ids by comma. I have around 10 columns in a table. For eg.       declare  @t1 TABLE (id INT, NAME VARCHAR(MAX), address1 varchar(max), mobileno varchar(max));      INSERT @t1 values (1,'100',null,'1111111111');      INSERT @t1 values (2,'100','pune','1111111111');      INSERT @t1 values (3,'200',null,null);      INSERT @t1 values (4,'300','pune',null);      INSERT @t1 values (5,'200',null,'1111111111');      SELECT      STUFF((     SELECT ','+CAST(ID AS VARCHAR(10)) [text()]      FROM @t1 as B     WHERE B.NAME = A.NAME     FOR XML PATH('')),1,1,'') as ID, NAME, address1, mobileno     FROM @t1 as A    GROUP BY NAME, address1, mobileno   For eg.  ID | Value ---+-------  1 | 100  2 | 100  3 | 200    4 | 200  5 | 300   I need output like  ID | Value ---|------ 1,2| 100 3,4| 200   5| 300

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


The call:  <?php echo nl2br($post['post_text']); ?>   Creates a load of question marks inside a diamond on my blog, how to fix?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


installed Ubuntu 14.04 against Windows 7. I installed GParted to partition my harddrive since it had occupied entire disk. But, I'm not able to repartition.  Note: After installing Ubuntu replacing Windows 7, almost 70GB is missing.   sudo gdisk -l /dev/sda GPT fdisk (gdisk) version 0.8.8  Partition table scan:   MBR: MBR only   BSD: not present   APM: not present   GPT: not present   *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory.  ***************************************************************  Disk /dev/sda: 1953525168 sectors, 931.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): D7EFA26A-1DD8-4C04-833D-0547B9D384D8 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1953525134 Partitions will be aligned on 2048-sector boundaries Total free space is 5485 sectors (2.7 MiB)  Number  Start (sector)    End (sector)  Size       Code  Name    1            2048      1946189823   928.0 GiB   8300  Linux filesystem    5      1946191872      1953523711   3.5 GiB     8200  Linux swap   sudo fdisk -l /dev/sda  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001f044     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048  1946189823   973093888   83  Linux /dev/sda2      1946191870  1953523711     3665921    5  Extended /dev/sda5      1946191872  1953523711     3665920   82  Linux swap / Solaris

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


I am trying to add a database to an Availability Group Always On. I already have the other two DBs working fine on the same SQL Server 2016 Standard Edition Cluster (running on Windows 2016 Standard).  When joining the secondary DB to the AG the database ends up in Not Synchronizing / Recovery pending state. I followed different online sources with alternative solutions without any success.  Has anyone else experienced a similar situation? Any suggestions?

Current Configuration: I have two SQL Servers, which are connected by the failover mechanism, meaning one is primary and one is secondary. I restarted both services on both servers sequentially. On the secondary server, all the databases are in the "Synchronizing" state. AG replication mode is synchronous. It has been 12hr it's still showing "Synchronizing" state. What I did so far to resolve Drop the database from the secondary server and remove the database from AG group on the primary server and add it back. Any insight on this, I am using SQL Server 2017.


I bought an Acer laptop with Windows 7  At first I just installed Linux on it, but I need to run some Windows software and test websites in IE.  I could remove all the crap by hand, but is there a good utility that could do this for me?

Just been working on a new laptop today (Acer) and it was pre-installed with all sorts of crapware. Mostly games and "backup utilities" and McAfee. I had to manually uninstall about 30 apps via Vista's Programs and Features  So it got me wondering is there any way of mass uninstalling or queuing an app to be uninstalled? Through Vista/XP you need to wait for Install Shield or whatever to close before beginning to uninstall the next app. Took way more time than it should have.  Just another one of those Windows annoyances! Any help appreciated as I often need to do this when I come across a slow machine that's just been clogged with a bunch of useless apps


In Rudin's POMA, the 7.29 theorem says:  Let $\mathcal{B}$ be the uniform closure of an algebra $\mathcal{A}$ of bounded functions. Then $\mathcal{B}$ is a uniformly closed algebra.  I understand the part proving that $\mathcal{B}$ is an algebra but not that which is uniformly closed. Shouldn't we prove that there exist $(f_n) \in \mathcal{B}$ s.t. $f_n \rightarrow f$ uniformly ?  Proof: If $f, g \in \mathcal{B}$ there exist uniformly convergent sequences $(f_n), (g_n)$ s.t. $f_n \rightarrow f$, $g_n \rightarrow g$, $f_n, g_n \in \mathcal{A}$. Since we are dealing with bounded functions, it is easy to show that:  $f_n + g_n \rightarrow f+g$ $f_n g_n \rightarrow fg$ $c f_n \rightarrow cf$  where $c$ is any constant, the convergence being uniform in each case. Hence $f+g \in \mathcal{B}, fg \in \mathcal{B}, cf \in \mathcal{B}$, so that $\mathcal{B}$ is an algebra. By theorem 2.27, $\mathcal{B}$ is uniformly closed. Theorem 2.27: If $X$ is a metric space, and $E \subset X$ then:  $\bar{E}$ is closed $E = \bar{E}$ iif E is closed $\bar{E} \subset F$ for every closed set $F \subset X$ s.t. $E \subset F$

Let $\mathscr{A}$ be an algebra of bounded complex functions. (Or if necessary, continuous and domain of functions is compact)  Definition:  $\mathscr{B}$ is uniformly closed iff $f\in\mathscr{B}$ whenever $f_n\in \mathscr{B} (n=1,2,\cdot)$ and $f_n\rightarrow f$ uniformly.  $\mathscr{B}$ is the uniform closure of $\mathscr{A}$ iff $\mathscr{B}$ is the set of all functions which are limits of uniformly convergent sequences of members of $\mathscr{A}$.  ============  Let $\mathscr{B}$ be a uniform closure of $\mathscr{A}$.  How do i prove that $\mathscr{B}$ is uniformly closed in ZF?  Does Stone-Weierstrass theorem require choice since it is critical to prove Stone-Weierstrass Theorem?


I'm using g-brief to produce a letter. However, on my computer, the resulting PDF has the letter format, whereas I need A4. I figured g-brief only produces A4 PDF files, so I'm surprised. When I compile the exact same tex file on a different computer, the correct PDF in A4 format is produced. It appears that g-brief uses some sort of system setting to determine the format. I changed the content of /etc/papersize to a4, but the problem persists. Both computers run Debian (but different versions: Jessie and Wheezy).   I can force the output to A4 by using the geometry package, but then the footer disappears. How do I get LaTeX to produce the correct format?  Here is a minimal example:  \documentclass{g-brief} \begin{document} x \end{document}   This produces a PDF file in the letter format on my computer, and in the A4 format on the other computer I was talking about.  Edit: I can't answer anymore because this question has been linked to another question, which has an answer that doesn't solve my problem. However, I found the solution : run sudo paperconfig -p a4

I'm using \documentclass[10pt, a4paper]{article} in my TeX file. It all works fine, except, the lower bound of each page is cut off. So some text is either cut off, or at least the text reaches the very end of the page.  Has anyone experienced the same issue?  Here is an minimal working example:  \documentclass[10pt, a4paper]{article}  \usepackage[utf8]{inputenc} \usepackage{ngerman} \usepackage[cm]{fullpage}  \setlength{\headheight}{12.4pt} \setlength{\headsep}{1.5\headheight}  \begin{document}  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f  \section{a}  asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f asdlkjf sakfj saoekfsalk lksa jfsakfsaoel jfsaoelkfj saoeflksad jfoelksaf sadfoelkjsa f   \end{document}


I've just upgraded from Ubuntu 10.04 LTS to 12.04, and the launcher is on the left side of my monitor. This is great, except I'm using a dual screen setup and my main monitor is the one of the right, so when I select my main monitor as the one where launcher resides in, it's residing in the middle of my extended desktop, causing problems when I try to mouse between screens.  How do I place the launcher on the right side?  Thanks

I can’t get used to the new Unity system. I’d like to move the left Unity panel to the bottom of screen (like Windows 7 – more similar is better).  But I can't find a way. Is it possible?


In , there is a following exercise. Exercise 2. Let $R$ be a ring (with $1$) such that the only left ideals of $R$ are $0$ and $R.$ Show that $R$ must be a division ring; that is, if $R$ is simple as a left $R$-module, then $R$ is a division ring. If the hypothesis that $R$ has an identity is dropped, the result no longer holds. Give an example to show this. In fact, the type of example you give is unique. I have written a little about it. Regard a ring $R$ as an $R$-module.     If $R$ is simple, we will show that $R$ is a divison ring. Indeed, if $x\in R,$ then $R=Rx,$ and so there is $y\in R$ such that $yx=1.$ Since $y$ is an element of the simple $R$-module $R,$ we have $R=Ry.$ This implies $1=zy.$ Moreover, $z=z1=z(yx)=(zy)x=1x=x.$ Therefore $R$ is a division ring. Otherwise, if $R$ is a division ring, then we will show that $R$ is simple. Indeed, if $x\in R,$ then $Rx$ is a submodule of $R.$ It seems that $R=Rx.$ This implies $R$ is a division ring. The rest of the problem leaves me wondering. In this book, the ring is defined by a ring, has certainly identity $1.$ But the author gives $1$ and finds an example about the division ring without $1.$ I think the definition of a division ring requires $1.$ Moreover, I can't find an example about it. Other way, in exercises 4 (c) and 4 (d),  I think that $\mathbf{Q}$ must be written $\mathbf{Q}[x],$ and all simple $R$-modules, where $R$ is a principal ideal domain, are isomorphic to $R/I$ where $I$ is an ideal generated by a irreducible element. I'm not sure about this. Please take a look and help me.

Question: Show for any simple ring without identity, R, that R is a division ring.   My thought process is to consider an ideal generated by one element $r$, so I want to consider the ideal $rR$ =  $ \{ ry | y \in R \}$. Since R is simple, this means $rR = \{0 \}$ or $rR = R$. Since $R$ does not have an identity, I am not sure how to prove that $R$ is a division ring. Do I need to find some way such that $R$ contains the identity element? Do I need to consider zero divisors? Please do not work this out entirely! Any help is very much appreciated!


I am looking for a small application that allows to capture a screen section and directly render to a gif file.  Is there any application that does this?  I searched a lot, but I didn't find one compatible with Linux/Ubuntu...

I've seen animated GIF images of screen casts (like the one below) promoted a few times on this site as a way to improve answers.    What toolchain is being used to create these? Is there a program that does this automagically, or are people taking screencasts, converting them into a series of static frames, and then creating the GIF images?


What's the difference between "have" and "have got" to express possession?  examples:   I have a pen. I have got a pen.

I have looked through several questions and answers on EL&U, and often there is an indication that American English prefers "have" while British English prefers "have got". In addition, there are several references to "have got" being more informal than "have" (e.g.: , ). But where is it considered more informal? In American English alone or both American and British English?   This point may seem obvious to those who made the above mentioned references, but the fact is that even the most fluent users of English in my country will say without a doubt that 'have got' is the preferred usage in the UK and, therefore, it must also be more formal. Why? Because in an academic environment, the more informal structures are generally frowned upon, outside some specific spoken exercises. And if the teachers insist on using "have got", it follows it isn't informal.  So, is the teaching of (British) English in our schools transmitting the wrong idea?  EDIT: I'm adding some information in answer to the comments.  I'm mainly concerned with the idea of possession:      I have got a cat vs. I have a cat and She has got a dog vs. She has a dog   As mentioned in the comments, every (Portuguese) student will be told that "have" and "have got", when it comes to the idea of possession, are absolute synonyms, the only two differences being:    "have got" is preferred by British English, "have" is preferred by American English   the negative and interrogative structures differ    I have never heard of any distinction in formality. In fact, I was rather surprised when I went through the EL&U archives and read about it.  So, would "I have got a cat" be as formal/informal as "I have a cat"?   And how do British and American English look at its formality/informality? Is it the same?


This answer. Please notice the edit! I was about to downvote this answer because it did not actually solve it, it just explained why it didn't work. (Kind of like a 50% answer).  Notice the comment, he said he was editting. Ok, cool, I didn't downvote and his answer is good.  This brought on the question (or series of questions): When writing an answer, and you post something (I guess as a "placeholder"), I would assume I could downvote until the answer is editted, but what is the "breaking point" for a placeholder?  One time I saw an answer "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" that was editted to the right answer.  Even when it became a right answer it wasn't upvoted.

I've been finding "answers" that are slapped together and submitted, with the sometimes explicit intention of "I'm going to edit this".  e.g.   This seems silly, and I think ought to be discouraged.  Is the proper response "oh, how annoying", commenting, down-voting, flagging?  I'm heistant on the last two becuase sometimes they are edited (sometimes within the 5min grace) and become good answers, and then there's an unnecessary dv or flag.


Using MetaData API, am able to insert the value in Picklist field in apex code but it is not available for any record type. I am finding hard to expose the value to record type. Here is my code,  public static void updatePicklistFieldTA(string ta, string sessionId) {     MetadataService.MetadataPort service = createService(sessionId);     MetadataService.CustomField customField = new MetadataService.CustomField();     customField.fullName = 'Case.Technology_Area__c';     customField.label = 'Technical Area';     customField.type_x = 'Picklist';     metadataservice.Picklist pt = new metadataservice.Picklist();     pt.sorted= false;     metadataservice.PicklistValue three = new metadataservice.PicklistValue();     three.fullName= ta;     three.default_x=false ;     pt.picklistValues =  new list<metadataservice.PicklistValue>{three};     customField.picklist = pt ;     List<MetadataService.SaveResult> results =         service.updateMetadata(             new MetadataService.Metadata[] { customField });     handleSaveResults(results[0]);     // Get the values for the picklist  }   I found many articles regarding this but there is no solution.  Any help would be appreciated!.

I have used the following code to add new picklist values to the picklist field called "Tags__c" in contact object. The code works and the new picklist values are getting created successfully but they are not added to any record types and hence i have to manually add them to the record types to view the new values in UI. I need to do assign the existing record types for the new picklist values created through apex metadataservice code.  public static void updatePicklist() {     MetadataService.MetadataPort service = new MetadataService.MetadataPort();                  service.SessionHeader = new MetadataService.SessionHeader_element();     service.SessionHeader.sessionId = UserInfo.getSessionId();     MetadataService.CustomField customField = (MetadataService.CustomField) service.readMetadata('CustomField', new String[] { 'Contact.Tags__c' }).getRecords()[0];     metadataservice.PicklistValue two = new metadataservice.PicklistValue();     two.fullName= 'Sample 1';     two.default_x=false;     metadataservice.PicklistValue three = new metadataservice.PicklistValue();     three.fullName= 'Sample 2';     three.default_x=false;     customField.picklist.picklistValues.add(two);     customField.picklist.picklistValues.add(three);   handleSaveResults(     service.updateMetadata(         new MetadataService.Metadata[] { customField })[0]);    }   Can someone suggest me a solution for this?


Code environment:   .Net Framework 4.6.1 Web API Entity Framework SQL Server 2017 Developer   The situation is : When I use (localhost) in connection string in web config. (something like this)  connectionString="data source=(localhost);initial catalog=CN_CHANNELTREE;user id=LOA_WEB;password=BugsFor#;MultipleActiveResultSets=True;App=EntityFramework"   It gives me an error: A network-related or instance-specific error occurred while establishing a connection to SQL Server.  But when I change (localhost) to (local), it connected well. And when I connect to SQL Server via SSMS, the local will give me a network-related error and the localhost will connected well.  And meanwhile, my buddy was running the code with (localhost) in connection string properly.  So I'm totally confused. Is anyone can explan this?

I've used all three of these when making local programmatic connections to databases. Is there any real difference between them?


Actually I'm proving that ∀n∃p∈P|n<p<en. Which is a result similar to Bertrand's Postulate, but with a shorter proof. Should I publish my result? If so, as I'm not affiliated with any Research Institute how do I do that?  Edit  Since yesterday I've improved my proof: ∀n∃p∈P|n<p<2n. This means I'm proving Bertrand's Postulate with a simpler and shorter proof. So, which is the most appropriate Journal to publish this result?

I am interested in the situation where you have a very interesting result. For instance, you have solved a very important open problem. However, you are not known in the field and do not have any remarkable publications. Your supervisor thinks the work is good and you submit the work to a high profile journal, but you get rejected.  The thing is that the contribution is very strong. It breaks what most people believe or what they have already proven: e.g., you solve the P vs. NP problem or any other well known open problem.   The reviewers strongly reject your work with no justification and they do not state why the result is wrong. Examples of reviewer comments include:   "The proof must be wrong."  "You cannot achieve such a result."  "You do not understand well the notion of ..."   My question is what to do in this situation? Where to go? If your advisor accepts the work, but the reviewers from the top journal reject the work without even explaining the mistakes,  what should you do?


I have many of different materials, and they each need to have a mix factor changed all at once. I do not want to animate all of them separately. Is there any way to use one thing for all of them?

How can I get a Node input/output (e.g. a single Color/Value) that I can control from the one spot, but have mapped across multiple materials? For example, to control a value (say, Glass Shader IOF, or a Mix Shader Fac) across 30 different materials (that may or may not have different node setups, but all use the input I want as a driving factor somewhere inside). I've got a few ideas so far, but am not sure which will work and/or which will be the best way to go about it:  Use a Node Group I tried setting up an input inside a node group, then using the node group in various locations - however I could only seem to automate/keyframe the 'default' values of things inside the group (these changes didn't flow through into the instances of the group).  Script node I could set up a Script Node that returns the value I want - however I imagine this would be tricky to automate, and it would also lock me into OSL, which feels a bit roundabout and also rules out GPU rendering (not essential but it would be nice)  Driver I could set up a dummy object or material, set up drivers through to the things I want to control, then keyframe the dummy object and that might achieve what I want. However this again feels a bit roundabout/messy.    Background: I'm working on a model that has a non-trivial number of materials (just over 100, auto-generated from a 3D scanner), and am trying to set up effective backface culling in rendering by using the method described . This involves scripting the addition and connecting of all the extra nodes (Mix shader controlled by Geometry Backfacing, and a Transparent BSDF node to make the faces be rendered transparent from the back), because doing it manually for all 100+ materials would be a pain. It's not essential, but I was thinking it would be nice to be able to control the overall effect by automating all the Transparent BSDF Alpha amounts - I'm just not sure how I'd go about controlling that from a single point though.


In this , Tony Northrup says that because the kit lens of Nikon D3300 is 9 mega pixel, you won't use all 24 mega pixel provided by the sensor.  What is the lens resolution? I know that the sensor is made of small dots or pixels which define the sensor's resolution. How do we define lens resolution?

I know that in a CMOS sensor the megapixels give you an idea of how many pixels are actually there to capture the light. In terms of a lens however, I cannot find any relation between the megapixels of a lens and that of the CMOS sensor. I agree that sensor size is important and that all light should fall on the active area of the lens. And I get 1/3 inch lens, 1/2.5 inch and so on. But I see many lenses which say 2 mega pixel lens on them (like in ). What does this actually mean?


Which sentence is correct?  I have read the books that you had introduced me. I have read the books that you had introduced to me.

I had a Grammar homework and I was asked to fill in the gap of the following sentence :   My father ... subscribe to the Newsweek.   I had been given four options and only one of them fits in with the sentence, they are as follows :   A- Said to me  B- Suggested that I   C- Suggests me to   D- Encouraged me  I had chosen the answer "C" but I discovered later that the teacher considered it as incorrect, and that "B" is the appropriate answer, which made me so confused. Could you please explain to me why ?


Using Python 2.7.10, I have found quite by accident that 5*math.sqrt(3) and math.sqrt(5**2*3) are not the same float:  import math import decimal  print decimal.Decimal(5*math.sqrt(3)) print decimal.Decimal(math.sqrt(5**2*3)) print 5*math.sqrt(3) == math.sqrt(5**2*3)   returns   8.660254037844385521793810767121613025665283203125 8.6602540378443872981506501673720777034759521484375 False   which shows that they differ on the 15th decimal place. Intriguingly, this does not happen for numbers neighboring 5 and 3. The following code show a few pairs of numbers for which the equality fails:  for j in range(1,10+1):     for i in range(1,10+1):         a = i*math.sqrt(j)         b = math.sqrt(i**2*j)         if not(a == b):             print [i,j],   The list of problematic [i,j] pairs include: [3, 2] , [6, 2] , [9, 2] , [5, 3] , [9, 3] , [10, 3] , [3, 6] , [6, 6] , [7, 6] , [3, 8] , [6, 8] , [9, 8] , [5, 10] , [7, 10] , [10, 10]... Any ideas on why the rounding breaks, and why precisely for these pairs, and not others?

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


In Harry Potter & The Chamber Of Secrets, when Harry and Ron fail to cross the 9&3/4 barrier, they use their flying Ford Anglia instead to fly to Hogwarts.   It is implied that there is some sort of barrier between the Muggle World and Wizarding World (at least the Hogwarts Express platform).   But it is unclear how they bypassed that barrier while flying using the Anglia. Has there been a canon explanation to this?   And how exactly did Ron know the route to Hogwarts and the train route of the Hogwarts Express (they cross their paths with Hogwarts Express in the movie) ?

This question is related to  and explores an apparent inconsistency, given only the Harry Potter movies as source material.  The Hogwarts Express line seems to have an inconsistent existence between magical (invisible to ordinary humans aka muggles) and non-magical (muggle) realms; platform 9-3/4 is clearly hidden from muggles, but in Chamber of Secrets, when Harry and Ron take the car (in the muggle world) to catch up to the train, they make no explicit crossing into a magical realm, suggesting that the train is traveling the muggle world despite its departure from a magical platform.  In which realm (magical or muggle) does the Hogwarts Express exist? How is this apparent inconsistency resolved?


Out of desparation I opened a new google account an hour ago because I was getting nowhere trying to recover my old one which worked fine yesterday

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


Suppose Galileo dropped a one-kilogram ball of cotton and one-kilogram ball of iron from the top of the Leaning Tower of Pisa, then which one will reach the ground first? Assume that the cotton ball is tightly wadded up and that initially the bottoms of the cotton ball and iron ball are at the same horizontal level.   The answer to this question apparently is the iron ball, but I don't see any reason why that'd be, considering that they have equal masses! Does density affect the rate at which an object falls?

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?


DESCRIPTION  I want to be able to eliminate special characters in mysql. I WAS using mysql_real_escape_string but I was told it was not correct, and soon to be discontinued   Question  What is an alternative for using mysql_real_escape_string in my case below? Or is there another approach?  ISSUE  I am parsing CSV form URL, and creating INSERT statements.  In my case I'm reading in data from an CSV via URL, examples online don't take into account $f_pointer.  Here is an example of one of data lines to insert:  Note: the ' in Green's Mill is causing the issue.  INSERT INTO scores(place,person,score,grade,round,location)values('-','Alex','2','5','','Green's Mill')   My Failed Approach for solving the ISSUE:  I was using mysql_real_escape_string - clearly badly   SCRIPT - Parse Data & Create Insert   <?php  $servername = "localhost";   $username = "root"; $password = "XXXX"; $dbname = "player";   // Create connection   $conn = new mysqli($servername, $username, $password, $dbname);          $f_pointer=fopen("compress.zlib://https://www.url.com/api/v2/projects/xxxx/last_ready_run/data?api_key=xxx&format=csv","r");   $sql = "TRUNCATE TABLE scores";  $conn->query($sql);        if ( $f_pointer === false )         die ("invalid URL");     $ar=fgetcsv($f_pointer);    while(! feof($f_pointer)){         $ar=fgetcsv($f_pointer)  ; $sql="INSERT INTO    scores(place,person,score,grade,round,location)values('$ar[0]','$ar[1]','$ar[2]','$ar[3]','$ar[4]','$ar[5]')";  $conn->query($sql);    echo $sql;  echo "<br>";      } ?>   OUTPUT RESULTS  Fails to insert because of the special character ' in the location field.  DESIRED RESULTS  INSERT INTO scores(place,person,score,grade,round,location)values('-','Alex','2','5','','Greens Mill')   Note: Green's Mill would needs to be Greens Mill without the '.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I'd like to know an equivalent to wget enabling me to set the proxy while calling the command (like wget --proxy=$http_proxy).  Any ideas ?

I can set my proxy username and password along with proxy settings in the proxy ui but these settings do not work on the command line. How can I use apps such as wget & ping on the command line with a proxy?  Example Details:   username: 1234 pass: linux proxy: proxy port: 8080


I work on ubuntu 19.04 and want to install Arduino .I can extract the files but I cannot run the install.sh file as it says command not found.

Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal.  How do I open this file in the terminal?


I would like to know how to put a time delay in a Python script.

How do I get my Python program to sleep for 50 milliseconds?


There is such a term but I can't remember it. We learned it in Junior High. A co-worker of mine can't remember it either, but she thinks it begins with para-, which helps me none.

What is the term for someone who has a last name that can also be a first name? For example, Brian Stella.


I'm wondering why this works the way it does:  var_dump(5 == "5 AND SOME TEXT");   output:  bool(true)   This same output is also achieved when comparing floats like this:  var_dump(1.234 == "1.234 AND SOME TEXT");   This must be an intentional effect since it's quite a basic thing and works in multiple PHP versions. I just don't see how this could be intended.

What is the difference between == and ===?  How exactly does the loosely == comparison work? How exactly does the strict === comparison work?  What would be some useful examples?


Please find my code below:  <?php         //Insert New User to Database         $username = "root";         $password = "root";         $hostname = "localhost";         $db = "ab-cargo";         $conn = mysqli_connect($hostname, $username, $password, $db);          if (mysqli_connect_errno()){             echo "Failed to connect to MySQL: " . mysqli_connect_error();         }          $user_id = $_SESSION['namechat'];         $user_email = $_SESSION['emailchat'];         $last_login = $datetime_formatted;          mysqli_query($conn,"INSERT INTO users (`user_id`, `user_email`, last_login, isActive) VALUES ('".$user_id."', '".$user_email."', '".$last_login."', 1)");         mysqli_query($conn,"UPDATE users SET last_login = ".$last_login.", isActive = 1 WHERE `user_email` = ".$user_email."");      ?>   Please help me to find what's wrong with mysqli_query because it won't update and insert the data in my database, even though the connection is finely working (I know it because user is able to login).  Edit: Query insert is to input new user data into the database and if the user data is already in the database before, the update query will update last_login time/date only.


I need \section (\subsection, \subsubsection ...) titles printed with dot after numbering.  Example:   My Title   For this purpose i use:  \renewcommand\thesection{\normalfont \arabic{section}.}  \renewcommand\thesubsection{\thesection\arabic{subsection}.}  \renewcommand\thesubsubsection{\thesubsection\arabic{subsubsection}.}  \renewcommand\theparagraph{\thesubsubsection\arabic{paragraph}.}   But this method also adds extra dot to \ref{} commands. So code "Look at section \ref{section:label}." produces string "Look at section 3.."  Is there any way to add dot only to headlines and ToC, but not to references?

I wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to do that?  Thanks a lot


I found the following part titled ACM Reference format in the body. How can I get rid of this?   ACM Reference format: Ben Trovato, G.K.M. Tobin, Lars Thørv¨ald, Lawrence P. Leipuner, Sean Fog- arty, Charles Palmer, John Smith, and Julius P. Kumquat. 1997. SIG Proceed- ings Paper in LaTeX Format. In Proceedings of ACM Woodstock conference, El Paso, Texas USA, July 1997 (WOODSTOCK’97), 4 pages. DOI: 10.475/123 4

I have downloaded the new ACM template for conference proceedings (sigconf format). Even when I comment out the lines that are related to conference information, price, DOI, etc. I get the following lines on the first page:  Conference’17, Washington, DC, USA 2016. 978-x-xxxx-xxxx-x/YY/MM. . . $15.00 DOI: 10.1145/nnnnnnn.nnnnnnn   I have uncommented the line  \setcopyright{none}   so the copyright notice is gone, but the above information is still there (from acmart.cls)  Additionally, I get the paper's name on odd pages and conference information at the top of every page. How should I remove these lines?


Is it possible to download apps on iPhone 4 without creating an Apple ID ?

"This Apple ID has not been yet been used before in the iTunes Store. Tap review to sign in, then review your account information."   I keep getting this message when I try to install free apps from App Store. I don't want to give my account info until I actually purchase something.   Can I not download free apps until I provide my account information? My email verification is complete. I'm using an iPhone 3GS logged in to my iTunes account.


I was reading some material about errors that should be avoided when writing C programs and I came across the following code:  #include <stdio.h>  void foo(int param) {   printf("foo is called\n");   printf("%d\n",param); }  int main() {   return foo,(1); }   The code above build without errors and warnings (it only show a warning when -Wall is activated) but when I run the small program nothing is displayed. The function foo is not called because of the comma separator.   My question is why the C standard allow such syntax? Shouldn't the compiler issue an error in this case? In which context this syntax could be used in some real use case?  Thanks in advance,  PD: I'm using GCC 4.8.3  EDIT:  Couldn't the compiler in this case detect the situation and issue an error instead of warning (as I said it only appears when -Wall is enabled)


This is my code but it's not good because they do not line up. I have to remove the empty spaces, and group the process bars    function clickMe(abc) {   var v = document.getElementsByClassName(abc);   hidden('.progress');   for (var i = 0; i < v.length; i = i + 1) {     v[i].style.visibility = 'visible';   } }  function hidden(elemnt) {   var hide = document.querySelectorAll(elemnt);   for (var i = 0; i < hide.length; i = i + 1) {     hide[i].style.visibility = 'hidden';   } }   When I click, I compare

The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?


How do I take a photograph of anything in its original without any processing done on the image/photograph?  Most of the digital cameras apply colour/light corrections after the image is captured.  Analog/film is almost gone and outdated. If analog cameras can capture an image in its original then answer about that, too.

What settings of my DSLR camera will emulate the scene exactly as I can see through my naked eyes?  I think it's not possible to get the contrast and colors exactly as my eyes can see, and it may vary from person to person. So, I am more interested in focal length of the lens. If anyone can give more insight beyond focal length, I will be glad to know.  For example, if I am standing on the seashore and want to capture the sunrise, what should be the focal length so that I can cover the angle of view which my eyes can see, and so the size of the objects in the photo will be precisely like my eyes perceive it?  My camera is an APS-C Canon EOS 1000D. I have 50mm 1.8 and 70-300mm Sigma , Can it be achieved through this equipment lens? Till now, I have not achieved or been satisfied with what I see and what I get.


My son doesn't want to share anything with other kids, and if some kid even so much as touches his toy, he pushes the kid. He shouts and cries at the same time, and tries to express his anger by pushing and hitting the kid. I feel so embarrassed in front of other parents.   And when he is at home with me and doing something wrong, I try to stop him, he tries to repeat my words and shouts at me. He is copying the behavior of others, whether it's a good act or bad...  Please help me how to stop him from being a bully.

How can an 18 month old be taught that bullying is not ok? He seems to like causing the trouble it brings upon him, and bullying, mean acts also seem to please him. He likes to sit on his younger cousin (my son), push him down, and steal his toys. His parents seem to be at a loss about it, and I don't really have any good suggestions to give. Thanks.


I followed this tutorial from 2014:   I am installing Linux Mint 19.1 XFCE and Ubuntu 18.04, both fully encrypted in a single disk. First I installed Linux Mint on /dev/sda5.  After following all steps to install the first Linux, and rebooting the machine, I got into the  with this error:      When following the tutorial, I ran the following commands:   fdisk /dev/sda, then, created the following partitions:     cryptsetup luksFormat /dev/sda5 cryptsetup luksOpen /dev/sda5 sda5_crypt pvcreate /dev/mapper/sda5_crypt vgcreate vggroup /dev/mapper/sda5_crypt lvcreate -L1G -n mint_xfce_swap vggroup lvcreate -L8.9G -n mint_xfce_root vggroup     mkdir /mnt/newroot mount /dev/mapper/[vg-name]-[root1-lv-name] /mnt/newroot mount -o bind /proc /mnt/newroot/proc mount -o bind /dev /mnt/newroot/dev mount -o bind /dev/pts /mnt/newroot/dev/pts mount -o bind /sys /mnt/newroot/sys cd /mnt/newroot chroot /mnt/newroot mount /dev/sda1 /boot blkid /dev/sda5       update-initramfs -u update-grub      exit reboot     Other references:

The Ubuntu installation disk has an option to install Ubuntu encrypted using LUKS. However, there is no option to perform an encrypted installation along-side existing partitions for a dual-boot scenario.  How can I install Ubuntu encrypted alongside another partition from the live disk?


If often heard that I should declare String in Javascript in ' (single quotation marks) instead of " (double quotation marks) like in Java or other languages.  Unfortunately did i never ask why to do that.  The "best" answer I got until now was      It's more performant   Is that true? And why?

console.log("double"); vs. console.log('single'); I see more and more JavaScript libraries out there using single quotes when handling strings. What are the reasons to use one over the other? I thought they're pretty much interchangeable.


I am new to Ubuntu, using 14.04. I was wondering if there is any way of putting up a picture or wallpaper on the Ubuntu desktop background as there is in Windows.

Since I upgraded to Ubuntu 13.10 I can't find a way to chose a custom picture as desktop background. I tried System settings -> Background, but this menu does not provide any file picker to choose a picture but shows only the preinstalled pictures:    Or an empty window:    I can't find the options to set how the picture ought to be displayed either (like stretch or scale)  Do I have to install Cinnamon desktop just to be able to change my background picture? How can I do it with Ubuntu?


How can we find the maximum current a source can provide,say if my device need 1amp and the source can provide 2 amps in the rated voltage will my device only draw 1 amphere or will it draw 2 amp in this case is there any chance my device may burn out of over current.

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


Here i configured the search services but while searching with half name of  the uploaded document the search results are not showing the document..

I have search service application configured.  Suppose my first name is "frankmartin" (no spaces)  When I search "frankmartin" then it displays search results in both "People" and "Site" search. But when I search "frank" it doesn't display any search result. Why is that?  EDIT  I am not using advanced search and have made this search results page using those search web parts which you can add in page to display results.


I'm writting to ask for some help  Can you tell me the usages of shall in daily speaking  Thank you.

Which is the correct use of these two words, and in which context should one be used rather than the other?


I know the reason is the incompatibility of the packages, but I tried all the possibilities and I couldn't reach to the point of removing '=0' without changing the algorithm style I want.  .    \documentclass{IEEEtran}    %\usepackage{algorithm}    %\usepackage{algorithmicx}    %\usepackage{algcompatible}    \usepackage[linesnumbered,ruled]{algorithm2e}   \usepackage[noend]{algpseudocode}% http://ctan.org/pkg/algorithmicx    \usepackage{float}    \begin{document}     \begin{algorithm}   \SetKwInOut{Input}{Input}   \SetKwInOut{Output}{Output}   \Input{The .}   \Output{M $T$.}   \Procedure {Update}{$Index, CurrentNode$}\\   \eIf {$index$ not in $CurrentNode.MapTable$}{   \begin{algorithmic}[1]   \State Create a new entry in $CurrentNode.MapTable$\;   \State Insert $index$ in the new entry\;    \State Create a new node $E$\;   \State Create a new entry in the $CurrentNode.children$, correspond to  previously created entry\;     \State Make the new entry point to E\;   \State $E.parent$   $\leftarrow$ $CurrentNode$\;   \State $CurrentNode$ $\leftarrow$ $E$\;   \State Initialize $CurrentNode$ materialization and entries\;   \end{algorithmic}   }{   \begin{algorithmic}[1]   \State  Child pointed by\;   \State Update \;   \end{algorithmic}   }   \EndProcedure \\   \For{$i\leftarrow 1$ \KwTo $N$}{      \For{$l\leftarrow 1$ \KwTo $h$}{           \State  $index [l]$  $\leftarrow$ generate index of data object $O_i$    for level $l$ using $W_l$\;      }              \eIf{$T.root$ is Null }{          \State Create a $root$ node \;      }{         \State $CurrentNode$ =\ $root$ \;          \CALL \textsc{Update}{$(Index, CurrentNode)$}\;      }       \For{$l\leftarrow 2$ \KwTo $h-1$}{              \CALL \textsc{Update}{$(Index, CurrentNode)$}\;       }    }   \caption{Build}   \end{algorithm}    \end{document}

Can you suggest me what is wrong with using return command in algorithms. when I add  \RETURN $C   to my LaTeX document I get   return C =0,   what I need is just return C.  \begin{algorithm}                      % enter the algorithm environment   \caption{ lloyd's kmeans}         \label{alg1}                             \begin{algorithmic}[1]                    % enter the algorithmienvironment     \RETURN{$C$}   \end{algorithmic} \end{algorithm}   I get two extra characters =0. I wonder where its coming from. if it helps,there is  "Missing number, treated as zero",and  Missing = inserted for \ifnum. in the error log generated


Ubuntu 15.10  I am TOTALLY confused by all the posts about the new service loaders, and rather concerned that Mongo don't seem to think that it is their issue to solve.  is one of several posts that suggest it is nearly impossible, except with manual interventions. (A solution from 2011 is not a solution given the current mix of technology used by Ubuntu and Mongo.)  And yet, what I know is that mongod no longer starts at boot time, but that if I open a console and run sudo service mongod start, then it works.  What is the simplest way to automate this during the initial bootup?

I  on clean installed Ubuntu 15.04:  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install -y mongodb-org   It finished without any problems. However, when I tried to start it, I got the following error:  $ sudo service mongod start Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.   How can I fix this?


I'm new to running a game with money in it (the last game I ran was Judge Dredd so it was't an issue), and one of my players turned to me while he was looting the Tresandor Manor and said "What am I going to do with all this money?"  While there are some obvious answers such as "buy new weapons and pay for meals", are there classic things to have people save for in a D&D setting? It seems that the average small encounter could easily uncover enough money to last a long time, and I don't fancy role playing an Independent Financial Advisor.  What I was thinking was trying to get the players to essentially fund the development of Phandelvar, meaning that they would need to return to the area every so often in order to see how things were progressing.

PHB page 144, Equipment, Wealth, Selling Treasure     Magic Items. Selling magic items is problematic. Finding someone to buy a potion or a scroll isn’t too hard, but other items are out of the realm of most but the wealthiest nobles. Likewise, aside from a few common magic items, you won’t normally come across magic items or spells to purchase. The value of magic is far beyond simple gold and should always be treated as such.   The above excerpt from the 5E rules seems to explicitly state that there isn't a magic item economy, so unlike previous editions you can't just waltz into a large city and score yourself a +2 flaming sword. Also, selling magic items requires finding a buyer, probably only getting a fraction of the item's worth, etc.  I like this from a fluff point of view, as I always felt that magic items never felt special enough, and adding scarcity does that. But: without magic items for sale, in a kick-in-the-door campaign, what do players spend their hard stolen loot on?  Once you've got the top level mundane gear and a stockpile of potions (which won't take long), doesn't gold become sort of worthless?  My group doesn't play D&D as a heavy simulation game, so while we could technically use gold to buy castles, fleets of ships and keep a family of twelve in an aristocratic lifestyle, or even just stockpile gold as an arbitrary score of success, none of that has an in game, crunch effect.  Am I missing something obvious?  For clarification, this question isn't necessarily about wanting to obtain magic weapons, more what you spend all that cash on if magic weapons are out of the question. As noted in one of the answers, this is the same as 1st and 2nd ed, but as noted in the comments, it wasn't necessarily a good thing and articles were written on what to do with all your riches...


I am trying to integrate the  in my project and I wanted to remove the Login button, i.e. such that the Activity switches to the next activity without the user having to click the Login button. For this, I removed the code for setOnClickListener for the mLoginButton and instead, directly called the loginClicked() function, which was previously being called from the onClick() method. But this causes NullPointerException: Attempt to invoke virtual method 'boolean com.example.yankee.cw.SinchService$SinchServiceInterface.isStarted()' on a null object reference. These are the only changes I made to the code:  @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.login);          mLoginName = (EditText) findViewById(R.id.loginName);          mLoginButton = (Button) findViewById(R.id.loginButton);         mLoginButton.setEnabled(false); //        mLoginButton.setOnClickListener(new OnClickListener() { //            @Override //            public void onClick(View v) { //                loginClicked(); //            } //        });         loginClicked();     }   And earlier it was like this:    @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.login);          mLoginName = (EditText) findViewById(R.id.loginName);          mLoginButton = (Button) findViewById(R.id.loginButton);         mLoginButton.setEnabled(false);         mLoginButton.setOnClickListener(new OnClickListener() {             @Override             public void onClick(View v) {                 loginClicked();             }         });     }     Why doesn't this work and gives the NullPointerException instead ?    Edit:

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?


So, I don't really have much knowledge about the coordinate system and sometimes I get stuck in certain things that I just can't get around it. For example, whenever I'm working with a vector that is in UTM and I need to see a raster of that place, I use the plugin to see the google satellite in the background. But how can it be perfectly placed with the vector? Wasn't it supposed to have like a difference between the two since the vector is in UTM and Google works in another coordinate system? How does that work? I am doing something wrong? Could someone explain that to me or give me some references that I could be reading to fully understand the subject?

Can somebody please explain what is the difference between the Coordinate system (WGS 84 for example) and a Projection (Universal Transverse Mercator for example)?  What is the difference between a projected coordinate system and projected CRS


$\lim _{n \rightarrow \infty}\left[(n+1) \int_{0}^{1} x^{n} \ln (1+x) d x\right]$ My work $$ \lim _{n \rightarrow \infty} \int_{0}^{1} x^{n} \ln (1+x) d x $$ can be simplified to: $$ \begin{array}{c} \ln (2)-\lim _{n \rightarrow \infty} \int_{0}^{1} \frac{x^{n+1}}{1+x} d x \\ \because\left|\int_{0}^{1} \frac{x^{n+1}}{1+x} d x\right| \leq \int_{0}^{1}\left|x^{n+1}\right| d x \end{array} $$ Now, here the bound $1+x$ is always greater than equal to 1 $$ \Rightarrow \frac{1}{1+x} \leq 1 $$ $$ \therefore \lim _{n \rightarrow \infty} \int_{0}^{1} x^{n} \ln (1+x) d x=\ln (2) $$ Any shorter approach would be highly appreciated! NB although I have tried to solve this using Dominated Convergence theorem,but couldn't make it

I am stuck on the following problem:     Find the value of :  $$\lim_{n\to\infty}[(n+1)\int_{0}^{1}x^{n}\ln(1+x)dx].$$   My attempts:  Let $$I_{n}= \lim_{n\to\infty}[(n+1)\int_{0}^{1}x^{n}\ln(1+x)dx]=\lim_{n\to\infty}[\ln(2)-\int_{0}^{1}\frac{x^{n+1}}{1+x}dx]$$ and now i can not progress. Please help. Thanks in advance for your time


I am encountering very large standard errors of the endogenous regressor (bigger than the size of the coefficient) in the second step of my treatment-effects model (treatreg in Stata). When I consult Google and literature, the only reason I can find for this is that my instrument is weak. However, when I test my instrument, I get an F-value of 41.85 which as far as I can tell is pretty good. Might there be anything else going on?  Here is my ouput from running the treatreg command in Stata (volunteer = endogenous regressor, tradition = instrumental variable):    Some detailed background:  I am looking at whether wages are influenced by doing volunteer work. This may be the case, in theory, since volunteering may be an investment in human and social capital which should increase earning power. However, since volunteers are often individuals with an abundance of human and social capital, bias may result from omitted variables and I therefore may have correlation with the error term.   My instrument is a self-reported dummy variable that measures whether an individual has a tradition for volunteering in their family. This variable is highly significantly correlated with whether they volunteer at present but not their wages.

I am doing an IV regression after OLS. From OLS I get significant results but I want to control for endogeneity and check reverse causality. So when I do IV, the sign of my main explanatory variable changes. That I can explain in theory. But my result is insignificant. Any reason why the significance changes when going from OLS to IV and any ways to handle the problem?


I created a table and inserted values into it but they are not storing in orderly manner. The table looks like:   I can order them by using ORDER BY but it does not change them permanently. Is there a way to save them in orderly manner permanently.  Clarification: I don't want how they are stored internally, what I want is when ever I execute select * from cricket; the results to come sequentially. So that I don't want to use ORDER BY clause every time. Is there a way?

Suppose you have the following table and data:  create table t (     k int,     v int,     index k(k)     ) engine=memory;  insert into t (k, v) values (10, 1),        (10, 2),        (10, 3);   When issuing select * from t where k = 10 with no order by clause, how does MySQL sort the records by default?


I'm using now Ubuntu 17.10 in work and Ubuntu 16.04 in home. In new Ubuntu 17.10 gui switched to GNOME where you have date in the middle of your taskbar. In previous releases there were Unity as a default environment and date always display on right hand side. How can I change GNOME taskbar to show date on right handside?

How do I move the clock to the right of the panel in Ubuntu GNOME?  In other words, I want the clock to be in the same place as in Ubuntu Unity 16.04.


I'm trying to use JSforce library to create/update class using the tooling object. Please note that it is only in sandbox, I do know that in production org it won't work. Anyway, I'm able to create the class, but when the class already exists and trying to update, it return an error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY: insufficient access rights on cross-reference id I'm thinking it happen because for update we should use ApexClassMember and ContainerAsyncRequest, but I'm not sure if and how those components can be used with JSforce, or I should stop using JSforce and instead use Http rest from apex to invoke the relevant API calls. if(existingApexClassId){     conn.tooling.sobject('ApexClass').update(             {                 Id : existingApexClassId,                 body: apexClassBody},             function(err, res) {                 if (err) { return console.error(err); }                 console.log(res);     }); }    else{     conn.tooling.sobject('ApexClass').create({         body: apexClassBody     }, function(err, res) {         if (err) { return console.error(err); }         console.log(res);     }); }

How do I use the Tooling API to create a new Apex Trigger (rather than update an existing one)?  According to the  I need to specify the ContentEntityId as an existing Trigger Id. But in my case I don't have an Id because I've trying to create a new sObject.  If I omit the ContentEntityId I get an error back in the SaveResult:     Status Code: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY   Message: "insufficient access rights on cross-reference id"   The following is more or less a test case in C# that attempts to use the SOAP tooling API to create the new trigger.  SforceService toolingService = //... Get instance of the Tooling API  MetadataContainer container = new MetadataContainer(); container.Name = "Test" + DateTime.Now.Ticks;  SaveResult[] saveResult = toolingService.create(new sObject[] { container }); string metaDataContainerId = saveResult[0].id;  ApexTriggerMember apexTriggerMember = new ApexTriggerMember(); apexTriggerMember.MetadataContainerId = metaDataContainerId; apexTriggerMember.Body = "trigger TestOpportunityBeforeUpdate on Opportunity (before update) {\n//Horray\n}";     // Adding this will successfuly update the existing trigger //apexTriggerMember.ContentEntityId = "01q70000000GuzP";  SaveResult[] triggerSaveResults = toolingService.create(new sObject[] { apexTriggerMember }); Assert.AreEqual(1, triggerSaveResults.Length); SaveResult triggerSaveResult = triggerSaveResults[0]; if (!triggerSaveResult.success) {     Assert.Fail(triggerSaveResult.errors[0].message); } Assert.IsTrue(triggerSaveResult.success);  ContainerAsyncRequest containerRequest = new ContainerAsyncRequest(); containerRequest.MetadataContainerId = metaDataContainerId; containerRequest.IsCheckOnly = false;  SaveResult[] containerResults = toolingService.create(new sObject[] { containerRequest });


#include <iostream> using namespace std;  int main() { int arr1[10]={1,2,3,4,5}; cout << "Address is : " << arr1 << endl;  char arr2[10] = "Hello"; cout << "Address is : " << arr2 << endl; }  In this code, I expect that the adress of arr1 will printed first, and then the adress of arr2 also will printed second. Because the name of the array is the same as the starting address of the array.(arr = &arr[0]) However, But as a result of the execution, this is what it looks like. Address is : 0x7ffde1799760 Address is : Hello I wonder why printing arr2 does not print the starting address of the array, but the string stored in the array. Thanks :)

I'm using C++ to understand how exactly pointers work. I have this piece of code using arrays, which I'm using just to understand how the equivalent works with pointers.  int main() {         int arr[10] = {1,2,3};         char arr2[10] = {'c','i','a','o','\0'};     cout << arr << endl;     cout << arr2 << endl; }   However when I run this, arr outputs the address of the first element of the array of ints (as expected) but arr2 doesn't output the address of the first element of the array of chars; it actually prints "ciao".  What is it that I'm missing or that I haven't learned yet about this?


I would like to find the closed form of:  $$\int_0^{\pi/2} \frac 1 {1+\tan^{s} x} \, dx$$  I have tried substitution method, $t=\tan (\frac{x}{2})$ Then I ended up with with a very complicated rational function in the integrand.   Can anyone help?

Evaluate the integral $$\int_0^{\pi/2} \frac{1}{1+\tan^\alpha{x}}\,\mathrm{d}x$$


I wrote this sentence     In this paper, we aim to present an approach and a system to construct wrappers which are independent of the HTML structure of the page.   I know the difference of "which" and "that" as that is restrictive but which is not. However, in articles as I searched in Google I saw both usage.  Then I am confused if it is a restrictive or non-restrictive here, as I heard to avoid using which for restrictive clauses, and they may need a "the" article before the noun!?

What is the difference between the words which and that?  For example I have the following sentences:   “I have a car which is blue.” “I have a car that is blue.”   Are there any rules specifying usage of which and that?


[edit]  I've altered my node-tree like suggested in the other post. It changed a cluster of maybe 8 pixels. The solution I'm looking for will result in straight edges without jaggies. Blurring the edges is not what I'm looking for. I need crisp sharp edges on the car. Perhaps these new images make for a better example. Again, thank you for your time and effort!  Cheers!     [original post]  Hello people of this fine community!  I'm having a problem with jagged edges on the geometry of the roof of the car in cycles render and I have no clue how to smooth them out.  Render samples are set to 1000.  I have 3 render layers: 1 with the car, 1 with geometry acting as a shadowcatcher and 1 with the background image. There's 1 big lightsource.  When blender is busy rendering the geometry of the car and there's still a transparent background, the roof of the car is smoothed out. The jagged edges only become visible when all renders are put together in the composite at the end.  I actually quite like it. Sentiment for oldschool games I guess but my projectleader is not having it..    Please help!  Thanks in advance!

now it is last thing in my first project in blender. I made the model below in images and I thought everything is going well until I rendered it then I saw the quality is bad around the object that I built? Is there any thing that I must do in render to have better result? I will attach blender file to take a look.


What is the summation of this infinite series $$1 + \frac{1}{3} + \frac{1}{7} + \frac{1}{15} + \frac{1}{31} + \frac{1}{63} + ... ?$$

How to evaluate this infinite sum?  $$\sum_{n=1}^{\infty}\frac{1}{2^n-1}$$


I've read somewhere that every natural $n$ can be expressed using only Fibonacci's numbers which index is superior or equel to $2$. For example $$ 25=F_{8}+F_{4}+F_{2} $$  I wonder if there exists a proof of this statement because I have no clue about it. Maybe an induction ?

Can anyone hint me to prove:  $\forall n\in \mathbb{N}: \exists$ Fibonacci numbers $ F_{i_1},\ldots,F_{i_k}$ such that: $$\sum F_{i_k}=n$$    Note: Every Fibonacci number can appear only once. Thanks


In my head, direct current makes complete sense; the electrons carry energy around the circuit to something being powered losing its potential and then return to the battery or whatnot to have their potential raised again. This is probably wrong, so I would like an explanation of how a direct current actually transfers energy and also how an alternating current does (I have zero intuition for this).

I have been looking in to alternating current and I am confused. If the voltage reverses doesn't the flow of electrons also reverse? I am aware of another fair answer on this site . That answer, however, confused me just a bit. I gathered that the electrons do not per se "flow." Is this true? How is the electrical current moving?


I'm not able to login even if the password is correct . Whenever I try to login it accepts the password but returns back to the login screen . Please help

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


I was wondering how I can bring back the object menu table after it disappears. When I add an object this object menu appears, but if I click somewhere else it disappears and I can't find a way to bring it back as it is.

When you first add a cylinder, you have the option to change the number of vertices, etc, but once you do anything else in blender, it seems you no longer can edit those parameters.   Is there a setting anywhere or an add-on that allows these parameters to be edited later on? If not, how easy would such an addon/feature be to create for anyone reading this?


My problem is:  An urn contains $10000000$ ($10^7$) different colored balls, namely $K_1, K_2,\dots,K_n  (n=10^7)$ with $K_1=1000, K_2=1000,\dots,K_n=1000$. My question is:  How many balls do I need to extract to ensure to obtain $90\%$ ($1000000$ or $10^6$) of all the colors?  Many thanks in advance.

My problem is: suppose I have an urn containing balls of $n = 10000000$ (i.e., $10^7$) different colors, with $1000$ balls of each color (so the total number of balls is $1000n = 10^{10}$). Suppose I draw $100000000$ (i.e. $10^8 = 10n$) balls. My question is:  how do I calculate the probability that I have drawn at least 90% (in this case $1000000$ or $10^6$) of the different colors?  Many thanks in advance


I have been trying to solve this following problem:  If $2^p-1$ is a prime then prove that $p$ is a prime, where $p \geq 2$.   which way should I go to prove this? Using fermat's or Bezout's theorem? or is it something else?   This is what I managed to come up with,I am confused about it and  not sure if it is correct:  If $p$ is a prime and $2 \nmid p \rightarrow$ gcd$(2,p)=1$  so,  $2^{p-1} \equiv 1(p) $  $2^p\equiv2(p)$   so, $2^p\not\equiv 1(p) $ and since $2\not\equiv 1 (p)$   conc: $p\nmid2^p -1$   Any hints are appreciated.

I understand the idea of the proof. I just want to make sure I wrote my proof well.  Suppose $n$ is not prime. Then $\exists x,y \in \mathbb{Z}$ such that $n = xy$.  $2^{xy} - 1 = (2^x)^y - 1$  $ = (2^y - 1)(2^{y(x-1)} + 2^{y(x-2)} + ... + 2^{y} + 1)$  Since $2^{n} - 1$ is divisible by $2^y - 1$ it must be that $2^n - 1$ is not prime. Contradiction. Thus $n$ must be prime.  How does this look?