How many sequences of $n$ tosses of a coin that do not contain two consecutive heads have $H$ as the first toss and $T$ as the second?

If you toss a coin $n$ times, there are $2^n$ posible sequences of heads and tails. Let $E_n$ be the set of sequences which do NOT contain two consecutive heads and $e_n$, the number of sequences in $E_n$.  Thus $E_3$ $=$ $\{$ $TTT$, $TTH$, $THT$, $HTT$, $HTH$ $\}$ and $e_3$ $=$ $5$.  How many elements of $E_n$ have $H$ as the first toss and $T$ as the second?


Can't Nick Just Cure Juliette With His Blood?

In the last few episodes we've seen that Juliette has      Somehow transformed into a Hexenbiest.    Shouldn't Nick be able to cure her simply by having her ingest some of his blood?


Exam Class: Make math expressions in \correctchoice bold

I'm using the exam package to create a mathematics question paper. When printing answers, the \correctchoice command makes the choice letter as well as the text in the choice bold. However, it does not make any mathematic expressions bold.  Is there a way to add this to the document? I think the commands \boldmath and \unboldmath when put around the text will make both normal text and mathematic expressions bold, but I do not know how to "merge" it with the \correctchoice command.


How to use textures with transparency with eevee's principled bsdf?

the method I was told to use involving mix shader doesn't work


Evaluate the integral $\int_{0}^{\infty}\frac{e^{ax}-e^{bx}}{(1-e^{ax})(1-e^{bx})}dx$

Evaluate the integral $$\int_{0}^{\infty}\frac{e^{ax}-e^{bx}}{(1-e^{ax})(1-e^{bx})}dx$$ for constants $a,b$.  I tried separation by partial fractions, but couldn't do it.


Are there portable non-electrical water filters that filter chemicals, metals, and pathogens?

My relatives will be travelling in North America, UK, and Hong Kong. For environmentalism, they do not use bottled water, and need a water filter that:   removes chemicals, metals, and pathogens. They will always boil any filtered water as extra precaution.  can be transported (i.e. no installation or plumbing changes needed) are not jug/pitchers (e.g. BRITA, Mavea, Pur) because    These should be non-electrical ()


Can I bring a decorative clay adorned goat skull to the US from Guatemala? It is a real goat skull but covered with clay on the front and stones. It has its horns still as well. Is this legal or will I be fined if it was found?


If the Earth would change into a ball of water, how wil its form develop, considering only the Sun's and Moon's influence?

