Adding Day Of week to file name in batch file

I want to run a daily incremental backup and append the day of the week to the file name so I end up with:  backup_mon.bak backup_tue.bak  etc.  Not really bothered about what exactly is appended - 0 - 6 is fine.  How do I go about this?


the shadow is allways to the right and I dont know why it is there.


Can't reach wi-fi signal on Ubuntu, but can do it on other OS/devices (ath9k)

I have two laptops, both running Ubuntu 13.10, as well as a different OS (Windows 7), dual boot on both.  My wi-fi router is on my bedroom and I want to get the wi-fi signal from the living room. I can reach the wi-fi signal from both pcs when running windows, with a relative good signal, but can't reach it on both of them when running Ubuntu, can't even connect to it.  Is there something that I can do to amplify the wi-fi signal?


Possible Duplicate:          How do I view the changes made to a question, in the SO-style visual diff?  I'm sure I've seen this before, but the "history" button eludes me. Clicking "edit" gives me a drop down of the revisions, but not the actual diff.    Edit  This edit is a demonstration of the revision history functionality.


I want to convert an number (integer) to a hex string  2 (0x02) to "\x02"   or  62 (0x0062) to "\x62"   How can I do that correctly?


Site    here, in this 9 is the user id.it is different according to register users.   When add link in main menu there is an option Path textbox in that text box if i add "user/9/edit" then link is created but here 9 is login user id. then it is accessible only whose user id 9. but other not access. I want to add link dynamic which user are login then that user access that user edit page.user/*/edit


How to make the Inner Flex Height to acquire all the space

I am trying to make a Grids with flexbox, But the height is not working, I think I am missing something about the percentage height property in flex. I want to Achieve this    but I am getting this.    I am Trying to do it using flexbox.    body {   margin: 0px; }  .wrapper {   display: flex;   flex-direction: column;   height: 100%; }  .container {   background: blue;   display: flex;   flex: 1 100%; }  .navigation {   display: flex;   flex: 0 60px;   background: green; }  .chat-list {   background: rgba(255, 50, 40, 0.5);   width: 22%; }  .chat-profile {   background: rgba(55, 250, 40, 0.5);   width: 18%; }  .chats {   width: 60%;   background: orange; }

NAVIGATION

CHAT LIST

CHATS

CHAT_PROFILE


Determine expected value for continuous random variable

I know that $E[X^n]$ is found by $$\displaystyle\int_{0}^\infty{x^nf_x(x)dx}$$   I simplified this to $$\displaystyle\int_{0}^\infty{ \frac{x^{\frac{v}{2}-1+n}e^{\frac{-x}{2}}}{\displaystyle\int_{0}^\infty{{x^{\frac{v}{2}-1}e^{\frac{-x}{2}}}}dx} dx }$$  But I don't know how to proceed, since i shouldn't solve the denominator.


There is a web server installed as a virtual machine in the cloud. I've configured it myself, and it has two corporate web sites on it. I'am not planning anything else to be there. So before it goes to public I want to check it for security vulnerabilities. Pleas guide me to best practices, checklists and audit procedures, anything to measure and evaluate security of the server.


What are some different methods to evaluate  $$ \int_{-\infty}^{\infty}  x^4 e^{-ax^2} dx$$  for $a > 0$.  This integral arises in a number of contexts in Physics and was the original motivation for my asking. It also arises naturally in statistics as a higher moment of the normal distribution.  I have given a few methods of evaluation below. Anyone know of others?


How to do math with dates in MM/DD/YYYY format?

I have a file that contains a list of dates in MM/DD/YYY format. Each of these is stored in a $date_variable inside a while loop. I also have:  current_date="$( date +%x )"  I need to compare the dates from the file to the $current_date.   How can I say "if current date = $date_variable + at least 7 days? or "if at least 7 days have passed since $date_variable, then do this".  I have tried working with "if" comparison operators, but I don't get the expected result because of the format of $date_variable.  Also, I find it hard to change the format of $date_variable because they are being taken from a webpage with curl and grep.  EDIT:  My script looks like this:  # Store current date in the MM/DD/YYYY format current_date="$( date +%x )"  # Iterate each line from hotfix_final and read the variables hf_link and release_date while read -r hf_link release_date; do    # Install hotfixes on POC machines   if [ "$current_date" > "$release_date" ]; then     wget "$hf_link"   fi  done </home/abc/hotfix_final # Set the file as input for the whole while loop   hotfix_final:  https://download.abc.com/hotfix 06/24/2019 https://download.abc.com/hotfix2 06/26/2019   and I'd like to say:  if "$current_date" = "$release_date" + at least 7 days; then ...; fi


Married Couples in the Star Trek Universe?

It just occurred to me that hardly anyone in any of the series is married! What's up with that? O'Brien is married, Dr Crusher and Cpt Sisko are widowed, Tom Paris and B'Elanna Torres get married - those are the only examples I can think of. Other than the characters listed, and not counting marriages that take place after the time of the respective series (Crusher and Picard) or alternate reality stories (Troi and Worf), are any recurring characters in any of the series married?


I signed up for Stack Exchange with my Google account. Stack Exchange gave me a username automatically, like some sort of a user code. Is this username changeable? How can I change it?


Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference in Android

I want to convert strSqliteDate﹕ = 2016-01-14 05:34:50 PM  into 2016-01-14 .After converting all dates my application was crash and getting error of  02-01 12:03:15.204    7619-7619/com.example.tazeen.classnkk W/System.err﹕ java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference 02-01 12:03:15.204    7619-7619/com.example.tazeen.classnkk W/System.err﹕ at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1035) 02-01 12:03:15.204    7619-7619/com.example.tazeen.classnkk W/System.err﹕ at java.text.DateFormat.parse(DateFormat.java:577)   At this line   date = dateFormat.parse(strSqliteDate);  and second getting error at this line = calendar.setTime(date);     Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'long java.util.Date.getTime()' on a null object reference               at java.util.Calendar.setTime(Calendar.java:1195)   Here is date conversion code in DBhelper class  String strSqliteDate = cursor.getString(cursor.getColumnIndex("ActionDate"));                 Log.e(" strSqliteDate "," = " + strSqliteDate);                  String result = "";                 Date date = null;                 DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");                 try                 {                      date = dateFormat.parse(strSqliteDate);                 }                 catch(Exception e)                 {                     e.printStackTrace();                 }                 Calendar calendar = Calendar.getInstance();                 calendar.setTime(date);                 SimpleDateFormat printFormat = new SimpleDateFormat("yyyy-MM-dd");                 result = printFormat.format(calendar.getTime());                 Log.e("result = ","==========>"+result);


I have a view and added the title as a field. For example: How do I print the title?  In Drupal 7 it was as simple as views-view-fields--[viewname].tpl.php <?php print $fields["title"]->content; ?>   How do we do this in Drupal 8? I have created views-view-fields--[viewname].html.twig I thought it might be {{ fields.title }} but I get the classic error message like so:  The website encountered an unexpected error. Please try again later.  I then tried {{ field.title }}, {{ title }} and {{ content.title }} but nothing prints.


Happens after opening the app through the notification drawer.


Extending an expiring I-94W, land based entry to US

I live in Canada with a German passport and a student visa. From a recent climbing trip to the US I still have this green I94-W form in my passport. I didn't surrender it on leaving the US back to Canada, because I expected to come back for another climbing trip relatively soon.   That trip got postponed a few times, and now the situation is that the I94-W would expire while I'm on the trip. That is, it would still be valid on entry, but not on exit.   Can I apply for a new I94-W at the border crossing, or can these Visa waivers not be extended back-to-back?


How to identify drive device from event log?

I have a messages about drive errors in the Windows Event log, like this:     Bad Block On Device \Device\Harddisk0\DR0   I have two hard drives in the system. How can I know which one causes these errors? I see nowhere the same identification type, like here.  For example, the following are dialogs from Device Manager:    Can I be sure it is drive C since it is "Disk 0"?


How is the work done to push a planet over 1m with 1N the same as pushing a feather over 1m with 1N?

Assume there are no other forces acting and the rocket+fuel described do not weigh anything. Also, by rocket I mean engine/thruster, not space shuttle.  Suppose you have a planet, say of mass 1,000,000,000 kg and you push it with a rocket which exerts a force of 1 N. This will accelerate the planet by $10^{-9}\, m/s^2$.  Then, suppose you have a feather of mass 0.005 kg and push it with the same rocket which exerts a force of 1 N, accelerating it by $200\, m/s^2$.  It follows that the feather will traverse a distance of 1 m much faster than the planet and thus spend much less rocket fuel to do so. So, the energy used to propel the planet must be much more than the energy used to propel the feather.  But, work done = force × distance, $1 \times 1 = 1\, J$ for both the planet and the feather. I think I have misunderstood something. How is this possible?


What are the major differences between ANSI C and K&R C?

The  says:     One of the aims of the ANSI C standardization process was to produce a superset of K&R C (the first published standard), incorporating many of the unofficial features subsequently introduced. However, the standards committee also included several new features, such as function prototypes (borrowed from the C++ programming language), and a more capable preprocessor. The syntax for parameter declarations was also changed to reflect the C++ style.   That makes me think that there are differences. However, I didn't see a comparison between K&R C and ANSI C. Is there such a document? If not, what are the major differences?  EDIT: I believe the K&R book says "ANSI C" on the cover. At least I believe the version that I have at home does. So perhaps there isn't a difference anymore?


Screen brightness reset to minimum after every reboot

Ubuntu 11.10 doesn't save my brightness settings between sessions. Everytime I boot up, the brightness is always at zero, and I always have to set it back to my preferred setting (at maximum). How can I ensure that my brightness preference will persist after reboot?


Existence of Function from various Domains to various ranges.

Multiple correct options:  Which of the following is/are true?  (a) There is a surjective function $f:\mathbb{N} \to \mathbb{N} \times \mathbb{N}.$  (b) There is a injective function $f:\mathbb{N} \times \mathbb{N} \times \mathbb{N} \to \mathbb{N}.$  (c) There is a bijective function $f:\mathbb{N} \times \mathbb{N} \to \mathbb{N}  \times \mathbb{N} \times \mathbb{N}.$  (d) There is a bijective function $f:\left\{ 0,1 \right\} \times\mathbb{N} \to \mathbb{N} \times \mathbb{N}.$  I think (b) is only correct since bijective requires the same cardinality.  How should I do this one.


Whoever or whomever: 'happy for ___ has the pleasure of working with you next.'

So sad to lose you, yet happy for whomever has the pleasure of working with you next.


Why is a T distribution used for hypothesis testing a linear regression coefficient?

In practice, using a standard T-test to check the significance of a linear regression coefficient is common practice. The mechanics of the calculation make sense to me.  Why is it that the T-distribution can be used to model the standard test statistic used in linear regression hypothesis testing? Standard test statistic I am referring to here:   $$ T_{0} = \frac{\widehat{\beta} - \beta_{0}}{SE(\widehat{\beta})} $$


Completing a 3x3 correlation matrix: two coefficients of the three given

I was asked this question in an interview.  Lets say we have a correlation matrix of the form \begin{bmatrix}1&0.6&0.8\\0.6&1&\gamma\\0.8&\gamma&1\end{bmatrix}  I was asked to find the value of gamma, given this correlation matrix. I thought I could do something with the eigenvalues, since they should be all greater than or equal to 0.(Matrix should be positive semidefinite) - but I don't think this approach will yield the answer. I am missing a trick.  Could you please provide a hint to solve for the same?


Proof question that could be proved using mathematical induction.

$T_1=x+1/x$ is an integer greater than $2$. Prove that $x^n+x^{-n}$ is an integer. For what values on $n$, $t_1$ divides $t_n$.  I am stuck with this problem. Please help.


UTF-8 Telugu text not rendering correctly in terminal

I am trying to process telugu text with Python. Text is rendering correctly in chrome browser like this.     Unfortunately it is not rendering correctly in default terminal or python shell in terminal.      Can you help in finding what is causing the problem?  What I have tried so far:  Installed all available telugu fonts  sudo apt-get install fonts-telu-extra fonts-telu fonts-lohit-telu   Setup unicode support in terminal   locale              LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8   Enable te_IN in /etc/locale.gen  Setup telugu language from Language Support.  Download custom telugu fonts and load them.  None of these have solved the problem. Without proper rendering, it is very hard to understand text. Any help in troubleshooting this is highly appreciated.


Further anonymize deleted accounts by changing the username in close/delete notices

When an account is deleted, the username in the user's posts and comments is changed to a generic user<userID>. But the username stays the same on close and delete notifications on posts the user had voted to close / delete1. I think it shouldn't, especially for users who used their real name as their username, if they chose to distance themselves from the site and remove their accounts, it makes sense that they wouldn't really want their name plastered on close and delete notifications.   A perhaps easy way to avoid the actual username remaining visible would be to change it to the generic user<userID> (or anything generic enough, like "anonymous") prior to deletion, and wait a bit for the generic username to propagate all over the site. If I'm not horribly misreading , this was part of the process in the old days.   This could be automated or added as a suggestion to the .  Glaring example can be seen , where the deleted user also posted a comment where their name is properly anonymized:        1 I've seen it on close notifications and self deleted answers. I'm not sure it happens on deleted questions, or deleted answers that aren't self deletions, and I don't have a way to verify it - other than stumbling on them accidentally


Drupal 7, MySQL, InnoDB, and transactions

I was reading  for Drupal 7.x this afternoon, and came across this comment:  /*  * Some database engines support transactions.  In order to enable  * transaction support for a given database, set the 'transactions' key  * to TRUE.  To disable it, set it to FALSE.  Note that the default value  * varies by driver.  For MySQL, the default is FALSE since MyISAM tables  * do not support transactions.  */   This is different in :  /*  * Transaction support is enabled by default for all drivers that support it,  * including MySQL. To explicitly disable it, set the 'transactions' key to  * FALSE.  * Note that some configurations of MySQL, such as the MyISAM engine, don't  * support it and will proceed silently even if enabled. If you experience  * transaction related crashes with such configuration, set the 'transactions'  * key to FALSE.  */   So, how does  work then on MySQL in Drupal 7?  Is this comment outdated, or should I explicitly set   $databases['default']['default']['transactions'] = TRUE;   if I know everything is InnoDB (which is the default for Drupal 7.


This command:  virt-install   \    --name bla  \    --ram=1024  \    --disk path=/home/me/libvirt/images/bla.qcow2,bus=virtio,size=10  \    --location /home/me/Downloads/ubuntu-18.10-desktop-amd64.iso   Reports:  ERROR    Couldn't find hvm kernel for Ubuntu tree.   How can I fix this?  (Since there are many duplicate posts and answers with regard to this issue, I am answering it, too.)


I suspect there were multiple flags on the  and my flag was declined with the response to a different flag:    I was flagging in hopes of getting a bounty question closed, not in response to downvotes.


Why does playing a string instrument at different positions along the string cause different sounds?

While playing with a violin with my friend, they told me plucking at just any position will produce the "wrong" sound, and to achieve the sound desired for the piece you must pluck at a specific point on the string (about a half inch below where the fingerboard ends). I did not believe her, as surely plucking a string tightened to play a certain frequency and amplitude will not play a different frequency or amplitude based purely on what position on the string you pluck.   Now, playing with my guitar I realize that possibly the difference in sound is caused by a shift in the position of the wave. While it is an interesting idea, it feels wrong at a fundamental level.   So, why does playing a string instrument at different positions along the string cause different sounds to be produced?


How do I add summation formula's like this: $F(n+2) = 1 + \sum\limits_{i=0}^{n} F(i)$?

I have a Fibonacci problem ... basically I have to show that:  $$F(n+2) = 1 + \sum_{i=0}^{n} F(i)$$  Using strong induction, I must now show that:  $$F(n+2) = F(n+1) + F(n)$$ $$F(n+2) = (1 + \sum_{i=0}^{n-1} F(i)) + (1 + \sum_{i=0}^{n-2} F(i))$$ $$F(n+2) = 2 + \sum_{i=0}^{n-1} F(i) +  \sum_{i=0}^{n-2} F(i)$$    How do I add these two summations to show that they equal the first equation (at the top)?  Please provide the steps with explanation as to what you are doing. Thanks


Why are generalized positions and generalized velocities considered as independent of each other?

I'm confused how  $$\dot{\mathbf{r}}_{j}=\sum_{k}\frac{\partial\mathbf{r}_{j}}{\partial q_{k}}\dot{q}_k+\frac{\partial\mathbf{r}_{j}}{\partial t}$$  leads to the relation,  $$\frac{\partial\dot{\mathbf{r}}_{i}}{\partial\dot{q}_{j}}=\frac{\partial\mathbf{r}_{i}}{\partial q_{j}}$$   that while differentiating the first equation the generalized velocity and generalized positions are considered as independent of each other, i.e., $(\dot{q_1},\dot{q_2},...,\dot{q_n})$ is independent of $(q_1,q_2,...,q_n)$. I don't understand how they are independent.


Are "to exist" and "to have being" the same?

I recently read an introduction about ontology. A section was about the debate whether to exist and to have being is the same.  One position says (attributed to Meinong), that some things exist and some things have being. Dragons, for example, have being, but don't exit. According to this position, one can make sense of propositions like "Dragons don't exist".  The other position says (attributed to Quine), that having being and existing is the same thing. To say, dragons don't exist is to say that dragons don't have being.   I expected to see an explanation of the theoretical importance of this debate, but the section just ended.  I don't get, what the point of this debate is. The first position agrees with the second, that dragons are somehow not present and that we can't touch them for example. It seems to me, that this debate is only about linguistic preferences, whether I want to say, that dragons have being or not.   Since I don't believe, that philosophers just talk about linguistic preferences, I must have missed something.  My question: What is the theoretical importance of the debate, whether to exist and to have being is the same?


NORMAL label in top right of some applications

I've managed to get a label saying "NORMAL" in top right corner of certain applications. How do I get rid of it?  Example Spotify:


Can B1 Visa holder accompany another B1 Visa holder as dependent

I have a B1 Visa which is valid for another 7 years and my wife also has B1 visa which is valid for another 3 years.  I am planning to visit US for some business purpose and want to take my wife along with me.She would be taking leaves from her office and wont have any business purpose.   Is it possible? Or do I have to apply for B2 visa for her?


I want to uninstall Ubuntu completely and install Windows 8.1, but everything I've tried hasn't worked

I've bought a Windows 8.1 key with the intention of uninstalling Ubuntu 14.04 and installing Windows 8.1. I don't have a recovery disk, but I do have a USB handy that I can run something from... I'm very new to Linux so no suggestion is too simple! I wouldn't mind a dual boot but I'd prefer a full wipe - any information required feel free to ask. Thanks.


I'm writing some notes to my class and I create a table but is too wide and it cannot be compiled in my document. Could you help me with my code? I think I need to modify the rows because some part of the contents are too long and that creates the error but I'm really beginner using Tables. Thanks to anyone.  \begin{table}[h]     \centering     \begin{tabular}{l|c|l|r}     &\textbf{Parámetro} & \textbf{Definición} & \textbf{Intensidad}\\\hline\hline     1&Especialización & El puesto ejecuta un número reducido de tareas diferentes & Muy alta\\     2&Formalización de comportamiento & Puesto con tareas simples diseñadas por personas diferentes al ejecutor & Muy alta\\     3&Entrenamiento & Práctica de un trabajo por un largo tiempo, fuera del trabajo y solitariamente & Muy baja\\     4&Adoctrinamiento & Conjunto de valores, objetivos o cultura común & Muy baja\\     5&Planificación y control & Planificación: Definición de tareas antes de la ejecución. Control: Monitoreo de las tareas después de la ejecución & Muy alta\\     6&Comunicación informal & Coordinación fuera del plan & Muy baja\\     7&Centralización & El poder pertenece en la parte alta de la estrategia & Relativamente alta     \end{tabular}     \caption{Tipos de alineamiento}     \label{tab:my_label} \end{table}


Can I use command blocks to teleport a player who died and give them a point?

I've read and tried  but I still can't figure out why instead of teleporting me when I die, it instantly teleported me to the point and didn't let me move! I don't know what I did wrong. I exactly copied what the accepted answer said, but it doesn't seem to work. Any ideas what I did wrong?


How to post responses from Google forms to a specific sheet in a Google spreadsheet

I have a form, a Google form, and I'd like to post the user's responses to a specific sheet in the Google spreadsheet. Is this possible?


Is there a bijection between the reals and naturals?

I found  pop math article saying that there was a paper published last year that proved that the cardinalities of the reals and naturals are equal. Is this true or is it a misinterpretation of the result? If it is true, I'm dying to know what the bijection between the two sets is.


Understanding whether to use two-way effects

Using plmtest, I find that individual effects are significant (p: 7.327e-05); time effects are not significant (p: 0.1263); and two-way effects are significant (p: 0.0001197).   Based on these results, should I include two-way effects in my model? Or just individual effects? When I run the model with individual or time effects only, my explanatory variable is significant (p: 1.957e-05 and p: 0.01211, respectively). When I run it with two-way effects, my explanatory variable is no longer significant (p: 0.715998). How can I interpret this result?


Storing nested structures and avoiding memory leaks

I'm making a small game in C++, it's working but I'm having trouble clearing allocated memory when removing objects. The game consists of 'shapes' which in turn are made up several 'blocks' (think tetris). Here's a minimal  version of my setup for storing game objects: #include <vector> #include <set> #include <algorithm> using namespace std;  struct Block{     int x; };  struct Shape{     set<Block*> blocks; };  vector<Block*> all_blocks; //Pointers to all blocks in the game vector<Shape*> all_shapes; //        -       shapes     -      int main() {      //At start of level, create blocks and shapes objects on heap and     //store pointers to them in the two vectors above     Block* b1 = new Block{2};     Block* b2 = new Block{3};     Block* b3 = new Block{5};      Shape* s1 = new Shape{ set<Block*>{b1,b2} };     Shape* s2 = new Shape{ set<Block*>{b3} };      all_blocks.push_back(b1);     all_blocks.push_back(b2);     all_blocks.push_back(b3);      all_shapes.push_back(s1);     all_shapes.push_back(s2);      //...working game...//      //Clearing memory     for(Block* b : all_blocks){         delete b;     }     for(Shape* s : all_shapes){         delete s;     }     all_blocks.clear();     all_shapes.clear(); }  Everything seems to be working so far. However now I want to be able to delete individual blocks during runtime. I came up with the following complicated  function void delete_block(Block* b){     for (Shape* s: all_shapes) { //Delete the block from every shape that contains it         (s->blocks).erase(b);     }     //Now some shape(s) may contain no blocks, remove all empty shapes,     auto it = begin(all_shapes);     while (it != end(all_shapes)){         if ((**it).blocks.size() == 0) {             it = all_shapes.erase(it);  //Remove shape from all_shapes vector             delete (*it);               //Delete the shape object from heap         }else{             it++;         }     }     //Finally delete block from vector ´all_blocks´ and delete it from heap     all_blocks.erase(remove(all_blocks.begin(), all_blocks.end(), b), all_blocks.end());     delete b;     }  This works some of the time, but after several delete_block(all_blocks[0]) it always crashed with a memory error, so something is wrong with this function, or possibly my whole setup, but I can't seem to find the problem. My console says it returned 0xC0000374. I will probably redo it with smart pointers later, but for now I would like to understand what's wrong first. How can I remove a single block/shape from the game without memory leaks and errors? What did I do wrong?


Probability that the first digit of $2^{n}$ is 1

Let $a_{n}$ be the number of terms in the sequence $2^{1},2^{2},\cdots ,2^{n}$ which begins with digit 1. Prove that $$\log2 -\frac{1}{n}<\frac{a_{n}}{n}<\log2\text{  (log base is 10)}$$  Note: This is only a part of the question.The actual question is:Prove that the probability that randomly chosen power of 2 begins with 1 is $\log2$. The rest is quite easy(once I've proven the above inequality).Could anyone give me any hint for solving this question?Thanks!


Using Cauchy's Residue Theorem, I miss a term. Why?

In calculating with the residue theorem I find $$\int_{-\infty}^\infty \frac{e^{-z^2}}{1+z^2} \, dx = \pi e$$ Online, a video calculating this integrand by means of "Feynman's trick"  produces another term, $-\pi \cdot e\cdot \mathrm{erf}(1)$. I find only one term from the Residue at $(0,i)$ in the upper half-plane.  The limit of the integral on the semicircular arc, I find goes $0$ as the radius goes to infinity.  Have I neglected something?


Can I save the output of ifconfig -a to a file?

Apparently I had problems with the lxd service, so I restarted the service  Service lxd restart   And now if it shows the network adapter, but is no longer called eth0, now has a similiar name to: "dbr0" but because of screen problems I cannot see the full name of the adapter.  My question is: can I send the output of the command   ifconfig -a   to a file so I can read it later with a file editor like nano or mc?


I want to visualize a design project - a user interface, in a more fun way, and this is what I’ve got so far.  The problem that I can’t solve is that the light makes all colors go whiter and more bland. So right now the white isn’t white enough, the blacks aren’t black enough and the colors also turn too white. I turned "Specular" down to 0, which makes it slightly better, but I think it also makes the whites slightly grayer. Probably a basic question, but I'm new to Blender and I can’t find the answer. Does anyone know what I can do to solve this? Thank you.


According to   the following should work:  x = list(range(0, 10, 100)) print(x)   but it prints [0], while I am expecting [0,0.01,...,10] What am I missing?


I'm new with blender. I'm currently watching some tutorials but I'm having a hard time figuring how to fix this sub-menu when adding mesh (Alt + A ) I can't change any values and suddenly disappear. I tried to show that option but still doesn't work for me.


Is it possible to take screenshots on the 3DS?

In Pokemon X and Y there are specific locations in the game that allows you to save what are essentially 3D screenshots from the upper screen using a virtual camera. This made me wonder - is it possible to take screenshots, 3D or otherwise, from within the 3DS?


pgfplotstable: conditional formatting by string value

I would like to extend the following example so that cells with YES in are colored green and cells that have NO in are colored red:  \documentclass{article} \usepackage{pgfplotstable}  \begin{filecontents}{data.csv} features,model1,model2,model3  feature1,YES,NO,NO feature2,NO,YES,YES \end{filecontents}  \begin{document}  \pgfplotstabletypeset[col sep=comma,string type]{data.csv}  \end{document}   Thanks


Which package has a similar looking fancy R or does anyone know how to make one? (Note: the line underneath the R is just the notebook paper... this is from a scanned set of notes).


Adding Image Texture Shader Node to a certain material? Blender2.8+

I'm trying to add a Image Texture node, so when I bake textures it is saved to a specific file: import bpy  context = bpy.context  scn = bpy.context.scene scn.render.engine = 'CYCLES' scn.world.use_nodes = True  bpy.ops.mesh.primitive_plane_add(size=20, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1)) new_floor_mat = bpy.data.materials.new("Floor") bpy.ops.node.add_node(type="ShaderNodeTexImage", use_transform=True) new_floor_mat.use_nodes = True print(new_floor_mat.name) bpy.ops.object.material_slot_add() context.object.active_material = new_floor_mat bpy.context.scene.unit_settings.scale_length = 1  bpy.ops.node.add_node(type="ShaderNodeTexImage", use_transform=True)   My code is failing for some reason and I'm not sure why. Q: How to add an Image Texture node to a certain material?


prove that $$\sum_{k=1}^{n}{\sin(kA)} = {{\cos({A\over2})-\cos(nA+{A\over 2})}\over 2\sin({A\over 2})}$$using Telescoping series. How do i go about doing this?


Passive voice vs. using "I" in a sole-author paper

I am a fan of using "we" in co-authored papers in order to avoid using passive voice. However, I tend to see passive voice, rather than active voice with "I," in single-author papers. Furthermore, I have read numerous suggestions to avoid using the first-person "I" in a research paper.  Isn't it appropriate to use "I" and active voice?


Will I really not come off as rude even if I don't say thanks in comments?

Will I really not come off as rude even if I don't say thanks in the comments? The comment box prompts me to not write thanks, but I often see people with several 100 reps say thanks in their comments? Is upvoting or checking as solved without saying thanks really enough and is the norm here?


It is a well known fact that Alex is more soft-spoken than (she/her).    Why would "her" be wrong? Why must the sentence end with "she"?


I tried a lot of things to make it work. I've tried about 40 articles but nothing seems to work.  This is the unclaimed message:   *-network UNCLAIMED               description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:4000(size=256) memory:b4200000-b420ffff   I tried something with bcmwl  sudo apt-get purge bcmwl-kernel-source   and   sudo apt-get remove bcmwl-kernel-source   Info about the wireless card:  02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter     Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter     Flags: fast devsel, IRQ 255     I/O ports at 4000 [size=256]     Memory at b4200000 (64-bit, non-prefetchable) [size=64K]     Capabilities: <access denied>   I even tried installing the b43 but it didn't help.  Output of nmcli device:  DEVICE  TYPE      STATE      CONNECTION          eno1    ethernet  connected  Wired connection 1  lo      loopback  unmanaged  --        Output of networkctl status:  WARNING: systemd-networkd is not running, output will be incomplete.  ●        State: n/a        Address: 10.0.0.2 on eno1                 fdac:15a9:fea6:0:7d36:1c7e:50eb:dc12 on eno1                 fdac:15a9:fea6:0:856d:ebdd:18b9:d2d0 on eno1                 fe80::3b03:3eeb:f213:5fd on eno1        Gateway: 10.0.0.138 (VTech Telecommunications Ltd.) on eno1    Output of sudo lshw -short -class network:  H/W path       Device  Class          Description ================================================= /0/100/1c.4/0          network        Realtek Semiconductor Co., Ltd. /0/100/1c.5/0  eno1    network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller   Output of ls -l /etc/resolv.conf:  lrwxrwxrwx 1 root root 39 Apr 21 15:27 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf   Output of dmesg | grep -i eth:  [    1.912278] wmi_bus wmi_bus-PNP0C14:00: WQ data block query control method not found [    1.912282] wmi_bus wmi_bus-PNP0C14:00: WQ data block query control method not found [    1.912285] wmi_bus wmi_bus-PNP0C14:00: WQ data block query control method not found [    1.912289] wmi_bus wmi_bus-PNP0C14:00: WQ data block query control method not found [    1.912555] wmi_bus wmi_bus-PNP0C14:01: WQBC data block query control method not found [    1.912590] wmi_bus wmi_bus-PNP0C14:01: WQBJ data block query control method not found [    1.933328] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded [    1.945215] r8169 0000:03:00.0 eth0: RTL8168h/8111h, e4:e7:49:33:9c:6b, XID 54100800, IRQ 129 [    1.945222] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko] [    1.962196] r8169 0000:03:00.0 eno1: renamed from eth0 [    2.000103] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.RP01.PXSX handle [   11.610285] Bluetooth: BNEP (Ethernet Emulation) ver 1.3


How to place engineered hardwood against rough fireplace hearth?

We are going to replace the carpet in our living room with engineered hardwood flooring. We’ve installed the flooring elsewhere in our home so that part isn’t a problem. The problem is what do we do against the rock hearth? Everywhere else we’ve installed flooring there is baseboard or hardwood quarter round (kitchen). Can’t do baseboard around the hearth. Does quarter round that matches the floor work?


What is Active Directory Domain Services and how does it work?

This is a  about Active Directory Domain Services (AD DS).         I find myself explaining some of what I assume is common knowledge about it almost daily. This question will, hopefully, serve as a canonical question and answer for most basic Active Directory questions. If you feel that you can improve the answer to this question, please edit away.


Does an ability or spell grant me the bonus action with which to use it?

The  description of casting times says that spells with a casting time of "bonus action" require a bonus action to cast (p. 79, emphasis mine):  Most spells require a single action to cast, but some spells require a bonus action, a reaction, or much more time to cast. Bonus Action A spell cast with a bonus action is especially swift. You must use a bonus action on your turn to cast the spell, provided that you haven't already taken a bonus action this turn. You can't cast another spell during the same turn, except for a cantrip with a casting time of 1 action.  It's pretty clear that bonus actions aren't automatic (p. 69):  You can take a bonus action only when a special ability, spell, or other feature of the game states that you can do something as a bonus action. You otherwise don't have a bonus action to take.  So to cast a spell like Healing Word (p. 93), do I  need to be granted a bonus action that I can use, or do I have a bonus action I can use?  I guess I'm unclear on whether I need to have a bonus action before I can spend it on something, or whether having an ability, spell, or whatnot that can be done as a bonus action grants me the bonus action I need to use it.


Disable drag and drop events in SharePoint calendars

Is it possible to disable drag and drop event in SharePoint calendar? I looked all available properties in SPCalendar control but I didn't find any.   Rendered Javascript has a parameter in factory class which control this behavior but not sure if I can access it through code behind or Javascript:  SP.UI.ApplicationPages.CalendarContainerFactory.create(document.getElementById('ctl00_m_g_67e2a6e7_070b_4dbd_8082_cdb772ec594e_ctl00_ctl01_ctl00_ctl00'),{ctxId:'WPQ1',dataSources:[{id:'00000000-0000-0000-0000-000000000000',name:'',color:'',formUrl:'\u002fLists\u002fCorpCalendar\u002fDispForm.aspx',primary:true, **disableDrag:true**}],userInfo:{current:{id:'27',loginName:'ACME\\Test',displayName:'Test',email:'Test@acme.com'}},enablePeople:false,enableResource:false,usePostBack:false,canUserCreateItem:true,sharedPickerClientId:null,reservationContentTypeId:'0x0102004F51EFDEA49C49668EF9C6744C8CF87D',aM12String:'12:00 am',serviceUrl:'\u002f_layouts\u002fCalendarService.ashx'},'day','',[{"Options":41,"Table":null,"DatePicker":null,"Dates":["12/12/2011","12/13/2011"],"RangeJDay":[150094,150094],"Navs":null,"Items":{"Data":[[0,1,2,150094,150094,3,3,4,5,12,0,30,0,0,0,2,6]],"Strings":["1158","Test Meeting","","12/12/2011","12:00 pm","12:30 pm","0x7fffffffffffffff"]}}]);    Thanks in advance.


I try to simplify to get rid of sum $$ \sum_{k=0}^{n-1}\cos(2 \pi fk)$$  I discover I shall use euler equation to form:  $$ \sum_{k=0}^{n-1}\frac{1}{2}(e^{2 \pi fki}+e^{-2 \pi fki})$$  but how to sum exponentials?


I have the following problem: Let $F:K$ be a field extension, and let $E_1, E_2$ two intermediate finite fields. Let $E=K(E_1\cup E_2)$, prove that: $$[E:K]\leq [E_1: K][E_2:K]$$ Sor far, I know that $[E:K]= [E:E_1][E_1:K]= [E:E_2][E_2: K]$. Any hint is appreciated!


I have some big body of text with a figure within it, and another figure that requires a full float page (I use \begin{figure}[p]).  The two figures relate to one another, and should really be viewed at once.    Luckily, the document will be produced double-sided.    Can I guarantee that the two floats will face one another (that is be on opposing left- and right- pages) and forbid LaTeX from positioning them back-to-back or even farther apart (so that you annoyingly have to turn a page back and forth to look at both figures)?


Data normalization and standardization in neural networks

I am trying to predict the outcome of a complex system using neural networks (ANN's). The outcome (dependent) values range between 0 and 10,000. The different input variables have different ranges. All the variables have roughly normal distributions.   I consider different options to scale the data before training. One option is to scale the input (independent) and output (dependent) variables to [0, 1] by  using the mean and standard deviation values of each variable, independently. The problem with this method is that if I use the sigmoid activation function at the output, I will very likely miss extreme data, especially those not seen in the training set  Another option is to use a z-score. In that case I don't have the extreme data problem; however, I'm limited to a linear activation function at the output.   What are other accepted normalization techniques that are in use with ANN's? I tried to look for reviews on this topic, but failed to find anything useful.


I have 2 functions in my javascript file for liking and unliking a post: $('.post-like-link').click(function() {     const element = $(this);     $.getJSON(         Routing.generate('likes_like', {'id': $(this).attr("data-post-id")}),         function (data) {             element.removeClass(['btn-white', 'post-like-link']);             element.addClass(['btn-outline-primary', 'post-unlike-link']);             element.children().first().next().text(data['count']);         }     ); });  $('.post-unlike-link').click(function() {     const element = $(this);     $.getJSON(         Routing.generate('likes_unlike', {'id': $(this).attr("data-post-id")}),         function (data) {             element.removeClass(['btn-outline-primary', 'post-unlike-link']);             element.addClass(['btn-white', 'post-like-link']);             element.children().first().next().text(data['count']);         }     ); });  And a button in my HTML                                                   {{ post.getLikedBy.count }}                       When I click the like button in my HTML the corresponding function (like) is called. However if I click it again it should call the other function (unlike) as the class gets updated, but it doesn't it, calls the same function (like) again. Can anyone advise why this is happening please?


Is my Shared Parallels Folder a Directory?

On my VC Linux desktop there is  a 'shared Parallels Folder' with a padlock icon on it. I have been trying for a few weeks to command Gnome Terminal to direct to it. It fails to recognise this folder as a directory.  I have tried quite a few commands eg,  cd Desktop/shared Parallels Folder   The response is no such directory. Is it to do with the padlock on the folder? I really don't know what to try next. I need to access files on my mac. Please help!


Questions regarding creating bootable USB

I'm trying to create a bootable USB for Ubuntu for installing Ubuntu on my Mac with Dual Boot. I have 2 questions. I am a complete noob. I'm sorry if these questions sound too basic or downright stupid.  First question is: when erasing my USB to filesystem format FAT32 (MS-DOS) and partition scheme GUID Partition Map (which can be done using Disk Utility GUI or on terminal with commands: diskutil eraseDisk FAT32 UBUNTU GPT disk4), and after erasing so, when viewing the disks using diskutil list, I see that the volume (for me, disk4s2) with name UBUNTU has Microsoft Basic Data as Type. But I saw on Wiki that Microsoft Basic Data is basically equivalent to MBR, which I don't want (I want GPT). Why is this, since I made sure to specify scheme to be GPT? Does it matter? For disk identifier disk4, the Type is Guid Partition scheme. How can the volume have a different scheme from its parent disk?  The second question is: if I am not interested in booting from USB but only interested in downloading the Ubuntu to my Mac, do I need a bootable Ubuntu USB? Can I not just have ISO file on it?


How to determine if an Apex class hasn't been used recently

I would like to know if there is a way by which we can understand if an apex class is never called in recent times. In my org, the apex character limit has touched over 77%. I am sure that there are a lot of classes which are old and obsolete.  How can I identify them? Is there a tool for that?


Is there any difference between the usage of the words "broadcast" and "broadcasting"?  Would it be possible to use "Ministry of Broadcast"? I have found only "Ministry of Broadcasting".


Use of "them" as an article, not a pronoun

I've seen a lot of times the pronoun them used like an article. For example, in the title of the Delta Rhythm Boys Them bones, or in the first sentence of "Money for nothing":     Now look at them yo-yo's, that's the way you do it.   I know that it's not "proper English" (i.e., not something you'll use in a serious writing), but I'd like to know when it's commonly used, and why. Is there any difference between using it and using the?


Why doesn't this authentication protocol work?

I am a student taking a cryptography course so forgive me if this comes off as a silly question. This is an assignment question:  Alice ------R--------> Bob Alice <-----[R]B------ Bob Alice ------[R+1]A---> Bob  Why doesn't this protocol provide mutual authentication?  Here's a plausible scenario Alice sends R trudy intercepts it and sends it to bob impersonating alice. Bob sends back R signed by him to trudy. Trudy now impersonates Bob and sends R with Bob's signature to Alice impersonating Bob. alice sends [R+1] signed by alice which trudy can now use to impersonate as Alice to Bob.  If that is a valid attack. Wouldn't this work with every protocol? After all we're merely just relaying message back and forth among two parties. Is there any way I can modify this to get mutual authentication?


Windows updates forcibly rebooting my PC at night

I am running Windows 10 Pro, Build 16299.  I'm not sure why MS thinks it's okay to forcibly reboot people's PC in the middle of the night...but for years I was able to prevent this by turning off my windows updates. I also stop and disable the Windows Update service. But over the past few nights, my windows has automatically pulled down updates and forcibly rebooted in spite of the fact that my updates are turned off and the service stopped. I have lots of apps running so this is very disruptive.  I can only assume that they found some sneaky new way to do this without my permission because it shouldn't be possible for this to happen, given my current settings.  How can I prevent it in my current version of windows? Thanks in advance.


Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. What am I missing?  Below is my code   public override void ItemAdding(SPItemEventProperties properties)     base.ItemAdding(properties);     SPSecurity.RunWithElevatedPrivileges(delegate()        {SPWeb web = properties.OpenWeb();         base.ItemAdding(properties);         string name= web.Lists[properties.ListId].Fields["first name"].InternalName;          var list = web.Lists["location names"];    });}


How to register a property group in blender 2.8

Is there a way to add a property group to this method of registering, without adding a separate register/unregister function?  classes = (     some_scene_variables     some_operator, )  register, unregister = bpy.utils.register_classes_factory(classes)   At the moment I am doing this, which works:  classes = (     some_scene_variables,     some_operator, )  def register():     for cls in classes:         bpy.utils.register_class(cls)     bpy.types.Scene.myvars = bpy.props.PointerProperty(type = some_scene_variables)  def unregister():     for cls in classes:         bpy.utils.unregister_class(cls)     del bpy.types.Scene.myvars    But it seems wrong to change how I am registering just because I want to add a property group.  Thanks  Edit: Something similar to this (just for illustration, I know this would in no way work):  classes = (     some_scene_variables     some_operator,     bpy.types.Scene.myvars = bpy.props.PointerProperty(type = some_scene_variables),  )  register, unregister = bpy.utils.register_classes_factory(classes)


With the advent of the WordPress Answers Stack Exchange site, there's undoubtedly going to be overlap.  But I just want to get some advice:  I'm a developer and I kinda hate WordPress, but have to use it occasionally. My WordPress questions are usually development ones (when I have them), and most often related to 'how WordPress handles things', which are pretty obvious in straight programming terms.  But with the WordPress layer of abstraction, they become problematic.  I find that most developers that have gone near WordPress are usually also PHP/JS/CSS/MYSQL guys who dabble with WordPress and, as a result, hangout more on SO. And theres a die hard bunch who are heavy into the WP.SE site, but generally the WP site is for people trying to muddle through the day to day operation of using WordPress and its many themes/plugin etc.    As a result, if I were to ask something pretty in-depth about writing / integrating new & strange features or something, I'm talking to a much smaller group of devs than I would be on SO.  So, enough of the ramble, my question:  Should I be posting heavy development questions relating to WordPress on the WP.SE site or to SO? Can I post to both, or is cross posting frowned upon in these cases still?


Prove that $\prod^{n}_{k=1}\sin\left(\frac{k\pi}{2n+1}\right) = \frac{\sqrt{2n+1}}{2^{n}}$

Prove that  $$\prod^{n}_{k=1}\sin\left(\frac{k\pi}{2n+1}\right) = \frac{\sqrt{2n+1}}{2^{n}}$$   $\bf{My\; Try::}$ Let $\displaystyle \cos \left(\frac{k\pi}{2n+1}\right)+i\sin \left(\frac{k\pi}{2n+1}\right)=e^{\frac{ik\pi}{2n+1}}=e^{ik \theta}\;,$ Where $\displaystyle \theta = \frac{\pi}{2n+1}$  So $$\prod^{n}_{k=1}\sin\left(\frac{k\pi}{2n+1}\right) = \Im \bigg(\prod^{n}_{k=1}e^{ik \theta}\bigg) = e^{i\theta}+e^{2i\theta}+.....+e^{ni\theta} = \frac{e^{i(n+1)\theta}-e^{i \theta}}{e^{i\theta}-1 }$$  Now How can I solve after that, Help me  Thanks


How would I make a pluggin to toggle subd surfaces on and off and add the sub modifier to the stack?

I was wondering how I would be able to script a plugin that would toggle subd surfaces preview if it has a sudb modifier on. It would also be helpful that if the selected object doesn't have a subd modifier in the stack already, it would add one and then toggle the subd view.  Maya allows you to toggle between subd view through the 1 and 3 key and thought this would be really neat to have in Blender but also the addition to add the modifier if it doesn't already have one on. I just don't know how to script and was wondering if anyone has already done this or not.


I have centos 7.1. At bottom panel opened windows (running applications) are represented (ex: openoffice, thunrderbird, terminal). Question one - How can I change the order of these opened windows (ex:terminal,openoffice, thunrderbird) as in centos 6 I did drag and drop but here I can't?   The strange thing is that I've noticed that their order suddenly changes when I lock the system and log in again. Question two - how can it be explained?


Why or how did Agen Kolar and Saesee Tiin seem to die so easily without any resistance?

When Mace Windu and the 3 other Jedi Masters confront Chancellor Palpatine as the Sith Lord, Darth Sidious unveils himself and attacks the Jedi. In one move he takes out Agen Kolar, who wasn't even facing Darth Sidious.  How did that happen? Was this some kind of special move Sidious deployed to disorient the Jedi?


SOQL result ordering in the absence of an Order By clause

In the absence of an  in a SOQL query, what order will Salesforce return results in?  Clearly if ordering is important then Order By should be specified, but I recently encountered a question about what the order would be if it was undefined.  My initial thoughts were Salesforce would return them in whatever order suited them. Much like .  For simple queries this would typically line up with the creation date descending and the Id ascending. For more complex queries it would depend on the joins being performed.


What should be created first in a video game?

When starting developing a video game, should one focus on creating the environment (buildings, trees, mountains etc) first or the A.I. (Playable character, NPCs etc)?


C# : Get type parameter at runtime to pass into a Generic method

The generic Method is...      public void PrintGeneric2<T>(T test) where T : ITest     {         Console.WriteLine("Generic : " + test.myvar);     }   I'm calling this from Main()...      Type t = test2.GetType();            PrintGeneric2<t>(test2);   I get error "CS0246: the type or namespace name 't' could not be found" and "CS1502: best overloaded method match DoSomethingClass.PrintGeneric2< t >(T) has invalid arguments"  this is related to my previous question here:   I've read that the generic type can't be determined at runtime, without the use of reflection or methodinfo, but I'm not very clear on how to do so in this instance.  Thanks if you can enlighten me =)


Is there a comprehensive Big-O listing of Java data structures?

Question pretty much says it all.  Specifically, I would like the Big-O of all the methods within a structure, aside from the usual. The docs say very little about this.  Addennum  For those who are voting to close, I am not interested in the basic add, remove, iterator, etc Those sources are fine for regularly used methods, but I am more interested in the algorithmic efficiency of the rest of the pile.  For example, what is the efficiency of TreeMap.keySet()?


Let $\Omega$ be a measure space with measure $\mu$. (Here, a measure is only meant to be countable additive!)  Consider a subset $A\in\Sigma$.  Then according to the  it is an atom if: $$(1)\quad\forall E\subseteq A:\quad\mu(E)<\mu(A)\implies\mu(E)=0\quad(\mu(A)>0)$$ and according to the  it is an atom if: $$(2)\quad\forall E\in\Sigma:\quad\mu(E\cap A)=0\lor\mu(E^c\cap A)=0\quad(\mu(A)>0)$$  Now, these definitions agree for the really trivial cases: $$\mu\equiv0$$ $$\mu\equiv\infty$$ but they differ for the less trivial case: $$\quad\mu(E\neq\varnothing):=\infty,\,\mu(\varnothing):=0$$ namely the atoms are w.r.t. (1) all nonempty subsets whereas w.r.t. (2) only the singletons.  Excluding this pathological case, are the definitions equivalent? (More precisely, assume there exists a measurable subset $0<\mu(F)<\infty$.)  So far I checked that: $$(2)\implies(1):\quad\mu(E)<\mu(A)\implies\mu(A\setminus E)>0\implies\mu(E)=0$$ but what about the other direction?


Why is an image formed when two light rays coming from an object intercept?

Why is an image formed when two light(one to the focus and one to the lens perpendicularly from the top of the object) rays coming from an object intercept?


I am highly looking forward to the new flavor of Ubuntu and it's bells and whistles to wrap the bow on top. My only concern is upgrading to it from my current system without reinstalling Ubuntu entirely. I have seen it discussed, and attempted, and know how horrible the results typically are. I recently read an article in respect to some lead developer saying that if it was to be done, it would most likely upgrade from 14.04 to 15.04 then to 16.04. It was a credible sources, otherwise I wouldn't mention it I lost the link unfortunately in my research.  So anyway, what do you guys think? Will there be a direct upgrade to 16.04 from 14.04, or will you have to go to 15.04 to get to 16.04? And if you DO have to upgrade to 15.04 instead of streamlining it to 16.04, is it even worth doing at that point? Thanks for all the responses.


I am unable to fetch those Ö , å  from database . What i am missing in my MySql query.  Here is my query.. Thank you.  <?php  include('config.php');     $query = mysqli_query($connection,'select * from work ');      while($row = mysqli_fetch_array($query)){  ?>  <h5>     <?php  echo $row['work_desc'];?> </h5>  <?php     } ?>   My charset is set in UTF-8 ...


I've been trying to customize my android. Found a cool set of buttons but one problem. The app store says it is "not available in (my) country" I have tried spoofing the GPS but that did not work. Does anyone have an idea about how to spoof cell towers or IP addresses to get around the lock out?  I  have surfed through the "duplicate" questions and tried all of those suggestions to no avail.  Best I can tell the problem is the cell towers. But there should still be a way to hack this.


Storable Action - System.LimitException: Too many DML statements: 1

@AuraEnabled(cacheable=true) public static String  deleteContacts(List<String> contactIds) {     List<Contact> returnList = new List<Contact> ();     String query = ' SELECT Id,Name, LastName,Department,MobilePhone, Email FROM Contact WHERE id IN : contactIds ';     for (Contact thisContact:  Database.Query(query)) {          returnList.add(thisContact);     }     try {       delete returnList;       return'deleted successfully';     }     catch(Exception ex){        return 'Problem occoured';     }  }  JS Method deleteSelected(){     deleteContacts({         contactIds :this.selectedIds     })      .then(result => {         this.dispatchEvent(             new ShowToastEvent({                 title: 'Success',                 message: result,                 variant: 'success',             }),         );         return refreshApex(this.getContactList, { searchKeyWord: '$searchKeyWord' });     })     .catch(error => {         this.error = error;     });


How long would a 150 Farad Capacitor light up an LED

I have a bright white LED from a flashlight. Aproximatley How long will it light up with a 150 farad 2.5 volt capacitor. Do I need a resistor? And if so how many Ω? The capacitor is a maxwell 150 farad 2.7 volt boostcap .


How to plan a task to run after another already running task in bash?

I'm looking for something like command1 ; command2 i.e. how to run command2 after command1 but I'd like to plan execution of command2 when command1 is already running.  It can be solved by just typing the command2 and confirming by Enter supposed that the command1 is not consuming standard input and that the command1 doesn't produce to much text on output making it impractical to type (typed characters are blended with the command1 output).


Windows 10 Start Menu not showing all shortcuts?

Before someone calls this a duplicate, all the other answers that I've found for this issue claim the problem was fixed in one of the technical previews; however, I'm on the latest version of Windows 10 (having upgraded from Windows 7 a week or so ago) and the problem persists.  I've tried running Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} in powershell. It completed but nothing changed. I've restarted my computer many times before and after that change.  I've checked several times. I have waaay more shortcuts in the start menu folder than are visible in the start menu. If I run Get-StartApps | measure |findstr Count in powershell it reports 878 items.  This problem is horrible because typing into the start menu is my primary way of launching programs and it's broken. I've searched for ages and I don't know what else to try. Please help!


Why we see water like effects (reflection) at some distance from the driving seat on a motorway in sunny weather?

When we are driving on motorway in sunny afternoon  we can observe a mirror like reflection on the road at some distance why is it so.  !!?


Changing data type in attribute table in QGIS

I have county data in which the "FIP"s (actually State "FIP"s and County "FIP"s combined). I have data imported as CSV with the sames "FIP"s data titled 'STCounty'. However, the shapefile "FIP"s is listed as a Real and the CSV came in as an Integer and the Join function does not seem to work.  The drop boxes are greyed out/empty. So the bigger questions is how do you change the attribute type in a table? I tried to create a new column in the shapefile (county data) and set it to an integer and then multiply the "FIP"s*1, but got a column full of NULL. I am new to QGIS and have a lot of experience in MapInfo, so the join concept is not new to me, just the syntax in QGIS.


What is the difference between would and will in the following examples?        How would you use this word in a sentence?     How will you use this word in a sentence?


I am having trouble working out whether the following two uses of practice should be the verb (-ise) or the noun (-ice). Can anybody please help clarify?   Every single member of our staff practices/practises discipline A practiced/practised workforce   I am interested in an answer based on UK English.


minecraft colored signs (§,{Color:"blue"})

how can you put color on signs?,tried the color symbol (§) but it did not copy. also tried NBT tags such as {Color:"blue"} and it did not work ):!


Was Voldemort consider a threat outside GB?

The books are very Britain-centric. Do we have any information about Voldemort being considered a threat outside of Great Britain? Was he know in magic (non-Britain) world or maybe casual non-Britaing mage knew nothing about him?  Edit: question is not about "first Wizarding War being an international event", as it is question about things that happend (or not). Question is more about knowledge of non-Britain mages about Voldemort and fear than can come from it.


getting concurrentmodification error while looping on hashmap

I have the following error: Exception in thread "Thread-0" java.util.ConcurrentModificationException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1584) at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1607) at Server$1.run(Server.java:149) at java.base/java.lang.Thread.run(Thread.java:832)  Reffering to this code:     for (Session key : sessions.keySet()) {                         if (key.getPort2() != port && key.getPort1() != port) { // change later to ip                             System.out.println("2nd time init 2 client");                              session.setIp2(ip);                             session.setPort2(port);                              sessionID++;                              sessions.put(session, sessionID);                              // reset session                             session = null;                          }                     }  Could you explain why this happens?


Op Amps: how do they know whether the supply is split?

Most op amps can operate in single and split supply configurations. However, I cannot see how this is possible.  If I connect voltages \$V_\text{SY}^+\$ and \$V_\text{SY}^-\$ to the positive and negative supply pins of a op amp, and \$V_+\$ and \$V_-\$ to the non-inverting and inverting inputs, then the output is (if \$A_\text{OL}\$ is the open loop gain of the op amp): $$V_\text{out}=A_\text{OL}(V_+-V_-)+V_\text{SY}^-\tag{Single-supply}~\text{ }~~\text{ }~~\text{ }~~\text{ }~~\text{ }~~\text{ }$$ The above equation is from personal experience using op amps in single supply (i.e. \$V_\text{SY}^- = \text{GND}, V_\text{SY}^+ > \text{GND}\$).  In split supply, we can use the following diagram from MIT's 6.002 introduction to electronics lecture video:  $$V_\text{out}=A_\text{OL}(V_+-V_-)+(V_\text{SY}^+-V_\text{SY}^-)/2\tag{Split-supply}$$  These two equations, however, are mutually inconsistent: If I take an op amp and hook up a single voltage source between its supply pins, how does the op amp know that the resulting voltage is not split between two sources?   It must know - but how does it know?


Understanding the proof of complete reducibility for torus action from the book by Springer

Let $G$ be an algebraic torus ($\cong(\mathbb C^*)^n$) acting linearly on a finite dimensional $\mathbb C$ vector space $V$. For a character $\chi$ of $G$, we define $V_{\chi}=\{v\in V|\forall g\in G, g\cdot v=\chi(g)v\}$.  I want to show that $V=\oplus_{\chi}V_{\chi}$.  I am following the book 'Linear algebraic groups' by Springer Theorem $3.2.3$, page $44$.  Let $X$ denotes the set of all characters of $G$ and $\phi:G\rightarrow GL(V)$ be the rational representation. This can be seen as a map to $\mathbb C^{n^{2}}$, therefore we have $\phi(g)_{i,j}\in\mathbb C[G]$ and we may write $\phi(g)_{i,j}=\sum_{\chi}a(i,j)_{\chi}\chi$, where $a(i,j)_{\chi}$ are constants. Thus we have \begin{align}\phi=\sum_{\chi}\chi A_{\chi}\end{align} for some $A_{\chi}\in GL(V)$(why $A_{\chi}$ is in $GL(V)$?). Note that only finitely many $A_{\chi}$ are non zero. Then by Dedikind's lemma we have $A_{\chi'}A_{\chi''}=\delta_{\chi',\chi''}A_{\chi'}$. We also have $\sum_{\chi}A_{\chi}=Id$. If we set $V_{\chi}=imA_{\chi}$, then $V=\oplus_{\chi}V_{\chi}$.  My question is why this $V_\chi:=imA_{\chi}=\{v\in V|\forall g\in G, g\cdot v=\chi(g)v\}$. In the book it is also given that $g\in G$ acts on $V_{\chi}$ as $\chi(g).Id$. I also don't understand this.  Any help is highly appreciated.  Thank you.


What causes a whirlpool to form in a bathtub?

I mean, when you have a full bathtub and then let it empty, under what conditions does a whirlpool form?  Could we devise an experiment and measure this effect? When it comes to fluids, I don't know why I can't think of anything to test a hypothesis.


Relative performance of std::vector vs. std::list vs. std::slist?

For a simple linked list in which random access to list elements is not a requirement, are there any significant advantages (performance or otherwise) to using std::list instead of std::vector?  If backwards traversal is required, would it be more efficient to use std::slist and reverse() the list prior to iterating over its elements?


$f \in \mathcal l^{\infty}{'} $ ; $f(x)\ge 0$ whenever $x \in \mathcal l^{\infty} $ is a sequence of non-negative terms ; is $f$ bounded?

Let $f:\mathcal l^{\infty} \to \mathbb R$ be a linear functional such that $f(x)\ge 0$ whenever $x \in \mathcal l^{\infty} $ is a sequence with non-negative terms ; then is $f$ continuous ?


Suppose that $f$ is an entire function with $Re[f(z)]\neq 0$ $\forall z\in \mathbb{C}$Then $f$ is constant.

I want to prove the following theorem      Suppose that $f$ is an entire function with $Re[f(z)]\neq 0$  $\forall z\in \mathbb{C}$. Then $f$ is constant.    What I know is . This can be easily shown by $g(z) = e^{f(z)}$ and apply Liouville's theorem.   In this case $g(z) = e^{f(z)}$ and hence $|g(z)| = e^{\operatorname{Re}[f(z)]}$.  It seems $\operatorname{Re}[f(z)]\neq 0$ $\forall z \in \mathbb{C}$ does not imply boundeness.   How to show the above theorem is correct?


Is there an antonym to 'hypochondria'/'hypochondriac'?

is defined as     an excessive preoccupation with and worry about one's health   Is there a word to describe the opposite reaction, as in a word to mean 'a nonchalant attitude towards one's health'? I thought about hyperchondriac but I don't think that word exists. Is there such a word in English?


testing significance among distributions

I have three probability distributions. How can I test if they are statistically different from one another? Alternatively, how could I test if one distribution is different than the other two combined?  Here is an example of what the distributions look like:


Does light ever experiences acceleration?

Till now I have learned that light has fastest speed. But I have also noticed that wherever it travels it only experiences retardation. So I wanted to know if light ever felt acceleration naturally in universe.


Python version of ifelse for variable declaration

Is there a simple way to declare variables in Python similar to R's ifelse?   In R for example:  outgroup <- ifelse(politics == "Republican", 1, 0)   In Python, I'm doing:  outgroup = 0 if politics == "Republican":     outgroup = 1   Is there a simpler way of doing this in Python?


I'm using the Ubuntu 12.04 LTS on VirtualBox and i have this problem. My Resolution is locked to maximum 1280x720 (4:2) and my windows host OS is running on 1920x1080 (16:9) Widescreen. Do i need to install some special drivers for VirtualBox or update Ubuntu?    Specs: ATI Radeon HD 4800 Series  Intel Core 2 Quad Core CPU Q9300 @ 2.50GHz (4 CPUs), ~2.5GHz  6GB RAM    Help will be much appreciated!


Make a table span multiple columns surrounded by text on the same page?

I want to make a very wide table that must span across two columns, like this:  1 Test text etc etc see this table:   3 The page text wraps over ---------------------------------------------------------------- | Very                 | Wide               | Table            | ---------------------------------------------------------------- 2 Because the table is so wide...     4 and around it!    does not answer the question because the solution shunts the table onto the next page instead of integrating it with the text.


Understanding Power Sources and Amperage Ratings

Bunch of questions here, but probably basic for you all.  My wall outlet is 120v, 20amps.  1)  What makes it 20amps?  Where is the resistance applied?  What if it was 30amps instead?  Where along the circuit is this resistance applied and with what physical component?  Because the copper wire adds more resistance does my outlet always give slightly less than whatever it's rated from the breaker box?  2)  If a power supply plugs into this outlet and says it's "20volts, 2.4amps" what is inside this power supply doing that conversion?  Key words to Google here would be great!  3)  If that power supply was lost, and I couldn't remember it's volt/amps.  So I "found" another power supply, that was 20 volts, 5 amps, and plugged it into the device; would the extra amperage damage the device?


