Multiple definition of even with header gaurd

I have a header file:  #ifndef DATA_HPP #define DATA_HPP  #include <cstdint>  namespace f { namespace t { namespace e {  uint32_t a = 99;  class Test { public:     Test();     ~Test(); };  } } } #endif   With CPP file try.cpp:  #include "try.hpp"  namespace f { namespace t { namespace e {  Test::Test() { } Test::~Test() { }  } } }   And the main file - main.cpp:  #include "try.hpp"  int main() { f::t::e::Test a; }   But when I compile my code:  c++ --std=c++11 try.cpp main.cpp   I get below error:  (.data+0x0): multiple definition of `f::t::e::a' try.cpp:(.data+0x0): first defined here   I already have the header file guard - so why the error is being reported and how can I fix it?


Why is the git on my system when I never installed it?

So on my Ubuntu system I have the git version 2.7.4.  However, I remember I had never installed git. Should I update the current git version on my system to the latest version?  Ubuntu: 16.04 LTS OS Type: 64-bit


Are there any special considerations to editing a file as root? What is the safest way to do this?


Can I join two armatures so that the bones keep their animations?

So, I was playing around with armatures, and at some point I had two armatures, which were both animated. Is there a way to join the bones together, so that they keep their animations?


What do the medal icons at the top of the catch screen mean?

So, maybe these have always been there, but I just noticed that at the top of my catch screen, I briefly see tiny icons that look like the medals. What purpose do they serve (other than identifying which categories the pokemon would fall into)?  I tried clicking on them, but nothing happened. I just wondered if I might be missing out on something?


Can you use twinned spell on the same target?

So me and my DM have been arguing on how Twinned spell works. Twinned spell:  When you cast a spell that targets only one creature and  doesn't have a range of self, you can spend a number of  sorcery points equal to the spell's level to target a second  creature in range with the same spell (1 sorcery point if  the spell is a cantrip).  I argued that "a second creature" can be a the same target as it is not worded as "another creature" For this example counter spell with twinned spell.  A wizard casts fireball on me I use CounterSpell#1 with Twinned Spell Wizard casts CounterSpell on my CounterSpell#1 I use him as the same target for my twinned Spell CounterSpell#2  Result countered Is this possible?


How much does electromagnetic radiation contribute to dark matter?

EM radiation has a relativistic mass (see for instance, ), and therefore exerts a gravitational pull.   Intuitively it makes sense to include EM radiation itself in the galactic mass used to calculate rotation curves, but I've never actually seen that done before...  So: if we were to sum up all the electromagnetic radiation present in a galaxy, what fraction of the dark matter would it account for?


My linux-firmware just updated. What signs of trouble should I watch for as a user?

It was just a normal update through Software updater, which notified me that the update was available, and I clicked Install, waited for it to finish, and then rebooted just to be on the safe side. I don't have any unstable repositories enabled, just the standard Ubuntu repositories plus source code, partners, and partners source code.  I'm familiar with the basics of Linux and have some skill on the command line but am not a sysadmin or a bash scripter. I do some light programming but nothing that touches the operating system or installed repository packages. I've got nothing installed from source. I've got a few Python3 libraries installed through pip3, and sometimes use them.  tl;dr what should a guy like me be attentive to that might be a sign his system broke, without being paranoid about it or taking too much time away from my normal computer use?  Ubuntu 16.04.3 64-bit.


Prove $3^n = \sum_{k=0}^n \binom {n} {k} 2^k$

Let $n$ be a nonnegative integer. Prove that   \begin{align} 3^n = \sum_{k=0}^n \dbinom{n}{k} 2^k . \end{align}   I know that $2^n = \sum\limits_{k=0}^n \dbinom{n}{k}$, but how to integrate the $2^k$ into this sum?


How to properly compute device need and set of a Universal adapter for powering said device

So, I just blew the fuse in my 17" monitor using a universal adapter with the settings   Input: 100-240V 1.5A(1.5A) 50/60hz  Output: 15/16/18.5/19.5/20/22/24V (max of 70w)  I want  a clarification of sorts on exactly how to compute Wattage on a device such as a monitor using a universal adapter with the above setting\selection. On the back of the monitor, I have rating 12V 4.16A.  What I typically do to calculate power is to multiply the Voltage and Current numbers   **12 * 4.16 => 49.92W**   Now to set the Adapter for the monitor, I computed  that by setting the adapter to 22W and assuming the amperage to be 1.5A as written on the back of the adapter, I could get about    **I computed that 24V x 1.5 A => 36Watts**    Given that it is lower than what I computed as the wattage needed for the monitor, I decided to try it anyways. But, as I said, I heard a pop sound and some smoke came out of my monitor. I would appreciate some help in understanding my error here so I can be more careful next time when using a Universal adapter such as the one I used


I'm new at programming. Recently i came across a problem in which i have to make a particular bit 0 of a number.  For example :    I have a number p    p      = 73 binary = 1001001   Now i want to make 4th bit to 0, that is 1000001(2) = 65(10)  I did this in following way :  int p = 73; int pos = 1<<3; // 4th bit int max_bit = (1<<31) - 1; // making all bit to 1 int mask = pos ^ max_bit; // making 4th bit to 0 except others p = p & mask; // changing 4th bit of p to 0 cout<<p<<endl;   Is there a better way to do this ?


Does there exist a function which is holomorphic on the open unit disc but goes to infinity on the boundary?

Does there exist a function $f(z)$ holomorphic on the disc $|z| < 1$ but such that $\lim_{|z| \rightarrow 1} |f(z)| = \infty$?  I think the answer is no because $1/f(z)$ would go to $0$ as $|z| \to 1$.


Why was triwizard tournament continued even when Dumbledore knew that it was dangerous for Harry?

So triwizard tournament was a contest held between three wizards of different schools where they compete with each other to get the cup. Tournament was held in every next 5 years however was discontinued after 1792. But later in 1994 it was resumed.  So this time Dumbledore had assured everybody that "no champion will find himself or herself in mortal danger." However later when he came to knew that the fourth name that came from goblet of fire was "Harry Potter" he was very tensed and even more anxious about third. Further not only Dumbledore, even Hagrid and other wizards were also worried regarding this event.  So my question is that why the tournament was not stopped even when the goblet tossed the fourth name (which was a rule break)? And after this why Dumbledore was so anxious for Harry even after knowing that he was the "Boy who lived" or "The chosen one"?


hash function notations and existing cryptographic hash algorithms

I am implementing Role-based access control by referencing the paper . In page 6, they have mentioned to choose hash functions $H_1$ and $H_2$ during the setup $$H1 : \{0, 1\}^∗ \rightarrow Z^∗_p,$$ $$H2 : G_T \rightarrow Z^∗_p$$ where $G_T$ be a cyclic multiplicative group. Can anyone please explain me the notation of the two hash functions? Should the two hash functions $H_1$ and $H_2$ be implemented using different cryptographic hash algorithms? or can I use $\operatorname{SHA-256}$ (for example) to implement both of them? If No, please recommend me cryptographic hash algorithms for them.


Software Updater and sudo apt-get update

After installing software with Software Updater running      sudo apt-get update   shouldn't return any hits right? This isn't the case on my system, I've installed some updates which "popped up" including security updates, but 3 days after when I run the above there are almost 30 hits (package list updates). So, this makes me wonder - does SU always run the update command before the upgrade one?


I have a 64 bit Ubuntu12.04 PC. I want to install VLC player without useing Internet?

I have a 64 bit Ubuntu12.04 PC. I want to install VLC player without using Internet?Please suggest as I dont have Internet available on ubuntu PC


What should my family do to notify SE if I die?

I'm updating various morbid documents and have come to wonder whether there is any established protocol for "memorialising" accounts in the way that some social media networks do?  I'm not asking for some wonderful shrine to be put up on my profile, and at its most basic my will could just ignore Stack Overflow/Exchange completely, letting my account fade into oblivion without anyone out here knowing why. But, if the SE team has a system by which family members can report a dead contributor for whatever reason (even if just to permanently lock-out account access), I'd like to know what it is.


Difference between Notice and Info messages?

I designed a program that is used to send data through the socket. In each program action, I display a message about process state.  I'm confused by when to display a Notice message or Info message. Some of the programs that I have encountered use both terms.  What is the difference between Notice and Info messages? And when this increased to a Warning?


How to prove that, if two numbers are equal $\mod2$ and$\mod3$ ,they are equal$\mod 6 $?

I was wondering if it could be proved without using the Chinese remainder theorem, arithmetically. Thank you


Uniqueness of the involution on a $C^*$-algebra