Let's fantasize that the Earth changes in a non-rotating ball of water. And let's assume the only gravitational influences on it are those of the Sun and Moon.   What will happen to the form of the ball?  Will the form of the ball, for example, elongate (spaghettify) along the Earth-Moon axis (because of the tidal forces) while rotating in sync with the rotation of Moon around the CM of both? Because the direction of the developing elongation (if this happens, which I think will because there is no solid Earth to stop it) is rotating, the (much less strong) gravitational influence of the Sun on the rotating water will contribute to the elongation of the water as well as to a change in the form perpendicular to the elongation of the water.   So there are three contributions which will superimpose: 1) An elongation of the ball due to the tidal force between the Earth and the Moon an elongation. 2) An elongation due to the Sun's gravity if the long axis of the elongation is parallel to the line connecting the center of the elongation and the center of the Sun. 3) A broadening of the elongation, also caused by the Sun's gravitation, if the long axis of the elongation is perpendicular to the in 2) described line. If the elongation is between these two orientations there is a combined effect of elongation and broadening.  So is it fair to conclude: the ball of water elongates only along the line that connects the middle points of the Earth and the Moon until the water hits the Moon's surface after which the elongation rate fastens (because of the increase of the mass of the Moon). The thickness of the "spaghetti" decreases until the moment the last water falls on the Moon? A little bit (because of the relative weakness of the Sun's gravity) of the elongation is caused by the Sun. Also, the elongation broadens a tiny bit (when the elongation is tangent to the Earth's orbit in a maximum way and also when the elongation finds itself in a different orientation (but then the broadening becomes less, and the elongation bigger), so a kind of long slab (a little bit broader than high) will hit the surface of the Earth when taking the influence of the Sun in account. The Sun's influence is negligible compared to the Moon's influence so the ball transforms (by good approximation) as I wrote at the beginning of this Alinea.    So is my conclusion fair or am I missing something here?


What is the "correct" way to have commas between footnotes and prevent footnote superscripts from breaking across lines?

This is what I have done: \documentclass{article}  \begin{document} Some text. Some text. Some text. Some text. Some text. Some text.\footnote{This is footnote 1}\textsuperscript{,}% \footnote{This is footnote 2}\textsuperscript{,}% \footnote{This is footnote 3}\textsuperscript{,}% \footnote{This is footnote 4}\textsuperscript{,}% \footnote{This is footnote 5} Some text. \end{document}  Which produces:   Is there a better way to do this, without having to manually put in the \textsuperscript{,}? I'd like it to be automatic.


Since upgrading to 12.04 from 8.04->10.04 I can no longer upgrade or install new packages.  I do get a large number of errors, but the first is the resyslog:   root@sub:~# apt-get -f install  Reading package lists... Done  Building dependency tree  Reading state information... Done  0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.  9 not fully installed or removed.  After this operation, 0 B of additional disk space will be used.  Setting up rsyslog (5.8.6-1ubuntu8.6) ...  dpkg: error processing rsyslog (--configure):   subprocess installed post-installation script returned error exit status 10  dpkg: dependency problems prevent configuration of ubuntu-minimal:   ubuntu-minimal depends on rsyslog; however:  Package rsyslog is not configured yet.   So I try to reinstalling everything:  apt-get install --reinstall dpkg   This throws up:  Processing triggers for man-db ... Setting up dpkg (1.16.1.2ubuntu7.5) ... Setting up rsyslog (5.8.6-1ubuntu8.6) ... dpkg: error processing rsyslog (--configure):  subprocess installed post-installation script returned error exit status 10 No apport report written because MaxReports is reached dpkg: dependency     problems prevent configuration of ubuntu-minimal:  ubuntu-minimal depends on rsyslog; however: Package rsyslog is not configured yet.   So I believe if I can fix the rsyslog we'll be getting somewhere :/


Short story about brain being replaced by a silver sphere

About 25 to 30 years ago I remember reading a short story in which the protagonist was in a society where, at a certain age, people's brains were replaced by an egg-like silver sphere.   The main character was very worried about this process, and even though others who'd had the procedure done said there was nothing to worry about, throughout the story the protagonist rebelled against the concept. I can't remember the ending or anything else about the story, except that the concepts of personal identity and losing oneself seemed to be central to the theme. I appreciate any help in identifying this!


Professor vs Grad Student PI for PhD rec letter

I am nominally in a Professor X's lab, but I work with and communicate with his PhD Student Y most of the time. Would it be looked down upon for Y to write me a LoR for grad school, since even though he knows me better, he is only a grad student/would be a fresh PhD by the time I get around to applying? Should I plan to ask X for a rec letter even though I don't directly work with him?


Intuitive explanation of "reverse" binomial coefficient formula ${n\choose k}=\sum_{r=0}^s {n-s \choose k-r}{s\choose r}$

We have the formula $$ {n\choose k} = {n-1\choose k-1}+{n-1\choose k} $$ and it is not at all difficult to prove by induction that $$ {n\choose k}=\sum_{r=0}^s {n-s \choose k-r}{s\choose r}. $$ My question is: how to understand this formula intuitively, presumably with some situation in combinactorics?


If $f_n$ is a sequence of continuous functions such that $f_n$ converges to $f$ uniformly . Does it imply that $\int _0^\infty f_n\to \int _0^\infty f$?  I think the answer is no though I could not find a counter-example. Because if $f_n\to f$ uniformly then $\int _0^\infty |f_n-  f|<\epsilon \times \infty $ which is undefined.


cref & algorithmic incorrect referencing

I tried to use the tipps in this post . But it does not lead to the correct referencing, what is done wrong here and how to i get cref running with algorithm?  \documentclass[]{article} \usepackage{subcaption}  \usepackage{algorithm} \usepackage{algpseudocode}   %\input{Packages} \usepackage{cleveref}   \crefname{algocf}{alg.}{algs.} \Crefname{algocf}{Algorithm}{Algorithms}  \begin{document}     \section{asdja} \cref{alg:a} is a algorithm. \ref{alg:a} is a glrotihm \begin{algorithm}     \label{alg:a}     \begin{algorithmic}[1]         \State x     \end{algorithmic}     \caption{This is an algorithm} \end{algorithm} \end{document}


The problem states:  Suppose $a_0,a_1,a_2,...$ is a sequence such that $$a_0=a_1=1,\ \ \ a_{n+1}=n(a_n+a_{n-1})\ \ \ (n\ge 1).$$  Guess a formula for $a_n$, valid for $n\ge 1$, and use mathematical induction to prove that your guess is correct.  I used this equation (and check with WolframAlpha) to find the results of a few different cases.  $$a_2=2,\ a_3=6,\ a_4=24,\ a_5=120.$$  Unfortunately, I'm not really sure how I can prove this. I would appreciate any help in solving this!


Proof of infinitely many primes, clarification

Proof: The proof is by contradiction. Suppose there are only finitely many primes. Let the complete list be $p_1,p_2,\dots,p_n$. Let $N = p_1p_2 \dots p_n+1$. According to the Fundamental Theorem of Arithmetic, $N$ must be divisible by some prime. This must be one of the primes in our list. Say $p_k \mid N$. But $p_k\mid p_1\dots p_n$, so $p_k\mid(N-p_1 \dots p_n) = 1$ Hence contradiction.  I don't see how this proof works. I understand that $N$ isn't necessarily prime, but I don't understand how it apparently must show that some primes weren't in our list. A number could be made of different powers of the given primes right?  Someone please explain.


How can I disable the Mac Command key triggering the big HUD coming up in 14.04?

This applies to Ubuntu 14.04 running in a VMWare environment on a OS X host.  Everytime I press the apple command key to e.g. command-tab to another (OS X) application, the HUD comes up in Ubuntu. Not the regular (small search box) HUD, but the big mondo one that looks a bit like the Apple launchpad, and is about equally useless.  I've tried disabling/changing the key binding in the system settings to use e.g. the backslash key. That works fine, on backslash, the HUD comes up. But on apple command key press, that big mondo special search HUD still comes up, no matter what I do.   Any help anyone?


How would behave theoretical matter with negative mass?

I wonder if there is any possibility to evaluate theoretical characteristics of matter with negative mass? This is not thing of anti-mass but classical matter just with negated weight. I thing that if you would put it on surface of the Earth it would fly to heaven, wouldn't it? Could this be space-freedom redefined problem solution or am I just curious too much?  Can't we simply use working functions/formulas with negate mark?


How can I add a universal keybinding for a program?

I want to add a key binding that allows me to use it even when the application is not in the foreground. Specifically how would I add play/skip/previous key bindings to Spotify?  I'm not looking for the media key bindings. They can stay as is. I would like to add custom ones with keys of my choosing.


Unable to make changes in BIOS after 17.10 installation

Windows 10 + UBUNTU 17.10 dualboot on HP Envy x360 u000.  After installation, I am not able to make any changes in BIOS. The settings are not "Default". Secure boot is disabled.  I have tried the following things:   Wipe my HDD and tried to install Windows 10 again - Windows could not update the computer’s boot configuration. Installation cannot proceed Tried to install UBUNTU - [    0:000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later) Also tried to boot UBUNTU live - same error as above. Tried to update/reinstall the HP BIOS firmware with HP BIOS Recover USB - Error code : 4(0x00000004). I tried both the ways. from windows and with bootable USB. got the same error Removed battery and hold the power off button for 1 min. No luck.    Now I am totally stuck here.  I had my old HDD with windows 8 on it and I upgraded with a new SSD but I haven't done anything with my old HDD. So now I am using my laptop with that HDD. To boot windows I am doing manually EFI boot. Still not able to repair the bootloader on that too.   Update 1 (12-7-2017)  So, I am able to boot from UBUNTU 16.04 live USB   Tried to repair with Boot-Repair - No luck Tried to remove/delete bootloader entry with efibootmgr but I can't do anything. every time I got this error Permission denied    sudo efibootmgr -v gives all the details of my SSD (volume ID and all), which I have used to install UBUNTU 17.10 where all the problems occurred in the first place. I am getting the same output even if I removed all the Drives from the motherboard.    So, everything written into BIOS is write protected. I am not able to do anything about that.


Is it possible to reference a cell above with an ArrayFormula?

Here is an example situation which I would like to achieve using ArrayFormula:  Column A is the data, column B is the calculation.    Here is an implementation without ArrayFormula:    Here is how I tried to convert it so I wouldn't have to expand it by hand whenever there is a form-submission (which unfortunately inserts a new row instead of adding just the data):    But as you can see this gives me a circular dependency error:    Which is not strictly true; while the calculations do depend on each other, they never depend on themselves, so it should be possible to calculate them.  Is there any way to achieve this? Or maybe there is a way to make regular formulas expand automatically?  Note: I am using Google Sheets for this, so I am mainly interested in solutions for that tool.


Planning flights - broad connection flights search engine?

Is there any tool / online search engine where you can give it a list of possible departing airports, and a list of possible arriving airports, and shows you all the possible flights (connecting or seperate) and/or airlines that operate between cities,  that can take you there?  For example, I would give it:  Departing   Malta   Arriving   Sofia Varna Bourgas


How can you create a preview window for seamless tile editing in photoshop

Here's an example:   I want to be able to just save the image on the right which will update the picture on the left. This could be done with smart objects I guess, but that's not the case in the Jazza's video. I'm baffled.  I know there are some other solutions, but I want it to work just like in the video. Pressing save updates the image on the left.  For those looking for similar solutions: Pyxel Edit has similar kind of functionality and it's the best.


Probability that the student can solve 5 of the 7 problems

A student prepares for an exam by studying a list of 12 problems. She can solve 9 of  them. For the exam, the instructor selects 7 problems at random from the 12 on the list  given to the students. What is the probability that the student can solve 5 of the 7  problems on the exam?   I am really confused by this problem. My first initial thought was to do:  (5 chose 7)(7 chose 0)/ (12 chose 7)  I am not 100% sure about this though.


Janich Linear Algebra chapter 1 problem 1.2

Let $f:X\to Y$ and $g:Y\to X$ be maps such that $fg=id_Y$ and $gf=Id_X$, then $f$ is bijective.   I already proved that $f$ is injective. Let $x,x'\in X$ and $f(x)=f(x')$. Then we have $g(f(x))=g(f(x'))$ and therefore $x=x'$. Hence $f(x)=f(x') \iff x=x'$ and $f$ is injective.  How do I prove that $f$ is surjective?   Let $y\in Y$. Choose $x=\cdots$. Then ... Therefore $f(x)=y$.  Can someone help me?


Show that if $ar + bs = 1$ for some $r$ and $s$ then $a$ and $b$ are relatively prime

We were given the following problem as an assignment, we proved the converse in class for prime numbers; however, we can't use the assumption that $\operatorname{gcd}(a,b) = 1$.  So I am struggling to think of my first possible move.  We are given $ar + bs = 1$, the only think I can think of is let $d$ be a common divisor or $ar + bs$ and then show that the $d = 1$.  However, I am not really sure how to do that.  If anyone could just give me a hint or two to nudge me in the right direction I would be appreciative.


The book 'English Grammar in Use, Murphy' contains the following exercise under the Present perfect/Present perfect continuous chapter:   Are you OK? You look as if ____ (you / cry).   I have not found any explanations why 'have been crying' is the correct answer.   Based on my understanding, the action has already been completed (the person has cried and now we're asking her by focusing on the result of the action). Other words, I can't imagine a situation when we're asking someone who's crying right now by focusing on the activity and not the result.  Would anyone explaining the Present Perfect Continuous choice here?


This could be a trivial question, I've seen several different variations of Cast.     What is the difference? Is one better than another (Performance)? Is it just a matter of preference, code legibility?   Example One:  command.ExecuteScalar() as string;   Example Two:  (string)command.ExecuteScalar();   Both will impact the ExecuteScalar() differently, so the question is when interacting with the database is one more ideal than another?


I am very curious to find if there is any reason that why are we in 3 dimensions not in any other like 1D would be hard almost impossible but 2D could have been possible, or what about 4D or in additional dimensions?


I want to call a function ONLY when the file name ends with .request but somehow it calls the function if request is sub-string.  I  the imported parts, on the right it's the output  for file in ${filesOrDir[*]}; do         if [[ -f "$file" ]]; then         if [[ "$file"=*[".request"] ]]; then             # Enters here when .request is a substring.         fi     fi     if [[ -d "$file" ]]; then             # ... some logics            fi done


I was earlier using windows 7 on my pc. But I then think of switching to Ubuntu  14.04. I downloaded the iso and choose the complete clean and install option. The Ubuntu doesn't install due to some issues of harddisk. Now my pc is not having any OS. I request you all to please help me in this regards. I want to completely erase my hard disk and want to install Ubuntu.


How can I have ONE views-view-fields-VIEW_NAME--page.tpl.php for multiple views?

I have 10 content types and they all have page view. These content type have similar fields and the difference is just their name, that is why I don't want to create the following files for every one of them:   views-view--VIEWNAME--page.tpl.php views-view-fields-VIEW_NAME--page.tpl.php   One of the views is called sabk_zendegi, and the following code belongs to views-view--sabk_zendegi--page.tpl.php.
<img src="<?php print $directory; ?>/image/view_tpl_file/top_border.png" />
 <?php print $rows; ?>  <?php print $pager; ?>
<img src="<?php print $directory; ?>/image/view_tpl_file/bottom_border.png"/>
   This is not a good idea to repeat the same code for 10 files which the only difference is just their name. I have the same problem for views-view-fields--sabk_zendegi--page.tpl.php; this code belongs to views-view-fields--sabk_zendegi--page.tpl.php.

     <?php print $fields['field_sabk_zendegi_photo']->content; ?>

     <li style="list-style-image: url('<?php print $directory; ?>/image/view_tpl_file/list_item.png')">     <?php print $fields['field_sabk_zendegi_titr']->content; ?>

         <?php print $fields['field_summary']->content; ?>

     As you can see this code is the same for all the views but the difference is just the $fields fields. (It can be replaced by a variable that is already assigned in template files.)  Is there any preprocess/template function in Drupal 7 that calls one page for views-view--VIEWNAME--page.tpl.php and one page for views-view-fields--VIEWNAME--page.tpl.php and it assigns the relevant variables inside it?   Instead of using $field['fields_summary'], I should be able to use $summary in this new general page, and these variables have their values already assigned by template/preprocess function according to the view.


Do location services work in iOS simulator?

I have an iOS app that uses core location and calculates the distance between two points. It outputs the result to a label which works fine when running on an actual device. But when I run it on the simulator, I get nothing. Is it suppose to work on the simulator as I have location services enabled as you can see in the screenshot below?  Thanks for any help.


Difference in meaning between gerund and infinitive

The whole class was working hard preparing for the exam.   The whole class was working hard to prepare for the exam.      What are the differences between these two sentences?


Filter/Query a column of names by an array of names

I have two columns of names in my spreadsheet. In column 1 I have a long list of names, in column 2 I only have 10 names. I want to filter column 1 in such a way that it will only display the names that match those in column 2.  I've tried Queries, filters, arrays...etc With no luck. I just don't know how to filter/query one array of data, by another array of data.  I essentially want to filter column 1 by an array of names.   Picture of input (Column 1), what tho filter by (Column 2), and expected output:


Templating template instantiation in different file

I'm aware that the following works:  test.h  #pragma once  #include <string>  class testclass { private:     std::string _data; public:      template<class T>      testclass(const T&);  };   test.cpp  #include "test.h"  template testclass::testclass(const int&); template testclass::testclass(const long&);  //function can be called only with `int` and `long` template<class T>  testclass::testclass(const T &num)     : _data(std::to_string(num)) {}   So this is a successful way of splitting the declaration and implementation of a template function, but it has some downsides. One of them is having to hardcode all the types with which you want your function to be called and that's a drag. And if the function is quite small, you end up having written more code than you would have if you hadn't templated it...  I was wondering if something like this is possible:  test.cpp  #include "test.h"  template<class T2> //bogus syntax, but here the point of interest template testclass::testclass(const T2&);  template<class T>  testclass::testclass(const T &num)     : _data(std::to_string(num)) {}


Is it better to accept correct answers or thorough answers?

A little back-story -- Recently I saw a question SO  (with a bounty of +50 rep) where I knew the answer. Someone had already attempted to answer the question both in comments and with an official answer, but it did not solve the OP's issue. So, I posted the correct problem, and then posted a link to a very nice blog post I found with a detailed step-by-step of how to fix it.  The first answerer then updates their answer to include the info from the blog that I posted and even credited me for finding the info, and the OP accepts their answer. After the initial disappointment, I began to genuinely question which IS the better answer, and which should be accepted. Is the better answer the one that solves the issue, or the one that is more thoroughly laid out in the answer section without extra links to external info?  Here's the real question...   What are the top three qualities/attributes of an answer?  P.S. This question is not intended to be a complaint. In fact, in the above mentioned question neither my post nor the accepted answer was IMHO "best"; it was a third answer that was best because it was more elegant and better described the problem.  Really I'm looking for a litmus test, or rule-of-thumb checklist of for weighing two or more correct answers.  The best answer here should clarify, better refine, or present what you believe are the best principles for selecting an answer.   If "best practices" don't exist for something as deceivingly simple as selecting an answer, what principles might you suggest?  (Answers backed by examples or documentation are prefered)


Can a character delay their action until a later Initiative count, or do they just forfeit their turn unless they Ready an action?

In D&D 4e (4e PHB pg.288) you can Delay, which allows you to save all your actions for a later time, coming back into the Initiative Order "After any other combatant has completed a turn."  Is there a similar mechanic in D&D 5e? I know about being able to "Ready" (5e PHB pg.193), which is similar to 4e's "Ready An Action" option. My players want a similar Delay ability in 5e, but there doesn't appear to be anything specific in the rules. Is there something I've missed?


Why shouldn't the denominator of the covariance estimator be n-2 rather than n-1?

The denominator of the (unbiased) variance estimator is $n-1$ as there are $n$ observations and only one parameter is being estimated.  $$ \mathbb{V}\left(X\right)=\frac{\sum_{i=1}^{n}\left(X_{i}-\overline{X}\right)^{2}}{n-1} $$  By the same token I wonder why shouldn't the denominator of covariance be $n-2$ when two parameters are being estimated?  $$ \mathbb{Cov}\left(X, Y\right)=\frac{\sum_{i=1}^{n}\left(X_{i}-\overline{X}\right)\left(Y_{i}-\overline{Y}\right)}{n-1} $$


I have a computer with the main C: drive getting full. I want to figure out what's on it and where. Searching for large files doesn't do me any good though.  Issues:     There are multiple user accounts. I need to search inside these user folders. I want to know about swap files, paging files, hibernation files, etc. I want to know about large sub directories in the Windows folder. Not all are instantly accessible and I don't know what ones a standard search is excluding. I don't have a good way of knowing how large the system recovery section is.   As it stands now I can highlight the folders on my C: and hit "Properties" and see that they contain 63GB of files. I'm missing another 120GB though! I want to know what it is and where it is. I am an Administrator.


User search data with ranking; what's the reputation for?

Below the name "0" is displayed, I can understand this is some reputation but on what basis is it granted?


Why is my multimeter stopping device from booting when measuring current?

I am using a BK Precision 2709B multimeter and attempting to measure the current of a device that runs off of a ~3.7V battery. The device boots up, initializes and then goes into its lower power state. If I use the 10A setting, my device boots up just fine but I need to measure uA or mA. When I attempt to use the mA setting, the device attempts to boot and then continuously reboots. Its not able to finish its initialization process before it cuts off. The current reading on the meter is ~30mA before the device cuts off and attempts to boot up again. The meter says 400mA max, so it doesn't seem like it is over the maximum allowed current for the mA setting. Is there anything I can do to get past the initialization so I can measure the lower power state?


How to find urdu words in a string using python

I have lot of files that contains urdu and english. I have to search for those words that are in urdu only. For english, I know its not a problem by using regular expression. r'[a-zA-Z]' But How I can use regular expression for urdu language.  Suppose this is the string  test="working جنگ test  بندی کروانا not good"   Please guide.


Why are some questions and not others highlighted?

I've noticed that on Stack Overflow, some posts are highlighted yellow, while others aren't. Is there a reason for this?


Please add a system to allow file uploads attached to questions and answers

I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO?


How to create ambient particles in Cycles

How can I create some ambient particles in Cycles, as showed in the following images:     If I need to use the particle system, please be very specific, because I don't know how to use it.  Thanks!


Source:      Many of the summer facilities aren't winterized, so they will have to move come autumn, but they don't know where.   Is this just a fancier way of saying if autumn comes?


How to get the real size of an array parameter in C?

EDIT: while someone thought this question is the same as the one they posted a link to.  It is a very different question.  consider the following:  #define HUNDRED 100 typedef WCHAR BUFFER_SPACE[HUNDRED];    the type BUFFER_SPACE is an array with a size of 200 bytes (assume UTF16)  In most cases, declaring a variable such as:  BUFFER_SPACE abuffer         = { 0 };  wprintf(L"sizeof abuffer        : %zd\n", sizeof(abuffer));   will result in wprintf outputting 200 (as expected.)  Now, consider the following simple sample program:  #include "stdafx.h" #include <Windows.h> #include <WinNt.h>  #define HUNDRED 100 typedef WCHAR BUFFER_SPACE[HUNDRED];   void Function(BUFFER_SPACE abuffer) {   BUFFER_SPACE anotherbuffer = { 0 };    wprintf(L"sizeof  abuffer      : %zd\n", sizeof(abuffer));         // 8   wprintf(L"sizeof *abuffer      : %zd\n", sizeof(*abuffer));        // 2   wprintf(L"sizeof anotherbuffer : %zd\n", sizeof(anotherbuffer));   // 200    // a highly undesirable solution is to apply sizeof to the type but, if the   // type of the parameter changes, the programmer has to be aware that the   // original/old type is being used in sizeof() someplace else in the   // function/program    wprintf(L"sizeof BUFFER_SPACE  : %zd\n", sizeof(BUFFER_SPACE));  // 200    getchar(); }  int main() {   BUFFER_SPACE abuffer         = { 0 };    WCHAR anotherbuffer[HUNDRED] = { 0 };    wprintf(L"sizeof abuffer        : %zd\n", sizeof(abuffer));   wprintf(L"sizeof anotherbuffer  : %zd\n", sizeof(anotherbuffer));   wprintf(L"\n");    Function(abuffer);    return 0; }   I wanted to get the entire size of the buffer parameter in the function.  Using VC++ and compiling for 64 bit,   sizeof(abuffer) is 8 which makes sense since it is a pointer to the array  sizeof(*abuffer) is 2 which I consider rather questionable but, it is not something I want to debate.  sizeof(BUFFER_SPACE) is 200 as it should be.  My question is: Is there a way to get the value of 200 from the parameter (abuffer in this case) or is using the type the only way to get it ?


Python: getting the month out of a string -- This is NOT Converting string into datetime

The title is horrible, sorry. I´m redding form a text file that has a bunch of dates in this format:   30/5/2015   and also can appear obviously with 2 numbers in the month:  21/12/2014   this is pure text, is not formatted as a date. What i have to do is to control that the month section does not exceds the number 12. This is because sometimes the date changes it´s format and appear like :  2/15/2015--- meaning that the second place turns to days and the first one to months   This are the dates that i do not need. From the text i´m getting all this dates like this:  fechas = list(set(re.findall(r'\b(\d+/\d+/\d{4})\b', data))) --- i use set() because sometimes the dates appear more than one time   I tried something like this:  for fecha in fechas:     month = fecha[2:3]   trying to slice the string, but this wouldn´t work because of the fact that if i do this i´m getting 1 number and sometimes i need 2  Does anyone have any idea on how o do this?  Any help will be really appreciated


Upsides of reporting a lower or upper bound vs. reporting the actual value

I often see research papers reporting lower or upper bounds. :     Patients treated with the splint regained mobility significantly more quickly (p less than 0.001) and preferred the splint to the plaster cast. The range of dorsiflexion at the ankle improved more rapidly after treatment in the splint (p less than 0.001), and patients were able to return to normal activities sooner.   What are the advantages of doing so instead of reporting the actual value (rounded if necessary)?


I just found out that when you type Math.pow(5,25) % 5 in the console, it returns 2. This also happens when you first solve Math.pow(5,25) (298023223876953150 % 5 = 2). But that number is clearly divisible by 5, because it is a power of 5...  Has anyone an idea what is going on here?  (I also saw that the outcome of Math.pow(5,25) is wrong, it is 25 higher than the real number, does someone knows how this works too?)


Should I install Ubuntu as 32 or 64 bit?

I have a ASUS X502CA-HPD11 laptop.It is i3 , 64 bit and windows 8. Which one should I choose 32 bit or 64bit for dual boot.


I want to perform multiple apt operations, llike sudo apt install ubuntu-gnome-desktop in one terminal and sudo apt remove lubuntu-desktop in another terminal. When I try to do this I get this (Please don't ask me why I had installed these desktops; I had done so many experiments on Ubuntu that I had to reinstall it many times due to breaking the system)   $ sudo apt autoremove  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)  E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   I can do only one operations in at one time with apt!!  I know that it is not safe to break lock but I will take all risk on my own!!  My question is not a duplicate of  as i want to know about how to do in multiple terminals. I know these ways apt install package1 package2 and apt install package1 && apt remove package2. If do this apt install pack1 && apt remove pack2 then I have to wait a long time for pack1 to install.  Also will it work if I break the lock?


could you please tell me..      How to remove duplicates from list of objects by id In java


Consider the function   $$ f(x) = 2\cos((x^2+x)/6) - 2^x - 2^{-x}. $$  Clearly $x= 0$ is a root of equation so number of real roots can not be 0 but how to figure out question how many ? From where does this observation start?


If we use E²=m²c⁴+p²c², and we know mass of photon is zero, and  they have momentum but why aren't they affected by gravity.


National Land Cover Dataset 2016 Land Cover Change Index Values Meaning

After downloading and clipping the NLCD 2016 Land Cover Change Index raster and viewing it in ArcMap, the table of contents shows a legend with values 0-12. They are depicted in the following picture:     What are these specific values?   I am looking for either an explanation of what the values mean or a link to their description. I gathered the data from the following URL:   The Multi-Resolution Land Characteristics Consortium (MRLCC) (where the data is from) does not seem to provide a description of the values.


Do I need to have an electrical converter when traveling to Sao Paulo/Brazil?

I am traveling from USA to São Paulo. Will it be possible to use cell phone charger, razor, etc without some sort of electrical converter and/or outlet adapter?


How to fix Virtualbox error “Kernel driver not installed (rc=-1908)” on Ubuntu 14.04 and error vboxdrv failed

somebody help i'm stack for that for 3 days, i try any install dkms and updates. it's not working then i always have error in terminal vboxdrv failed. thanks


Why don't links use https:// when I access the site using that protocol?

The Problem  Accessing my site over https (the only protocol allowed) I get the content, but none of the CSS, images etc.  Drupal is creating pages in response to https requests that include http links to these resources, but it should be using https.  What I've done  I have copied a site to a dev server. The site loads and basically works fine - I can log in etc. It's just that all the links drupal generates are http. The site I've copied it from also runs over https. The site does not exist on http (it would just get a Forbidden error). I've drush cc all.  So Apache's working - I can access the site. .htaccess is working (clean urls work, for example).  I'm using SNI to access the site because the server has other vhosts too, but I'm only accessing the site using the latest Firefox (and as it's a dev site and I'm the only dev, nobody else will use it).  I've done this dozens of times and am quite stumped! Why does Drupal not notice that the request came over https?  The fix  Turns out that .htaccess has this to say:   /* Base URL (optional).                                                          If Drupal is generating incorrect URLs on your site, which could             be in HTML headers (links to CSS and JS files) or visible links on pages     (such as in menus), uncomment the Base URL statement below (remove the       leading hash sign) and fill in the absolute URL to your Drupal installation.    Sure enough, putting $base_url = 'https://example.com'; fixed it.  But why is this necessary?


EXCEL: change the color of a cell at a condition

I made a simple project on Excel about payments, I have to change the color of one cell if the payment has been done. For example:  PAYMENT - PAID - ||||||||||||||||||||| - REMAINED  10.000$ - 5.000$ - "RED CELL" - 5.000$ remained  12.000$ - 12.000$ - "GREEN" - Paid   Sorry if it's not that clear, not easy to explain :) I have no idea where to start.  Thanks to everyone will help!


What does "+6 to hit, Hit: 13 (2d8 + 4)" mean in a creature's stat block?

My friends and I are very new to D&D, played like 3 times. In a monster's stats next to weapon damage it says stuff like "+11 to hit" and "Hit: 5 (1d8+1)". For the premade characters it just says things like "+4, 2d6 + 2 slashing", though. Why are there two "hit" numbers for monsters? Which do I use for the d20 roll to hit against a target's AC?  I mean for example like in the Ogre entry in the "" article on monsters.


I cant run apt-get update or anything involves apt-get command. I tried dpkg --configure -a and this is what it said.  root@lxoric-AOD270:/home/lxoric# sudo dpkg --configure -a Setting up google-chrome-stable (38.0.2125.122-1) ... dpkg: error processing package google-chrome-stable (--configure): subprocess installed post-installation script returned error exit status 1 Setting up update-notifier-common (0.154.1ubuntu1) ... Traceback (most recent call last):   File "/usr/lib/update-notifier/package-data-downloader", line 28, in <module> import apt   File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 23, in <module> import apt_pkg   ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: invalid ELF header   dpkg: error processing package update-notifier-common (--configure):    subprocess installed post-installation script returned error exit status 1   Processing triggers for menu (2.1.46ubuntu1) ...   In file "/usr/share/menu/libreoffice-impress", at (or in the definition that ends at) line 18:   [Desktop Entry]           ^   Unexpected end of line.   Skipping file because of errors...   /usr/share/menu/ixconn_config: 1: /usr/share/menu/ixconn_config: Syntax error: word unexpected (expecting ")")   /usr/share/menu/ixconn_folder: 1: /usr/share/menu/ixconn_folder: Syntax error: word unexpected (expecting ")")   /usr/share/menu/ixconn: 1: /usr/share/menu/ixconn: Syntax error: word unexpected  (expecting ")")   In file "/usr/share/menu/libreoffice-calc", at (or in the definition that ends at) line 2:   ~\ekVL    I٤��{S�9<f��}QL�Nm���@)�%8���                                      ^   Unexpected end of line.   Skipping file because of errors...   In file "/usr/share/menu/libreoffice-calc", at (or in the definition that ends at) line 1:   command=" META-INF/��PPK��dEMETA-INF/MANIFEST.MFE�M                                                          �0D������m-j�G{�"      icon="" needs="PK" package="libreoffice-calc" sectio" title=""      ^   Expected: """   install-menu: /etc/menu-methods/openbox: aborting   update-menus[15714]: Script /etc/menu-methods/openbox returned error status 1.   Errors were encountered while processing:    google-chrome-stable    update-notifier-common   root@lxoric-AOD270:/home/lxoric#


I have been reading around and trying to find a solid answer about Fonts and their Licensing.  What I don't understand is what type of license do I get with software such as my Mac, and CS6, Office, ect? I have read the Apple EULA but to me it really doesn't make much sense.  For example, I see people going out to buy a Helvetica license. Well shouldn't they already have that Helvetica license as it comes/ships with a Mac?   I am just confused as to when and where I will need a license if I already have a ton of licenses that come from Apple?  Thanks for any help!!


Flash drive model: Kingston DataTraveler SE9 64GB   I was restoring the back-up I had made on my flash drive after re-formatting and reinstalling Windows 8.1 Pro, and it started behaving weirdly. First, it unmounted itself, then it randomly said files were corrupt, then unmounted itself again. The first time it unmounted itself I thought, "Ooops, I loosened the plug!" then unplugged it and plugged it back in, but the second time plugging it back in did nothing. When I go into Device Manager and click "Disk Drives," it shows GENERIC USB Mass Storage USB Device as opposed to a Kingston drive:    I decided to check out Disk Management and it shows my drive... but with NO MEDIA:    (Highlighting mine)  I moved the flash drive over to my Linux box, and looked at lsblk, but no sdb!  chronos@localhost / $ lsblk NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda             8:0    0 14.9G  0 disk  ├─sda1          8:1    0  4.8G  0 part /mnt/stateful_partition ├─sda2          8:2    0   16M  0 part  ├─sda3          8:3    0    2G  0 part  │ └─vroot     254:0    0  1.2G  1 dm   / ├─sda4          8:4    0   16M  0 part  ├─sda5          8:5    0    2G  0 part  ├─sda6          8:6    0   16M  0 part  ├─sda7          8:7    0    6G  0 part  ├─sda8          8:8    0   16M  0 part /usr/share/oem ├─sda9          8:9    0  512B  0 part  ├─sda10         8:10   0  512B  0 part  ├─sda11         8:11   0    8M  0 part  └─sda12         8:12   0   16M  0 part  loop0           7:0    0  1.4G  0 loop  └─encstateful 254:1    0  1.4G  0 dm   /mnt/stateful_partition/encrypted zram0         253:0    0  2.7G  0 disk [SWAP] chronos@localhost / $    I then wanted to know if Linux even saw the drive as a USB device, and yes:  chronos@localhost / $ lsusb Bus 001 Device 012: ID 1bcf:05ca Sunplus Innovation Technology Inc.  Bus 001 Device 008: ID 1bcf:2c67 Sunplus Innovation Technology Inc.  Bus 001 Device 010: ID 0489:e056 Foxconn / Hon Hai  Bus 001 Device 013: ID 0c76:0005 JMTek, LLC. Transcend Flash disk Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub chronos@localhost / $    (the JMTek, LLC. Transcend Flash disk being it, when I remove the drive it disappears.)  What does dmesg say when it's attached?  [ 3085.285731] usb 1-5: new high-speed USB device number 13 using xhci_hcd [ 3085.298350] usb 1-5: New USB device found, idVendor=0c76, idProduct=0005 [ 3085.298376] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 3085.298396] usb 1-5: Product: USB Mass Storage [ 3085.298411] usb 1-5: Manufacturer: GENERIC  [ 3085.298609] usb 1-5: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes [ 3085.298634] usb 1-5: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes [ 3085.299966] scsi3 : usb-storage 1-5:1.0 [ 3087.018278] scsi 3:0:0:0: Direct-Access     GENERIC  USB Mass Storage 1.00 PQ: 0 ANSI: 0 CCS [ 3087.019846] sd 3:0:0:0: [sdb] Attached SCSI removable disk chronos@localhost / $    Also, since I saw [sdb], I checked to see if /dev/sdb existed:  chronos@localhost / $ ls /dev/sdb /dev/sdb chronos@localhost / $ ls /dev/sdb* /dev/sdb chronos@localhost / $    So, /dev/sdb exists.  UPDATE  I was asked to include the output of dd if=/dev/sdb bs=512 count=1 | xxd, and this is it:  (precise)zeb@localhost:~$ sudo dd if=/dev/sdb bs=512 count=1 | xxd dd: opening `/dev/sdb': No medium found (precise)zeb@localhost:~$


How to create an Array that contains images in java?

I need to create an array of images. when I try to do the getGraphics method of the Graphics class to access the Image I created in the array index it throws the java.lang.NullPointerException error even though a few lines above I created the image in that index  I tried changing the index and changing the condition of the foor loop, but it still enters the loop only once and says that the array in index 0 is null.  private Image[] frames = new Image[100]; for (int index = 0; index < frames.length; index++){         if (frames[index] == null)          {             frames[index] = this.createImage(SCREEN_WIDTH, SCREEN_HEIGHT);         }          Graphics graphic = frames[index].getGraphics();   I expect the array to be full of images at the end, in order to paint them and finish the job.


Files which tell that someone has accessed your computer

I know /var/log/auth.log shows who has been using sudo commands and /home/myusername/.bash_history shows command line commands. I would like to know if there are any more files similar to these 2 files in Ubuntu that can be used to show that someone else may have accessed to your computer?


I want to try and get all the primers on one play through. What, if any, Al Bhed Primers are missable?


How to preserve Time Machine backups and start over with a new one?

I make my Time Machine backups on an external hard drive. Recently I upgraded from Mountain Lion to Mavericks. Now I need the ability to freeze those old backups I've done with Mountain Lion in case I need to go back with the hole system.  What I tried so far:   Stop Time Machine and rename backup folder on the disk. On Mavericks the Time Machine folders can't be renamed or moved. Remove the external drive from Time Machine preference pane and read the drive - Time Machine backups continue on same folder and in some time in the future overwrites old backups.   How can I achieve what I want?


I have an enumerated list, for which I'm using enumitem because I want to resume the enumeration, and one item is rendered in a faded color using xcolor  \usepakage{enumitem, xcolor} % ... \begin{enumerate} \item First. \end{enumerate} other stuff \begin{enumerate}[resume] \item Second. \item \textcolor{gray}{Third.} \item Fourth. \end{enumerate}   I'd like to have the label of "Third." rendered in the same faded color, and because I've seen  I defined  newcommand{\fadeditem}{\item[\stepcounter{enumi}\textcolor{gray}{\arabic{enumi}.}]}   and it works (it's not general, but it works) but now it's not enough... I realize that what I want is a command that takes care also of the item text  What I have now  \fadeditem \textcolor{gray}{Bla bla bla.}   What I would like  \itemcolor{gray} Bla bla bla.   Addendum #1  David Carlisle, in a comment, suggested   \newcommand\itemcolor[1]{\fadeditem{#1}\textcolor{#1}}    and this deals with my task of today, writing optional questions in a list of questions.  An open part of the question is then a generalization of the problem, defining an \itemcolor{somecolor} command that just works in any (in most?) lists...


Command works at the command-line, but won't work in a shell script

I am creating a script and when I try to capture a command return, I have an error of command not found, if I use this command on the terminal:  gcloud -q compute snapshots list --format='csv(NAME)'   It works fine.  The script is:  #!/bin/sh CSV_SNAPSHOTS= $(gcloud -q compute snapshots list --format='csv(NAME)') IFS=$'\n'  for i in $CSV_SNAPSHOTS do     echo "$i" done


Does a ticket to “London terminals” permit travel on the London Underground?

If I buy a ticket to “LONDON TERMINALS”, such as , is that ticket valid to any London terminal, or only until the first one I arrive at?  For example, from Earley such a ticket is either via Staines to London Victoria, or via Reading to London Paddington.  Is this ticket then valid for subsequent travel to other London terminals such as London Euston, London St. Pancras, or London Liverpool Street?


$$\operatorname {Var} (X)=\operatorname {E} \left[(X-\mu )^{2}\right]$$ Is the formula of variance. But if you think of it, you can assume that square was introduced just that something other than zero could be computed. But is there other mathematical explanation of raising in power? Can it be 3,4 etc instead of square?


Do you agree with the punctuation in these examples? I'm using BrE style here.   I like his sentence 'Be good to yourself and respect your elders.' (I say that the full stop goes inside the quote mark.) The email stated 'The meeting scheduled for June 12 has been cancelled.' (I say that the full stop goes inside the quote mark.) I love the adage 'A bird in the hand is worth two in the bush.' (I say that the full stop goes inside the quote mark.) Lou said, 'I heard Jonas say "Martha and Frank are getting a divorce." ' (I think the ending punctuation ." ' is good.) Ernie said, 'I didn't like it when Nancy called me a "schlepp".' (I think the ending punctuation ".' is good.) When Nancy screamed 'Shut the hell up and get out of my house!' she scared her children. (I think no commas are needed in this sentence.) When Bob said 'Be careful what you ask for', Nicholas began to weep. (I think only one comma here, yes or no?) When Rufus asked 'Where are the liquid refreshments?' his wife pointed to the fridge. (I think no commas are needed in this sentence.) The sign said 'Shoplifters will be prosecuted.' (I say that the full stop goes inside the quote mark.) The sentences 'Be careful what you ask for', 'Life is way too short', 'Always respect your elders', and 'No good deed goes unpunished' provided sound guidance to Nicholas. (I say commas go outside the quote marks.) Mike said, 'Don't be disrespectful to your parents.' (Full stop inside, I say.) 'I will,' Joe said, 'provide an explanation when the time is right.' (I say the comma and period go inside the quote marks.) 'I will provide an explanation when the time is right,' Joe said. (Again, comma inside.)   Thank you.


It seems there are some names that can't be used as variables is there some way to use them? For example i've tried to used the name "class" as a variable:      return Json(new { id = "1", title="evento", url="http://gsdfdsf.com", class="dsadas",start= "1487523292021", end= "1487523292021" }, JsonRequestBehavior.AllowGet);   As expected it gives error. What is the turn around? Thanks


What to do about a 2-year-old who won't sleep without someone else in the room?

My 2-year-old son won't fall asleep without having someone in his room with him. He doesn't want to be touched or held. He just wants you to sit in the chair. And after he does go to sleep he wakes up about 4 to 5 hours later, crying and screaming and is out of his bed and by the door. I go to him and give him a hug and put him right back in his bed. If I walk out he screams and won't go back to sleep for the rest of the night. If I stay he goes right back to sleep. But he wakes right back up when I walk out of his room.   I'm at a loss as to what to do. I've tried lots of stuff and nothing seems to work. It's almost as if he is having separation anxiety. I dont know what to do. Please help.


Why L1 regularization can "zero out the weights" and therefore leads to sparse models?

I'm aware there is a very relevant explanation on L1 regularization's effect on feature selection at here:  [Ref. 1].   To better understand it I'm reading Google's tutorial on  [Ref. 2].  When it comes to the following part, there's some statements I emphasized that I do not understand:     You can think of the derivative of L1 as a force that subtracts some   constant from the weight every time. However, thanks to absolute   values, L1 has a discontinuity at 0, which causes subtraction results   that cross 0 to become zeroed out. For example, if subtraction   would have forced a weight from +0.1 to -0.2, L1 will set the weight   to exactly 0. Eureka, L1 zeroed out the weight.   I imagine when it says "L1 has a discontinuity at 0" it means the loss of the L1 like in the following  figure [Ref. 1]:    But why it will "cause subtraction results that cross 0 to become zeroed out"?  Why "if subtraction would have forced a weight from +0.1 to -0.2, L1 will set the weight to exactly 0"?  Is it related to that L1 is not differentiable at $w = 0$?


Power series is locally normally convergent in its convergence radius $B(0,R)$

$\sum_0^\infty a_nz^n$ , $z\in \mathbb{C}$, a power series with $R:=\sup \{ t\ge0 : a_n t^n$ is bounded $\}$ as its convergence radius. I wish to prove that $\sum_0^\infty a_nz^n$ is locally normally convergent over $B(0,R)$.  What I did so far:   Let $r_1 <r_2<R$ , then for all $z\in B(0,r_1)$ :  $$\sum_0^\infty|a_nz^n| = \sum _0^\infty|a_n|\frac{r_2^n}{r_2^n}|z|^n \le \sum _0^\infty|a_n|r_2^n(\frac{r_1}{r_2})^n .$$  Now, because $r_2<R$ , $|a_n|r_2^n <M$ , so: $$\sum _0^\infty|a_n|r_2^n(\frac{r_1}{r_2})^n \le M\sum _0^\infty(\frac{r_1}{r_2})^n ,$$ which converges as a geometric series when $r_1<r_2$. So any power series for $z\in B(0,r_1)$ is mutually bounded by $M\sum_0^\infty(\frac{r_1}{r_2})^n$.   Yet I don't succeed to make the next step, and show that  any $z\in B(0,r_1)$ has a neighborhood $U_z$ such that $\sum_0^\infty \sup_{U_z} |a_n z^n|$ converges.


Can I hide certain upload folders in media library

A Plugin ( download monitor ) saves uploaded files in a certain folder called "dlm_uploads" within the WP upload directory. All files are visible in Media Library. Unfortunately the upload path cannot be changed in the plugin. can I hide this folder in the media library? thanks


Git: how to melt a commit to another commit?

Let's say I have git commit history like this(newer -> older):  C -> B -> A  after C's commit, I came to realize that there is something wrong with A.Maybe a test case which is suppose to be in that commit,but actually it wasn't there. So how can I deal with this situation? Make a new commit and melt it into A?how?  Problem solved:   git checkout A git checkout -b fix edit git add files git commit --amend git rebase fix master


Advice on gaining the Steam Bollywood Achievement

Steam Bollywood Achievement:     As Gandhi, win a cultural victory with   3 or fewer cities in your empire.   I wish to do this achievement on a Pangaea Standard map size or larger and on Prince difficulty or higher,  What tactics do people recommend to achieve this. Any tips on the use of, Social Policies, Wonders, Diplomacy, City States and Military.


What is the policy on copy-pasting content from other sources for tag wikis?  The tag wiki for  was  a few minutes ago, but the content is just copied from the  announcing the technology.  At first I thought that the edit should be rejected as plagiarism, but the user did insert a link to the blog. Is a link sufficient for attribution? Even if it is, do we really want to just copy-paste content from product pages for our wikis? Especially content which is, in my opinion, a bit too ""?


I am making an illustration in Cycles Render of a table with a lamp and a Magic-8 ball below it.  Here's what it looks like when I render:    On closer look, the reflection in the ball is wrong given the curvy object it is reflecting:    (image above is the result of 1000 preview samples).  Here are a couple more view of the scene and its data:    The black ball's material    The lamp's material    Another light source is present.    What the lamp really looks like (y'know, IKEA).  I have tried full global illumination in the render settings, various sub surf modifiers to the lamp and to the ball, Multiple Importance on and off, but this didn't change a thing.


I understand that the history of our universe began with an explosion - the Big Bang. Now, I saw a comment in some old post, that "the universe has no center". Is that true? If there was initially a point, then all the galaxies have to fly away of that point. It seems to me that if we choose some arbitrary center of the universe, then, in the direction opposite to the true center we'll see less galaxies than in the direction of the true center.  Also, it seems to me that in the direction opposite to the center we'll see that the far galaxies are older, while in the direction toward the center the far galaxies will look younger.  Am I right? Is there a center of the universe? Also, is there such a concept as age of a galaxy?


What are all possible uses for Expecto Patronum?

In the Harry Potter books and films, we saw that Expecto Patronum is mainly used for tackling Dementors and Lethifolds. But what (if any) are other things that Expecto Patronum can be used for?  In-universe references only, please.


Ok..How to put matrices above matrix when you work with complex equations? I have matrices, such as:    I was able to wrote equation in the LaTeX first two matrices on bottom, but the 1x1 matrix on top seems unreal to write in LaTeX.  Here is my code:  \begin{bmatrix}   (\textbf{u}_{1}\textbf{v}_{1}) & \cdots & (\textbf{u}_{1}\textbf{v}_{n}) \\   \vdots & \ddots & \vdots \\   (\textbf{u}_{n}\textbf{v}_{1}) & \cdots & (\textbf{u}_{n}\textbf{v}_{n}) \end{bmatrix}   Any suggestions regarding that matrix on very top shown in the attached picture?


Is it possible that apart from positive and negative charges, there is a third kind of charge that we have somehow, not discovered yet?  If not, is there some proof of the existence of only two types of charges?


diagonizable vs orthogonally diagonizable

prove a symmetric matrix is diagonalizable without doing any calculations of eigenvalues or eigenvectors.   I know its orthogonally diagonalizable but is that the same as diagonalizable?


SSD seems to be causing a lock on folders and files in Windows 7

I recently switched from an HDD to a SSD in a Windows 7 environment. Since then I regularly experience files or folders being locked from renaming or deleting. The lock may take minutes or hours - I'm unsure about it.  It's not a system lock caused by a running application or anything alike. I'm aware that I cannot edit/delete a file/folder while it's in use anywhere else. And I'm experiencing this problem ever since I switched to the SSD, so I'm pretty sure it's related.  Does an SSD cause such lock outs - due to caching or anything? Is there a way to unlock such files manually?  System: Windows 7 Home 64 / Samsung SSD 840 EVO 250G / ASUS Notebook with i7 CPU


Is there a way to get more candies in Pokemon Go?

Catching pokemon, transfering, hatching egg all brings candies. Are there other ways to increase the candy amount?   For example if I use my lucky egg, would I be able get 2x candies from transferring?


Suppose that $a_{1}<a_{2}<…<a_{n}$. Prove that the equation  $ \frac{1}{x-a_{1}}+\frac{1}{x-a_{2}} +…+\frac{1}{x-a_{n}}=c$ has exactly $n-1$ roots if $c=0$ and $n$ roots if $c\neq 0$.    I am absolutely not sure but I think I need to use Rolle's theorem on this. Multiply both sides by $x-a_{1}$ so we get:  $1+\frac{x-a_{1}}{x-a_{2}}+…+\frac{x-a_{1}}{x-a_{n}}-c(x-a_{1})=0$. Now it is defined for $a_{1}$ but not for $a_{2},…,a_{n}.$. If we consider the interval $(a_{1}-\varepsilon,a_{n}+\varepsilon), \varepsilon>0$ we get..nowhere. I want to create an interval with endpoints that are solutions to the equation. Yet I don't know how to prove that there are exactly $n$ roots(Fundamental theorem of algebra can't be used).


Do Indians need a transit visa in Kuala Lumpur, and if yes how?

I am an Indian travelling from Cochin to Beijing via Kuala Lumpur, using Air Asia. My flight has a layover in Kuala Lumpur of about 10 hours. While booking, it was mentioned that I will need a transit visa in Malaysia and I need to check out and again check in.   Do I need a transit visa? If yes, how to get that from KLIA2 airport after checking out? I have a China visa with employment pass endorsed on my passport. Is that enough for travelling from Cochin to Kuala Lumpur? What are the formalities to get a transit visa? Is that straightforward?   Kindly guide me.


Quarks in a hadron: where does the mass come from?

We know that the sum of the masses of the quarks in a proton is approximately $9.4^{+1.9}_{-1.3}~\text{MeV}/c^2$, whereas the mass of a proton is $\approx931~\text{MeV}/c^2$. This extra mass is attributed to the kinetic energy of the confined quarks and the confining field of the strong force. Now, when we talk about energetically favourably bound systems, they have a total mass-energy less than the sum of the mass-energies of the constituent entities. How does a proton, a bound system of quarks with its mass-energy so much more than its constituent entities, remain stable? The strong force and other energetic interactions supposedly contribute this mass-energy by the mass-energy equivalence principle, but how exactly does this occur?


A linear operator $T:V\rightarrow V$ has a cyclic vector iff $f_T=m_T$ (minimal polynomial=characteristic polynomial)

I want to prove the following statement:     Let linear operator $T:V\rightarrow V$ ($V$ is $n$-dimentional). Then there exists a vector $v$ such that $\left\{ v, Tv, ..., T^{n-1}v \right\}$ form a basis of $V$, iff $f_T=m_T$.   (Actually, the $\Rightarrow$ direction is quite easy. I need to prove the other direction.)  I've seen couple of answers to this problem in this site, all using the "Rational Canonial Form", which is something I wasn't tought in the course (but I am familiar with the Jordan Form).  Moreover, the only proof I've found on the internet is , which seemed to be promising, until I got to this sentence, which unfortunately seems to be a mistake:     See that $V_i$ is a subspace of $V$, for all $1 \leq i \leq m$, and   $V=\bigcup_{i=1}^m V_i$. Therefore $V=V_k$, for some $1 \leq k \leq m$.   I don't know if that's true for infinite vector spaces, but for finite ones, such as $\mathbb{F}_p^n$ it's certainly isn't.  Any step towards a proof would be appriciated (as well as an explanation for the suspicious claim stated above). Thank you!


How you get from $\gcd(a,b)=1 \Longleftrightarrow ax+by=1 \Longrightarrow a \nmid b$?

How you get from $\gcd(a,b)= 1 \Longleftrightarrow ax+by=1 \Longrightarrow a \nmid b$?


Is it "5–6 weeks are a lot of time" or "5–6 weeks is a lot of time"?

I was just copyediting  and my native English speaker Sprachgefühl told me I had to correct the grammar of one sentence:     ... 5–6 weeks are a lot of time ...   by changing the are to is. But as I was doing so I started wondering why is it that in this case it seems that I have to make the verb disagree with the plural subject?  So is my feeling for English going bad or if I did the right thing, how could I explain this to somebody who's learning English for instance?


Cannot install virtualbox extension pack

The file will be downloaded into /usr/share/virtualbox-ext-pack Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.0.24.vbox-extpack dpkg: error processing package virtualbox-ext-pack (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  virtualbox-ext-pack E: Sub-process /usr/bin/dpkg returned an error code (1)   Is there a workaround for this?


How can I make comments inside an equation?

How can I make comments inside an long equation, something like:  \begin{equation} G(r)  % comment here = \frac{A}{B}  = \frac{\frac{t_c}{3}}{2 \cdot \frac{2t_b + t_v + t_c}{r}}  = \frac{t_c}{6 \cdot (2t_b + t_v + t_c)} \cdot r \end{equation}


Am I allowed to bring whey protein from the US to Canada in my carry on baggage?

I will be soon visiting the US, and I was wondering if I am allowed to buy a n=brand new Whey protein tub (5lb) and put in my carry on. It is a small trip and I usually just travel with my carry on only, so putting it in the hold baggage is not an option.  The protein tub costs $50 in the US and usually around $80-85 in Canada. Will I have problems or am I safe?


Boundary of Ball of radius R has zero measure

If $\mu$ is a Radon measure on $\mathbb{R}^n$ and $B_r$ is a closed ball of radius $r$. Why is $\mu(\partial B_r) = 0$? Or how can I prove that there is at least one $r_0 > 0$ such that $\mu(\partial B_{r_0}) = 0$?


Why "lemon" for a faulty or defective item?

Related questions:       In the above questions, "lemon" is used to mean a faulty or defective item. A typical use might be to describe a second hand car that, once bought, turns out to have serious faults, as a "lemon".  Why is the delicious fruit associated with faulty goods?  :   perhaps via criminal slang sense of "a person who is a loser, a simpleton," which is perhaps from the notion of someone a sharper can "suck the juice out of."  A pool hall hustle was called a lemon game (1908);  while to hand someone a lemon was British slang (1906) for "to pass off a sub-standard article as a good one."  Or it simply may be a metaphor for something which "leaves a bad taste in one's mouth."   But none of these rings true for me, and words like "may be" and "perhaps" show a lack of confidence. Can anyone shed more light?


Finding all inner products on $\mathbb{R}^2$ for which a given linear map is orthogonal

Suppose that we are dealing with the real field $\mathbb{R}$ and we define $T:\mathbb R^2\to\mathbb R^2$ by $$T(u,v):=(-v,u).$$ It is trivial to see that $\langle(u,v),T(u,v)\rangle = 0$ for all $u, v \in \mathbb{R}$, where $\langle \, \cdot \, , \, \cdot \, \rangle$ is the standard inner product.  A question in Hoffmann-Kunze asks us to define all possible inner products $[ \, \cdot \, , \, \cdot \, ]$ such that $[\alpha, T(\alpha)]=0$ for all $\alpha\in\mathbb R^2$ and $T$ is as above. How does one find all such inner products?


How to turn this into an equation and then sum the series?

I'm reading "How would you move Mount Fuji?", and one of the puzzzles/questions is:     A train leaves Los Angeles for New York at a constant   speed of 15 miles an hour. At the same moment, a train   leaves New York for Los Angeles on the same track. It travels   at a constant 20 miles an hour. At still the same moment,   a bird leaves the Los Angeles train station and flies toward   New York, following the track, at a speed of 25 miles an   hour. When it reaches the train from New York, it instantly   reverses direction. It travels at the same speed until it   reaches the train from Los Angeles, when it reverses   again, and so forth. The bird flies back and forth between   the two trains until the very moment they collide. How   far will the bird have travelled?   In the answer, they mention that it could be solved by using an infinite series (and that most people will probably have forgotten how to do it when asked in an interview, and that John von Neumann did so almost instantly when asked this type of question), but they do it another way. First, they note that the time until the trains crash is given by h, and d = 15h + 20h, where d is the distance (they use 3500). Thus, h = 100 hours. The distance that the bird travels is 25d. Thus, the answer is 2500 miles.  I'm curious though, how does one solve this using an (infinite) series? How does one write this problem as a series in the first place? The only thing that I can get is that the series (of the hours that the bird spends flying) starts like this: (77.77, 9.73, ...)


What can I do to manage my phone's internal storage?

If you're not used to seeing the 'low on internal storage' notification, what is it that you're doing to keep your phone's internal memory from filling up so quickly?   The 'SD Card and Phone Storage' menu in the settings doesn't really tell me much other than how much is free. And, I don't really have that many applications installed. The top 5 storage hogging apps on my phone are Gmail (18.6 MB), Twitter (17.5 MB), Facebook (12.55 MB), Maps (9.63 MB), and Swype (6.06 MB).  So, are there apps out there (besides your normal file manager ones, like Astro) that will help monitor internal phone storage? Is there something I should be doing to keep my phone storage use to a minimum?


Will I have enough time for my connection in Schiphol Airport?

I am flying from Germany to the USA with a 1 hour and 50 minute layover in Amsterdam Schipol Airport later this month (December 20th).  I know I need to go through some extra security when I arrive in Amsterdam in order to travel to the USA. so will a 1 hour and 50 minute connection be enough time?


Proof of $n^{1/n} - 1 \le \sqrt{\frac 2n}$ by induction using binomial formula

Using $$(a+b)^{n} =  \sum_{i=0}^n {n \choose k} a^{n-k} b^{K}$$  prove that   $$n^{1/n} - 1 \le \sqrt{\frac 2n}$$ for n= 2,3,4....   I know the first step is to set $$ n^{\frac 1n} = 1 + x $$ for some x>0 and then raise both sides to the n, but I'm lost after that.


Is there a way to snap face to the cursor without all its vertices collapsing to a point?

I am making a structural latticework, the kind of supports you see on the back of radio telescopes or radar dishes. It is a lot of small struts in triangular and square configurations.   It would be much easier if I could place the 3D cursor where a joint should be, and then make the end faces on the right struts all snap to the cursor.   But when I do that, they all collapse to a single point. It seems like if I do it right, I should be able to prevent that. It is in face select mode, pivot center in individual origin mode.


I've noticed that Photoshop makes my image size, specified in inches, smaller than it really is. Approximately 1 inch both in height and width. Since this is an approximation and not exact, and because this image may actually be larger than what Photoshop is showing me, I don't want to recklessly use a larger size in an attempt to solve this problem. I just want Photoshop to show me an image in inches life-sized. It's not a zoom problem either, because I am currently zoomed at 100%. Thanks for any help.


I have a script that I would like to run as a service on my Ubuntu Server 11.04 headless box. That is, I want to have the correct files under /etc/init.d/ and to be able to control it via the service command.  Is there any guide available that will show me how to do this?


By changing width task environment is not working properly

I am working in extbookdocument class. I prepared my book with setting width size 7 inches by using the command  \usepackage[paperheight=9in,paperwidth=7in,top=1in,bottom=1in,right=1in]{geometry}   But if I change my width size to 6 inches then task environment is NOT giving required output.  My code is      ...     \usepackage[paperheight=9in,paperwidth=7in,top=1in,bottom=1in,right=1in]{geometry}     ...      \NewTasks[counter-format = {\bf tsk[1].},label-width=24pt]{numbering}[\op]      ...      \section{Answers}     \begin{numbering}(5)     \op (C)     \op (A)     \op (C)     \op (A)     \op (B)     \op (D)     \op (D)     \op (C)     \op (A)     \op (D)     \op (C)     \op (A)     \op (A)     \op (C)     \op (B)     \op (D)     \op $\pm2$, $\pm\sqrt2$     \op*(3) $(q-s)^2-rqp-rsp+sp^2+qr^2$     \op\SetTaskNumber{21} (D)     \op (B)     \op (A)     \op (C)     \op (C)     \end{numbering} ...   The ouput of this code is perfecly alright but if I change the width size to 6 inches the output is not good. I am sharing both outputs. Please tell me what alterations do I need to do if I want the same as it is in the width of 7 inches.  I use font size 10 pt for 7 inches width and 9 pt for 6 inches width by using the command \documentclass[10pt,a4paper]{extbook}.


What happens when you need to tear-down a hotel but no houses are in the bank in Monopoly?

Strictly following the rules of Monopoly will show that just because you have the cash to out-right buy hotels for your properties, you cannot if there are not enough houses in the bank to support an even build (ie, there are less than 12 in the bank for a 3 property street).  Likewise, when tearing-down hotels, there need to be an appropriate number of houses available to support the even tear-down (at least four houses to remove one hotel, and 8 more if you want to remove all of the improvements on a 3 property street).  What happens if you cannot tear-down your hotels because there are fewer than four houses in the bank (or fewer than 12 for the whole street)?   The scenario is not that far-fetched - a property group has been fully improved, some large rent is now due, and the player needs to recoup the sunk cost of their improvements to pay the rent due.  If they cannot tear-down the hotels, they cannot pay the rent. But property cannot be traded between players if improvements are on it.  What is the appropriate resolution to this case?


I have a very confusing discussion with a friend of mine.  2 cars ($car_a$ and $car_b$) of the same mass $m$ are on a collision course. Both cars travel at $50_\frac{km}{h}$ towards each other.  They collide. Ignoring any shreds and collateral damage, what is the speed of collision that the driver of $car_a$ felt?  What I mean is, if $car_a$ were to be driven into an infinite mass wall, what would the velocity be to replicate the damage caused by the initial collision?


Unable to update Node JS - keeps returning to old version [Ubuntu 15.04]

I'm unable to update nodejs, and I can't see why.  If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package.  Here's what I've done:  Remove old version:  sudo apt-get remove --purge nodejs npm   Then, going by , I've run:  curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -   And then:  sudo apt-get install -y nodejs   I then run:  nodejs -v   Which returns:  v0.10.25   Can anyone explain what's going wrong? And how I can remedy this situation?  Many thanks.


Do you know how to scale the values in the range of $(-1, 1) $to the range of$ (0,30)$?

I kind of forgot how to do this. Any help will be appreciated.


Dropped table not showing up in recycle bin

I tried dropping a table and then when i viewed the recycle bin nothing was there in it . Earlier too i dropped tables many a times but I was surprised to find no objects whatsover in it . What's the deal ? [update]: i had tried    SHOW PARAMETER RECYCLEBIN;  Its VALUE column shows it  as ON . So fine here ! Then i droppped an existing table but still the command     Select object_name from recyclebin;  and any such retrieval of columns is showing NO ROWS SELECTED !! Also using flashback command  confirms that recyclebin is not having any such dropped tables !! So where are dropped tables going ? And one more thing : This time i tried using  ALTER SYSTEM SET RECYCLEBIN=ON;    Instead of Alter session    and sqlplus throws an error : Specified initialization parameter is not modifiable with this option  So, is this because  that i am working as a SYSTEM ?? i have not created any other USER as of now .


How do I fix the "you already have a follower" glitch?

I wanted to give my housecarl a new weapon so I dismissed my current follower (Jenasa) and quickly had my housecarl follow me. I gave her the weapon, Had her return home, and caught Jen as she was at the door. I re-hired her. She confirmed it, then walked out the door. I waited a second and she didnt come back. I stepped outside and she wasnt there.  I found her in the Drunken Huntsman and she said I already had a follower. I tried going back to my housecarl and she said the same thing. I even tried Lydia. And no I'm not doing the companions quest. I can't reload without doing some severe backtracking. (I guess I got unlucky with my auto saves) can anyone help me? I do not have any acess to console commands.


PS4 controller won't connect after connecting to PC

I connected my PS4 controller to my PC and I tried going back on to my console but when I press the button, the sensor light keeps flashing. I pressed reset and also pressed the PS button and share button together but I get nothing.


Height and minimal number of generators of prime ideal in polynomial ring

Suppose $\mathfrak p$ is a prime ideal of height $m$ in the ring $k[x_1,...,x_n]$ with minimal number of generators $m'$. By Krull's theorem we have $m'\geq m $. Is it necessarily $m=m'$?


Hoping someone can answer this question!  I am an Australian citizen and I live in Canada on a PR card but my two kids were born and we live in Canada.  I have two children who both have Australian and Canadian citizenship and passports.  We are going to the US for 2 weeks and I was going to use my children's Canadian passports to enter the US but, because the kids also have a Australian passport, do they need a visa to enter?  I have applied for an ESTA for myself as I will be travelling on my Australian passport but i am just worried that I need an extra visa for my kids even though they will be travelling on their Canadian passport!  I appreciate any advice.  Thank you.


HP PSC-2100 can't seem to get xsane and HPLIP (printing working)

I am trying to get my printer setup to both "Print" and "Scan", yep, I need to do both. Both attempts (yep, I've gone thru this twice).  The First time I was able to print just fine, but the scanner didn't work, xsane was complaining about hpaio, etc.  After I installed the ://hplipopensource.com/hplip-web/index.html  AllInONE software I was able to print and scan, then something went wrong  (THIS IS THE QUESTION ???)  ALL Print jobs immediately get put in "HELD" status, if I "RELEASE" them, they immediately go back to HELD.  Currently,  I am able to scan (perfectly might I add) without any problems, I installed the HPLIP from ://help.ubuntu.com/community/HpAllInOne  website after following some thread, it appeared that would solve my issues.     Working from , I am able to get a clean installed but when I get to the Synaptic steps, I appears to me that HPLIP is installed multiple times as the HP LIP Device manager report software version:3.12.2 Device Mgr: 15.0 (Qt4) while synaptic is reporting:3.11.7-1, which in the synaptic window appear NOT to be installed. In the synaptic window I only see "openprint-ppds" and "pxljr" as being installed.  Do I need to removed packages and start over , can I get back to "Out-of-the-box" easily ?  I'm guessing by installing the opensource version I shot myself, but I'm thinking that I wasn't able to scan or something, that why I ended up following the links to HPLIP support.  If I can forward any output (eg: HP-CHECK -t   which is clean, no warnings/errors) just ask !  Thanks for your attention and help,


How to set Image content in ZK from String parameter

Need help i want to set url image from String parameter in my code below wich is i got from table path in my database here is my .zul code:

             <image id="bg4" data-u="image" src="" />
             Responsive Slider
   and  here is my Controller  i am using import org.zkoss.zul.Image :  @Wire  Image bg4;   @Listen("onCreate=#listTop")     public void initWindow() throws IOException {     AImage tempImage=null;         prmTrxTop par=new prmTrxTop();      par.setPrmOutlet("%%");     ReportImpl list = new ReportImpl();     List<TopModel> result = list.selectTop(par);     String image1=result.get(0).getImageModel1();     bg4.setSrc(image1);     }   but it just give me null pointer exception, what should i do to set src Image from my table path in my database.


I have DIVs that are styled as interactive icon widgets, and I want to mix them with text like IMGs. I understand that . However, is it possible to make the DIVs look like part of the text? I would use SPAN or I, but a 3rd-party requirement forces me to use DIVs.  The following code
Text before DIV

Text after DIV
   Should ideally look similar to:
Text before DIVText after DIV


If in a group there are only two conjugacy classes then group is isomorphic  to Z2 . This statement is true or not ?


How to get a separator symbol longer than emdash (maybe a quadruple hyphen)?

I am trying to typeset a table, wherein some headers do not apply to a particular row, i.e. for certain cells.  I do not want to use "N.A". According to the package author of booktabs, it is sufficient to draw a blank, but in my IMHO, for this specific table, these gaps looks glaring more pronounced.   An emdash seems to be doing 90% of the job, and to my eyes seems a satisfactory solution. But latex does not seem to have anything longer than emdash. How can one obtain ---- typeset as one long separator of the size of 4 hyphens joined?  PS: A mechanism for possible extensions (with an argument) to longer widths would be a bonus, e.g. maybe a macro like \crazyconjoinedhyphen{5} for typesetting 5 hyphens back to back as a single symbol.


What are the requirements for an Oath of Vengeance paladin to use Vow of Enmity?

My party and I are very new to D&D, so we are still learning a lot of the rules.  Anyway, I have chosen the Oath of Vengeance for my paladin. During a battle, I wanted to use Vow of Enmity against my enemy. However, my DM said I couldn't use it because I didn't have a specific vengeance against said enemy. He basically told me that I can only use the vow if I can come up with a reason as to why the enemy deserves it. What are the requirements to use Vow of Enmity? Can I really only use it if I can come up with a reason to swear vengeance against the enemy? Or I am just able to use it whenever I want (once per rest, obviously, using Channel Divinity) simply because I have taken the Oath of Vengeance?


Statistics: orthogonality vs uncorrelatedness vs independence

In this post I would like someone to summarize and relate these 3 concepts of statistics (in the context of stats).  1) I remember that uncorrelated does NOT imply independence (e.g. the case where the RV $X=Y^2$, correlation=0 but they are dependent in a nonlinear way. (as mentioned here:)  2)However can we say that independent implies uncorrelated, i.e. Pearson corr. coef. = 0 ?  3)For orthogonality:  - Does orthogonal imply uncorrelated ? (i think yes) - Does uncorrelated imply orthogonal?  4) There are definitions of orthogonal w.r.t. Expected value as: $E[XY]$=0  A definition of uncorrelated is: $E[XY]=E[X]E[Y]$  how can we relate both (e.g. with an example) ?  5) Finally, what to say if X and Y are vector RVs ? Does $E[XY]$ goes down to a dot product of X and Y ? ( I m trying to refresh an reorganize my knowledge in my head so would be great to have like a "summary post" or "cheat sheet" here)


What's the status of AI beings in the Star Wars universe: people or property?

AI technology is obviously pretty advanced in the Star Wars universe. This question explains why AI droids aren't more commonly used in perilous situations:   (TL/DR - their AI was crippled to make them more obedient).   However, the films (the only canon reference I'm familiar with) features a number of droids which have apparently human-level intellect and are capable of functioning entirely independently. C3P0 is the obvious example. IG-88 is another (whose existence, I might add, undermines the idea that battle droids are always stupid).  At no point in is there any sign that these robots are particularly special or rare. They are not treated as valuable objects, and the organic characters in the films don't react to them with any surprise. So it follows that they must be reasonably easy to produce.  The way they are treated seems to fall into an uncomfortable gray area between objects and sentient beings. My question is whether there's any canon references as to the status of AI entities in Star Wars as "people"?


Evaluate $\int_{0}^{\pi} x \ln(\sin x)dx.$

Evaluate   $$\int_{0}^{\pi} x \ln(\sin x)dx.$$   My attempt,   My first glance on this question I know that I'm going to use Integration by Parts.  So, it equals to $$-\frac{1}{2}\int_{0}^{\pi} x^2 \cot x  dx$$  I've tried every methods that I've learnt for integration for this and I ended up in nowhere. Hope someone could provide a solution and explain for it. Thanks in advance.  Updated  Obviously, my attempt is wrong as the integral does not converge.


How to rename the User folder in Windows 10?

After installing Windows 10 on my  it took my user name 'Jeremy' and created a user folder named C:\Users\jerem.  I want to rename the folder C:\Users\Jeremy.  does not work. There are a couple of reasons.   OneDrive is now a fully integrated part of the OS, and it completely breaks.  A find/replace in the registry seems to work, but it's hard to be confident in that approach. When the computer is rebooted, the TabletInputService writes a TextHarvester.dat file to the old user profile location (creating it if needed). This makes it impossible to keep the folder deleted. An old  doesn't work. This issue also causes an error message to pop up every time the computer boots.


Get current IP in JS (no third party services)

Is posible Get Client IP Using WebRTC JS API and the ICE protocol (STUN for public IP)?


How can I get intraday prices for mutual funds?

How can I get intraday prices of a mutual fund? (Mine are Oppenheimer funds.)


How come if $\ i\ $ not of the following form, then $12i + 5$ must be prime?


I wonder if we can we say $x\in \{\{\{x\}\}\}$?    In one viewpoint the only element of $\{\{\{x\}\}\}$ is $\{\{x\}\}$. In the other viewpoint $x$ is in $\{\{\{x\}\}\}$, for example all people in Madrid are in Spain.


What can I do to prevent passport stamps being put on blank pages?

I'm running low on blank passport pages which are sometimes needed for full page visas such as those issued by Armenia, India, and Vietnam.  When I crossed the border into Turkey the other day I got my visa-on-arrival and stamp, but instead of putting it on a partly used page, which I have many, the guy at customs and immigration put them on a previously blank page. Now I have one fewer!  What can I do to prevent or at least reduce the chances of this happening?  It's worth remembering that there's likely to be a language barrier and it's always best to be ultra-nice to these border officials.  Has anybody heard of any trick such as sticking bit of paper in your passport, either blank, or looking a bit like visas? I have noticed that nobody ever stamps a page that has a remnant of something once stapled in there in Japan. There is a kind of stub that had its major part torn off along a perforation. Might I be able to emulate this somehow or would that even be worse making the blank pages invalid for full page visas due to having holes from staples? I know some things can get very picky when it comes to customs and immigration.


Inkscape - make contour go to the inside

I drew a circle of diameter 100mm and set its contour to be 5mm. Now this means that actual size of that circle is 105mm because it's 100mm for the circle and the contour "overflows" 2.5mm on each side.  Is there an easy way to set it up so that no matter how large contour I set, it will all go to the inside of the circle instead of both sides?


QGIS query syntax differs between attribute table and feature filter

Using QGIS 2.16.2, I can successfully select records from a shapefile attribute table using the following expression:  left("start_time", 10) = '2015-08-01'   Please note that start_time is a string field.  However, when I copy and paste the same expression into the shapefile's Layer Properties>General>feature filter>Query Builder I get the following error:    I would expect that the same expression would work everywhere in QGIS.  What am I doing wrong?


Beta distribution from mean and quantile

Suppose I'm given the mean and one quantile (e.g. the 20% quantile) of a random variable $x$, and I want to find the parameters $\alpha$ and $\beta$ of a Beta distribution that has the same mean and quantile.  Is there an efficient way to do it?    Using just the mean, I know that since $\bar{x} = \frac{\alpha}{\alpha+\beta}$, we have $\beta = \frac{\alpha}{\bar{x}} - \alpha$.  So we only really have one parameter to estimate.  But I'm unsure how to use the quantile information to take the next step.  Maybe there's something I can do with the Incomplete Beta when I know the ratio $\frac{\beta}{\alpha} = \frac{1-\bar{x}}{\bar{x}}$?  I have access to R myself, so I could use a numerical optimizer for this, but ideally I need a method that can be carried out in Excel in someone else's environment.  Excel does have BETA.DIST() and BETA.INV() functions available.  A look-up table would be fine, but a closed-form formula would be better if it's possible.


Polynomial division $p(x) = x^4-(2m + 4)x^2 + (m-2)^2$

For which values of $m$ can the polynomial $p(x) = x^4-(2m + 4)x^2 + (m -2)^2$ be factored into two non-constant polynomials whose coefficients are integers?


I want to create a tutorial how to use TikZ now. Is there a listings configuration for TikZ as used in PGF/TikZ manual?  For example, I want to make \ as an integral part of tikz in \tikz, relevant macros must  have consistent colors, no annoying line numbers, PDF copy-paste friendly, etc.


System.SObjectException: ORA-20001 when deploying Changeset for users

I'm deploying an apex class and Test class which is running successfully and covering 84% test coverage in sandbox however when deploying it in Prod, I'm running in to below issue. I have included Static Resource in the changeset. Any ideas what is wrong with it? The Static resource consist of a CSV file that includes User data (Name, email, Username , lastlogindate). istest public class TestScheduleInactiveUser {     @istest static void ScheduleInactiveUser(){              List<sObject> ls = Test.loadData(User.sObjectType, 'UserLoadTest');                          Test.startTest();             ScheduleInactiveUser fc=new ScheduleInactiveUser();             Database.executeBatch(fc);         Test.stopTest();              } }   Error: System.SObjectException: ORA-20001: ORA-06512: at "DOC.CPROFILE", line 1128 ORA-01403: no data found ORA-06512: at "DOC.CPROFILE", line 2940 ORA-06512: at line 1 SQLException while executing plsql statement: {?=call cProfile.get_user_type(?)}(00eP0000000bIq5)  Stack Trace:  Class.System.Test.loadData: line 53, column 1 Class.TestScheduleInactiveUser.ScheduleInactiveUser: line 5, column 1


Generate a JWT with Apex to call a web service from another system

I develop an Apex class wich calls an web service from another system. I need to use a JWT to make the authentication but I never used it, so I don't know how to do it. I read the Salesforce  but I am not sure to understand what I esactly have to do. Do you have an article which deals about it? Thanks


What is the difference between seems like /seems that/seems?

Is there any difference between these expressions?  It seems like they have not completed the task yet. It seems that they have not completed the task yet. It seems  they haven't completed the task yet.


Suppose $G$ is a finite Abelian group and, $\forall\ n\in \mathbb{N} $, there exist at most $n$ elements in $G$ which satisfy $x^n=1$. Prove $G$ is cyclic.   Thanks for your help.


CMYK color related to RGB / hex - different online than in Adobe

I'm working in a palette where for each color I have: - hex value - rgb value - cmyk value  I was working with online tools like   The thing is, for the same rgb/hex value I get different cmyk values in Adobe Illustrator than on the web... Which one should I use?  e.g.   rgb(110, 201, 200) / #6ec9c8   gives me:  cmyk (0.45, 0, 0 21) for color-hex.com  cmyk (57.04, 0, 26.6, 0) for adobe  a couple of screenshots showing that...


Identifying a component symbol in a schematic

Problem: So I have ran across the following part and I simply don't know what it is. I tried searching for if you will a description of it. (I.E. two diodes on top of each other pointing opposite directions) This of course did not help.  Help: So what is this?   Advice: So when you run across something you don't know how do you solve this? I mean besides using context clues from the circuit. If its just a symbol and you can not identify the part. Advice?  Notes: It is from the block diagram of the datasheet of the .


I'm trying to buy Hjerim in skyrim and start the quest blood on the ice, I've already completed mourning never comes, I'm actually done with all the quests for the dark brotherhood, I've stolen the key from toca but the quest doesn't start, what do I do?


How do I solve this limit: $ \lim_{x \to \infty } \sqrt{n}\sin(\sin(\sin ... (\sin (1))...)) $

I have been strugling a lot to solve this question, but couldn't figure out where to start.  $$ \lim_{x \to \infty } \sqrt{n} . \underbrace {\sin(\sin(\sin ... (\sin (1))...))}_{n...times..} $$  I think maybe I should assume the part inside brackets as $y$.  But what next??  Any hints/suggestions?


I want to find the closed form of $\sum\limits _{i=0}^{\lfloor n/2 \rfloor} {n-i \choose i}$

I can't find the starting points. Thank you for your help.


Why is there no built-in function to find the size of a pointer array in C?

free() only needs the pointer value to release allocated memory. Which means that C knows how big assigned memory blocks are. Then how come there isn't some built-in function to find the size of a pointer array?    I know the convention is to keep track of array sizes, but given that there already is some memory management happening natively, why don't we harness that to have a convenient size() function for arrays?


Anyone else lost Software Manager after the recent ubuntu-base update?

Yesterday Software Updater reported that there were a few updates to install (64Mb worth) which I set running. However, after a reboot, I'd lost my CUPS drivers + Software Manager. The first was easy to sort out - I went to the HP site, downloaded and ran the HPLIP installer to install new drivers. However, the second I have no idea about. Software Manager was on my taskbar but disappeared and is no longer shown in the list of available app's. Any ideas anyone please ?


The guy in this picture has a transparent skin. Can anyone tell me how to get it? From what I know, he is using Minecraft Version 1.9.


A family has two children. One child is a girl. What is the probability that the other child is a boy?

My initial thought process: Sample space: GG, GB, BG, BB. I then crossed out BG because it's the same as GB because order doesn't matter here. And because we know one is a girl, there leaves two possibilities left. If the other is a boy, the probability should be 1/2, much like how they deduced it .  However, I was told by my teacher that the answer is not 1/2. I'm wondering if any of you guys can see a way in how the question is worded so that it's not 1/2... I don't think there's any other factors?


Javascript - add event listener to elements added with insertAdjacentHTML

I am creating elements in a for loop and would like to add event listener to all of them, but not sure how to do that?  for (let i = numberOfPages; i >  0; i--){     var link = navLinksTemplate({ pageNumber: i });     previous.insertAdjacentHTML('afterend', link);   }   I need to do it with vanilla js.


Other than looking at the profile, is there a way to find out someone's real name?

A user on SO, Abhijit, referred to the OP of a question, acpigeon, as "he" (and then Aaron) .  I didn't see the name on the question page, nor on . Is there a way to look this up that I missed? Alternatives are Abhijit knows acpigeon, or maybe Abhijit was just making things up.  I'm still relatively new to these sites, so I'm still learning my way around. Is there a way short of the two alternatives above to know the OP's name? If so, how?


Problems with constructing a polygon in ArcGIS 10.4.1

Background - I am drawing polygons of counties over a 17th century map that I have georeferenced. I have a number of issues with this version of GIS which I haven't experienced with past versions. When I try to draw a polygon the shape keeps closing after 3 vertexes have been applied. The only way I have found to get round this is to draw a square of vertexes over the whole county and then keep adding vertexes to draw in the polygon which is very time-consuming.


How to upgrade from Ubuntu 12.10 to 14.04

I was under the impression that upgrading to Ubuntu 14.04 was supported from all version between and including the previous LTS release (12.04). Why is it then, that update-manager (with and without -d option) will only offer to upgrade to version 13.10 from my Ubuntu 12.10 system? Even that only works when I change the updater settings from "For long-term support versions" to "For any new version."  Is it only possible to upgrade to 14.04 via 13.10?


In JavaScript, difference between var foo = function foo(), var foo = function(), regarding private/public/protected?

This link -  - says the following regarding private members in JavaScript:  Private  function Constructor(...) {   var that = this;   var membername = value;   function membername(...) {...} }  Note: The function statement  function membername(...) {...}  is shorthand for  var membername = function membername(...) {...};   I thought about this, and tried the following:  Instead of   var membername = function membername(...) {...};   I did just  var membername = function(...) {...};   and it seems to have the same effect.   Can anyone verify that these two are exactly the same in all cases? Do they only have the same privacy level/scope when used inside a function? What if they are just in the top-level definition of a JS file?  Thanks.


Can paths of two adiabatic process intersect on a plot? This question is for both reversible and irreversible processes. There are some , but they mostly address only for reversible adiabatic processes. Also, I want a physical interpretation of the processes that is, if they don't intersect then why don't and what it would be like, physically for a system.