The definitive guide to ConTeXt MkIV documentation

On the  (sign up, do it!) and on  (abbr.: TeX.SX) I often read the complaint that the ConTeXt documentation is bad/old/incomplete.  I wholeheartedly disagree.  However, I have to admit that ConTeXt documentation is actually quite hard to find.  That is why I have come to the conclusion that a definitive guide to the, in my opinion outstanding, ConTeXt documentation is necessary.  I structured this guide in such a way that a beginner can start reading the linked resources from top to bottom.  Even though you read the words “beta” and “experimental” in many places, the versions provided can be considered production quality because Pragma ADE relies on these versions for commercial purposes. If you have a deadline coming up, I would recommend not updating ConTeXt until you have finished your work, because some mechanisms are moving targets anyway.


Finding the limit $\displaystyle\lim_{x\to 0+} \left(\frac{\sin x}x\right)^{1/{x^2}}$

Find the following limit: $$\displaystyle\lim_{x\to 0+} \left(\frac{\sin x}x\right)^{1/{x^2}}$$   Well I tried to do the $\exp\left(\frac{ \ln\frac{\sin x}{x}}{x^2}\right)$ then apply LHR but I seem to get to endless dervivations...   There's got to be a more simple approach.


I am trying to work through Hartshorne's book and while working through one of the exercises, I need to show the following:  Let $k$ be an algebraically closed field. Let $Y \subseteq A^3$ be the set $Y=\{(t,t^2,t^3)\;|\;t \in k\}$. Show that $Y$ is an affine variety.  The rest of the problem I have completed. I'm just not sure how to show that this set is closed and irreducible. I assume that they intend for $A^3$ to have the Zariski topology.