indication please  Let $A$ be a C*-algebra. Suppose that there exists on $A$ another involution $x\rightarrow x^{\#}$ such that $\|xx^{\#}\|=\|x\|^2$, for all $x\in A$. Prove that $x^{\ast}=x^{\#}$, for all $x \in A$.


The file named footer.php contains the copyright info:  Designed by ...   Is it OK to remove theme credits from footer?  Is it legal?


Strange message at the top of the screen: external JavaScript ... is blocked or failed to load

When viewing , I receive the following message with big white letters on red background:     Cross Validated requires external JavaScript from another domain,   which is blocked or failed to load.   What does this mean?


I need a word that describes how some words have irrelevant meanings. Such as hot fast cold etc. what is hot to one person is not hot to another. What is hot? 100 degrees 1000 degrees. I knew this word long ago and can’t remember and it’s driving me crazy


bash script. run command with counted numbers and names

i try to code a script. it ask me how many "anything" you want? and i answered with a number like 10  #!/bin/bash echo -n "Please enter some input: " read input   now I like perform a command 10 times include numbers from 001 to 010 for example i get the right numbers with:  seq -f "%03g" 1 $input   but how can I execute now commands using this number like:  command anyname-001 -some -parameter command anyname-002 -some -parameter command anyname-003 -some -parameter   ....  thanx for help


Problem with scope of variables in two Python programs - works in one program and not in another

The first program works, when the variable var is defined outside the function f. The value 232 is outputted successfully. In the second program, var is again defined outside the function f, but I get an error saying that var is not defined when the print statement in the function is run. Why does the first program work, but the second program doesn't work?  First program:  var = 232 def f():     print (var)  f()   The second program:  var = 232 def f():     print (var)     var +=1  f()   The output of the first program is expected - it outputs the value 232. The output of the second program should be 232, and it then increments var, but a local variable error occurs at the print statement at line 3.


I have a naive question about regression. How does R function predict.lm compute the 95% confidence interval of the fitted line? In particular why is this not a straight line?   x <- rnorm(10,0,10)  y <- 20*x + rnorm(10,0,2)  fit <- lm(y ~ x)  newx <- sort(x)  prd <- predict(fit,newdata=data.frame(x=newx),interval = c("confidence"),level = 0.95,type="response")   # plot  plot(x,y)  abline(fit)  lines(newx,prd[,2],col="red",lty=2)  lines(newx,prd[,3],col="red",lty=2)    Can somebody help me understand how the upper and lower bounds of 95% CI of the fitted line are computed by predict?


Can force ghosts do anything helpful/powerful?

I mean, yes Obi-wan says he will become extremely powerful, but really he doesn't. The only thing he does is give Luke some advice that could be given to him through the X-wing headset anyway. So how is that powerful,     and where was he when Han died?   So the question is, why would forceghosts ever be seen as powerful and why do they disappear after some time?


I hear both sides of the story. "Installing both discs will improve performance" or "Playing from the disc is best".  I've come across a few threads that say to install the play disc to a USB drive. Will the Xbox 360 even read from 2 different sources at once?   Someone please clear this up for me, for all of us.  Do I Install the second "play" disc or not, and why?


I understand from  question that the current font size can be determined.  But how can I convert this to a length value?  \documentclass[10pt,a4paper]{article} \newlength{\mytextsize}     %This part fails....     \makeatletter       \setlength{\mytextsize}{\f@size pt}    \makeatother  \begin{document}     %do something.         \end{document}   In other words, I want to use the 10pt declared in the \documentclass{...} elsewhere.


Is it possible to send part of vector as a vector to a function?

I want to see if it is possible to pass part of vector to a function so that it appears as a normal vector to the function. More importantly, I want this to be done in O(1), constant time. I don't want to iterate the vector to make a new one. In fact, I also want the size of the new vector to change to 40 in the following example.  void func(vector <int> &v){      //calling index 10  to 50 of v     func(v[10..50]) }


I keep getting the following message and am new to Ubuntu. Not sure how to increase the space in boot volume from other partition.  The volume "boot" has only 2.8 mb disk space remaining  it also suggests "you can free up disk space by removing unused programs or files, or by moving files to another disk or partition"  can someone help?  Thanks


For  question, I've created a Google Apps Script function, that calculates the cumulative sum of a range.  on Google+ made a comment about a more efficient way of calculating the cumulative sum:  function cumulativeSum(array){   var output = [];   for (i in array){     if(i==0) {       if (array[i].length > 1) throw ("Only single column of data");       output.push([array[i][0]]);     } else {       output.push([output[i-1][0] + array[i][0]]);     }   }   return output; }   My question is: can this be achieved with the usage of formula's?


Consolidate tag wiki excerpt and body contents with regards to suggested edits

At the moment, in major part because they are two separate post objects in the system, the excerpt and the body of a tag wiki count as two separate posts with regards to suggested edits in the queue. Mechanically, this is sane, but when it comes to handling the actual queue, it can be confusing. A body edit might consist of little more than a bed of links, which looks bad. But then an excerpt is shown that includes the rest of the data, and since excerpts can be included on the actual wiki page, it makes a lot more sense when they're taken in the same space.  And this is how they are composed, too. The actual edit interface for working on tag wikis has both the excerpt and the body on the same page. In a sense, the excerpt behaves a lot like the "title" of the wiki, if we make a parallel to normal post edits.  Thus, my suggestion (which is to say a suggestion that I repossessed from Robert Cartaino) is that when suggested edits are reviewed for tag wikis, that they be presented in a single unit, treating the excerpt the same as how a title is treated in a question edit. This way, relevant information that is crossed between the two isn't lost because they are reviewed separately.


Short story about humans on the surface of a star

I'm trying to find a short story read in the early 90's, although it was likely in an anthology of older work - probably no earlier than the 60's.  I read it in English in the U.S., it was likely written originally in English, and had an odd and memorable tone. My main recollection is that it involved humans living and walking around the (somewhat solid?) surface of a star.  It's definitely not Starquake / Dragon's Egg - from what I remember it was not a neutron star, and these were normal - if futuristic - people. This has been driving me crazy for weeks because I'm reasonably sure that this story exists, but I can't remember how this could've possibly worked.  I think the star may have had a "crust" of sorts that was at a moderate temperature, but there may have been some kind of construct or force field involved.  I also vaguely remember that heat management was a key concern of the characters, and they may have worn special shoes to get around on the surface. My apologies for the extremely vague description but I'm hoping this rings a bell for someone.


Change default gnome-terminal to terminator

Changing default terminal is supposed to be be done with:  sudo update-alternatives --config x-terminal-emulator    (as mentioned in  )   But unfortunately it still not work for every application (like Nemo file browser): the default ugly and limited gnome-terminal is still used.


I have the following question:  If $f$ analytic on $\mathbb{D}$ with $|f'(z) - f'(0)| < |f'(0)|$, then $f$ is one-to-one.  I am not really sure what I should be using in this question. I have tried to use integral representations and power series expansions. However, I am not sure how this will help to show $f$ is one-to-one.


As an example, on my system apt-get needs to download 3.5 MB to install the IDE geany, while the download size is 100 MB for snap. This is so big and unacceptable! Even the Windows installer of geany is no more than 15.4 MB in size! What libraries used by a software are included in its snap file? And what are assumed to be already present on the OS? Does a snap file include all the required libraries? If that is the case, why? I see no reason why more than one copy of each specific version of a library, say GTK, should be present on a system. Maybe I haven't understood the snap system well enough. Maybe the download size of each snap depends on the snaps already installed. For example, maybe if another application installed by snap uses the same version of GTK, the download size for snap installation of geany would be less than 100 MB.


Is there any algorithm that produces irreducible polynomials over $\mathbb{F}_2$?

Is there any (fast) algorithm that produces irreducible polynomials over $\mathbb{F}_2$?  EDIT: I look up for a irreducible polynomial generator, that is different from decider algorithm for irreducibility.  EDIT2: By Input $n \in \mathbb{N}$ to the algorithm $A$ we expect $n$ irreducible polynomials over $\mathbb{F}_2$. I need that $A$ always returns same result by a specific input $n$ (I don't want random irr. polynomials generator).


Make specific author bold using biblatex without consistent author formatting

A while back I asked this question:    Essentially, I want to highlight my name in the publications portion of my CV. I got a good answer from my previous question which included this line:  \ExecuteBibliographyOptions{maxnames=99,firstinits}   which converts all the author names to first initials plus a last name.   There was one caveat that is now coming to bite me:     If your name is consistently formatted in the bib file...   My name is not consistently formatted in the bib file. Sometimes it is Jeremy Lloyd Conlin other times it is J. L. Conlin and still J. Conlin.  I want to bold all of my names while keeping the original name, i.e., I don't want the author names reduced to first initials and last names. Is this possible?


cycle through one command's output and use in another command

How can I use the output of one command - line-by-line - into another command? I know how to do this with the | pipe symbol, but this uses the entire output in one command. I would like to go line by line... I think I need to combine the | and xargs but not sure.  redis-cli keys \* | redis-cli get [key would go here]


I'm plotting experimental data with pgfplots and wonder how I can add smaller ticks to the axis which are not annotated. Every data analysis software (even Excel) makes this, but I didn't find a way to do it easily in pgfplots. I must have overlooked it.    I hope there is a way to tell pgfplots to split every "big" step (0-5, 5-10, ...) into, lets say, five smaller steps.


Let $R$ be a ring with unity where  $$x^3=x,\;\;\; \forall x \in R$$  How do I prove that $$x+x+x+x+x+x=0$$


Why is 2d python list updating multiple index locations with one assignment

I've got python where an assignment to a specific 2d list in python is updating multiple elements and I don't know why.  I'm not looking for a better way to do things as much as I'm trying to understand what is going on here so I get my mistake before just doing something else.  Below is the code and beneath it snippet of what gets printed out after a couple loops.  Notice that with each assignment to an index, the tuple being assigned to that index is written to multiple locations in the 2d list. I don't even know how that is possible.  num_list = [] for num in range(32, 43, 1):     num_list.append((str(num), chr(num) + " ")) print print "num_list:" print num_list print  cols = 4 rows = len(num_list) / cols  arry2d = [[("a","b")] * cols] * (rows+1) print ("arry2d after initialization") print arry2d print   for i, item in enumerate(num_list):         print "i: " + str(i),         print "row: ", i / cols,         print "column: ", i % cols,         print "contents before update: ", arry2d[i / cols][i % cols]         print "item: ", item         print "array 2d after update with item: ", item         arry2d[i / cols][i % cols] = item         print arry2d ----------------------------------------------------   Output  num_list [('32', '  '), ('33', '! '), ('34', '" '), ('35', '# '), ('36', '$ '), ('37', '% '), ('38', '& '), ('39', "' "), ('40', '( '), ('41', ') '), ('42', '* ')]  arry2d after initialization [[('a', 'b'), ('a', 'b'), ('a', 'b'), ('a', 'b')], [('a', 'b'), ('a', 'b'), ('a', 'b'), ('a', 'b')], [('a', 'b'), ('a', 'b'), ('a', 'b'), ('a', 'b')]]  i: 0 row:  0 column:  0 contents before update:  ('a', 'b') item:  ('32', '  ') array 2d after update with item:  ('32', '  ') [[('32', '  '), ('a', 'b'), ('a', 'b'), ('a', 'b')], [('32', '  '), ('a', 'b'), ('a', 'b'), ('a', 'b')], [('32', '  '), ('a', 'b'), ('a', 'b'), ('a', 'b')]] i: 1 row:  0 column:  1 contents before update:  ('a', 'b') item:  ('33', '! ') array 2d after update with item:  ('33', '! ') [[('32', '  '), ('33', '! '), ('a', 'b'), ('a', 'b')], [('32', '  '), ('33', '! '), ('a', 'b'), ('a', 'b')], [('32', '  '), ('33', '! '), ('a', 'b'), ('a', 'b')]]


Regarding the sum $\sum_{p \ \text{prime}} \sin p$

I'm very confident that  $$\sum_{p \ \text{prime}} \sin p $$  diverges. Of course, it suffices to show that there are arbitrarily large primes which are not in the set $\bigcup_{n \geq 1} (\pi n - \epsilon, \pi n + \epsilon)$ for sufficiently small $\epsilon$. More strongly, it seems that $\sin p$ for prime $p$ is dense in $[-1,1]$.   This problem doesn't seem that hard though. Here's something that (to me) seems harder.      If $p_n$ is the nth prime, what is $$\limsup_{n \to +\infty} \sum_{p \ \text{prime} \leq p_n} \sin p?$$   What is $$\sup_{n \in \mathbb{N}} \sum_{p \ \text{prime} \leq p_n} \sin p? $$   Of course, we can ask analogous questions for $\inf$.   I'm happy with partial answers or ideas. For example, merely an upper bound.


Let $X$ be a positive random variable with distribution function $F$. Show that $E(X)=\int_0^\infty(1-F(x))dx$

Let $X$ be a positive random variable with distribution function $F$. Show that $$E(X)=\int_0^\infty(1-F(x))dx$$  Attempt  $\int_0^\infty(1-F(x))dx= \int_0^\infty(1-F(x)).1dx = x (1-F(x))|_0^\infty + \int_0^\infty(dF(x)).x   $  (integration by parts)  $=0 + E(X)$ where boundary term at $\infty$ is zero since $F(x)\rightarrow 1$ as $x\rightarrow \infty$  Is my proof correct?


Conditional Expectation of Composite Function

Preliminaries  Let $(\Omega, \mathcal{G}, \mathbb{P})$ be a complete probability space.  Let $D$ be a complete, separable, metrizable topological space with Borel $\sigma$-algebra $\mathcal{B}(D)$ (such as $D = \mathbb{R}^q$ with $\sigma$-algebra $\mathcal{B}(D) = \mathcal{B}(\mathbb{R}^d)$).  Let $\mathbb{R}$ be equipped with its canonical Borel $\sigma$-algebra $\mathcal{B}(\mathbb{R})$.  Let $g: \Omega \times D \rightarrow \mathbb{R}$ be a bounded $(\mathcal{G} \otimes \mathcal{B}(D) ) / \mathcal{B}(\mathbb{R})$-measurable function.  Let $\Pi: \Omega \rightarrow D$ be a $\mathcal{G}/\mathcal{B}(D)$-measurable random variable.  Let $H : \Omega \rightarrow \mathbb{R}$ be a $\mathcal{G}/\mathcal{B}(\mathbb{R})$-measurable random variable, defined by $$ H(\omega) := g(\omega, \Pi(\omega)).$$ Note, that, since $g$ is bounded, we have $H \in \mathcal{L}^2(\Omega, \mathcal{G}, \mathbb{P})$.  Let $j: D \rightarrow \mathcal{L}^2(\Omega, \mathcal{G}, \mathbb{P}) $ be defined by $$ j(\pi)(\omega) := g(\omega, \pi)  $$  For all $\pi \in D$, let $j(\pi)$ be independent of $\Pi$.  Question  I am interested in the conditional expectation $$\mathbb{E}[H \mid \Pi] :\Omega \rightarrow \mathbb{R}$$ of $H$ with respect to $\Pi$. More specifically, I suspect that (a $\mathbb{P}$-unique version of) this condititional expectation is given by  $$ \mathbb{E}[H \mid \Pi] (\omega) = \mathbb{E}[j(\Pi(\omega))], \quad (\dagger)  $$ whereby $\mathbb{E}[j(\Pi(\omega))]$ can of course also be written as $$\mathbb{E}[j(\Pi(\omega))] = \int_{\Omega} j(\Pi(\omega))(\tilde{\omega}) d\mathbb{P}(\tilde{\omega}) . $$  How can I prove, that $(\dagger)$ is the case? I have tried, tracking the definition of conditional expectation and using Fubini, but with little success so far.  Thanks for any advice!


Put a 5 pound pork sirloin roast in oven at 175 degrees F for two hours. Then turned up oven to 350F for two hours. Is it safe to eat?


Evaluating $\cos\frac{k\pi}{p}+\cos\frac{2k\pi}{p}+\cos\frac{3k\pi}{p}+\dots +\cos\frac{2\frac{(p - 1)}{2}k\pi}{p}$

If $p$ is a prime then what is the value of the series    $$\cos\frac{2\pi}{p}+\cos\frac{4\pi}{p}+\cos\frac{6\pi}{p}+\dots +\cos\frac{(p - 1)\pi}{p}$$ In general what is the value of the following series   $$\cos\frac{k\pi}{p}+\cos\frac{2k\pi}{p}+\cos\frac{3k\pi}{p}+\dots +\cos\frac{2\frac{(p - 1)}{2}k\pi}{p}$$


Need to know how install a exe with a different program , oter than wine

I use viewers for open sims and grids, Like second life and osgrid, I downloaded coolviewer and opened it with wine, it loaded ok but when I try to use it  goes to "not responding"   I  have to shut it down!! What causes this? I found were you get the terminal, but do not understand its im new to this ! Is there another program I can use to open window downloads?


How can I change the left margin of an environment?

I have been trying in various ways to give more left margin to the content of an environment and the only way that works for me is to apply \hspace{2.5in} on each line. How can I do it from the environment firstcite? The code works and the output is as expected but I would like to simplify: % !TeX program = lualatex \documentclass[ebook,11pt,twoside,openright,showtrims]{memoir} % -------------------------------------------------------Packages \usepackage{fontspec} \usepackage{xcolor}   \usepackage{alltt}   \setsansfont{Ubuntu}  \newenvironment{firstcite} {%      %\hspace{2.5in}     \begin{alltt}\sffamily\tiny\hspace*{2.5in}}     {\end{alltt}}     \setmainfont{Ubuntu}  \begin{document}  \mainmatter          \begin{firstcite}          \begin{vplace}                  \hspace{2.5in}{Yo repuse: }         \hspace{2.5in}   «¡Ay, Señor, Dios mío!          \hspace{2.5in}    Mira que no sé hablar, que solo soy un niño».          \hspace{2.5in}Y el Señor me contestó:          \hspace{2.5in}   «No digas que eres un niño,          \hspace{2.5in}    pues irás adonde yo te envíe          \hspace{2.5in}    y dirás lo que yo te ordene». (\ldots)          \hspace{2.5in}El Señor extendió la mano,          \hspace{2.5in}tocó mi boca y me dijo:          \hspace{2.5in}   «Voy a poner mis palabras en tu boca».                   \hspace{2.5in}(Jeremías 1, 6-7.9)                 \end{vplace}  \end{firstcite}      \end{document}


Here's an image of what's happening:    I can't change any of the things. Restarting Blender does nothing. This has never happened to me before and I'm unsure to why this is happening now. I saw other people with this problem but they just said that restarting would help but it didn't.  Anyone experienced this problem before or knows how to fix it?  Thanks in advance.  UPDATE:  Also tried re-installing which didn't help. Tried deleting all addons which also didn't help. Also found out that when I try move something to another layer I can't use the numbers on my keyboard which is another thing which randomly changed recently.  UPDATE 2:  Turns out there was an answer. Just had to search other terms into google. If anyone else is having the problem then go User Preferences, Editing and then enable global undo. Don't remember disabling it but I must of at some point.  the question where I found the answer. Sorry for wasting anyone's time if they were writing an answer :/


why is friction acting towards the centre in a level curved road?

We all know that friction is a force that opposes motion and is applied in the opposite direction of motion, but in a leveled curved road it becomes the centripetal force and pulls towards the center. Why?


Standardize or not standardize before clustering

Objects in my sample have multiple dimensions. Some dimensions are measured in kilometers and some in kilograms, there are also categorical variables that I need to quantify. I am planning to use weighted Euclidean distance in cluster analysis. My question is: Should I standardized (subtract mean and divide by standard deviation) each dimension before studying clustering?


Perfect negative correlation (-1) between intercept and slope in a mixed model

I was trying to fit several mixed linear models, however for 2 (out of 4) I am getting quite strange results.  The point is that I've collected data from two courses (a few students were the same in both courses). The idea is to predict students' position in social graph based on certain linguistic characteristics. Graph metrics (closeness, betweenness, etc.) are considered dependent variables, while measures of linguistic characteristics are considered independent variables (and fixed effects). I defined 1+course|student as a random effect and it seems that this model is better than 1|student (compared by ICC values). However, the model for betweenness centrality yields the following results:  Random effects:  Groups   Name           Variance Std.Dev. Corr   student  (Intercept)    8563     92.54                   courseCourse2  8521     92.31   -1.00  Residual                27714    166.47         Number of obs: 3066, groups:  student, 1353   What could be a cause for this perfect negative correlation? Should I remove course from random effects? Any suggestions what could be wrong with the data/analysis?


In visual c#, how can I limit the textbox entries to real nos? When i used richtext box and mask it, the length of the number gets limited, which is what I don't want Any suggestions?


Difference between "everlasting" and "eternal"

I know these two sentences are somehow different, but I don't know how:     This is an everlasting love.      This is an eternal love.   I read  that there are a number of adjectives for withstanding the passage of time. But it didn't specifically say the difference.


Are there any good references on advanced PCB design/layout/routing?  There seems to be a large wealth of circuit design books, books about RF PCB design, and books dealing with high-speed digital design. None of these books are what I'm talking about. The type of book I am looking for is along the lines of PCB best practices for general digital/low speed analog/power supply layout & routing. What is the de-facto standard book they use in college classes for this topic (similar to the way that Oppenheim et. al.'s  is used in many DSP classes, or Sedra & Smith's  is popular in many Circuit Design Classes)?  Can anyone recommend a good PCB design/layout/routing book for this type of design?  Would a high-speed design book be a sufficient in that it would be overly-strict based on lower speed designs?


How to align section heading left with revtex4-1

I am using revtex4-1 and section headings are aligned in the center. How do I modify this?


Was Red Shirt Security a rotating detail, like K.P, or was it a dedicated branch of Star Fleet like the M.P's are to the US Army?

As I channel surfed the other day, I accidentally found an episode of Star Trek TOS, and I settled in to watch it. As always, it was a bad day to be a landing party Red Shirt Security person.    Their apparent lack of skill (training?) made me wonder: Was Red Shirt Security a rotating detail, like K.P. (Kitchen Patrol), that crew members with regular assigned duties were ordered to do when it was their turn, or was it a dedicated branch of Star Fleet like the M.P's (Military Police) are to the US Army?


Probability that the sum of $k$ dice is $n$

The probability of two dice summing to k is simple enough, make a diagram of the throws,  $$ \begin{array}{c}  &|&1&2&3&4&5&6\\\hline 1&|&2&3&4&5&6&7\\ 2&|&3&4&5&6&7&8\\ 3&|&4&5&6&7&8&9\\ 4&|&5&6&7&8&9&\color{green}{10}\\ 5&|&6&7&8&9&\color{green}{10}&11\\ 6&|&7&8&9&\color{green}{10}&11&12\\ \end{array} $$  and the probability of a sum is just the length of the corresponding diagonal divided by $36$. For instance, $\mathrm{P}(\mathrm{sum} = 10) = \frac{3}{36} = \frac{1}{12}$. However, it's not as easy to draw a diagram for three dice or more, so how would a general formula look?


While a process is running manually, it stops after a while in the cron job

I have a PHP script and this script loops thousands of lines. When I run the PHP file manually, this loop of thousands of lines returns successfully. But when a cron job does this, it turns around 143 times. What have I checked:  I checked if there was something to stop my code for the 143rd time. I checked if this is a timeout. Even if I extend the time, it stops after the 143rd turn.  What have I tried?:  I thought it might be a memory issue. and I increased the memory_limit. - Not working  Edit:  Even though I didn't make any changes, the situation improved. I need to know the reason for this. Please give your estimates and the measures I can take.


Finding specific objects in array to remove

I have an array of data which stores an object with functions and other such info. I push these objects to the function for my draw function to execute.  But i do not know of a way to find a specific object in an array to remove it and thus stop drawing it.   For example i have an array structure like this:  var data  = {             'fnc':function(){                        updatePosition(spriteID);                        drawSprite(spriteID);               },              'something':'here'             };  var drawOrder= []; drawOrder.push(data);   There are many functions in this array and they are pushed dynamically depending on what i wish to draw.  What would be the best way to find the index of one of these objects and remove it from the array in this case?


How to find the IP connected with teamviewer?

I need to know how to find the IP of the pc connected into my pc with teamviewer ??? how can I do??  I tryed with netstat:  netstat -n | find ":6039" | find "ESTABLISHED"  but It doesn't work because It seems not shows the IP of the pc.  How can I do?  thanks


Do compasses still point towards your spawn/bed?

When I use a compass it does not seem to point towards my bed. I have heard that now compasses point towards North. Is this true?


Changing pemalink structure to /%post_id%/%postname%/

I'm currently using permalink structure: /%year%/%monthnum%/%day%/%postname%/  I want to change that to: /%post_id%/%postname%/  I expect it to be:   faster (database is sorted by post_id?) shorter URLs (and clearly visible short verstions, just leaving the %postname%/ out) more SEO friendly - since my content is "evergreen" so publishing date is irrelevant (and written at each post, along with last update date) - so this would give shorter URLs, with no downsides compared to using year/month/day structure.   THE QUESTION: Does WordPress handle all the 301 redirects automatically? I can fix internal links to the new structure (though I'd expect that to be automatic as well), but worry about outsite links, pointing to my posts/articles.  If not, what's the best way to implement this change? Any links or full answers here are welcome.  I have about 120+ posts already, will this change affect the speed since it's not been done from the start?


Paired t-test when each data point was repeatedly measured different number of times?

I have an existing data set that comes from the same group of people before and after they received a treatment.  The data set comes from when participants tested their blood sugar values over a 30 day period before receiving an insulin pump and a 30 day period after receiving an insulin pump. This data was obtained from user logs (archival data) and was not controlled to ensure that they were tested at fixed intervals. Participants tested themselves when they needed to test throughout the day for a period of 30 days.  My goal is to determine whether the average blood sugar across 30 days was different for the before vs after group.   Normally this would be a paired samples t-test but unfortunately the before and after group have an unequal number of data points with the after group having significantly more. People are testing more often after receiving an insulin pump.  What is the correct way to handle this?  I can collapse the data to find a mean for each participant before treatment and after treatment (across all participants) so that the data matches up and then run a paired samples t-test on this data but I think this is not the ideal solution.   Would a one way within subjects ANOVA be the appropriate test to run in this case?


how can you point the head of an arrow from tikzpicture to an equation in LaTex?

I could create a page like this:  using the following code:  \documentclass{article}   \usepackage{tikz} \usetikzlibrary{fit, calc}  \usepackage{fontspec} \newfontfamily{\myfont}{Arial} \usepackage{marginnote} \newcommand\commentary[2]{% \tikz[remember picture, baseline={(here.base)}] \node (here) {#1};% \marginpar{ \begin{tikzpicture}[remember picture, overlay]  \begin{scope}[rotate=(rand*10),shift={(1.8,0)}]     \node [text width=3cm, align=center, transform shape] (text) at (0, 0)   {\footnotesize \myfont #2};     \draw [transform shape, thick] plot [smooth, tension=0.8] coordinates {       ($(text.south) + (-10pt, -5pt) + (rand * 2pt, rand * 2pt)$)        ($(text.south east) + (-5pt, 5pt)$)       ($(text.north east) + (rand * 2pt - 5pt, rand * 2pt)$)       ($(text.north west) + (rand * 2pt + 5pt, rand * 2pt)$)       ($(text.south west) + (rand * 2pt + 5pt, rand * 2pt)$)       ($(text.south) + (10pt, -3pt) + (rand * 2pt, rand * 2pt)$)     }; \end{scope} \draw[->, thick] ($(text.south west) - (-10pt, 5pt)$)  to [bend left=20] ($(here.south east) - (3pt, 2pt)$); \end{tikzpicture}  }  }  \begin{document}  The equation of a plane through $(x_0,y_0,z_0)$ \commentary{is:}{The tangent   plane: $\nabla f(\mathbf{x})\cdot (\mathbf{x}-\mathbf{x}_0)=0$.} $$a(x-x_0)+b(y-y_0)+c(z-z_0)=0$$  The vector $(a,b,c)$ is normal to the plane.     \end{document}   1) How can put the head of the arrow to the equation (for example to + sign in the display question) instead of a word in the text (intead of "is :" in this example)?  (2) How can I move the text bubble 1 cm to up or down?


import java.util.Scanner;   public class Calculator { static double num1 = 0, num2 = 0; static Scanner input = new Scanner(System.in); static int choice = 0; static double answer = 0;    public static void main(String args []){     enter(num1, num2); }  public static void enter(double num1, double num2) {     System.out.println("********CALCULATOR*********");     System.out.println("Type in your first number.");     num1 = input.nextDouble();     System.out.println("Type in your second number.");     num2 = input.nextDouble();     System.out.println("Enter the number associated with what you would like to do.");     System.out.println("1. Add them");     System.out.println("2. Subtract them");     System.out.println("3. Multiply them");     System.out.println("4. Divide them");     choice = input.nextInt();     operations(num1, num2, choice);  }  public static void operations(double num1, double num2, int choice) {     if(choice == 1){         answer = num1 + num2;     }else if(choice == 2){         answer = num1 - num2;     }else if(choice == 3){         answer = num1 * num2;     }else if(choice == 4){         answer = num1 / num2;     }     printAnswer(answer); }  public static void printAnswer(double answer) {     boolean re;     String tryAgain;     System.out.println("The answer is " + answer);     System.out.println("Would you like to use it again? Yes or No.");     tryAgain = input.next();     if(tryAgain == "yes"){         re = true;         restart(re);     }else if (tryAgain == "no"){         re = false;         restart(re);     }  }  public static void restart(boolean re) {     if(re == true){         enter(num1, num2);     }     if (re == false){         System.exit(0);     }  } }   I'm trying to make a calculator, but I ran into a little problem... The problem is occurring after  tryAgain = input.next();   I don't think the rest of my code is being run The Scanner works properly but the program quits after I type something in.


Expected value for a continuous random variable

Let's fix the generic probability space $(\Omega,\Sigma,P)$, and consider the generic random variable $X\colon \Omega \to \mathbb{R}$. The expected value of $X$ (supposed to exist) is then defined as $E(X):=\int_{\Omega} X\,\text{d}P \in [-\infty,+\infty]$, namely using the Lebesgue integral of $X$ with respect to the probability measure $P\colon \Sigma \to [0,1]$. When $X$ is a continuous variable, namely when there exists $f_X\colon \mathbb{R} \to [0,+\infty)$ such that $\forall \,x \in \mathbb{R} \quad F_X(x):=P(X \le x)=\int_{-\infty}^x f_X(t)\,\text{d}t$, we have also that $E(X)=\int_{-\infty}^{+\infty} xf_X(x)\,\text{d}x$. My question is: how can I show that the general definition of $E(X)$ reduces to the last one for continuous random variables? Can you suggest me a textbook or a source where I can find some help? P.S. I have found here  that $\int_{\Omega} X\,\text{d}P=\int_{\mathbb{R}} \text{d}\mu_X$, where $\mu_X\colon \mathcal{B}(\mathbb{R}) \to [0,1] \mid \mu_X(A)=P(X \in A)$ is the pushforward measure of $X$, with $\mathcal{B}(\mathbb{R})$ the Borel $\sigma$-algebra over $\mathbb{R}$. I know also that $F_X'=f_X$ and that $F_X(x)=\mu_X((-\infty,x])$, so maybe $\text{d}\mu_X=\text{d}F_X=f_X\,\text{d}x$, but I seriously think this is totally wrong. Thank you for your time and help!


Finding derivative of this integral function.

I need help on finding the derivative of this:  $$g(x) = \int_1^{x^2} (x-t)\sin^2(t)dt$$  I thought about taking out x and having it as a constant but how?


Prove that $ \lim\limits_{x\to \infty}xf(x)=0 $

I just need a hint not a whole solution please.     Problem: Let    $f ∈ L_1(0, ∞)$    be monotone. Prove that   $$ \lim\limits_{x\to \infty}xf(x)=0 $$


The following code  number=1 if [[ $number =~ [0-9] ]] then   echo matched fi   works. If I try to use quotes in the regex, however, it stops:  number=1 if [[ $number =~ "[0-9]" ]] then   echo matched fi   I tried "\[0-9\]", too. What am I missing?  Funnily enough,  suggests this should work.  Bash version 3.2.39.


Determine if the series 1/5 + 1/8 + 1/11 + 1/14 + 1/17 ... is convergent or divergent

I am trying to determine if the series $\frac{1}{5} + \frac{1}{8} + \frac{1}{11} + \frac{1}{14} + \frac{1}{17} $ is convergent or divergent?     I can see that the terms in the denominator differ by 3 each time.


227 Entering Passive Mode (0,0,0,0,...) when connecting to vsftpd FTP server

As said in the title, I don't manage to connect my Windows 10 host to my FTP server on the VirtualBox guest side (Ubuntu 18.04). On the guest side, the vsftpd server works fine, I can connect without any problem.   So I tried to forward the associated port to the host (NAT) and tried to connect to the server via FileZilla. It does login, but always fails to retrieve directory listing. I tried deactivating the firewalls, giving all the access permissions to the folder but it doesn't change anything.  I read that it could be a problem of passive mode there:     So I added the following lines to :  pasv_enable=YES pasv_min_port=8020 pasv_max_port=8020 port_enable=YES pasv_address=127.0.0.1   I forwarded the port 8020 but I now get the following error on FileZilla:     The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address   Full FileZilla response:  Status: Connecting to 127.0.0.1:2100... Status: Connection established, waiting for welcome message... Status: Server does not support non-ASCII characters. Status: Logged in Status: Retrieving directory listing... Command:    PWD Response:   257 "/home/cakephp" is the current directory Command:    TYPE I Response:   200 Switching to Binary mode. Command:    PASV Response:   227 Entering Passive Mode (0,0,0,0,31,84). Command:    LIST Error:  The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address Error:  Connection timed out after 20 seconds of inactivity Error:  Failed to retrieve directory listing Status: Disconnected from server   I'm a bit lost with this, does anybody have a suggestion? Thanks in advance    EDIT1: Without any kind of hope, I also tried to access from the Windows Command Prompt. It does connect but when I ls the current folder I get the following error: 500 illegal PORT command. 425 use PORT or PASV first. But I guess that this is because .  Just in case it can help, you can find here . Also, I can seamlessly access to the guest SSH server from the host with Putty.  EDIT2: I set listen_ipv6 to YES, changed pasv_max_port to 8030 to increase the number of passive ports and forwarded them. I get the following logs from FileZilla:  Status:  Connecting to 127.0.0.1:2100... Status: Connection established, waiting for welcome message... Status: Server does not support non-ASCII characters. Status: Logged in Status: Retrieving directory listing... Command:    PWD Response:   257 "/home/cakephp" is the current directory Command:    TYPE I Response:   200 Switching to Binary mode. Command:    PASV Response:   227 Entering Passive Mode (0,0,0,0,31,90). Command:    LIST Error:  The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address Error:  Connection timed out after 20 seconds of inactivity Error:  Failed to retrieve directory listing


How to fix visual studio conditional operators values for C programming?

I'm using visual studio in C programming, but what I realized that for this question, when I run the code, and enter 3.74 cgpa it outputs Invalid CGPA mark! rather than Degree classification: "Upper Second-Class Honours", also same thing for the males values, not really sure what the problem, dose anyone know what is the reason? #include <stdio.h> main() {     float cgpa = 0;     char gender = 0;      printf("Enter your gender (M/m or F/f): ");     scanf_s(" %c", &gender, 1);      printf("\nEnter your CGPA: ");     scanf_s("%f", &cgpa);      if (gender == 'f' || gender == 'F')     {         if (cgpa >= 3.75)             printf("\nDegree classification: \"First-Class Honours\" \n");         else if (cgpa <= 3.74 && cgpa >= 3.00)             printf("\nDegree classification: \"Upper Second-Class Honours\" \n");         else             printf("Invalid CGPA mark!\n");     }     else if (gender == 'm' || gender == 'M')     {         if (cgpa >= 2.50 && cgpa <= 2.99)             printf("\nDegree classification: \"Lower Second-Class Honours\" \n");         else if (cgpa >= 2.00 && cgpa <= 2.49)             printf("\nDegree classification: \"Third-Class Honours\" \n");         else             printf("Invalid CGPA mark!\n");     }    }


Question about my mom (US citizen) returning to USA after overstaying abroad

My mother is a US citizen but overstayed in the philippines for 3 yrs now due to 2 of my brothers had a stroke and 1 passed away,and now she is looking after my other brother.Iwant to her to return to the US anytime soon.What is your advice?She will be 90 yrs old in a couple of months.


Regex group matching not giving expected results

I have having little trouble getting the required match. string1 ="lanet fit/club fees 123-456-7150 1935006123456 abcd avcbfg" string2 ="ABC*lanet Fitness       308-3207001  NX"  regex=^(.*)([(]?[0-9]{3}[)]?[-.\s][0-9]{3}[-.\s]?[0-9]{4})(.*)$  also can be checked here.  I need group 2 as the phone number 123-456-7150and 308-3207001 but i am getting 150 1935006 as group 2 for string1. Any thing which needs to be corrected?


How many Materials should a Game-Ready character have?

I'm making a character for an indie game project aimed for the pc platform using unreal engine. I currently have 15 materials for every part, are they too much? If so, How many should I use? Texture Resolution used is 2k


Game Theory: What are Best Strategies for High-Low game (game details are below)?

High Low game is one where one person picks a number between a range (say 1-100) and another person have to guess it. With each guess, s/he is told whether the guess was high, low or correct.  If the person picking the number picks it at random, then the best strategy would be to use binary search algorithm (start at middle of range, and then keep dividing sample space in half) to minimize the number of guesses.   (1) If the players however are playing adversarially, i.e. Person picking the number wants to maximize the guesses taken by guesser and Guesser wants to guess the number in minimum guesses; what is best strategies for both of them?  (2) Also, related question : If it is known that Person picking the number is trying to defeat the Binary search algorithms, what would be the best strategy to guess the number in least amounts of guesses?


Select only those rows based on specific condition of user id


Movie with a man/woman fighting over a giant truck in the desert

I saw this movie a while ago and I remember a lot of images of huge desert landscapes and a man/woman fighting over the control of a huge truck (or maybe they had a truck each and were fighting over something else, I can't remember straight).   The truck was an armored vehicle roughly the size of a semi-truck without the trailer. The movie should have been relatively recent but seemed to be quite low-budget.  I believe it should have been a post-apocalyptic movie but I can't really remember anything about the story, just those images.  The footage of the movie had colour editing and it was saturated in tones of orange, it should be easy to identify by this colour treatment since it's something you don't see very often.


second hand ipad needs apple id from original owner?

I bought this ipad second handed I already disabled it bt after connecting it to a wiffi its says "This iPad is currently linked to an Apple Id sign in with the Apple ID that was used to set up this ipad" is there anywway i can get pass through that.


Should I use the preposition to? Are both correct?   The document I sent you The document I sent to you


From Newton’s second law, $F=ma$, a massless object will always have zero net force. So can a massless pulley accelerate?


Android database select query isn't working (Null Pointer error)

public static final String dbName="notesDb"; public static final Integer DB_version=1;  public static final String key_id="id"; public static final String key_title="title"; public static final String key_subject="subject";  public static final String Table_notes="notes";  public DbNotes(Context context) {     super(context, dbName, null, DB_version); }  @Override public void onCreate(SQLiteDatabase db) {     String create_table="create table "+Table_notes+"("+key_id+" Integer primary key,"+key_title+"  varchar(30), "+key_subject+" varchar(50)) ";     db.execSQL(create_table); }  public Note getNoteByID(int id){     SQLiteDatabase db=this.getReadableDatabase();     String selectQuery="SELECT * FROM "+Table_notes+" WHERE id="+id;     Cursor cursor=db.rawQuery(selectQuery,null);      Note note=null;     if (cursor.moveToFirst()){         String title=cursor.getString(cursor.getColumnIndex(key_title));         String subject=cursor.getString(cursor.getColumnIndex(key_subject));         int id_item=cursor.getInt(cursor.getColumnIndex(key_id));         note=new Note(title,subject,id_item);     }     return note; }   logcat message:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.ebda3.notes.Note.getTitle()' on a null object reference


Extra dash inserted by listings package in text mode

The code below is rendered to this:                location/- counter.   Code:  \documentclass[a4paper]{article} \usepackage{listings} \begin{document} \hspace{0.85\linewidth} location/counter  \end{document}   Apparently the culprit is the listings package because w/o loading it the problem disappears (with various hspace settings that push for hyphenation).  Thus my question: ?! ;)  pdflatex version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) and listings 1.6.


Proving prime $p$ divides $\binom{p}{k}$ for $k\in\{1,\ldots,p-1\}$

Prove if $p$ is a prime then $p \mid \binom pk$ for $k\in\{1,\ldots,p-1\}$  I don't really know where to begin with this one.   I can see that I have to use the fact that $p$ is prime somewhere - the same is not true for composite numbers, for example $4\nmid 6=\binom42$.  I have checked that this is true for the first few primes:    $3$ divides $\binom 31=\binom32=3$ $5$ divides both $\binom 51=\binom 54=5$ and $\binom 52=\binom 53=10$ $7$ divides $\binom71=\binom76=7$, $\binom72=\binom75=21$ and $\binom73=\binom74=35$.


He escaped several times but was finally caught. If the sentence has to be started with 'In spite of', which of the following will be correct? 1. In spite of his escaping several times, he has finally been caught. Or, 2. In spite of escaping several times, he was finally caught.  Similarly, which is grammatically more correct? 'In spite of his being poor, he was happy.' or 'In spite of being poor, he was happy.'


Getting a List of Currently Available Roles on a WordPress Site?

When writing WordPress plugins there is often a need to set up options for which roles on the site have access to certain functionality or content. To do this a plugin dev needs to fetch the list of roles that exist on the site to use in the option. Because custom roles can be created we cannot assume the default roles are the only ones available.  What is the best way to fetch the list?


Why are questions with obvious answers often upvoted?

To me a good question shows some level of research done before asking the question. However, I have noticed that naive questions where the answer is obvious to the vast majority of us, quickly become "Hot Questions" when in reality, if the questioner had done a little bit of reading, and research on their own, would quickly find the answer on their own.  I understand that questions with obvious answers are OK on Stack Exchange. My qualm is that these questions seem to show little research effort and are still highly upvoted;  Example 1:   Example 2:


Is there any other fuel to power my ship?

I'm stuck on a astriod and there is no oxygen so I die really fast I can't mine fast enough help.I've tried coal but I don't have enough.


Does any nonempty open set in $\mathbb{R}^n$ contains a point with rational coordinates?

I would like to determine whether any nonempty open set in $\mathbb{R}^n$ contains a point with rational coordinates. The answer to this question seems to be confirmative because $\mathbb{Q}^n$ is dense in $\mathbb{R}^n$. But I don't know how to write down a proof. What I have known is that any nonempty open set cannot be finite. Help, please. Thank you.


I'm trying to trouble shoot my boot process by using bootchart. I installed using sudo apt-get install bootchart and rebooted the computer - but, though the folder /var/log/bootchart exists, it is empty.  I have seen  thread that answers a similar question as well as  that describes exactly my problem, but both posts are over a year old and I thought that I'd give it another try - maybe I have a different underlying problem than the other posters.  I'm using Ubuntu 16.04 LTS.


What happened to the UserId autofill for Data Explorer?

I noticed recently that when I login to data.SE, the UserId parameter no longer works as advertised:     The ##UserId## parameter is treated specially for users who are logged in. If they have an account on the target site that shares the email used in their Data Explorer account, their user ID on that site will be automatically populated.    Is this by design, or a regression due to other changes?


How to change charset of my website to utf8?

My database communicates incorrectly with my page coded in php. First just some of the special characters displayed incorrectly, but when I applied mysqli_set_charset for my connection and default latin1 was overridden to correct utf8, my problem seemed just to change, but it wasn't solved: whenever I sent a text to database, it ended just before the first non-ASCII character. I searched more and found out that to state the encoding in a meta tag is not enough, that I must use headers. At first, I included header('Content-Type: text/html; charset=utf-8'); statement to the top of some of my pages. Not the texts taken from or inserted into database are correct, but on the rest of the page all special characters display like this: �  Also, having the header function called in every file is not very practical. I'm a beginner with headers, so I don't know how to apply this settings globally. I know .htaccess file can be used for this and my host claims to support it, so I started experimenting with it. I tried all the options suggested , but nothing changed.  I guess both problems have the same cause: the files I get from the server are in a different charset (I don't have a proof, but the server seem to prefer latin). So how to tell the server I want them in utf8?  Settings as read by apache_request_headers (the important fields):  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 ACCEPT-LANGUAGE: cs,en-us;q=0.7,en;q=0.3 ACCEPT-ENCODING: gzip, deflate   Only  sees some informations about charsets (and it varies in the languages):  Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7 Accept-Language: de,en;q=0.7,en-us;q=0.3   Here is my .htaccess file:  <FilesMatch ".(html|htm|js|css|php)$"> FileETag None <ifModule mod_headers.c> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" AddCharset UTF-8 .php </ifModule> </FilesMatch>   Instead of "AddCharset UTF-8 .php" I used alternatives too, but nothing worked. But I'm a beginner, so there might be some mistake.  If I need something completely different, please guide me. Someone suggested  might help, but here I'm lost even more than with the HTTP headers.  EDIT: I can't see my answer in the linked question. Yes, it guided me to php.ini, but I got only more subquestions, not answers (anything listed there don't work for me).  First, the php.ini file for my server is stored in the part of server I can't access. So I tried to create my own php.ini file in hope it will work. It consists of chunks of code I found elsewhere (I can't confess I understand it):  default_charset = "utf-8"; AddDefaultCharset UTF-8;  [iconv] iconv.input_encoding = utf-8; iconv.internal_encoding = utf-8; iconv.output_encoding = utf-8;  exif.encode_unicode = utf-8;   Again, no joy here. What's wrong?


How to install all updates without Internet?

I have Windows 7 Home Premium without internet access.  Is there a way I can download and install all of the updates that I would normally have gotten through Windows Update?  I can download from another machine and transfer using a USB drive, but I can't download anything locally (otherwise I'd use Windows Update).  The machine I can connect to the internet with is a Mac, not Windows.  So I can't use any Windows-specific software.


How to identify the main process of a program?

I'm currently trying to create a small program that allows you to adjust the audio volume for each app that's currently running (just like the windows audio mixer). Identifying the process is done via the process id, but the problem is that some apps, like Google Chrome, use multiple processes (one for each tab) with the same name. I don't really know how to identify the main process, "Google Chrome" in this case. Currently I'm just getting the process id of each Chrome tab, instead of the program itself.   So, Is there a way to identify the main/parent process of a program?


Find the decomposition of the following matrix into two level unitary matrices:  $$ \frac{1}{2} \begin{pmatrix} 1 & 1 & 1 & 1\\ 1 & i & -1 & -i\\ 1 & -1 & 1 & -1\\ 1 & -i & -1 & i\\ \end{pmatrix} $$


Chromium screen refresh problem after wakeup from sleep

I have been using chromium and this laptop for more than 4 years and never faced this problem earlier. All service packs are up to date and current OS version is 20.04. Problem started happening around two months back on 18.04 and updating operating system did not help either. After closing the lid of the laptop, when I start the laptop again, chromium fails to refresh the screen. All I get is grainy screen. Moving mouse just repaints area underneath, but switching tabs or switching to different application all together does not force refresh. Only for chromium, screen looks like . All other applications work normally. Basically, after waking up the laptop, I have restart chromium. No other application is facing this problem. If screen saver kicks in and I log in again, I don't face this problem. Only after closing the laptop lid and only for chromium. Upgrading to 20.04 from 18.04 did not help either. lspci command reports graphics card as Intel Corporation HD Graphics 620 (rev 02)