photon electron interaction such that the photon energy does not correspond to any state change

Although I've read answers to similar questions, they did not answer my doubt:  If a photon has an energy less than that required to move an electron from one energy level to another, then what happens when the electron and photon collide? Is the photon absorbed, or does it by some mysterious method, just pass through the electron?


Approximation of the Sine function near $0$

What is the reason that  for $x<0.5$, $\sin(x)\approx x$?  Are there more known properties of these kind for other trigonometry functions?


Why computer science discipline has different publications requirements: conferences as well as journals

Why is it like in CS, people expect from you both kinds of publications: conferences as well as journals? I read some articles which says some conference have low acceptance ratio and you should count them. On the other hand, in academics, people also ask about the journal publications, when you face an interview. These requirements also vary from country to country and university to university. How to keep balance of both when think of publishing papers in CS? Also which one has more weight theoretical vs. practical research publications, when apply for a job?  Thanks.


Consider:  List<String> someList = new ArrayList<String>(); // add "monkey", "donkey", "skeleton key" to someList     for (String item : someList) {     System.out.println(item); }   What would the equivalent for loop look like without using the for each syntax?


no sound on ubuntu 16.04.In setting it says dummy sound

no sound on ubuntu 16.04 .In setting it say dummy sound after downloading on to a mini pc it says dummy sound what does that mean .what can i try ?