output a variable value using echo command

I want to output number of lines in text file.So I am using echo command but I am getting filename along with number of lines when I run the following code:  echo "$page" > t total="$(wc -l t)" echo "$total"   Output:     162 t  Note: Number of lines in file "t" are 162 only.


What does Nietzsche mean when he says "God is dead"?

What does German Philosopher Nietzsche mean when he says : "God is dead"? In one of the books of an Indian Mystic Osho, I read this reply from Osho: "Nietzsche is wrong because God has never been born". What is Nietzsche trying to imply from his statement?  Does Nietzsche also deny spirituality -- the idea of eternal soul, meditation, enlightenment (in the sense of Buddhism and Hinduism)? Some of your comments imply that he denies. But I have read a story (that sort of contradicts these implications, I think) about him in a book: One night he was found dancing on a street in Germany at night keeping a book on his head. Asked what he was really doing, he said: "I read many books in life. But throughout this long journey, I never encountered a book as beautiful as Geeta. After I read this book, I could not hide my happiness." As someone with some knowledge in Hinduism, I can tell that Geeta is perhaps the most important scripture in the religion.   I however have no references for this story as I read it long time back, and don't remember the book where I found it. If this really was a truth, Nietzsche certainly cannot deny spiritualism.


How do you change the MoTD for a Minecraft Server?

All I want to do is post my Minecraft server on the main Minecraft Servers website but I don't really know what to do with the code they gave me. Please help?


Few days back I installed Scilab by command line  sudo apt-get install scilab   but it installed version 5.5.0 instead of the current one. How can I install the latest one from command line?


I've read numerous posts about people having problems with viewWillAppear when you do not create your view hierarchy just right. My problem is I can't figure out what that means.  If I create a RootViewController and call addSubView on that controller, I would expect the added view(s) to be wired up for viewWillAppear events.   Does anyone have an example of a complex programmatic view hierarchy that successfully receives viewWillAppear events at every level?  Apple's Docs state:     Warning: If the view belonging to a view controller is added to a view hierarchy directly, the view controller will not receive this message. If you insert or add a view to the view hierarchy, and it has a view controller, you should send the associated view controller this message directly. Failing to send the view controller this message will prevent any associated animation from being displayed.   The problem is that they don't describe how to do this. What does "directly" mean? How do you "indirectly" add a view?  I am fairly new to Cocoa and iPhone so it would be nice if there were useful examples from Apple besides the basic Hello World crap.


Choosing between LM and GLM for a log-transformed response variable

I'm trying to understand the philosophy behind using a Generalized Linear Model (GLM) vs a Linear Model (LM). I've created an example data set below where:  $$\log(y) = x + \varepsilon $$   The example does not have the error $\varepsilon$ as a function of the magnitude of $y$, so I would assume that a linear model of the log-transformed y would be the best. In the example below, this is indeed the case (I think) - since the AIC of the LM on the log-transformed data is lowest. The AIC of the Gamma distribution GLM with a log-link function has a lower sum of squares (SS), but the additional degrees of freedom result in a slightly higher AIC. I was surprised that the Gaussian distribution AIC is so much higher (even though the SS is the lowest of the models).   I am hoping to get some advice on when one should approach GLM models - i.e. is there something I should look for in my LM model fit residuals to tell me that another distribution is more appropriate? Also, how should one proceed in selecting an appropriate distribution family.   Many thanks in advance for your help.  [EDIT]: I have now adjusted the summary statistics so that the SS of the log-transformed linear model is comparable to the GLM models with the log-link function. A graph of the statistics is now shown.  Example  set.seed(1111) n <- 1000 y <- rnorm(n, mean=0, sd=1) y <- exp(y) hist(y, n=20) hist(log(y), n=20)  x <- log(y) - rnorm(n, mean=0, sd=1) hist(x, n=20)  df  <- data.frame(y=y, x=x) df2 <- data.frame(x=seq(from=min(df$x), to=max(df$x),,100))   #models mod.name <- "LM" assign(mod.name, lm(y ~ x, df)) summary(get(mod.name)) plot(y ~ x, df) lines(predict(get(mod.name), newdata=df2) ~ df2$x, col=2)  mod.name <- "LOG.LM" assign(mod.name, lm(log(y) ~ x, df)) summary(get(mod.name)) plot(y ~ x, df) lines(exp(predict(get(mod.name), newdata=df2)) ~ df2$x, col=2)  mod.name <- "LOG.GAUSS.GLM" assign(mod.name, glm(y ~ x, df, family=gaussian(link="log"))) summary(get(mod.name)) plot(y ~ x, df) lines(predict(get(mod.name), newdata=df2, type="response") ~ df2$x, col=2)  mod.name <- "LOG.GAMMA.GLM" assign(mod.name, glm(y ~ x, df, family=Gamma(link="log"))) summary(get(mod.name)) plot(y ~ x, df) lines(predict(get(mod.name), newdata=df2, type="response") ~ df2$x, col=2)  #Results model.names <- list("LM", "LOG.LM", "LOG.GAUSS.GLM", "LOG.GAMMA.GLM")  plot(y ~ x, df, log="y", pch=".", cex=3, col=8) lines(predict(LM, newdata=df2) ~ df2$x, col=1, lwd=2) lines(exp(predict(LOG.LM, newdata=df2)) ~ df2$x, col=2, lwd=2) lines(predict(LOG.GAUSS.GLM, newdata=df2, type="response") ~ df2$x, col=3, lwd=2) lines(predict(LOG.GAMMA.GLM, newdata=df2, type="response") ~ df2$x, col=4, lwd=2) legend("topleft", legend=model.names, col=1:4, lwd=2, bty="n")   res.AIC <- as.matrix(     data.frame(         LM=AIC(LM),         LOG.LM=AIC(LOG.LM),         LOG.GAUSS.GLM=AIC(LOG.GAUSS.GLM),         LOG.GAMMA.GLM=AIC(LOG.GAMMA.GLM)     ) )  res.SS <- as.matrix(     data.frame(         LM=sum((predict(LM)-y)^2),         LOG.LM=sum((exp(predict(LOG.LM))-y)^2),         LOG.GAUSS.GLM=sum((predict(LOG.GAUSS.GLM, type="response")-y)^2),         LOG.GAMMA.GLM=sum((predict(LOG.GAMMA.GLM, type="response")-y)^2)     ) )  res.RMS <- as.matrix(     data.frame(         LM=sqrt(mean((predict(LM)-y)^2)),         LOG.LM=sqrt(mean((exp(predict(LOG.LM))-y)^2)),         LOG.GAUSS.GLM=sqrt(mean((predict(LOG.GAUSS.GLM, type="response")-y)^2)),         LOG.GAMMA.GLM=sqrt(mean((predict(LOG.GAMMA.GLM, type="response")-y)^2))     ) )  png("stats.png", height=7, width=10, units="in", res=300) #x11(height=7, width=10) par(mar=c(10,5,2,1), mfcol=c(1,3), cex=1, ps=12) barplot(res.AIC, main="AIC", las=2) barplot(res.SS, main="SS", las=2) barplot(res.RMS, main="RMS", las=2) dev.off()