Syntactic characterisation of the intersection of CTL and LTL

The Baier and Katoen textbook references this paper     E. M. Clarke and I. A. Draghicescu. Expressibility results for   linear-time and branching-time logics, pages 428–437. Springer Berlin   Heidelberg, Berlin, Heidelberg, 1989.   to say that, given a CTL formula P, if there exists an equivalent LTL one, it can be obtained by dropping all branch quantifiers (i.e. A and E) from P.   Is there a syntactic criterion that provides a guarantee that if a CTL formula passes the test, then an equivalent LTL formula does exist?


Prove $\sum_{k=0}^n k{n\choose k}^2 = {n{2n-1\choose n-1}}$

Give a story proof that   $$\sum_{k=0}^n k{n\choose k}^2 = {n{2n-1\choose n-1}}$$  Consider choosing a committee of size n from two groups of size n each , where only one of the two groups has people eligible to become president.   What I think:   On the left hand side..  $$\sum_{k=0}^n k{n \choose k}^2 = \sum_{k=0}^n k{n \choose k}{n \choose k} =\sum_{k=0}^n { k }\underbrace{{n \choose k}{n \choose n - k}}_{\text{${n\choose k}$ is equal to ${n\choose n-k}$}}$$ This is an application of the "choosing the complement identity" ${n\choose k} = {n\choose n-k}$. $$\sum_{k=0}^n k{n \choose k}^2 = \sum_{k=0}^n \underbrace{ k \ \ \ {n \choose k}}_{\text{Pres eligible group}}{n \choose n - k}$$ ${k}$ represents the number of people selected from the "President-Eligible" group of n people. If there are ${k}$ people selected from this group, there must be ${n-k}$ people selected from the second group (since the number of people selected in the final group is n.) The left hand side sums up the cases for ${k}$.  The right hand side multiplies the possibilities for "president" with possibilities for "group members".  One point of confusion I had is that I thought it should be (${n{2n \choose n}}$). But then I related this to the idea that when you use the multiplication rule to find the number of ice cream possibilities, the cone choices (president choices) are separate from the flavor choices (group member choices)! So, the president should not be counted in the group member choices. (let me know if this is the correct way to think about it). But what I'm confused about is why we don't take that into account on the left hand side $k$ possibilities for president is multiplied by ${n \choose k}$ possibilities for members.. so the 'president' is double counted as a member..?