Difference between space-like and time-like singularities

See the Wikipedia article on .  It says that  A singularity in solutions of the Einstein field equations is one of two things:  1. a situation where matter is forced to be compressed to a point (a space-like singularity)  2. a situation where certain light rays come from a region with infinite curvature (a time-like singularity)  If matter is forced to be compressed to a point, why is this called a space-like singularity?  If certain light rays come from a region with infinite curvature, why is this called a time-like singularity?


Should I purchase rental car insurance? What protection does my credit card provide?

We just arrived in Hawaii this afternoon, and when I went to pick up the rental car, I discovered I hadn't done my homework with regard to the insurance options.  I recall that my credit card will provide some level of insurance when I use it to rent a car, but when I mentioned it to the Customer Services Representative, he informed me that my credit card only covers collision, and he suggested I purchase liability insurance from the rental agency.  For the future, what information do I need to collect in order to make an informed decision about what insurance policies I should (or should not) purchase when I rent a car?


I've been doing some practice questions in the textbook for an upcoming predicate calculus lecture and I think I've managed to get A and B (possibly C) correct but I am clueless on how I can manage D and E.   For A I got: ∃x(R(x)∧¬B)  For B I got: ∀x(¬R(x)∧B)  For C I got: ∃x(R(x)∧(x=y))   - Not sure if this is even remotely correct    R(X) : ”X is rich”  X = Y : ”X equals Y”  B : ”Bill Gates”  a) Someone besides Bill Gates is rich.  b) Bill Gates alone is rich.  c) At least two people are rich.  d) Exactly one person is rich.  e) Exactly two persons are rich.  The universe of discourse is the set of all people.


I have a big huge file e.g  chr1    1    G    300 chr1    2    A    500 chr1    3    C    200 chr4    1    T    35 chr4    2    G    400 chr4    3    C    435 chr3    1    G    300 chr3    2    A    500 chr3    3    C    200 chr3    1    T    35 chr3    2    G    400 chr6    3    C    435 chr6    4    A    223 chr6    5    T    400 chr6    6    G    300   I to split the file in multiple files by grouping the first column values e.g   File1.txt  chr1 1 G 300 chr1 2 A 500 chr1 3 C 200   file 3.txt  chr3 1 G 300 chr3 2 A 500 chr3 3 C 200 chr3 1 T 35 chr3 2 G 400


Unable to get 2560 X 1440 resolution to work

Problem -   I can't get 2560x1440  high resolution to work on my Dell 27" U2713HM Monitor.  Details -   I have a Dell E6520 LAPTOP running 64 bit Windows 8. The highest resolution on the laptop is 1920x1080.  It shows 2 display adapters under Device Manager   Intel(R) HD Graphics 3000 NVIDIA NVS 4200M   I checked to make sure drivers for both are latest. In my task tray I have both Intel graphics and NVIDIA managers.  I bought a Dell 27" U2713HM Monitor to use 2560 X 1440 resolution.  Installed the Dell Display manager, latest drivers etc.  Connected monitor using Dual Link DVI through my docking station.  I just cant get the 2560 X 1440 high resolution.  It only gives me 1920 X 1080 on the monitor. I even tried the HDMI connection.  Is this because my laptop display card has max resolution of 1920 X 1080?   So in order to use a certain max resolution, the display card in my laptop needs to support it?  If I see 2 display adaptors in Device manager, does it mean I have 2 display cards?  How can I get the Dell 27" U2713HM Monitor 2560 X 1440 resolution to work?


Odd-dimensional complex skew-symmetric matrix has eigenvalue $0$

There is the standard proof using $$\det(A)=\det( A^{T} ) = \det(-A)=(-1)^n \det(A)$$  I would like a proof that avoids this. Specifically, there is the proof that for $A$ a $\bf{real} $ matrix, the transpose is the same as the adjoint, which gives (using the complex inner product) $\lambda \|x\|^2 =\langle  Ax, x \rangle= \langle  x, -Ax \rangle=-\overline{\lambda } \|x\|^{2}$, so any eigenvalue is purely imaginary. Then we conclude that, since any odd-dimensional real matrix has a real eigenvalue, that eigenvalue must be zero.  This argument doesn't work for a general complex skew-symmetric matrix.  Is there something I'm missing, is there a way to modify this argument to get that zero is an eigenvalue for the complex case?  Also, can somebody please give a geometric reason why odd-dimensional skew-symmetric matrices have zero determinant (equiv., a zero eigenvalue)?  Thanks!


I keep recieving a bus error when trying to write to my output file. my binary function converts incoming text, from the input file, to binary and puts it in the output file. But I keep getting this bus error when I run, and I do not know why!   #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h>  #define MAXLEN 255 #define FLAG 1 #define INPUT 2 #define OUTPUT 3  int binary(unsigned char x){ //, int argc, char* argv[]){   FILE* out;    unsigned char i, n = (sizeof(x) * CHAR_BIT) -1;   int t;   for(i=0; i<= n; i++){      fprintf(out, "%d",(x >> (n-i) & 1));   }   fprintf(out, " \n"); }  int main(int argc, char *argv[]){    FILE *in, *out;   char instring[MAXLEN];   const char *p;    in = fopen(argv[INPUT], "r");   if(in == NULL){     printf("Error: This File is Empty.\n");     exit(1);   }else{      out = fopen(argv[OUTPUT], "w");    if(strcmp(argv[FLAG], "-b") == 0){     fgets(instring, MAXLEN, in);      for(p = instring; *p != '\0'; p++){       // fprintf(out, "%d", binary(*p));       binary(*p);   }  }    else    if(strcmp(argv[FLAG], "-t") == 0){    }     else{     printf("Error: Flag Not Recognized.\n");     return 0;    }  }   fclose(in);   fclose(out); }


How to decrypt Rabin message when p=q and you have the roots from Tonelli-Shanks


Displaying multiple fields as labels if one field is null in QGIS?

I am having some issues trying to show multiple fields for a single label in QGIS. In QGIS2.6, attempting to display labels for a feature consisting of multiple fields results in an empty label if one of the fields is null. So for example, in the label expression dialog:  concat("Temp Site",'\n',"Notes",'\n',"Function")   will function normally unless one of the fields is null, then it results in no label being shown. Using the '||' operator instead in the expression dialog also results in the same behaviour:  "Temp Site" || '\n'  ||  "Notes" || '\n'  ||  "Function"   Is there a way to display the labels even if one of the fields is null?


Is it true that $k[\alpha,\beta]=k(\alpha,\beta)$, $\alpha$ and $\beta$ are algebraic over $k$.

Is there a generalization to ?  Namely, if $k \subset K$ are fields and $\alpha, \beta \in K$ are algebraic over $k$, is it true that $k[\alpha,\beta]=k(\alpha,\beta)$?


What are the advantages of IntelliJ over Eclipse?

I have been working with Eclipse for quite some time and recently got several recommendations to use IntelliJ.  As I just saw that questions of the format of "Which IDE is better?" are frowned upon (not without a good reason) - I wanted to know objectively what are the advantages of IntelliJ over Eclipse.  I know what Eclipse does and frankly I'm not missing anything. But this is exactly what I said about Visual Studio 2005 (C#) before starting to work on Eclipse - and now I can't even write a Hello World in VS without getting annoyed ...   I'll narrow the question down to the world of Java SE and Java EE only. No Android, no GUI.   I'm looking for: What does IntelliJ give me that Eclipse lacks? What does Eclipse give me that IntelliJ lacks?  Try to be objective, and please only answer if you had substantial experience with both tools.   Thanks.  Edit: The scope of work I'm looking for is both for working on private projects and as part of a team of several developers working on the same product. But if I have to choose - I'll focus on teams only. JUnit is a crucial part of the work (personally I started working in TDD several months ago - but lets not open that). I'll also be interested to know about ANT/Maven related benefits if there are - although my prime motives are to know if I can benefit from things like: Quicker development (e.g. code generation, templates, auto complete etc.), Easier AUT, simpler Java EE application deployment during development (for UT) etc.


Can't believe that I have to ask this question, but...  How to I disable the screen saver on my 2014 MacBook Pro, running MacOS Sierra 10.12?  I have a need occasionally to keep the screen display on, but I might not use it for 20 minutes at a time. I want to disable the screen saver, but the button to adjust the time (I presume it has a 'None' option) is disabled.    How can I enable that dropdown, in order to change the 'Start after' time? Or is there somewhere else I should change it?  I know that I can use hot corners to disable screen saver, but that's too hacky - if I forget to put the cursor in the corner, it doesn't do it, and I only know when the screen saver comes on - which is frustrating.


How do I calculate the CR of a monster that spends their turns healing?

My question is about magic and monster CR. I was building a CR 10 Cleric with capabilities of healing himself and others, but I don't see any rules about calculating CR for a monster that expends his action healing, so I made a guess and ended up with a CR 10 guy. This is the statblock:   AC 16 (Scale mail)  HP 188 (25d8+75)  Speed 30 ft. STR 14 (+2) DEX   12 (+1) CON 16 (+3) INT 10 (+0) WIS 18 (+4) CHA 12 (+1) Damage resistance Lightning Saving throws Wisdom +8, Charisma +5 Legendary resistance (1/day) Magic resistance.  Brute.  Spellcasting. 10th Spellcaster, Wisdom (DC 16, to hit +8)   Cantrips (at will): Light, Sacred Flame, Thaumaturgy 1st level (4 slots): False Life, Cure Wounds, Detect Magic, Sanctuary 2nd level (3 slots): Hold person, Spirit Weapon, Prayer of Healing 3rd level (3 slots): Magic Circle, Spirit Guardians, Dispel Magic 4th level (3 slots): Banishment, Guardian of Faith, Freedom of Movement 5th level (2 slots): Flame Strike, Mass Cure Wounds   Actions   Multiattack. 2 attacks Quarterstaff. Melee weapon attack, +6 to hit, reach 5 ft., one target. Hit: 9 (2d6+2) Breath Weapon (Recharge 5-6) 30 ft line, 35 (10d6) Lighting damage, Dex saving throw (DC 15)    Normally she has pre-cast Spirit Guardians, Guardian of Faith and 4th level False Life (21 hp). In combat she casts Flame Strike on the first round, Breath Weapon on the second round, recasts Guardian of Faith (it's probably spent at this point).  That's my idea of her first 3 rounds and there's actually no room for healing. Of course on later rounds she will start to spam heals, specially Prayer of Healing and Mass Cure Wounds will make a difference as long as she is not alone in the encounter.  I can't come up with a simple answer to this.  Maybe I should change her rating based on the group she's into, or recalculate the effective hit points of each monster in the encounter to match the Cleric healing. Giving her increased effective hitpoints seems odd to me, because she can't "heal and attack", therefore she's just delaying the inevitable.


I have posted a similar question before, but this one is a little modified.  I have a table with 4 columns as shown below.   ITEMCHARGE     CPT4       EFF_DATE    CPT4MOD 326.8         29075       20101204    GO 326.8         29075       20110104    GO 326.8         29075       20110204    GO 326.8         29075       20110406    GO 352.69        29075       20090611    GO 352.69        29075       20090917    GO 352.69        29075       20100614    GO 352.69        29075       20100722    GO    Now, if CPT4 and CPT4MOD match, I need to keep the rows with distinct ITEMCHARGE (with latest EFF_DATE). The output should be like below:      ITEMCHARGE  CPT4    EFF_DATE    CPT4MOD        326.8    29075   20110406    GO        352.69   29075   20100722    GO   There are 2 distinct ITEMCHARGE for the same CPT4 and CPT4MOD. So we took the latest EFF_DATE row for both of them. It would be very helpful If I can get a linq (with lamda) and SQL version for this.


Connecting WNDR3700 Netgear router as a switch

I recently moved over to Verizon FIOS and I must use their router. I want to try to use my old Netgear router as a switch (no wireless) for additional ports.  I connected the main router into a LAN port on the Netgear switch and then plugged a computer into a LAN port and the computer was able to get on the internet.  I now want to get into the settings of the Netgear router, which has DD-WRT firmware on it. I can't figure out how to access the settings.  www.routerlogin.net doesn't work.  I tried looking at IP addresses on my Verizon router to see what is connected and tried putting the IP address of every Ethernet connection into my address bar, hoping that one is my router. However nothing worked.  Any ideas?


What is the proper way of creating installation media from Ubuntu iso?

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


How does iptables MASQUERADE work on the incoming side?

I'm still reading the iptables manual page and other documents and  digging around questions and their answers.  This is the problem which arises. When we setup the NAT we use a POSTROUTING rule such as this:  iptables -A POSTROUTING -t nat -j MASQUERADE -o eth0    It seems when a packet hits this chain then an internal host needs to initialize some connection with the internet right? Incoming traffic will route through the same path without hitting the chain? Am I right on this?


How can I avoid my MacBook Pro giving me minor shocks?

The aluminum Macbook Pro gives a mild shock when connected to a wall socket and charging. It only happens when I'm, for example, not wearing shoes or slippers and my feet are resting on the ground (i.e. by body is acting as a conductor). I contacted apple and I was told to perform the following steps:  Shutdown  hold ⇧+ctrl+⌥+power for 10 seconds  wait 30 seconds then hold ⇧+ctrl+⌥+R+power (Let the Mac reboot three times with that apple tone, then let go. The Mac reboots again.)   This did not fix the problem and I was not told what these steps were supposed to do. They have asked me to purchase a three pin version of the adapter and see if that fixes my problem. My last MacBook Pro was giving pretty severe jolts towards end of life. Hence a bit concerned. Question  Has anyone here experienced such a problem?  Is anyone aware of what the above sequence of steps supposed to do?  Also, will this damage the Macbook in some way?


qqnorm(x) plot(qnorm(seq(80)/81),sort(x))   Finding that the plots produced by the commands above are slightly different from each other, I tried this:  qqnorm(qnorm(seq(80)/81))   I got a slightly less than perfect line.  I'd have tried regressing the result of qnorm(seq(80)/81) on the variable that was plotted on the $x$-axis and plotting residuals against the predictor, expecting to see some graceful curve, but for the fact that I don't know what to use as the predictor.  Possibly such a residual plot would reveal more than just the graceful S-shaped thing I'd anticipate.  So my question is this: if the thing on the $x$-axis in the plot produced by qqnorm is not what I get from qnorm(seq(80)/81) (and what I did shows that indeed it is not), then what is it?