How to install HPLIP on my Ubuntu to support my HP printer and/or scanner?

Let's assume that one has some HP printer and/or scanner and checked its support status on the corresponding page of HPLIP site - .  So one have the following information: the device Model name, Min. HPLIP Version and Driver Plug-in need.   What should one install to make Ubuntu fully support the HP printer and/or scanner?


public class Test {     public string Name;      public void CallFunctionByObjectRef(Test a)     {         a.Name = "BCD";         a = null;     }      public void CallFunctionByObjectRefTORef(ref Test a)     {         a.Name = "BCD";         a = null;     } }  class Program {     static void Main(string[] args)     {          Test test = new Test();         test.Name = "ABC";         test.CallFunctionByObjectRef(test);           Test test1 = new Test();         test1.Name = "ABC";         test1.CallFunctionByObjectRefTORef(ref test1);          Console.WriteLine(test.Name);         Console.WriteLine(test1.Name);         Console.Read();     } }   In above called two function(using ref keyword, pass by object). I am getting different output from them. But class object by default pass by reference, why I am getting different output.


Why can't we mirror map Natural numbers to Real numbers?

I have interpreted this explanation as a mapping problem, but it always bugged me how it starts so arbitrarily. What if I simply reverse how I read the digits in order to map natural numbers (N) to real numbers (R)? We can call it "Mirror Map." For example: ...001. maps to .100... (infinite trailing zeros);  2. maps to .2; 10. maps to .01. Name a real number that does not have a natural counterpart.     N R     1. .1   2. .2   ... ...   10. .01   ... ...   1112. .2111     Applying Cantor's diagonal addition just comes up with a number somewhere infinitely deep in the list. It does not prove the mapping is incorrect (not intuitively to me). There will be an infinite number of 9's that flip to 0. There will also be an infinite number of carry's (carries?). In some regard the number would be infinitely changing, but talking about the different ways a number is infinite seems like it could take... a long time. The important part is: It seems to me that every R has a corresponding N and vice versa. I'm sure this is wrong, but I do not see why. I see the question: where does √2 or π or e show up in the list of natural numbers? To which I would respond...it's somewhere in the infinitely long list of natural numbers. I don't see the problem, but I guess that's my problem. Edit: Furthermore, Cantor's conjecture was just real numbers between 0 and 1, so those irrational numbers are not specifically in the list. I'm sure one could simply move the decimal to the left then ask the question again. I would have the same response: the map looks good to me.


Extreme of $\cos A\cos B\cos C$ in a triangle without calculus.

If $A,B,C$ are angles of a triangle, find the extreme value of $\cos A\cos B\cos C$.   I have tried using $A+B+C=\pi$, and applying all and any trig formulas, also AM-GM, but nothing  helps.  On this topic we learned also about Cauchy inequality, but I have no experience with it.  The answer according to Mathematica is when $A=B=C=60$.  Any ideas?


In a discrete space, everything is centered around the function "P". Every event has a probability associated with it, and random variables simply map outcomes to numbers. P(X = x) is basically just a weird way of saying P({e | X(e) = x}). From "P", people can define f(x) = P(X = x), g(x|y) = P(X = x, Y = y) / P(Y = y), and so on.   But in the continuous space it seems like everything is reversed! Whenever I look in a textbook, authors will just define a pdf (e.g. f(x,y)) and then derive "P" from it! (e.g. P((X,Y) $\in$ A) = $\int\int$f(x,y). How can this be?   A related question would be how random variables work in continuous spaces, too. Do they still map events to probabilities? Surprisingly, none of my textbooks talk about this...  Hi Michael Chernick, thank you for directing me to those other posts, but I just read the accepted answer in the first one, and it only talked about discrete variables. The second post supposes that I know what sigma algebras are, which I've never heard of before. The accepted answer talks about it, but also doesn't really answer why textbooks go from pdf -> P()


For what real values of $a$ does $\sum_{n=1}^{\infty}{(\frac{an}{n +1})^n}$ converge?

For what real values of $a$ does the series $$\sum_{n=1}^{\infty}\left(\frac{an}{n +1}\right)^n$$ converge?  At first, I wanted to do the root test, but the problem is that $a$ could be negative.  If I take it out of the fraction to get $$\left(\frac{a}{n+1}\right)^n$$ it doesn't meet the criteria of either the Dirichlet or the Abel tests.


My computer seems to randomly turn itself on, usually in the middle of the night when I'm asleep. It's in my bedroom so it wakes me up. I'm running Windows 7 and I don't know if it's trying to runs updates but it doesn't seem to be doing anything once it's on. It only seems to do it only when it's in sleep mode rather than completely shut down.


I found this CHALLENGING problem . Help me with this?

Find⠀the⠀average⠀distance⠀of two⠀randomly-selected⠀points⠀in⠀a⠀circle⠀of⠀Radius $=R$. This⠀is⠀my⠀approach: Consider a function $I(R)$ that is given an input (the radius $R$ of the circle) and outputs the average distance between two randomly-selected points inside that circle. The size of the radius seems like it would only scale the answer, so we can say that $I(R)=R\cdot I(1)$. This reduces the problem to merely considering the case when $R=1$. One’s first instinct might be to consider two random variables, $r\in [0,1]$ and $\theta \in [0,2\pi]$, and considering $x=r\cos\theta$ and $y=r\sin\theta$, but a closer inspection shows us that these won’t correspond to random points, and the points would cluster more around the center of the circle than they would closer to the edges (notice to that $dA=r\cdot dr\cdot d\theta$, not just "⠀$dr\cdot d\theta$ "). The correct transformation is $x=r\sqrt{\cos\theta}$ and $y=r\sqrt{\sin\theta}$ (when I first considered this problem myself, I understood that the first approach wouldn’t work, and the points would cluster around the center, but even now I couldn’t exactly tell you why the correct transformation requires taking precisely the $\sqrt{r}$ ; this is evidence for the question’s conceptual difficulty). Considering this transformation and integrating each variable with respect to its PDF, taking (without loss of generality) the first point to be $(r_1,0)$ and the second to be $(r_2,θ)$, and noticing that $\theta$ only needs to range from $0$ to $\pi$ yields the integral⠀: \begin{align}I(1)&=\frac{\int_{0}^{1}\int_{0}^{1}\int_{0}^{\pi}\sqrt{(\sqrt{r_1}-\sqrt{r_2}\cos\theta)^2+(\sqrt{r_2}\sin\theta)^2}⠀d\theta dr_1 dr_2}{\int_{0}^{1}\int_{0}^{1}\int_{0}^{\pi}d\theta dr_1 dr_2}\\&=\frac{1}{\pi}\int_{0}^{1}\int_{0}^{1}\int_{0}^{\pi}\sqrt{r_1+r_2+\sqrt{r_1r_2}\cos\theta}⠀d\theta dr_1 dr_2 \end{align} It took me 2hr to type the question and 1hr to type this integral. This took me really Long, So without showing the steps to anti-differentiate, This equals to : $⠀I(R)=\frac{128}{45\pi}R $ Is my answer is correct?⠀ Kindly provide⠀your⠀solution⠀too.


My Gis Client Program, using OpenLayers, and my GeoServer were running on the same server, everything worked fine.  Now, I started a new instance of My Gis Client Program on another server. There, I get the following Problem:  WMS Layers work fine, but for the WFS Layer I get: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://mygeoserver/mylayerr. This can be fixed by moving the resource to the same domain or enabling CORS.  What can I do about that?


Short story where criminals were imprisoned in a mountain with a huge spinning wheel

I remember reading this as a short story.  Prisoners where entombed in a mountain.  Inside the mountain was a huge horizontal wheel, and the prisoners' cells where like teeth or cogs at the edge of the huge wheel.  The prisoners were all forced to pull on a huge chain (or turn some kind of crank or something) to slowly move the wheel.  A few holes to the outside of the mountain gave the cells access to the outside as the cell moved into position.  So the prisoners had to literally work to their freedom. [Food was provided via much smaller holes that guards would put into the cells.]  It was kind of an odd story.  I am not sure I have all the details right, but this should be enough for someone familiar with the story.


Where does the light of the fire come from?

I heard that in a fire , the "heat" excites the molecule .So they start vibrating and give of light due to atomic transition . But I didn't really found this process in detail. So I have some important question about them.  What is exactly atomic transition ? Why does , for example a candle flame , gives of red and orange light due to this atomic transition ? Can we calculate this wavelength for a combustion chemical reaction ? Why does the molecules get excited and vibrate from the chemical reaction anyway?


Update Manager not working and Software center crashes

on running the Update Manager, following message shows up  E: Encountered a section with no package E: Problem with MergeList/var/lib/apt/lists/oem.archive.canonical.com_updates_dists_precise-oem-sp1_public_i18n_Translation-en The package list could not be opened or parsed. Installed packages have unmet dependencies.   Software center also crashes as soon as it starts.


I'm just trying to install ghc on my computer. I typed  sudo apt-get install ghc   into the terminal. I then was asked did I want to install, I said yes. Then I was asked did I want to install unverified files. I said yes. Then I got a bunch of error 404's and finally an error:  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I tried installing it via the Software Center and I got a pop up saying:     This requires installing packages from unauthenticated sources.   I clicked OK and it just stopped installing.  Can anyone help me just simply install ghc?  After running sudo apt-get update I get this:    When I type sudo apt-get install ghc I get this:


On busy days, I'd like to run   $ ./configure && make && sudo make install && halt   on the night and go to bed, hoping the application would automatically be installed. But what I see the next day is the screen where sudo asks me for the password. So how could I run sudo with password in one command line, or is there any other method to do this?


What is the equation of a polynomial equation such that it is parallel to another one?

Suppose I have a function of the type: $y(x)=a+bx+cx^2$. What is the equation of a curve parallel to it, separated by a perpendicular distance $q$?. Is there a general equation if I want to find the parallel to a curve of degree $n$?


Writing Greek in XeLaTeX with the default font

I want to do  with the crm10 font. How can I do that? I've tried a few fonts but I don't like them.  \documentclass{scrreprt}  \usepackage{fontspec} \setmainfont{Times New Roman} \setsansfont{Arial} \newfontfamily\greekfont[Script=Greek]{Linux Libertine O} \newfontfamily\greekfontsf[Script=Greek]{Linux Libertine O} \usepackage{polyglossia} \setdefaultlanguage{greek}  \begin{document} \tableofcontents{}  \section{Αυτό είναι ελληνικά.} {\bfseries Welcome to Greek:} Αυτό είναι ελληνικά  Or Russian: Привет  Or Hebrew: מה הבעיה? \end{document}


I've recently started commuting with a bicycle (Giant hybrid bicycle).  I've been trying to learn a little about bicycling to make my commute easier and my time on the bicycle more enjoyable.  Please forgive me for using the wrong terminology.  I've read that I should keep my pedalling speed mostly consistent and use my bicycles gears to adjust my speed.  The problem I'm having is understanding the 'how'.  My bicycle has 3 gears on the front of the chain and 8 gears on the back.    Low gear == easy to pedal High gear == harder to pedal  What I've found is that the gears don't follow a very logical (to me anyway) progression and because of that - I don't know how I should be shifting.  Currently, I've been keeping my front gear in the middle and using the back shifter to change between gears 3-7 or so.  I'm only use about four gears on my '21 speed' bicycle!  I'm also pretty sure the salesman said it was a 21 speed bicycle - but by my count there are 24 combinations.  I know (now) that I'm not supposed to have the front gear in the lowest position and the back gear in the highest (and vice-versa) but that seems to leave 22 gears.  How should I be shifting?  Should I really use all 21 or 22 gears?  I haven't done the math but it really feels like there is a big amount of overlap between the gears.  I hope this ascii art will make sense to someone.  This is just how it 'feels' to me.  ----1----2----3----4----5----6----7----8---- ------------1----2----3----4----5----6----7----8---- --------------------1----2----3----4----5----6----7----8----   Does that make sense?  Is it right?  It feels like there is overlap between the three front gears and that to shift the most 'smoothly' I'd need to constantly change both gears.  But this seems really complicated to me.  I've ridden bicycles with only three gears and I found myself thinking 'More would be nice' - but now I'm overwhelmed.  I'm also questioning if anyone really benefits from so many gears?!


Display feature count in atlas legend only for features included on atlas page?

I am working with QGIS 2.16, and I am wondering if there is a way to include a feature count only for the features displayed in each atlas page. For example, San Francisco only has 120 of a certain feature, while the total count for all metro areas in the dataset is 1500. Is it possible for the atlas page legend to only display the 120 and not the 1500?  Apologies for any lack of clarity. The question is simple but a little hard to explain.


I have a webshop with many queries on the different modules. Now I want to change MySQL to one of the two newer versions.  What's the best type to convert my existing MySQL to?


When using a Boolean modifier on an object, the "Operation" choices (Difference, Union, Intersect) are all not working normally. Choosing "Union" makes it do the effect of "Intersect" and "Difference" makes it do what "Intersect" is supposed to do. What's the deal here?   This is happening with following a simple tutorial. It's a simple primitive cube and primitive cylinder. No normals or doubles problems.   My specs are:  Macbook Pro 13" Retina early 2015 512GB i7 with 16gb RAM upgrade OS-X version 10.11.4


Image capture opens after iPhone is connected

Everytime I connect my iPhone to my laptop, Image Capture opens. How to I stop it? I just need to use iTunes, not Image Capture.


I believe I have read some time ago how you can make top stop sorting the tasks so that they stay in the same line (easier to read) but still get updates for their values (in contrast to simply stopping the screen refresh by pressing e.g. k or r).  Now I tried to find this info in both the online help and the man page but couldn't find anything like that. Of course, it's possible that I have just dreamt reading something like this.


I am creating a form with inputs type radio. I have retrieved the previous responses from the database and I put them in an array. And this is the result:  array(19) { ["1.1"]=> int(5) ["1.2"]=> int(2) ["1.3"]=> int(5) ["1.4"]=> int(2) ["1.5"]=> int(2) ["1.6"]=> int(4) ["1.7"]=> int(1) ["1.8"]=> int(3) ["1.9"]=> int(5) ["2.1"]=> int(5) ["2.2"]=> int(3) ["2.3"]=> int(1) ["2.4"]=> int(4) ["2.5"]=> int(2) ["3.1"]=> int(5) ["3.2"]=> int(5) ["3.3"]=> int(4) ["3.4"]=> int(3) ["4.1"]=> int(4) }    I have got here the question number 1.1 and the value 5. That its perfect, but when I send the form, new results by POST, are changing from 1.1 to 1_1 and so on like this:  array(19) { ["1_1"]=> string(1) "5" ["1_2"]=> string(1) "2" ["1_3"]=> string(1) "5" ["1_4"]=> string(1) "2" ["1_5"]=> string(1) "2" ["1_6"]=> string(1) "4" ["1_7"]=> string(1) "1" ["1_8"]=> string(1) "3" ["1_9"]=> string(1) "5" ["2_1"]=> string(1) "5" ["2_2"]=> string(1) "3" ["2_3"]=> string(1) "1" ["2_4"]=> string(1) "4" ["2_5"]=> string(1) "2" ["3_1"]=> string(1) "5" ["3_2"]=> string(1) "5" ["3_3"]=> string(1) "4" ["3_4"]=> string(1) "3" ["4_1"]=> string(1) "4" }    I am putting in the input, name="$variable", a variable that it gives me exactly the same 1.1, but I do not know what it's changing it it.  <input type="radio" name="<?php echo $que_code; ?>" value="1"   In order to compare them I would like to change them back to 1.1, 1.2..and so on.


marginal distribution of two random variables

I have a question about joint distributions and i'm really struggling to find a solution: $X$ and $Y$ are two independent random variables with $X \sim Exp(\lambda)$ and $Y \sim Exp(\mu)$. Suppose that we don't know the value of $X$ and $Y$, instead we observe the random variables $Z$ and $W$, where $Z = \min(X, Y)$ and  W=\begin{cases} 1,  & \text{if  $Z=X$} \\ 0, & \text{if $Z=Y$} \end{cases} I find the joint distribution for $\mathbb P$($Y>X>z$) = ${\frac{\lambda}{\lambda+\mu}}\cdot{\mathrm e^{-(\lambda+\mu)z}}$ and for $\mathbb P$$(X\gt Y\gt z)={\frac{\mu}{\lambda+\mu}}\cdot{\mathrm e^{-(\lambda+\mu)z}}.$ Now i have to find the marginal distribution of $Z$ and $W$ but i don't know how to build the integral for it, especially for $Z$. I appreciate any help. Thank you in advance


Snippet posts look bad in an old browser

Look, I have a computer with 960 MB of RAM. I am not going to use Firefox. With this browser, it is using %55 of my memory. Instead I am using a Firefox fork, which is called , in version 2018.02.02 (64-bit). The questions with snippets I share how I see it:  At this point in my opinion if it were for the compatibility issue, Stack Overflow shouldn't be using jQuery. Well, I don't really like that framework, but if it's for practicality when programming the site I get it. Putting that comment aside... Is it possible to make the snippet not overlap with the comments? The version of my browser I have shown, if someone wants, they can install it on your systems to see that it is true. Update the browser? Not really, as I think, because they took a lot of things from it, according to the developers due to security problems, which does not worry me in the least.


How to calculate this determinant?     $$A=\begin{bmatrix}n-1&k&k&k&\ldots& k\\k&n-1&k&k&\ldots &k\\\ldots&\ldots&\ldots &&\ldots\\\\k&k&k&k&\ldots &n-1\\ \end{bmatrix}_{n\times n}$$   where $n,k\in \Bbb N$ are fixed.  I tried for $n=3$ and got the characteristic polynomial as $(x-2-k)^2(x-2+2k).$  How to find it for general $n\in \Bbb N$?


I would like to draw a picture that reflects some file structure. Below code works almost as expected. I need to adjust the connections between nodes so they don't start from the center of the bottom of the parent node but from near the left bottom corner.  How can I do this?  Code:  \documentclass[11pt, oneside]{article} \usepackage{tikz}                           % super package for complex and awesome drawing  \begin{document}  \usetikzlibrary{trees} \tikzstyle{every node}=[draw=black,thick,anchor=west,inner sep=2pt,minimum size=1pt] \tikzstyle{selected}=[draw=cyan,fill=cyan!30] \begin{tikzpicture}[   grow via three points={one child at (0.5,-0.7) and   two children at (0.5,-0.7) and (0.5,-1.4)},      edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}]   \node {MainFolder-\{version\}}     child { node [label={[xshift=6.0cm, yshift=-0.58cm, color=gray] Documentation for developers}] {References and Documentation/}         child { node [draw=none] {main.html} }         child { node {reference/}             child { node [draw=none] {...}}         }         child [missing] {}     }     child [missing] {}     child [missing] {}     child [missing] {}     child { node {release/}         child { node [draw=none] {libAwesome.a} }         child { node [draw=none] {libAwesome.dylib} }     }; \end{tikzpicture} \tikzstyle{every node}=[] % resets borders of tables \tikzstyle{selected}=[] % resets selected  \end{document}     Ouput:    Ideal:    Any help is appreciated.


Unmet dependencies while installing php5-curl

I am trying to install php5-curl via terminal in Ubuntu 14.04.  I got following error.  sanchit@sanchit-Satellite-A660:~$ sudo apt-get install php5-curl  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  php5-curl : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4) but 5.5.9+dfsg-1ubuntu4.6 is to be installed E: Unable to correct problems, you have held broken packages.   I then did sudo apt-get upgrade. And I am getting the same error.   sanchit@sanchit-Satellite-A660:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. sanchit@sanchit-Satellite-A660:~$ sudo apt-get install php5-curl Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  php5-curl : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4) but 5.5.9+dfsg-1ubuntu4.6 is to be installed E: Unable to correct problems, you have held broken packages.   At some places it is advised to use Synaptic, but I am keen on solving it using terminal.


Where does the Higgs field get the energy which it transfers when some particles interact with it? And how do these interactions give mass to other bodies?


on a linux machine running CENTOS v 7.8.2003 I am in a directory Neutrinos I now do  mkdir /pionloop/ this works. I then go to into this new directory pionloop and do mkdir /E_0.3 and this works as well. I thus have as a result a directory Neutrinos/pionloop/E_0.3.  Now, starting in Neutrinos I want to do this in one command and therefore do mkdir /pionloop/E_0.3 and get: `mkdir: cannot create directory ‘/pionloop/E_3.0’: No such file or directory  What is going wrong here??