what is the name of this parts of speech adjective + preposition

what is the name of this parts of speech? Adjective + preposition and how can we use "availabvle of"


trying to install Astromenace on my linux mint 14 cinnamon pc

so i am following this tutorial as it is the only one i can find and any that i can find are the same as this one:    but when i type in the first command i gives me this  myname@myname-System-Product-Name ~ $ sudo wget -q -O- http://archive.getdeb.net/getdeb-archive.key | apt-key add - [sudo] password for myname: ERROR: This command can only be used by root.   i really want to play this game and any help would be greate


I have been a part of this site for a number of years now and was thinking to myself the other day... Why exactly do I post here? This is not a forum, extended discussions are actively discouraged.   I have spent years adding content to this site with not a hint of any monetary value for all the content I have provided. Moderators don't even get a salary or a stipend for all there efforts, and still there is a company built on the work of other people, who for all there efforts go unpaid?  At least, YouTube has given some content creators money. There is still ways to monetize your YouTube efforts, but here there are none.  Why cannot a couple of dollars be given to good answer / question or some sort of monetary reward for hitting certain reps, the company makes money, why shouldn't we?


Expose Report/Dashboard data into Public Sites

Is it possible to expose report or dashboard data embedded into visualforce page and place it in Public force.com site? If this is not possible then  please provide me an example to build a custom report using analytics api/d3js/google charts and place it in public force.com site


How can I know which radio button is selected via jQuery?

I have two radio buttons and want to post the value of the selected one. How can I get the value with jQuery?  I can get all of them like this:  $("form :radio")   How do I know which one is selected?


Is there a geometrical interpretation of a spinor?

To give a geometrical interpretation of a vector one can associate a vector with two points in space $(A,B)$. Any vector can be thought of as an equivalence class of pairs of points.   Like wise a symmetric 2-tensor can be thought of in terms of a D-simplex in D dimensions. Which is given by D+1 points.   Is there any geometrical interpretation of a spinor in terms of geometrical objects in D dimensional space?  I'm guessing not since D dimensional space as we know it has symmetry group O(D) which can't incorporate spinors.   The only way I can sort of visualise a spinor space, is to think of an white object with black dots, and when you rotate it in your hand 360 degrees the black dots have changed white and vice versa.  Edit: Well I just realised that one could use twistor space, in which case you do have a representation but that exists in 8 dimensions (or 4 complex dimensions).


How to evaluate $\lim\limits_{n\to+\infty} \prod\limits_{k=1}^n (1+k/n^2)$?

I've got a limit which puzzle me several days. The question is  $$ \lim_{n\to+\infty} \prod_{k=1}^n\left(1+\frac{k}{n^2}\right).$$  Can you help me? Thank you in advance


A question on applying Residue Theorem to definite real integral

I came across  and even though it was not my own question it intrigued me so much that I tried to solve it:     Using the Residue Theorem find       $$\int_0^\infty \frac{x \sin(x)}{x^2+a^2} dx$$   But I got stuck and questions came up. Here are my thoughts:  First, I think the idea of applying the residue theorem would be to define a curve that is the boundary of one half of a disk centered at the origin. Then one computes the integral of $f$ around this half disk using the residue theorem. Finally, one uses this result by taking the limit of the radius towards infinity to find the integral in the question.     Do I understand the idea of how to approach this problem correctly?   Here is how I tried to implement this:  First, we note that the poles are at $\pm ia$. So we want to choose the radius of the disk bigger than $a$. For example, $2a$ should do.   Then the curves that together form the contour (CCW) are:  $$ \gamma_1(t) = -2a + 2at, t \in [0,1]$$ and $$ \gamma_2(t) = 2a e^{it}, t \in [0,\pi]$$  Then   $$ \oint_C f(z) dz = 2 \pi i \text{Res}_f (ia) = 2 \pi i \lim_{z \to ia} (z - ia) \frac{z \sin(z)}{z^2+a^2} = 2 \pi i \lim_{z \to ia}  \frac{z \sin(z)}{(z+ia)} =  \pi i { \sin(ia) }$$  Then  $$\begin{align}  \int_{-2a}^{2a}f(z) dz &=  \oint_C f(z) dz - \oint_{\gamma_2} f(z) dz  \\ &=  \pi i { \sin(ia) } - \int_0^\pi {\gamma_2(t) \sin (\gamma_2(t)) \over \gamma_2^2(t) + a^2} 2ai e^{it} dt\\ &=\pi i { \sin(ia) } - \int_0^\pi {2a e^{it} \sin (2a e^{it}) \over 4a^2 e^{2it} + a^2} 2ai e^{it} dt\\ &=\pi i { \sin(ia) } - \int_0^\pi {2a e^{it} \sin (2a e^{it}) \over (2a e^{it} + ia)(2ae^{it} - ia)} 2ai e^{it} dt \end{align}$$  And this is where I got stuck. I can't calculate $ \int_0^\pi {2a e^{it} \sin (2a e^{it}) \over (2a e^{it} + ia)(2ae^{it} - ia)} 2ai e^{it} dt$. This integral seems impossible to solve.     Did I make a mistake in the approach? Or did I miscalculate somewhere?   Or is there a trick to solve integrals like this one?


How do I fix Null Pointer Exception when I have already assigned value

I am writing unit testing for a function using roboelectric and facing null pointer exception but I have already assigned the variable. I'm pretty new to this so if any mistake please pardon me.  @Before public void setup() {      intent = new Intent(context, Xyz.class);     intent.putExtra("abc", "abc");      xyz = Robolectric.buildActivity(Xyz.class, intent)             .create().start().get(); }  @Test public void onConfigurationChanged() {     int currentOrientation = xyz.getRequestedOrientation();     RelativeLayouot gifframe = xyz.findViewById(R.id.gif_frame);     assertNotNull(gifframe);     assertEquals(gifframe.getVisibility(), VISIBLE);     } }   I expect thee gifframe to be able to get the visibility but gifframe is returning a null value. everywhere I searched a solution to this is to assign the value before calling it. I have assigned the value in the previous line.


Is it possible to legally visit uninhabited islands in the Pacific for a couple of days/weeks?

Can you sail to any island, and anchor your boat there, and use the island for food?


Proof for Dirichlet Function and discontinuous

I think I don't understand how it works.. I found some proofs.. okay, let's see:  Well I'd like to show that the function,  $$f(x) = \begin{cases} 0 & x \not\in \mathbb{Q}\\ 1 & x \in \mathbb{Q} \end{cases}$$  is discontinuous.   Now with epsilon-delta-definition:  Let's choose an $\varepsilon < 1$, for example $\varepsilon := 1/2$. And: $\delta > 0$ .  I have to show that $|f(x) - f(x_0)| > \varepsilon$  So if $x_0 \not\in \mathbb{Q}$ let $x$ be rational in $(x_0- \delta, x_0+ \delta)$  if $x_0 \in \mathbb{Q}$ let $x$ be irrational in $(x_0- \delta, x_0 + \delta)$  In the end it is $|f(x) - f(x_0)| = 1 > 1/2$.  Why is $|f(x) - f(x_0)| = 1 $ ?


What deleted answers count toward the answer ban?

According to :     Yes, ... deleted answers count towards an automatic ban.   Now, this is not very specific, and I suspect that is intentional. However there are certain cases where I don't think it would be fair for deletion to count against the answerer, and would love to see some clarification / guidance (without revealing any specific details about the algorithm):   answers that are deleted because the question was deleted. . This typically will be through no fault of the answerer or any issues with the quality of their answer (though one could argue that a question that gets deleted should not have been answered - but then you get into whether the question was self-deleted, was it down-voted first, or did the community/moderators delete it). answers that are self-deleted. For example, if I answer a post and then realize someone beat me to the punch with an identical answer, or perhaps later someone posts a better answer. This is peripheral to  and again is not necessarily a quality issue with the answer or the author. In fact, we probably want to encourage, rather than punish, behavior that cleans up redundant or lower-quality answers.   In either case, I would hope that just the mere fact that an answer was deleted does not count against a user. In these scenarios it would be unfair, IMHO, unless the answer was down-voted or maybe flagged prior to deletion (meaning there was a problem with the answer, according to a user other than the author).


You're probably already thinking "silly person" but hear me out.  Compactness: Every open cover (of a set $A$) has a finite subcover (this means every cover $\{U_\alpha\}_{\alpha\in I}$ where $A\subset\bigcup_{\alpha\in I}U_\alpha$ or $A=\bigcup_{\alpha\in I}U_\alpha$ where the $U_\alpha$ are open with respect to the subset of topology)  This means EVERY open cover, there's a finite bunch of open sets which cover it. So it's sort of like size of a set, it's "bounded" because you can always cover it finitely. I like that.  But then consider the set $(0,1)$ (or any open interval) on $\mathbb{R}$ this is bounded, it isn't a "big" set, but it isn't compact (yet [0,1] is)  So my question is what does compactness actually try and do? "Oh great the set is compact" what does that mean?   Can someone describe it qualitatively  By the way I have read the wikipedia page, I've done some research. Compactness seems to only be useful for some proves but even then the proofs are not "and with this property we can do this" it's more like a "clever trick"


Why does "UPDATE Users SET Password=? WHERE Username=?" give a syntax error?

Using Visual Studio 2012  I had this SQL for updating an access database with correct naming of fields/parameters/etc  str = "UPDATE Users SET Password=? WHERE Username=?"   And I received a "syntax error in SQL statement" error.  Then, through some tinkering, I made this, which works:  str = "UPDATE Users SET Passwor=? WHERE Username=?"   My question is why will it not work if I use "Password" but will with "Passwor". I tried with several other fields and they all seem to work except "Password". Can someone explain this to me?


I know some other text editors like Notepad++ enable split pane to edit to files side by side.  Is there any way I can add this functionality to Gedit?


On which site should I ask about HTML/CSS questions?

I have a question: I want know how to check out other's CSS code, for example, . (Yes, it is homework.)  Which Stack Exchange site should I ask on?


Permutation problem - How many permutations are there such that no two numbers are immediately adjecent?

Consider the set of numbers 1,1,2,2,3,3,4,4.   How many permutations are there such that no two identical numbers are immediately adjacent?


I am currently a student in a European university in the fourth year (first year of which is called "master").  On the Internet, it is said undergraduate students to refer to students in a bachelor.   But, what is the exact terminology? Do we say that a student involved in a master is a graduate student? Then how do we call someone who does have a master's degree (and involved or not in a Ph.D)?  My question may seem unclear but I try to understand the correct use of undergraduate, graduate,... in order to be able to introduce myself correctly and to understand at which level are my interlocutors.


Has relativity of simultaneity been directly observed?

I know that thought experiment about trains when a flash of light in the middle reaches the both end simultaneously for a passenger but different times for the bystander.  So were there (non-thought) experiments that directly checked this?


Best Practice - Database design for 'conditional join'

I need to create a database to store Jobs. Each Job can have 1-* Step Each step is classified as one of either Type A, B or C. Each Type has specific details and other tables that join on them so putting them into the Step table is not an option.  This is depicted in the diagram below;    In this design there is a conditional join between Step and TypeX tables. I have read around and cannot find best practices for this kind of scenario, this feels very messy to me but i can't find a way around it. What would anyone else do?