Demystification of SQL Server optimization process

We would like to see all variants of query plan considered during a query optimization by a SQL Server optimizer. SQL Server offers quite detailed insight using querytraceon options. For example QUERYTRACEON 3604, QUERYTRACEON 8615 allows us to print out MEMO structure and QUERYTRACEON 3604, QUERYTRACEON 8619 print out a list of transformation rules applied during the optimization process. That is great, however, we have several problems with trace outputs:  It seems that the MEMO structure contains only final variants of the query plan or variants that were later rewritten into the final one. Is there a way to find "unsuccessful/unpromising" query plans? The operators in MEMO do not contain a reference to SQL parts. For example, LogOp_Get operator does not contain a reference to a specific Table. The transformation rules do not contain a precise reference to MEMO operators, therefore, we can not be sure which operators were transformed by the transformation rule.  Let me show it on a more elaborated example. Let me have two artificial tables A and B: WITH x AS (         SELECT n FROM         (             VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9)         ) v(n)     ),     t1 AS     (         SELECT ones.n + 10 * tens.n + 100 * hundreds.n + 1000 * thousands.n + 10000 * tenthousands.n + 100000 * hundredthousands.n as id           FROM x ones, x tens, x hundreds, x thousands, x tenthousands, x hundredthousands     ) SELECT     CAST(id AS INT) id,      CAST(id % 9173 AS int) fkb,      CAST(id % 911 AS int) search,      LEFT('Value ' + CAST(id AS VARCHAR) + ' ' + REPLICATE('*', 1000), 1000) AS padding INTO A FROM t1;   WITH x AS (         SELECT n FROM         (             VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9)         ) v(n)     ),     t1 AS     (         SELECT ones.n + 10 * tens.n + 100 * hundreds.n + 1000 * thousands.n AS id           FROM x ones, x tens, x hundreds, x thousands            ) SELECT     CAST(id AS INT) id,     CAST(id % 901 AS INT) search,      LEFT('Value ' + CAST(id AS VARCHAR) + ' ' + REPLICATE('*', 1000), 1000) AS padding INTO B FROM t1;  Right now, I run one simple query SELECT a1.id, a1.fkb, a1.search, a1.padding FROM A a1 JOIN A a2 ON a1.fkb = a2.id WHERE a1.search = 497 AND a2.search = 1 OPTION(RECOMPILE,      MAXDOP 1,     QUERYTRACEON 3604,     QUERYTRACEON 8615)       I get quite complex output that describes MEMO structure (you may try by yourself) having 15 groups. Here is the picture, that visualizes MEMO structure using a tree.  From the tree one may observe that there were certain rules applied before the optimizer found the final query plan. For example join commute (JoinCommute), join to hash join (JNtoHS), or Enforce sort (EnforceSort). As mentioned it is possible to print out the whole set of rewriting rules applied by the optimizer using QUERYTRACEON 3604, QUERYTRACEON 8619 options. The problems:  We may find JNtoSM (Join to sort merge) rewriting rule in the 8619 list, however, the sort-merge operator is not in MEMO structure. I understand that the sort-merge was probably more costly, but why it is not in MEMO? How to know whether LogOp_Get operator in MEMO references to table A or table B? If I see rule GetToIdxScan - Get -> IdxScan in the 8619 list, how to map it to the MEMO operators?  There is a limited number of resources about this. I have read many of the Paul White blog posts about transformation rules and MEMO, however, the above questions remain unanswered. Thanks for any help.


Lets say you have a nice bowl of piping hot soup.  You use your spoon and take a sip and realize its too hot.  So you blow on it a few times and now its cooled enough that it doesnt burn your mouth.  Obviously, blowing on the liquid will reduce the temperature, but is that really what is cooling it?  Or perhaps the heat is moving to the metal spoon?  Is blowing on the liquid cooling the liquid more than the heat being transferred to the metal spoon holding the liquid?


Matrix of Linear Transformation by right multiplication

I am trying to solve the following problem:   Let $A$ be an $n\times n$ matrix, and let $V$ denote the space of $n$-dimensional row vectors. What is the matrix of the linear operator ‘‘right multiplication by $A$’’ with respect to the standard basis of $V$?  I am not sure where to begin with this problem.


killing a java process spawned by another java process

I have created a windows service in java in start of the service i have following code  mProcess = Runtime.getRuntime().exec("D:\\manager.exe");   This manager.exe spawn another java process, I can see the process in task manager as "javaw.exe".  I want to kill this process when service is stopped for this i have used the below code in stop method of service  mProcess.destroy();   But this does not work.   Note: Just as trial tried it for notepad it works fine.  So, how can get the handle to the spawned javaw.exe so that i can kill it when the service is stopped.  The question is not how to close the process from task manager but from Stop method of my service.


Proving that a plaintext is the Paillier decryption of a certain ciphertext

Assume that Alice received 100 ciphertexts encrypted with additive homomorphic encryption, say Paillier, using the same public key that belongs to Bob. Alice added all of them, and wants to know the final sum, so she sends the final result (which is still encrypted of course) to Bob so that he can decrypt it with his private key, and return the result of the sum in clear text to Alice.  How can Alice be sure that Bob didn't give her a number that doesn't match her encrypted sum?  Should I use another additively homomorphic encryption if I want ZKP?


Question about definition of Semi algebra

I am wondering if someone could help me with basic properties of semi algebra. We say that $S$ is a semi algebra of subsets of X if    $\emptyset \in S$ If $P_1$, $P_2 \in S$, then $P_1 \cap P_2 \in S$   If $P \in S$, then $X \backslash P$ can be written as a finite union of  sets from $S$.   But I am finding that sometimes it is defined using the following 3' instead of 3.  3'. If $P \in S$, then $X \backslash P$ can be written as a disjoint finite union of  sets from $S$.  My question is are these definitions equivalent? If so can someone please show me how we can obtain 3' from the first three conditions?  Thank you.


Problem with blury render.(Maybe the size?)

I have to render this:  But the render looks blurred  Maybe is because the size? Its too small maybe?


Is there a way to highlight a face in the 3D viewport if you have its UV selected?

So I know if you have a face selected in the 3D Viewport, its UV will pop up in the UV editor. What I want to know is, is there a way to highlight a face in the 3D viewport if you have its corresponding UV selected in the UV editor? Sometimes it's hard to tell where exactly the face of the UV is if it's small or if you have a lot of similarly shaped polygons/uv islands.


Pasting to Excel from Word - stop a Word new line being converted into a new cell

So I have a table in MS Word which has two columns. In the second column the text is spread on multiple lines, ie I have pressed 'Enter' to achieve this.  When I paste into Excel, it converts these separate lines into separate cells.  What I want it to do is to keep the lines in the same cell, just on different lines, ie what would happen if I were to press Alt+Enter in a cell in excel.  How would I go about this?  Edit: here's an example of my data. In word it's in a word table.  ---------------------------- | Bananas   | - yellow     | |           | - curved     | ---------------------------- | Apples    | - red/green  | |           | - round      | ----------------------------


Fastest way to convert videos (batch or single)?

I know there are a lot of questions about video encoders around here, but my question is more about workflow/efficiency.  For my day job, I need to convert videos, frequently, from many random formats (usually large , , and what not) and convert them and compress them down into efficient files we can use around the internet for uploading. Formats I must produce are:   WMV ( 9)  ()  (H.264)   I need to create common templates for a couple use cases (convert to same-as-source, , or ) and be able to process these quickly, and en queue.  Any ideas on how to best go about this process in Ubuntu?


Inserting B/W .jpg image causes image to be entirely black

I am working with .jpg images that are all B/W. Here is an example image I am using:    and here is what I am using to put the image into my document:  \begin{figure}[!htb] \centering \includegraphics[width=0.5\textwidth]{1980image} \caption[Sample Caption]{Sample Caption} \end{figure}   However, when I run, the image becomes entirely black. Here is a screenshot from my document:    Has anyone seen this before? Changing the filetype to .png does not fix anything.


I'm new to android application development. I'm on course of developing my first app which displays the time table of the selected class/faculty on the selected day(Mon,Tue etc.,). I'm all done with UI. Now my problem is how & where to write the code for the entire database insertion (as it should be loaded from the beginning). Can any one help me with this in a detailed manner as i'm new to this field ?


Why did the Hunter x Hunter anime stop in episode 148?

The Hunter X Hunter anime stopped in episode 148. I wonder why?   Is it because Hunter x Hunter is already finished?


Considering the Method Declaration Like this :  public void MethodName(string param){        // method body }   And then Calling it like this :  obj.@MethodName("some string");   What is the effect of @ before the method name ? Does it behave like putting it before a string which contains escaped characters?


MLE: given density $p_{\theta}(x) = \frac{1}{\theta}, \text{where } 0 \leq x \leq \theta.$

Given: $\theta>0$, $X_1,...,X_n$ i.i.d. RV with     $p_{\theta}(x) = \frac{1}{\theta}, \text{where } 0 \leq x \leq \theta$   and      $p_{\theta}(x)=0, \text{else.}$   In the given exercise the MLE solution $L_X(\sigma)$ is      $L_X(\sigma)=\frac{1}{\sigma^n}1_{\{0\leq X_{(0)} \leq X_{(n)} \leq \sigma \}}$   with the order statistic, which I unterstand. But then they claim $\hat\theta = X_{(n)}$ if $\theta\geq X_{(n)}$ and zero else, without a lot of explanation. Can you explain me this solution?  I see that $\frac{1}{\sigma^n}$ is strictly decreasing for $\sigma>0$. But it seems to me that we cannot conclude without knowing if the maximum of the RV is $X_{(n)} < 1$ or $X_{(n)}\geq1$.


Can someone confirm if I am running this generalized linear model in R correctly? Multiple observations in each experimental unit

I'm a grad student and stats beginner just trying to make sure I'm using the right model and using it correctly. I'm using R version 3.5.0. My data look like this:   Nest_ID Treatment  BCI 1    001       NTC 2.18 2    001       NTC 2.54 3    001       NTC 2.23 4    001       NTC 2.33 5    001       NTC 2.37 6    002       NTC 2.10 7    002       NTC 2.61 8    002       NTC 2.51 9    002       NTC 2.18 10   002       NTC 2.40 11   003       NTC 2.15 12   003       NTC 2.29 13   003       NTC 2.45 14   003       NTC 1.80 15   003       NTC 2.15     I have multiple BCI data points for each nest and 5 treatment groups. I want to know if there are differences in BCI between the treatment groups, but each BCI corresponds to individuals from the same nest, and each nest received the same treatment. So at first I took the average BCI from each nest to get a single BCI from each nest and ran an ANOVA on it. This seemed to work fine, but a colleague told me I could use glm and it would account for the fact that I have multiple individuals from a nest that received the same treatment. I tried glm in R, and I don't see how it's accounting for the nest being the lowest statistical unit.  GLM <- glm(BCI ~ Treatment, data = Data)   When I use this formula, my results come back significant when I don't think they should be. They came back not significant when I just took the average BCI from each group. Thanks in advance for any guidance!


bind future coming classes failed in jquery

$(function(){     $('button').click(function(){        $('p').addClass('red');       });      $('body').on('.red','click',function(){         alert(''); // doesn't work?     }); });   Why does the red class's click event doesn't fire? I thought by using on() it will catch any future coming classes?  Is it because of closure problem?


Find the probability density function for the function $E = d^2$

I'm struggling with this text book question    "Suppose $d$ is a Gaussian random variable with zero mean and unit variance. What is the probability density function of: $E$ = $d^2$?    Hint: Since the sign of d gets lost when it is squared, you can assume that p(d) is one-sided, that is, defined for only $d \geq 0$ and with twice the amplitude of the usual Gaussian."  Intuitively this is the way I would attempt it:  if $E=d^2$ then $d=\sqrt{E}$ (considering only when d is positive),  then substituting this into the equation for the normal distribution $2*N(1,0)$ returns: $\large{ \frac{2}{(\sqrt(2*\pi))}\exp{(-x/2)}}$  Taking the derivative of this would give me p(d). This sort of feels right since the derivative will be negative everywhere and tends to zero.   If some one could shed some light on the concepts here it would be greatly appreciated I don't have much if any experience with probability (or latex for that matter).  Thanks if advance!


How do I move child windows without moving or minimizing parent in GNOME 3?

I have Ubuntu 17.10 with GNOME 3.  What happens: I have (for example) LibreOffice Calc open, with some data columns in it.  I highlight the columns I want to chart, then I select INSERT > CHART.  The chart child window dialog pops up on top of my data, so I want to move it to the side.  When I grab the top bar and move it, the parent (spreadsheet) window minimizes (I think it actually disappears).  Continuing the above example, if I click FINISH on the chart window, I can then see the minimized spreadsheet application, which is the window title bar plus the menu bar just below it.  This seems like really odd behaviour and certainly falls under the category of "not being useful to the user", since the whole idea of moving the child window in the first place was just to be able to better see the spreadsheet!  In other applications, for example the PDF viewer, a slightly different problem occurs.  When I try to move the child window (for example the print dialog) the parent does not minimize but instead follows the child window around.  This is less surprising than having the parent disappear entirely but equally useless in terms of allowing the user to see the information present in the parent window.  Update 2017/11/06  Pomsky's answer below fixes the problem, but leaves me wondering why the window manager is making the decision that all child windows have modal behaviour (or don't), and not the applications themselves; and further, why modal behaviour prevents moving the child screen around when it obscures useful info on the parent screen.  Neither of these seem like good design to me...


I'm starting to work on a AI / Azure machine learning project. And there I have to play the QA engineer role. I'm not sure about how to start and what to test. Can someone please give me advice or help on where to start?


Subgroup of the unit circle under complex multiplication

Let $T=\{z:|z|=1 \mathbin{\text{and}} z \in \mathbb C\}$ be the unit circle in the complex plane, considered as a topological group under complex multiplication and the usual topology. Show that every subgroup of $T$ is either dense in $T$ or finite.  How to prove the denseness?


How can I transfer android data to PC (windows) given that phone screen is not working and I don't want to replace it.?

I have a LeTV android phone launched in India in 2016, now the company has been shut down. Few days back, my mobile screen suddenly just went off. Now it is just switched ON. Before dismantling it, I want to transfer my data to my PC as I haven't set backup on. I tried through command prompt adb commands but it is saying  device in unauthorized, do it by clicking on screen which I can't do. Please help me, how can I transfer data.


Ubuntu 14.04 seems to have failed to upgrade from 12.04

I recently attempted to update to Ubuntu 14.04 from Ubuntu 12.04. Everything seemed to work without error until it restarted. When the computer fired back up, I was greeted with the following message in what was basically a full-screen terminal (which I copied by hand):  mount: mounting /dev/loop0 on /root failed: Invalid argument mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg.   BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs) _   The _ at the end is a prompt, and typing help as suggested gives me a list of some basic commands like ls and cd.  What's going on here? Is this recoverable, or should I scrap everything and do a fresh install? In case it matters, I installed Ubuntu about a year ago as a dual boot with Windows 7 via the wubi installer. I also just read that wubi is being discontinued as of 13.04, so perhaps this was part of the problem.  EDIT I've found a possible solution , I'm going to give it a shot. In the meantime, other suggestions as backup if this doesn't work are welcome.


I have 1000 data points close to zero (absolute value < 0.1), adding up to 1. I want to plot their sums. I.e. if they followed a , I'd want to have an  plotted.  I'm aware that I could compute the exact positions externally and then plot that, but there probably is a better solution.  Some of the values are negative. For them, the curve should go down a bit.


Density of sum of two independent uniform random variables on $[0,1]$

I am trying to understand an example from my textbook.  Let's say $Z = X + Y$, where $X$ and $Y$ are independent uniform random variables with range $[0,1]$. Then the PDF is $$f(z) = \begin{cases} z & \text{for $0 < z < 1$} \\ 2-z & \text{for $1 \le z < 2$} \\ 0 & \text{otherwise.} \end{cases}$$  How was this PDF obtained?   Thanks


“Waited for * || true but it wasn't there ” apt error

I have run into an error with apt that seems to occur every time I update. The error outputs every time I try to install something via apt. Here is the output;  E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there      E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true   running version 12.04.3


Show that if $a>e$, the equation $az^n=e^z$ admit $n$ roots in the unit disk - Rouché theorem

Rouché theorem : Let $D \subset \mathbb{C}$ a domain and $f,g: D \to \mathbb{C}$ two holomorphic functions in $D$. Let $C$ a closed path contained in the interior of $D$. If $|f(z)+g(z)| < |f(z)|+|g(z)|$, $\forall z \in \mathbb{C}$, then $f$ and $g$ have the same number of zeroes in the interior of $C$.  Question : Show that if $a>e$, the equation $az^n=e^z$ admit $n$ roots in the unit disk.  So I've taken $f(z)=-az^n+e^z$ and $g(z)= az^n$ in using the closed path $C : |z|=1$. I obtained $|-az^n+e^z+az^n|= |e^z| \leq |-az^n+e^z|+|az^n|$, $\forall z \in C$. How could I prove that $|e^z| \not= |-az^n+e^z|+|az^n|$?


I know the fact that $\lim_{n \to \infty} (1+1/n)^n$ tends to $e$, but how do I use this fact to find the limit of $(1-\frac{1}{2n}-\frac{1}{2n^2})^n$ as $n$ tends to infinity?


I'm Singaporean, my 90-day Schengen stay has expired. Can I transit via Zurich from Croatia to UK?

I hold a Singapore passport but my tourist stay under the 90/180 Schengen rule has expired. I'm currently in Croatia (not under Schengen rule) and want to travel to UK (also not under Schengen rule) but the flight I booked will transit in Zurich airport. Will I be allowed to transit?


If $\sigma_n=\frac{s_1+s_2+\cdots+s_n}{n}$ then $\operatorname{{lim sup}}\sigma_n \leq \operatorname{lim sup} s_n$

This is a question from the book Methods of Real Analysis by R. R. Goldberg.     If $(s_n)$ is a sequence of real numbers and if $$\sigma_n=\frac{s_1+s_2+\cdots+s_n}{n}$$ then prove that: $\operatorname{{lim sup}}\sigma_n \leq \operatorname{lim sup} s_n$.   I don't have any idea how to start working on this problem. Please help. Thanks.


How to authenticate users in nested groups in Apache LDAP?

I've working LDAP authentication with the following setup   AuthName            "whatever"  AuthType            Basic  AuthBasicProvider   ldap  AuthLDAPUrl         "ldap://server/OU=SBSUsers,OU=Users,OU=MyBusiness,DC=company,DC=local?sAMAccountName?sub?(objectClass=*)"  Require ldap-group  CN=MySpecificGroup,OU=Security Groups,OU=MyBusiness,DC=company,DC=local   This works, however I've to put all users I want to authenticate into MySpecificGroup. But on LDAP server I've configured that MySpecificGroup also contains the group MyOtherGroup with another list of users.  But those users in MyOtherGroup are not authenticated, I've to manually add them all to MySpecificGroup and basically can't use the nested grouping. I'm using Windows SBS 2003.  Is there a way to configure Apache LDAP to do this? Or is there a problem with possible infinite recursion and thus not allowed?


How to fix "io.netty channel.AbstractChannel$AnnotatedConnectException Connection timed out: no further information"

I've been having this problem for about 4-5 months now. It all started when I joined my boyfriend's hosted server using hamachi. A couple nights later, it started giving me that error. I've recently just factory reset my pc. I tried joining my brother's server (LAN) by typing in the ip or "localhost", but it still gave me the same "failed to connect to the server" message. I've tried:   turning the Firewall on/off uninstalling and installing minecraft restarting the router (even getting a new one) changing port number to 25565 factory resetting my pc   I've tried every solution I could find, but none worked so far. I guess not a lot of people come across this problem. They said theirs were fixed in a couple of weeks, but my problem has been occurring for almost half a year now.  I'm running Java version 8 update 171.


Distinction between "correlation matrix of the estimated parameters" and correlation matrix of original data columns?

In R, the  function prints "the correlation matrix of the estimated parameters". I previously assumed this was simply the correlation matrix of those variables in the raw data - such that, for example, predictors x1 and x2 would have the same correlation with each other in that matrix, whether the model being fit was "y ~ x1 + x2" or "y ~ x1 + x2 + x3 + x4". However, it seems I am wrong about this, as the correlations in this matrix seem to change depending on what else is in the model. (It's not an issue of NA rows being excluded - there are no NAs in this dataset). What is the distinction between the "correlation matrix of the estimated parameters" and the correlation matrix of original data columns?


Finding $\sin 2x+\sin 4x+\cdots+\sin 22x$

I have to find this sum: $$S= \sin(2x)+\sin(4x)+\sin(6x)+\cdots+\sin(22x).$$ I tried to multiply the $S$ by $i$ then add a so called "$T$" where $$T = \cos 2x + \cos 4x +\cdots+\cos 22x.$$ From here I obtained:  $$T+iS=(\cos x+i\sin x)^2+(\cos 2x+i\sin2x)^2+\cdots+(\cos11x+i\sin11x)^2.$$ What should I do next?


show that $f$ and $g$ are constant functions in a region D

If $f$ and $g$ are analytic functions in a region $D$ and $|f|^2 + |g|^2$ is a constant.   show that $f$ and $g$ are constant functions in a region $D$  $f$ and $g$ are complex functions  So far my attempt is a mess.   From writing $|f|^2$ as $f\overline{f}$, $|g|^2$ as $g\overline{g}$ and differentiating it  to using Cauchy-Reimann equations.  None of which is fruitful, hence any help or insights is deeply appreciated.


No surname in Indian passport and applying for Japan visa.

I have only single name in my passport. Will it be possible to get Japanese visa without surname in Indian passport?


Let $R$ be a closed equivalence relation on a Hausdorff space $X$. Show that $X/R$ is Hausdorff.

Let $R$ be an equivalence relation on a Hausdorff space $X$ such that $\forall x \in X$, $x/R$ is closed. Show that $X/R$ is Hausdorff.    Firstly, I am not familiar with the notation $x/R$. Does it stand for the equivalence class $[x]_R:=\{y\in X: yRx\}$?  If so, here are my thoughts.  Take $[x]_R\neq[y]_R\in X/R$, where $x,y\in X$. We want to construct $U,V\subseteq X/R$ open such that $[x]_R\in U, [y]_R\in V$ and $U \cap V=\varnothing$. As $x\neq y \in X$ and $X$ is Hausdorff, we obtain $A,B\subseteq X$ open such that $x\in A,y\in B$ and $A \cap B=\varnothing$.  My idea was now to set $A':=A-[y]_R=A\cap(X-[y]_R)$, which is open in $X$ as an intersection of two open sets. Similarly, define $B':=B-[x]_R$. Then one still has $x\in A'$, $y\in B'$ and $A'\cap B'=\varnothing$.  Afterwards, for the canonical surjection $\pi: X\rightarrow X/R,\, \pi(z):=[z]_R$, let $U:=\pi(A')$ and $V:=\pi(B')$.  But this is where I don't know how to proceed. I cannot prove the wanted properties of $U$ and $V$, leading me to think that this is not the right approach. To be honest, the way I defined $A'$ and $B'$ was rather arbitrary, as I wanted to include the fact that the sets $[z]_R, z\in X,$ are closed in $X$.


What is the covariance matrix of a fixed matrix multiplied by a vector of random variables?

Suppose we have a random variable $\epsilon\sim N(0,\sigma^2)$, then we know that if a constant, say $a$, is multiplied by $\epsilon$, then \begin{equation} a\epsilon\sim N\left(0,a^2\sigma^2\right) \end{equation} Now suppose $w$ is an $n\times 1$ vector of random variables, such that \begin{equation} w\sim N\left(0,\Omega\right) \end{equation} and suppose, now we have the $n\times p$ matrix of constants $A$. What would then be \begin{equation} A'w\sim N\left(0,?\right) \end{equation}


Suppose I have a scanned book with equations, is there a convenient way to obtain latex that reproduces them?


Do ISTQB/ISEB Testing Certificates prove that someone can test?

I have passed the , and to be honest, I'm pretty sure that anyone could pass that exam with a couple of days of studying. My question is are these certificates really of value to my career and should I put any effort into acquiring the ?


SO basically my texture is showing off way to big and when i tried to fit all my unwrapped parts in the 2D editor, i had to scale them very small which caused this problem.  I have red somewhere else that i had to do: Add>Vector>Mapping and change the scale. I tried to connect the cables as the pictures showed (I have plugged it into UV now, not object as the pic shows btw) , but im sure i am missing some plugs here.   What else needs to be done?   Appreciated if it could be explained in clear steps, im only a beginner.   EDIT: here to show the multiple UV maps.. at least i think they are :)


Why are the default private IP addresses for home networks 192.168.0.1/24?

I've just finished reading up about IP addresses and subnets through this . In the examples provided by the article, IP addresses seem pretty arbitrary. This got me thinking, why are the default IP addresses for most home networks 192.168.0.1/24? Is there a reason (historic or otherwise) for the apparent convention of "192.168.0"? Additionally, are there any implications if I decided I wanted to change my home network's IP address to something arbitrary and easier to type like 1.1.1.1/24?


Does there exists an entire function $f$ such that $f(0)=1$ and $|f(z)|\leq \frac{1}{|z|} $ for all $|z|\geq 5$?


Given two natural transformations, why can we compose them equivalently in two distinct ways?

Let $F_1, G_1: C \rightarrow D, \text{ and } F_2, G_2: D \rightarrow E$ be two functors of categories, and let $\alpha: F_1 \Rightarrow G_1$, $\beta: F_2 \Rightarrow G_2$ be natural transformations of these functors.   Then we can construct a natural transformations $F_2 F_1 \Rightarrow G_2 G_1$ via the following compositions:  $$ F_2 F_1 (x) \xrightarrow{F_2(\alpha_x)} F_2 G_1(x) \xrightarrow{\beta_{G_1(x)}} G_2 G_1(x)$$  $$ F_2 F_1 (x) \xrightarrow{\alpha_{F_1(x)}} G_2 F_1(x) \xrightarrow{G_2(\beta_x)} G_2 G_1(x)$$  Due to the naturality of $\alpha, \beta$ these two compositions are supposed to give the same natural transformation $F_2 F_1 \Rightarrow G_2 G_1$. Why is this the case?


Are there any man in the middle proxy experts here?(preferably Fiddler)

I am not fluent in English, so I will explain using 2 searches contained in the images below with Breaking Bad tv series as an example ...  Search 1:     Search 2:     If  someone searches Google or any other search engine this phrase (-torrent-download-watch) should be automatically and invisibly added.  Are there any MITM proxy Gurus around here that can help me? If creating the script is hard, I can (please tell me if this is against the rules) hire someone.


In order to separate the content structure from the style, I decided to implement commands for denoting random variables:  \newcommand{\myrv}[1]{\mathbf{#1}} \newcommand{\rvA}{\myrv{A}} \newcommand{\rvB}{\myrv{B}} \newcommand{\rvC}{\myrv{C}} ...   This way, if I ever decide to change the style of random variables from \mathbf to say \mathbb, all I need to do is to change the definition of \myrv. Is a way to generate the commands \rvA, \rvB, \rvC, ... automatically?


Why there's a finite $\Gamma '$ such that $\Gamma ' \vDash \varphi$?

Suppose $\Gamma$ is an infinite set of formulas in FOL. It is given that for a structure, $M$: If $\Gamma$ is satisfiable in $M$ then $\varphi$ is valid in $M$.  Why is it true that there's some finite $\Gamma ' \subset \Gamma$, such that $\Gamma ' \vDash \varphi$?   It reminds the compactness theorem in a way, but it's not quite the same.


How do I find a Stronghold in Minecraft?

I'd like to know any hints, tips, or pretty much anything on how to find strongholds. I already know that they're frequently found under swamps, and that you can find them with an Eye of Ender, but there has to be an easier way than that right?


I have a question. I want to check whether the following limit exists:  $$\lim_{(x,y) \rightarrow (0,0)} \frac{xy}{|x|+|y|}.$$   I have already searched on the internet and they say many different things. In my own book there stood that it doesn't exist. Is that true? And how do you show that it doesn't or does exist by this limit?  Thank you


Text parsing using regex to create a dictionary from list of strings

Using the following command I am able to parse strings except for some mismatch: re.compile("(?P<Date>\d{2}[.-]\d{2}[.-]\d{4})\s(?P<Item_Name>.+)\s(?P<Transaction_Amount>[\d,\.\s\d]+)\s(?P<Balance>[\d,\.\s\d]+)")  If I apply this to a list of strings: ['07-10-2019 BIL/INFT/somenumbers/82D3/ AJAY KUMAR 6,080.00 2,46, 287.08',  '08.10.2019 MOBILE BANKING MMM TiMPS/somenumbers/ SIHDFC 4,411.00 250,698.08']  the output is     [{'Date': '07-10-2019', 'Item_Name': 'BIL/INFT/somenumbers/82D3/ AJAY KUMAR 6,080.00', 'Transaction_Amount': '2,46,', 'Balance': '287.08'},  {'Date': '08.10.2019', 'Item_Name': 'MOBILE BANKING MMM TiMPS/somenumbers/ SIHDFC', 'Transaction_Amount': '4,411.00', 'Balance': '250,698.08'}]  So, the second dictionary output is correct . In the first output, it seems due to an extra space in 2,46, 287.08, the number 6.080.00 is getting clubbed with Item_Name and Transaction_Amount , Balance is incorrect. Any way to rectify this?


Problem.  Show that $$e^x > 1 + x , \ \ x \neq 0$$  My attempt.  Using Mean Value Theorem: $$f'(c) = \frac{f(b) - f(a)}{b-a}$$  $$\Rightarrow e^c = \frac{e^x - 1}{x}$$ $$\Rightarrow xe^c = e^x -1$$ $$\Rightarrow x+1 = \frac{e^x}{e^c}$$  I'm not feeling very comfortable with these calculations...Am I on the right track? Can I even choose $e^o$ in my initial calculation as it says that $x \neq 0 $ ?


Confusion about how to pronounce the "dark L" consonant sound

"Dark L" is "L" at the end of the word or after a vowel sound. Example: ball, pull.  "Light L" is "L" at the beginning or before a vowel sound. Example: light, love.  There are 4 explanations of how to pronounce "dark L":   1st explanation: the tongue tip must contact the ridge right behind the upper teeth. 2nd explanation: before the tongue tip must contact the ridge right behind the upper teeth, you must curl the tongue and make sound like /r/ before make the /l/ as in the 1st explanation. 3rd explanation: just put the tongue between upper and lower teeth is enough to make the dark L 4th explanation: the tongue tip must contact the ridge right behind the upper teeth & the back of the tongue raises up (a British teacher teaches that).   see this vid:  and  for more info  So what is the correct way to make the "dark L"?


Does an Indian passport holder who is a dependant of a British passport holder require a visa to go to Paris, France?

I have Indian passport with a dependant visa. My husband has recently received a British passport and my baby is British by birth. We are planning to go to Paris.  Do I need a visa and if yes, what is the procedure and what documents do we need to provide?


Duplicate of:                     And others     Which of the following are correct?         Countries List   Country List      It is the title of a web page where users can view the list of countries and select one.


Wine glass isn't transparent when imported to unity

I've been trying to create this wine glass object for my game and 3D modelling is completely new to me and I followed all the steps of a tutorial to the best of my knowledge.  But when I convert it to fbx and export the object doesn't have the " Glass BDF " material to it; So, I added one of the materials from the material folder that was created when the fbx file was exported but the end result isn't transparent.   I recalculated the normals but I'm still not getting it.I also checked the UV swap option.


Why do some code examples on the Python website not use the `class classname(object):` convention?

I've always heard that it is best to inherit explicitly from object when creating classes in Python, but I noticed that in many examples on the Python website (For example,, this convention is not used.  Is there a reason for this?


Problems with SEM: Non-positive definite matrix

Link to picture:   Need a bit of help determining what I should do to fix this problem: The SEM wont run because it believes it's non-positive definite. Meaning that there may be singularity.  However these items are very different as i have items measuring autonomy, job feedback, coworker support, positive mood and employee engagement.  Can anyone suggest a solution to this problem?


How to simultate 3 monitors on a system that only has 2 monitors?

I need to emulate extra monitors. For example if my system is dual-monitor, I need to trick Windows to think I have 3 monitors or more (and somehow switch between those virtual monitors to see the image).     IMPORTANT!     Windows must think I have 3 monitors (the monitors must appear in 'Screen Resolution' panel so I can change their 'physical' layout. No hardware products please.   It doesn't have to be perfect/efficient. I need this only temporary.


Formation of the event horizon seems impossible with singularity inside seems impossible

According to what I was reading, the formation of an event horizon appears if the mass becomes compact enough. Unfortunately, due to time dilation the time for mass to fall into the event horizon becomes infinite, so that nothing can cross the horizon within in the life time of the universe. Another thing is, that energy loss because of hypothetical hawking radiation would take place in finite time. Consequently, there must be something wrong with these models. Which means, there is neither a singularity nor a real event horizon existing out there.


List the full dependency list of a package

I am trying to list the packages that are essential to install Ruby. For example, on Archlinux: $ pacman -Si ruby Repository      : extra Name            : ruby Version         : 2.7.1-3 Description     : An object-oriented language for quick and easy programming Architecture    : x86_64 URL             : https://www.ruby-lang.org/en/ Licenses        : BSD  custom Groups          : None Provides        : None Depends On      : gdbm  openssl  libffi  libyaml  gmp  zlib  rubygems  ruby-irb Optional Deps   : ruby-docs: Ruby documentation                   tk: for Ruby/TK Conflicts With  : None Replaces        : None Download Size   : 3.30 MiB Installed Size  : 13.34 MiB Packager        : Anatol Pomozov <anatol.pomozov@gmail.com> Build Date      : Sat 22 Aug 2020 03:46:33 IST Validated By    : MD5 Sum  SHA-256 Sum  Signature  In other words, Depends On      : gdbm  openssl  libffi  libyaml  gmp  zlib  rubygems is what I want in Ubuntu. On Ubuntu, I am trying to do this: $ apt-cache show ruby  The output is: Package: ruby Architecture: amd64 Version: 1:2.5.1 Multi-Arch: allowed Priority: optional Section: interpreters Source: ruby-defaults Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Antonio Terceiro <terceiro@debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 37 Provides: irb, rdoc, rubygems Depends: ruby2.5 Suggests: ri, ruby-dev Conflicts: ruby-activesupport-2.3, ruby-activesupport-3.2 Breaks: apt-listbugs (<< 0.1.6), rbenv (<= 0.4.0-1), ruby-debian (<< 0.3.8+b3), ruby-switch (<= 0.1.0) Replaces: irb, rdoc, rubygems Filename: pool/main/r/ruby-defaults/ruby_2.5.1_amd64.deb Size: 5712 MD5sum: 4fbbfcf2431190a889f2430ffd017110 SHA1: 2b56994915b61fe6009613e0b879d9de16699206 SHA256: b01fd79a656f1e36542d1dd1046713ffb2d5f29902e433d06884333fcb151488 Homepage: http://www.ruby-lang.org/ Description-en: Interpreter of object-oriented scripting language Ruby (default version)  Ruby is the interpreted scripting language for quick and easy  object-oriented programming.  It has many features to process text  files and to do system management tasks (as in perl).  It is simple,  straight-forward, and extensible.  .  This package is a dependency package, which depends on Debian's default Ruby  version (currently v2.5). Description-md5: 9b1885fba57cb2974ce14902f85d3e27 Task: kubuntu-desktop, kubuntu-full Supported: 5y  It doesn't list packages like openssl or zlib as dependency. But when I try to purge openssl (this is dangerous, and I just ran the command and pressed the N key to skip removal), it also lists ruby in the removal list. That means Ruby depends on OpenSSL. I have also followed answers like , which lists the packages that depends on ruby, not the packages ruby depends on. If you ask why is that important, the reason is I am writing a guide how to compile Ruby with various optflags (CFLAGS) for performance, mainly for Arch. Then wanted to add Ubuntu as well, and I didn't get a complete dependency list which is required to build Ruby. I can't list the arch packages, because Ubuntu has some different and weird names. Like calling base-devel as build-essential, etc. So what's the way to list packages?


How long does it take to mint a new tag badge?

I just got a tag badge on [linguistics.se] as the first user for that specific tag. It took surprisingly long from fulfilling the criteria to receiving the badge. So my question out of curiosity: How long does it take to mint a brand new tag badge?


What level do I cast invisibility from the eldritch invocation Shroud of Shadow?

The eldritch invocation Shroud of Shadow from the  reads as follows:      You can cast invisibility at will, without expending a spell slot.   Similar abilities such as a wizard's spell mastery specify that the caster can only cast the at-will spells at their lowest spell level:      You can cast those [at will] spells at their lowest level without expending a spell slot when you have them prepared.   Shroud of Shadow has no such clause. So can this invisibility spell be cast at a higher level?


$$s= \sum_{n=1}^\infty \frac{n+3}{(2^n)(n+1)(n+2)}$$ Any method to calculate this type of infinite sums?


How do I add an icon to the right-click menu?

As you probably know, you can right click files and it will show you options, such as run as administrator. I added "Run Sandboxed" to it by making the key Computer\HKEY_CLASSES_ROOT\exefile\shell\Run Sandboxed\command an adding the value C:\Program Files\Sandboxie\Start.exe %1 to (Default). If I right-click an exe file, there is something that says "Run Sandboxed", which runs the file sandboxed. It doesn't have the Sandboxie icon next to it. How do I add the icon?


How to find one month later from a date with django?

I want to find one month later from a date but I don't know how.  Lets say I have this date:  08.03.2012   I want to find one month later from that date automatically like:  08.04.2012   Does anyone know how to do that?


When did Magical People Start Shunning Science and Technology?

I noticed, while reading up on the Hogwarts Express, that the engine ran on steam originally, but by 1990 was running fully on magic.  While steam is an older technology, it's still technology and it's interesting even something as simple as steam power was phased out by magickers.  The International Statute of Secrecy was signed in the 1690s, which is after the early steam-driven piston engines, but before steam engines were used for trains and the type of engine used for the Hogwarts Express would not have existed until the mid to late 1800s (at least -- I'm not an expert) and it would not have been out of place in the 1930s, when the Hogwarts Express was made.  This indicates that, on some level, the magickers must have been keeping up with some level of technology.  Other than this, we see almost no signs of the use of science or technology.  Did the magical community always shun any technology, or did they use it up until the International Statute of Secrecy, or was there some other point where magic started diverging from technology?


How is the end date for Winter Bash decided?

On the  page I read that Winter Bash will end on January 2nd:     the hats get put back in their boxes on January 2nd!   Earlier years Winter Bash has ended on :     the hats get put back in their boxes on January 4th!   How is the end date for Winter Bash chosen?


Background  I have a small circuit that consists of a microcontroller operating on 14Mhz and a wifi module. This circuit is enclosed in a small plastic box. I am considering gluing a few magnets on this box in order to install it on a metal surface, and I was wondering how bad it could influence the circuit and the wifi connection, since these magnets will be placed really close to the circuitry. Here are some technical details:   Magnets are Neodymium Disc 1/4" X 1/16" N32 grade.  is 4.22" X 3.75" X 1.21" Wifi module is  (802.11 b/g, 2402 ~ 2480MHz, TX 0dBm to +12dBm, RX -83dBm)   I would like to know:   Should I expect bad interferences? Are there any special considerations where to glue the magnets on the box, except from "away from the wifi module" ?


Should the determinant of a $0\times 0$ matrix be defined as $0$ or $1$?

Let $A$ be the $0\times 0$ matrix and let $\det(A)$ be its determinant. I am wondering if $\det(A)$ should be defined as $0$ or $1$.   If we use the definition that determinant of an $n\times n$ matrix $(a_{ij})$ be defined as $\displaystyle\sum(-1)^{\tau(j_1\cdots j_n)}a_{1j_1}\cdots a_{n{j_n}}$, where $\tau(j_1\cdots j_n)$ is the inversion number of the permutation $j_1\cdots j_n$, then since there is no term present, $\det(A)$ should be defined as $0$. If we expand the $1\times 1$ matrix $(1)$ along the first row, we obtain   $$1=\det(1)=1\cdot\det(A),$$ which implies that $\det(A)$ should be defined as $1$.  Which definition of the determinant of the $0\times 0$ matrix $A$, if any, makes more sense here?


Getting error 80073cf9 for specific Windows Store App after Rollback

I upgraded to windows 8 about a month ago, and quickly downloaded a certain app (jetpack joyride) and enjoyed it a bit, but my system sadly had an issue that could only be fixed with a rollback. This was to the point before installing that app. The icon stays in start, I can click uninstall (but it remains), and whenever I try to install it from the store, I get error 80073cf9. Does anyone know what the issue could be?  I did a search through the registry, found three keys (which I deleted) and this let me install it from the store, but when I tried to play it, it redirects me to the app on Windows Store.  I have also looked in C:\Program Files\MicrosoftApps, but there was no reference to the app.


The question is let (X,d) be a metric space. Show that $ d' = \frac{d}{1+d} $  I would like to know if I am on the right path with my solution. Any help would be greatly appreciated!   Solution:  Let $x,y,z \in X $ Then $ d'(x,z) = \frac{d(x,z)} {(1+d(x,z))}\le \frac{d(x,y) + d(y,z)}{ 1+d(x,y)+d(y,z)}=\frac{d(x,y)}{1+d(x,y) + d(y,z)}+\frac{d(y,z)}{1+d(x,y) + d(y,z)}\le \frac{d(x,y)}{1+d(x,y)}+  \frac{d(y,z)}{1+d(y,z)}$ $$= d'(x,y) + d'(y,z).$$ Thus we have proved that $d'=\frac{d}{1+d}$ is also a metric on $X$.


How do I change country in user profile on Stack Overflow?

I registered on Stack Overflow when I was in USA, but now I am in Pakistan. Is there a way to change the country so it is shown correctly?  Also I want to find my ranking among Pakistani users as well.


Ubuntu 20.04 + recent software update + terminal, software updates, software updater not working

I am on dual boot with Windows 10.  I initially had Ubuntu 18.04 and updated to Ubuntu 20.04 last month. I usually run the software updater from time to time.  Last week, I ran the software updater and it updated and some ubuntu base files along with some software. It asked for a reboot after and so rebooted.  I tried some responses already in askubuntu and few other sites but none worked. Anyway, here is the problem.  Today, I see that software-updater, terminal are not working.  I tried the following already:  sudo apt-get update   It gave the following error:  sh 1: /usr/lib/cnf-update-db: not found     Reading package lists... Done     E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'     E: Sub-process returned an error code   Then following some other posts, I tried checking for python and all I see is python2.7 is the only one present. I know that python3 was installed when it was upgraded to Ubuntu 20.04 but after the last week's update, I am not sure how it is gone. Anyway, I tried to install the python3-minimal using the following command:  sudo apt-get install --reinstall python3-minimal   and this did not work giving the errors saying unmet dependencies for python3-samba and python3-uno and suggested to use the following command  sudo apt --fix-broken install   This also gave the following error:  Error encountered while processing: /var/cache/apt/archives/python3-distupgrade_1%3a20.04.19_all.deb /var/cache/apt/archives/python3-samba_2%3a4.11.6+dfsg_0ubuntu1.2_amd64.deb /var/cache/apt/archives/python3-uno_1%3a6.4.3_0ubuntu0.20.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   In relation to this above error, it complains about py3clean and py3compile not found.   At this point, I am not sure how to fix this.  Can someone please help fixing this.  Thanks.


I am using      mactex   to compile my .tex file. I want to      suppress all error and warning messages.   I have tried this using the below commands but none of them work:  Xelatex  xelatex report.tex --interaction=errorstopmode;  xelatex report.tex --interaction=batchmode   pdflatex  pdflatex report.tex --interaction=batchmode; pdflatex report.tex -quiet -f; pdflatex report.tex -quiet=true; pdflatex report.tex -interaction=nonstopmode;   Please help me figure out what should I do to stop all errors and warnings. My file compiles how I want it to, I don't want it to show me any messages, just compile in one line.  Thanks in advance.


Error Updating and installing packages ubuntu

I was trying to install git in my ubuntu using application manager.and got a "Required installation of untrusted packages error".i followed a few forums and tried to run sudo apt-get updateand i got this error  Err http://extras.ubuntu.com raring Release.gpg                                                                                Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out Err http://in.archive.ubuntu.com raring Release.gpg                                                                                Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out Err http://security.ubuntu.com raring-security Release.gpg                                                                         Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out Err http://dl.google.com stable Release.gpg                                                                                Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out Err http://in.archive.ubuntu.com raring-updates Release.gpg                                                                        Unable to connect to 172.16.0.20:8080: Err http://in.archive.ubuntu.com raring-backports Release.gpg   Unable to connect to 172.16.0.20:8080: Reading package lists... Done W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/raring/Release.gpg  Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/raring-updates/Release.gpg  Unable to connect to 172.16.0.20:8080:  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/raring-backports/Release.gpg  Unable to connect to 172.16.0.20:8080:  W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/Release.gpg  Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out  W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/Release.gpg  Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out  W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg  Could not connect to 172.16.0.20:8080 (172.16.0.20), connection timed out  W: Some index files failed to download. They have been ignored, or old ones used instead.   i thought it was a problem with the network connection and tried pinging google.com and it was working perfectly.Can anyone please help me with this.i am new to ubuntu


How do I check whether the application has permission to delete a file or directory on disk, by using PermissionSet property?

I need to determine, whether an application is allowed to delete a file or directory on file system. For that purpose I currently use the approach, decribed in   .  (I it for both, files and directories)   Unfortunately, the SecurityManager.IsGranted Method is marked as obsolete.   How can I do this check by using the suggested PermissionSet property?


Is it possible for a warlock to displease their patron?

I haven't seen anything in the PHB or the DMG (although I admit I haven't looked in every nook and crank) to the effect that a warlock can displease their patron. Warlocks seem to be just free to do whatever they fancy.   Contrast this with the cleric, that also has a patron that grants their magic, but enforces a particular ethos. A cleric can displease their deity and be punished.  Is there any way for a warlock to displease their patron? Or are they free to act as they will?


my problem is best illustrated in the picture below: the text won't center between the paper marge. I've used some commands from related problems on this website but nothing happens when I run it. The text remains as such:  \documentclass[11pt]{article} \usepackage[a4paper]{geometry} \usepackage[none]{hyphenat}  \begin{document}  \begin{center}   { \textbf{\underline{Random text to show that the right side of the text goes beyond the paper marge and don't know how to fix this} }} \end{center}   \end{document}


Intel Dual Band Wireless 7265 dropping connection

I am running Ubuntu 14.04.01 LTS on an Acer V Nitro laptop which has an Intel Dual Band Wireless 7265 controller. The driver version is 3.13.0-45-generic with firmware 22.24.8.0. The connection is stable for 30-40 minutes and after, it disconnects. Are necessary several reconnect attempts, sometime a restart in order to reconnect to the WiFi network.   Did anyone face this issue with this controller? What do you recommend to diagnose the issue?


Let $u, v$ be continuous functions on $[a,b]$ and let $c>0$. Suppose that for all $x \in [a,b]$  we have the following inequality:  $$|u(x)-v(x)| \leq c \int_a^x |u(t)-v(t)| dt$$  Show that $u(x)=v(x)$ for all $x \in [a,b]$  My first thought was to consider $h(x)=|u(x)-v(x)|$ and try to show that $h=0$, but I got stuck. Also, I proved the inequality considering the case $c(b-a) \leq 1$, but I'm not sure how to continue.


Why does a self-closed script tag not trigger errors?

The following code:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title>A</title>     <script type="text/javascript" src="./script.js" />     <script type="text/javascript">alert("This is skipped.");</script> </head> <body>     </body> </html>   passes the validation test at W3C and Chrome does not display any Javascript errors on this page. However, the entire text <script type="text/javascript">alert("This is skipped."); is not parsed by the Javascript engine which just looks for the </script> tag even though it's self-closed. The file "script.js" is loaded, however.  In Chrome, Firefox and IE 11, this leads to this same behaviour.   Why is this? What is actually happening here?


Butterknife listed twice in Android app's "About" section

In the part where open source code used is mentioned, Butterknife appears twice with different licenses and creators.     App Version: 1.0.89


It should be encouraged to provide an explanation (in comments?) for downvotes

When someone votes down on something, it is never clear why they did so. There should be some documentation that encourages downvotes to be accompanied by an explanation (in the comments?).  An example was some code I saw that does actually work, but had a downvote, which made me wonder if there was some disadvantage to the apparently working code. I'd have to implement the code, and test it significantly to find out if there is some disadvantage to it. But if someone out there knows a reason to not use the code, and doesn't provide that reason, the information is possibly gone forever.  Plus, sometimes it seems very arrogant the way people go around voting down on things on a whim, or it seems, honestly, sometimes just because they don't like the question for some reason. Often if feels like they get frustrated by the inexperience of the questioner.


In A. E. Housman's With rue my heart is laden:     WITH rue my heart is laden     For golden friends I had,   For many a rose-lipt maiden     And many a lightfoot lad.   he refers to laden as loaded, burdened with regrets. But laden differs from loaded according to a pocketbook I have.  Can somebody help with the big difference?


How to restrict HTML content while pasting some text from a website to our EditText?.   Example I copy some text from a website, when I paste the text in my EditText the HTML font and text size also comes along. What i want is to restrict any HTML content while I paste the text. Tried several methods using TextWatcher and InputFilters, but none of them are working. Whatsapp is handling it somehow. Please help.  Edit: The string can be converted to non-HTML but how to make changes in EditText?


I am trying to check a Dictionary whether or not a certain Object is contained as a key:    Dictionary<Order, int> occurence = new Dictionary<Order, int>();   if (occurence.ContainsKey(order)) {       occurence[order] += 1;   } else {       occurence.Add(order,1);   }   The Order class consists of a simple Dictionary in which I map the properties to their values:  private Dictionary<String, String> properties = new Dictionary<string, string>();   I implemented the HashCode function for the Order class, since the Dictionary lookup depends on it for comparison:    public override int GetHashCode() {        return properties.GetHashCode();   }   Problem is that no matter what the order is not found in the Dictionary. Any idea how to fix this?


Windows update giving error 80070002 and manual update not working how to update?

I have been trying to update my pc from 20h1 to 20h2 but the windows update shows error message 80007002 and when I manually install the update using windows 10 update assistant it downloads completely and then even starts install and gets stuck at 87 percent on the screen where it says do not turn off. What to do? This is the log file. Matching Profile found: FindRollbackFailure - 3A43C9B5-05B3-4F7C-A955-88F991BB5A48 SetupDiag version: 1.6.0.0 System Information:     Machine Name =      Manufacturer =      Model =      HostOSArchitecture = 1033     FirmwareType = UEFI     BiosReleaseDate = 20160513000000.000000+000     BiosVendor = A12     BiosVersion = A12     HostOSVersion = 10.0.19041     HostOSBuildString = 19041.1.amd64fre.vb_release.191206-1406     TargetOSBuildString = 10.0.19041.621 (vb_release_svc_prod1.201014-1758)     HostOSLanguageId =      HostOSEdition = CoreSingleLanguage     RegisteredAV = Quick Heal Internet Security     FilterDrivers = FileInfo     UpgradeStartTime = 12/20/2020 2:54:38 PM     UpgradeEndTime = 12/20/2020 5:30:40 PM     UpgradeElapsedTime = 02:36:02     CV = Pi3IdU3SlEqpFx93     ReportId =    Error: SetupDiag reports rollback failure found. Last Phase = Pre OOBE Boot Last Operation = OOBE boot apply Error = 0xC1900101-0x4000D LogEntry:   Refer to "https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes" for error information.  Last Setup Phase: Phase Name: Pre OOBE Boot     Phase Started: 12/20/2020 4:37:50 PM     Phase Ended: 1/1/0001 12:00:00 AM     Phase Time Delta: 00:00:00     Completed Successfully? False   Last Setup Operation: Operation Name: OOBE boot apply     Operation Started: 12/20/2020 4:37:50 PM     Operation Ended: 1/1/0001 12:00:00 AM     Operation Time Delta: 0:00:00:00.0000000     Completed Successfully? False


I can't install anything from the Ubuntu Software Center.   For example, I tried to install Java but I couldn't and don't say to install it off Google; I have tried installing Java from Google but it still does not work.


Expressing an arbitrary natural number as the difference of squarefree ones

Is it true that $\forall n \in \mathbb{N}, \exists x, y \in \mathbb{N}: x,y$ are squarefree, & $n = x-y$?    I think so, but I am not sure that I am quite proving it. Here is my line of thought: Let $S \subset \mathbb{N}$ be the set of squarefree natural numbers. Represent upper density by $D$. Then we know that $D(S) = \frac{6}{\pi^2} > 0$. There is a proposition that says that, since $S$ has positive upper density, $\exists n \in \mathbb{N}: D(S \cap (S-n)) > 0$ too. Then $\exists x,y \in S: y = x-n$. Therefore $\exists x,y \in S: n = x-y$.  So, I think that I have proven existence of at least one such $n$, but I am not sure that I have universality. The statement is supposed to hold for all $n \in \mathbb{N}$.


"Friendly" terminal color names in shell scripts?

I'm aware of libraries in languages such as Ruby and Javascript to make colorizing your terminal scripts easier by using color names like "red".  But is there something like this for shell scripts in Bash, or Ksh, or whatever?


Getting # value at the end of url in asp.net

How to get the value after # in the following url:  www.google.com/trian/test#dummyvalue  I am using ASP.NET and C#


What is the function of a small extra towel folded and placed in hotel beds?

There are small extra towels placed on hotel beds despite the normal bathroom towels. What purpose do they serve?


How do I  two vector layers one with a projection like UTM WGS 84 Zone 45N using QGIS?


Find the radius of the circle inscbribed inside the square. The distance from the side of the square to circle is (2,1)


Understanding inverse trigonometric relations

Can someone explain why the inverse trig functions are trapped between those particular numbers.


Quick question, most likely for a veteran will be easy, or maybe im asking for too much.  i have this code for laravel in php, im not fan to do a foreach, is there a better way? i guess should be an existing function that replace my values of arr to the keys match on arr2, but i dont know  Its really important not to change the order.  $arr=  ['filters', 'repeat', 'via', 'type']; $arr2= [         'filters' => 'text1',         'repeat' => 'text2',         'via' => 'text3',         'type' => 'text4',     ];  foreach($arr as $k)     $res[]=$arr2[$k];  return $res;


Pinging in a comment sometimes works, sometimes doesn't

I have noticed that it seems to be good etiquette to write the "at" sign and then the userid of the person whose post or comment one is responding to in a comment.  I believe that's called pinging.  I've tried to do this and sometimes it works, and sometimes it just disappears when I hit "Enter."  Am I supposed to ping?  If so, are there some tricks to make it work more consistently?  Or could someone at least explain the pattern to me?


I'm writing a paper to describe my methods that are borrowed from other's models.   I think both the past and present tense are possible.  I can use present tense as I'm explaining it now.      However, we use only programming languages and programming paradigms for selecting programming model examples. Specifically, we choose two ...    Also, I can use the past tense as I've already used and chose something before writing the paper.      However, we used only programming languages and programming paradigms for selecting programming model examples. Specifically, we chose two ...    Which is correct or better?  ADDED  I chose to use the present tense in my paper as the sentences are in an introduction to describe details later.      However, we use only programming languages and programming paradigms for selecting programming model examples. Specifically, we choose two programming languages--Lisp and Forth--and two programming paradigms--Object Oriented and Functional--as examples of successful programming models. We analyze them to understand what elements enable these languages or paradigms, passing the test of time to be used widely and solving problems in many domains.   I assume that present tense is possible as this is a CS paper, if this is a Chemistry paper that explains my or other's past experiments, I kinda feel I need to write in the past tense.


Is there difference in force when the height increases?

Consider a man with mass 50kg.   When he jumps from a 2 meter height, the total force is $F=ma$ ie (mass * gravity), but nothing happens to him. When he jumps from a 50 meter height, the total force is (mass * gravity ) same, but he dies.   Why is this happening?


What are suitable TV sizes and viewing distances for couch surfing on a 1080p LCD HDTV?

The HTPC in my living room is the fastest/most modern PC I own.  My current TV is a 24" tube TV, so I have to hook up a secondary monitor in order to read anything besides the menus in Windows Media Center, and that alone is kind of annoying.  I'm also tired of having to sit on the floor to do any web browsing or reading on the PC, since there's no practical way to set up a computer desk over there.  I've seen charts on recommended TV sizes for various viewing distances, but those are all oriented toward home theater, not the ability to read web pages from a distance with little or no eye strain.  I'm curious whether anyone has personally tried web browsing or coding on a 1080p TV from halfway across the room.  If so, what size TV do you use, and how far away do you sit (from the screen to your eyeball)?  More specifically, is a 40" 1080p LCD HDTV adequate for web browsing, reading, and general-purpose computing while sitting 12-15 feet away?  If not, do I need something bigger/need to move a little closer?  What size and viewing distance should I be shooting for?  Aside from resolution (I'm already settled on 1080p), are there any other factors that will make a noticeable difference in the TV's performance as a computer monitor?  I found a similar question, but it wasn't quite specific enough to answer my question:


The command apt-get allows wildcards for (auto) removing packages. However, apt doesn't seem to work the same way. For example...  sudo apt autoremove libreoffice*   ...gives the following error...  E: Unable to locate package libreoffice*   Can apt be used with wildcards, like apt-get?


Should we allow a user to vote (in agreement with others) that their question is a duplicate

I don't have sufficient rep, but I'd like to accept as a duplicate    Should we be able to add a vote to close for duplicate if we asked it, even if the rep is too low.


What is your Instagram password when you login from Facebook?

I've created my Instagram account by logging in through Facebook. Now whenever I have to log in from a laptop or a PC they say my password is incorrect (since they don't have a "login with Facebook option"). I tried using my Facebook password but it didn't work. What to do?


Null pointer exception on implementing banner ads

i trying to implement banner ad in my quizz activity by Admob documentation , i m doing every thing according to documentation but dont know why i m getting null pointer exception. in my quizzactiviy i added below codes for banner ads  private AdView mAdView;   MobileAds.initialize(this, new OnInitializationCompleteListener() {         @Override         public void onInitializationComplete(InitializationStatus initializationStatus) {         }     });      mAdView = findViewById(R.id.ads);     AdRequest adRequest = new AdRequest.Builder().build();     mAdView.loadAd(adRequest);  xml code for ad  <com.google.android.gms.ads.AdView     android:id="@+id/ads"     android:layout_width="288dp"     android:layout_height="60dp"     android:layout_alignParentBottom="true"     android:layout_centerHorizontal="true"     android:layout_marginStart="64dp"     android:layout_marginLeft="64dp"     android:layout_marginTop="20dp"     android:layout_marginEnd="59dp"     android:layout_marginRight="59dp"     app:adSize="BANNER"     app:adUnitId="ca-app-pub-3940256099942544/6300978111"     app:layout_constraintEnd_toEndOf="parent"     app:layout_constraintStart_toStartOf="parent"     app:layout_constraintTop_toBottomOf="@+id/quit_btn">  Error i m getting  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference     at com.example.quizztime.QuizActivity.onCreate(QuizActivity.java:73  Dependencies i used implementation 'com.google.android.gms:play-services-ads:20.0.0'


How to install Oracle 11g on Linux (non-VM)

I'm totally new to Linux so please excuse my ignorance.  I've got Ubuntu Server installed on an HP Proliant DL server; no GUI available. I'm trying to install Oracle 11g on this server and I'm running into a lot of Xterm, xhost issues etc.  I've tried all the Googled solutions to no avail. Can anyone provide or link me to a step-by-step guide on how to install Oracle on Linux in a non-VM environment?


Probability density function for a logarithmic spinner

I'm having trouble deriving the PDF for the following problem (from the book Doing Bayesian analysis with R and BUGS):     Consider a spinner of the kind often found with board games, but with   a log10 scale from 1 to 100 (covering 0 to 360 deg). The spinner is fair, so any value is equally likely. What is the pdf at point $x$?   I know that the $x$ value at angle $t$ is given by  $$x = 100^\text{t/360}$$  Doing some transformation  $$x = \exp^{(t/360) \times \log(100)}$$  $$pdf(x) = pm(x)/dx$$  I also know  $$dt/dx = 360/(\log100 \times x)$$  Question     How to derive the answer below, using the information above?   Book answer     $$pdf(x) = 1/(2 \times ln(10) \times x)$$   Thanks.


Gmail filter based on X-OriginatorOrg header?

I'm looking to create a filter in Gmail that will take any email with a certain X-OriginatorOrg header value (e.g., example.com) and move it to a certain label. I've looked at the  list on Google's help pages, but I can't seem to find anything that will enable me to search any value in the message headers, even if Gmail hasn't specifically created a search operator for it.  Is this at all possible with Gmail? If not, is there a third-party Gmail app in existence that offers this functionality?


SQL Server triggers - order of execution

Does anyone know how SQL Server determines the order triggers (of same type, i.e. before triggers) are executed.  And is there any way of changing this so that I can specify the order I want.  If not, why not.  Thanks.


What is the probability that a coin is a loaded coin?

If you randomly pick a coin from a box that contains $90\%$ fair coins and $10\%$ loaded coins, (a loaded coin gives heads $90\%$ of the time), toss it $5$ times and get all heads. What is the probability that this is a loaded coin?   $$n = 5, x = 5, p = 0.1(0.9)^5$$  Where $n$  is the number of flips, $x$ is number of heads, and  $p$ is the probability of getting heads. so $$( 0.1 (0.9)^5 ) + (0.9 (0.5)^5) = 0.087$$  Can anyone see if the answer I provided is correct or not !


It appears that my flair icon returns a error:  And the page:  Does not show the example of said flair. Am I the only one ?


How do I create subtle background gradients like this?

This has been bugging me for ages. I want to recreate the shadows that are on the background of this image. Whenever I attempt to recreate something like this the shading ends up looking very amateur no matter how much noise or blur I add or how many layers I introduce. I would really appreciate help on this!


Can anyone clarify the concept of a "sum of random variables"

In my probability class the terms "sums of random variables" is constantly used. However, I'm stuck on what exactly that means?  Are we talking about the sum of a bunch of realizations from a random variable? If so, doesn't that add up to a single number? How does a sum of random variable realizations lead us to a distribution, or a cdf / pdf / function of any kind? And if it isn't random variable realizations, then what exactly is being added?


Why doesn't my question have zero views?

Why is the minimum question view count not 0? I have never seen (if it's not ) a view count less than 1. Even for my own just published question.  Is it viewed by me? If that is true — what is the reason to make it 1, not 0?


If $f$ is locally Lipschitz on $X$ and $X$ is compact, then $f$ is Lipschitz on $X$.  My proof: Since $f$ is locally Lipschitz on $X$, for each $x ∈ X$ there exists an open $B_x$ containing $x$ such that $f$ is Lipschitz on $B_x$. Consider the collection of all such $B_x$. This collection forms an open cover of $X$ and so there is a finite sub-collection $\{B_1, B_2, . . . , B_n\}$ which also covers $X$, since $X$ is compact. Since $f$ is Lipschitz on each $B_i$, there is an $B_i$ such that $d(f(x_i), f(y_i)) \leq M_i d(x_i, y_i)$ for all $x_i, y_i \in Wi$, for $i ∈ \{1, 2, . . . , n\}$. Then taking $B = max\{B_1, B_2, . . . , B_n\}$, we see that $f$ is Lipschitz on $X$.  Is my solution correct?   Can we use the fact of compact metric space that every sequence in $X$ has a convergent sub-sequence to prove the same fact??


Pre-1980s Sci-fi movie about killer aliens

I'm trying to remember an old movie title from when I was a kid. I have not been able to get any information. The movie is pre 1980. Is in another planet (maybe Mars, not sure) and there are this creatures that were thin with more than two arms, all ending in disk. If a person looked at them, the aliens will shine a light that will kill you (you will get your eyes burn or a black circle around the eyes). After you die an egg shaped structure will open and drag you inside.


Does anybody know any web hosts that cater for gmail forwarding?

Our organisation currently relies on setting up forwarders with our web host to direct emails sent to (e.g.) @organisation.com to and from gmail accounts. While our current web host allows the option to set up forwarders, we have frequent issues with all our emails bouncing, and the host has warned us that their forwarders are not designed to send outside their servers.  Does anybody know of any alternatives that would allow us to continue forwarding to and from gmail without having to use a client like Google Snatch, which would be problematic for us? Thank you.


Prove for $\gcd$ of two integers $a,b$, that $(a^n,b^n) = (a,b)^n$

Let $d=(a^n,b^n), d_1=(a,b)^n$; need show $d\mid d_1$ & $d_1\mid d$ to prove.  For the general case of $(a,b)\ne 1, (a,b)= (d_1)^\frac{1}{n}$, else $(a,b)=d_1$.  Let, $d_2= (a,b)=d_1^\frac{1}{n}\implies a=a'd_2, b = b'd_2\implies a^n= (a')^nd_2^n, b^n= (b')^nd_2^n$  Unable to progress further.


Let A and B be two random variables, both independent from another random variable C. Is A*B also independent from C?

Let A and B be two random variables both independent from another random variable C. If A is independent from B, is A*B also independent from C? And if A and B are no independent from each other?


I used to use .local as TLD for small household networks however I got a popup that I wasn't allowed to use it anymore after a firmware upgrade of an Asus Router. I choose now for .lan as internal TLD. Apart from MS Technet / MS best practice / issues with Apple devices to stop using .Local anymore is there any other reason to stop using it?


Modifying $view in hook_views_pre_render()

I'm using Drupal 8.0.5, and need to force a title on a View.  I've tried various Views hooks, but will focus on ().  There's a ViewExecutable $view taken as an argument, which is not passed by reference.  I've tried:  function mymodule_views_pre_render(ViewExecutable $view) {   $view->setTitle('foo');   // $view->save(); // I've also tried this }   I've gone through step-debugging to ensure it's getting called, but it seems the  method does not affect the output that renders. I've also set my theme back to Seven to ensure there's not a theme issue involved.  I'm also happy to embed the View using a custom block, but I am running into the same issue there.  How does one modify a  object properly?


$a, b$ and $c$ are the sides of right triangle where $c$ is the hypotenuse. Show that the inradius, $r$, of the right triangle satisfies $a+b+c=2r$. Circle is inscribed into the triangle.


What are the rules on #include "xxx.h" Vs #include ?

If I have my own library projects, which style should I use to #include the headers from them in my application? Are there strict rules, and do the two actually have different meanings to the compiler/preprocessor or is it about standards only?


Is my chicken stock still safe to eat? Left on stove on low-medium heat, partially uncovered +9 hours so it reduced

My boyfriend and I are new to cooking and might have made a few errors while making our chicken stock overnight. This is what happened, can someone tell me if our broth is still safe to eat? We started this pot at night, around 8pm.   We stuck a whole chicken in a huge pot of water with some veggies added for aromatics and brought it a strong boil and then simmered for maybe 1 hr and 20 min. At this point, we turn off the stove and take the chicken out to break down all the meat and put the bone carcass back in the pot. We turn back on the stove and decide to let the bone broth keep going overnight. It's probably 9pm and I'm already upstairs and he turns back on the stock but doesn't close the lid all the way, leaving it 25% exposed all night. I wake up at 5:30am and find the pot of stock is gently bubbling and has completely reduced, with maybe 3.5 inches of concentrated broth in a large pot, with all the bones exposed and maybe halfway covered in water. I fill up the pot again with room temperature water and close the lid, not adjusting the heat. Maybe 20 minutes later I decide I probably should bring it to a boil to be safe, and at this time I fish out all the veggies since I don't want them to break down more. The carrots and celery stalks are all still intact, just really soft. Onions were still somewhat intact but I think a lot of them turned to mush in the pot overnight. Now we are just going to let it simmer for a tiny bit more to get everything reconstituted.   After doing research I'm not sure if this pot of stock is salvageable and safe to eat, can someone advise me on whether to dump this or if it's okay to use this stock to make soup?  Thank you so much for your help :)!


I discovered today that there are a lot of non-Apple low-cost iPhone (and iPad) chargers. The cost is very low, so I am concerned about the quality of such chargers.   Are these alternative chargers safe or can they damage the iPhone (or its battery)? It is better to buy Apple components or can we safely buy third-party components?


How to solve List is not callable in python?

I am new to python and I have encounter this List is not callable error. What should I do to prevent this from happening? Thanks!  def PrintTxt(src, beg, end):     with open(src, 'r') as f1:         srctxt = f1.readlines()         for line in srctxt(beg, end):             print(line)  Filepath = 'C:\test.txt'  PrintTxt(Filepath,1,5)


Hyperthreading: is there a way to know from the command line if it is enabled in BIOS?

Is there a way to know from the command line of a standard LINUX distro (or by installing some tool), whether hyperthreading is enabled in the BIOS of a given machine ?


Assume the following model is the beginning of a car-like thing.    Now we want to begin adding the windows and roof. I want them to form a nice smooth curve on the edges, and came up with the following solution:  I create a bezier curve, align it as good as i can with the help of orthographic camera. then i extruded it to get the following:    After that I convert the curve to a mesh, join it with the car mesh and run "merge vertices by distance" to join the "alignment points". This looks so messy and it actually is. Now i have much n-gons, and it only gets a bigger mess when i add the missing faces.   How can I do such things in a better way? What is best practice here?


Cycles Render Pixleated when rendering (Example of a minecraft image)

So when I do a cycle render for a picture/video why is it really pixelated/fuzzy when its rendered??


Regex:  \b(\(\d{3}\)|\d{3})?[-.]?\d{3}[-]?\d{4}\b   My input file has two types of phone numbers. One, whose first 3 digits are enclosed in parenthesis and the other with no parenthesis.  Eg:  "(201)-450-4479" ,"234-345-3456"   I want to match both type of phone numbers using alternate operator.  Please suggest me. What modification is required for above mentioned expression to get the intended result?


How to get The Pitt slave clothes, after already looting the slave camp

The prerequisite for starting The Pitt DLC is to find slave clothes.  I already freed the slaves in question and looted the body in the slave pens long before I tried to start The Pitt DLC. This means that simply getting clothes from the area by the objective marker is not an option.  Is there any in game or other cheating solution to acquire appropriate clothes to start this DLC or to enter it anyway? Are there detailed enough save editing application out there?  I am playing on the Xbox 360. (Yes I know that was a poor choice.)


How to sort list of dates in apex and return the entire record?

I have a custom object called Insurance which has a Start Date field. I am planning to use bubble sort to sort the records based on the Start Date. This is what I have tried so far and got confused as to how to return all the records after sorting the dates.  //Sorting logic            List<Insurance__c> listOfRecords = new List<Insurance__c>();         integer iterationSize = listOfRecords.size();         for(Insurance__c iList1 : insuranceList){             listOfRecords.add(iList1);         }                                    for(integer y=0; y<listOfRecords.size();y++){             boolean swapped = false;             for(integer x =0; x< iterationSize; x++)             {                 if(x+1 == listOfRecords.size()) break;                 if(listOfRecords.get(x).IAR_Start_Date__c < listOfRecords.get(x+1).IAR_Start_Date__c)                 {                     Insurance__c swapVal = listOfRecords.get(x);                     swapped = true;                     listOfRecords.set(x, listOfRecords.get(x+1));                     listOfRecords.set(x+1, swapVal);                 }             }             iterationSize--;             if(!swapped){y= listOfRecords.size();}                      }    Edit 1: Insurance Wrapper Class to sort the records based on the IAR Start Date global class InsuranceWrapper implements Comparable {          public Insurance__c ins;     public Date insuranceDate;          public InsuranceWrapper(Insurance__c i){         ins = i;         insuranceDate = i.IAR_Start_Date__c;     }            // Compare Insurance based on the Insurance Date.     global Integer compareTo(Object compareTo) {         // Cast argument to OpportunityWrapper         InsuranceWrapper compareToins = (InsuranceWrapper)compareTo;          // The return value of 0 indicates that both elements are equal.         Integer returnValue = 0;         if (insuranceDate > compareToins.insuranceDate) {             // Set return value to a positive value.             returnValue = 1;         } else if (insuranceDate < compareToins.insuranceDate) {             // Set return value to a negative value.             returnValue = -1;         }          return returnValue;            }            }


How can I open .CR2 files from a Canon 750D in Lightroom 3 when I can't afford the monthly cost of the new Lightroom?

I am capturing images in Raw format now. I have a Canon 750d with me.  The format of the files is .CR2 While trying to open these in Lightroom,  it throws an error and wasn't able to open them.  I am using Lightroom 3 at the moment because I can't afford to spend a monthly fee for Lightroom latest.  Can I download a later version of Lightroom from somewhere? What are my alternates?


I am unsure whether to use "a" or "an" in the following sentence:  Video games have become a/an ubiquitous part of American culture.  For me, saying the two sentences out loud makes "an" seem like the right choice but Microsoft Word proofing disagrees.


Does the reverse of a number equal the reverse of the reverse of the reverse?

I define a function from positive integers to positive integers as follows. First, write the number in decimal notation. Then, reverse the digits and delete any leading zeros, if any leading zeros are there. Then, the number you get is the output of the function. I denote this function by $\operatorname{rev}(x)$. For example, $\operatorname{rev}(2)=2$, $\operatorname{rev}(10)=1$, and $\operatorname{rev}(120)=21$. Does the function $\operatorname{rev}$ satisfy the functional equation $\operatorname{rev}(x)=\operatorname{rev}(\operatorname{rev}(\operatorname{rev}(x)))$?


\bibliography only shows references from the template

I have the following codes:   thesis.tex  \usepackage[square, numbers, comma, sort&compress]{natbib}   \bibliographystyle{plainnat}   \bibliography{Bibliography/sample.bib}   Bibliography/sample.bib  @article{Reference1,     Author = {Alexander Schuller and Benjamin Dietz and Christoph M. Flath and Christof Weinhardt},     Journal = {IEEE Transactions on Power Systems},     Month = {September},     Number = {29},     Numpages = {9},     Pages = {2014-2022},     Title = {Charging Strategies for Battery Electric Vehicles: Economic Benchmark and V2G Potential},     Volume = {5},     Year = {2014}}   Still, TeXmaker (Mac OS) displays the standard reference list:   I tried with changing the bib file name, changing the default bibliography.bib file, and tried with creating new folders/links, but nothing worked out. There is also no other file on my drive, that contains these default references (checked by file search).   How can that be?  I would be grateful for any suggestions!  Thank you very much in advance.  Best Michael


Which cyan colored line is produced in the Thomson e/m apparatus?

Related:   After reading Lisa Lee’s OP on an electron deflection tube, although she had some misunderstandings on its operation, I still believe that her question is still relevant. If one looks at the Thomson e/m tube filled with helium gas (made by ), the tracer light is created by de-excited electrons, not by an electron beam interacting with a phosphor as in Lisa Lee's OP. That is, the accelerated electrons scatters off of a low pressure helium gas and emit a tracer line to follow the electrons path, as shown below.     Now if you look at the bright line spectrum of helium,     One can clearly see that there are two “cyan” color lines around 500 nm. Following in Lisa Lee’s footsteps, there is a series of question one can ask: (1) which line is emitted by the Helium gas atoms? Or are both lines emitted? (2) How can a variable accelerating voltage for the electrons always produce the same tracer line color? In theory, I assume that if I decreased the energy of the electron beam, I could produce red (around 670 nm) or yellow (around 590 nm) tracer lines, but that doesn’t happen. Somehow, it appears to me that the e/m tube is “tuned” just right so that the emitted light is always this “cyan” color. Why?


If $\sin\theta+\cos\theta=1$ prove that $\cos\theta-\sin\theta=\pm1$

So my work,  Squaring both sides $$(\sin\theta+\cos\theta)^2=1$$ $$1+2\sin\theta\cos\theta=1\ \ \ \ \ \text{-------(i)}$$ $$\sin\theta\cos\theta=0 \ \ \ \ \ \text{------(ii)}$$ So reverting back to $(i)$,  $$\sin^2\theta+\cos^2\theta+2\sin\theta\cos\theta-4\sin\theta\cos\theta=1-4\sin\theta\cos\theta$$ $$(\cos\theta-\sin\theta)^2=1-4\sin\theta\cos\theta$$ $$\cos\theta-\sin\theta=\pm1$$  But my teacher says that there is a shorter solution than that, so please can someone help me find that?


I need to create a loop to answer part c of the following linear algebra question. I'm new to Matlab so this is extremely confusing. I'm not sure how to make a loop that "counts" from 0-25 in order to generate a new matrix for each value. If someone could help me out it'd be great.


How to check if the file or folder exist in SharePoint document library using client object model?

Is there any way other than looping through the Files to check whether the folder or files exist in document library using clientcontext - client object model..  Can someone confirm me whether the below code will work or not. Or will it create any exception??  using(var clientContext = new ClientContext(site))  {  Web web = clientContext.Web;  Microsoft.SharePoint.Client.File file = web.GetFileByServerRelativeUrl("/site/doclib/folder/filename.ext");  bool bExists = false;  try { clientContext.Load(file);  clientContext.ExecuteQuery();   bExists = file.Exists;  } catch{ }  if (bExists ) { . .  }


Decreasing disk size on Google Virtual Machine Web Server

I am using Google Compute Engine VM for a web server.  I currently have 3TB as disk space but want to bring it down to 1TB.  Can someone tell me where I can do this from?  Thanks.


Use of Apostrophe s to show possession when the noun is singular but ends with s

Should I use apostrophe-s('s) or only a apostrophe(') with the noun to show possession when the noun is singular but it ends with s.


In the past this was due to still having an image strip within the Video Sequencer Editor, but this time that's no longer the case. I'm not sure what's happened to cause this, but whenever I try to render out a single image or an animation sequence, I just get a black screen for each render. I'm trying to render out a lightning animation on a separate Render Layer, along with a background on another. The Output under Render is set to PNG. I'm not sure what I've changed to cause it to give me a black screen. :-\


Why is the Mobius transform called a linear transform?

It has the form   $$ z \rightarrow w = \frac{a z +b}{cz +d } . $$  This is apparently not a linear function. A linear function should be in the form of   $$ w = a z +b ,$$  right?   ps: I am reading the book by Ahlfors.


How Do I improve the performance of my Drupal7 Site?

For somebody who is new to Drupal,  I see that there are many resources available on Drupal Caching but I am not sure which of them to use.


I tried to find this question somewhere else on here, and found a couple that were similar to it -- but all the answers seemed pretty convoluted, and I think it was surprising to me because I just imagined that SQL would have a way easier way to do this.  Essentially, I'm using a GROUP BY to group two values on top of each other. The coding is simple and works well, where I get these results using WITH ROLLUP at the end:  Type    Person  Count Type A  Person 1    10 Type A  Person 2    91 Type A  Person 3    13 Type A  Person 4    10 Type A  Person 5    2 Type A  NULL        126 Type B  Person 6    16 Type B  Person 7    63 Type B  Person 8    15 Type B  Person 9    22 Type B  Person 10   16 Type B  Person 11   3 Type B  Person 12   20 Type B  Person 13   44 Type B  NULL        198 NULL    NULL        360   Is there an easy way to substitute something saying if "NULL" is in the "Person" column, then make NULL AS "Subtotal" and if "NULL" is in the "Type" column, NULL AS "Grand Total?"  And if that's weirdly complicated, I'd be totally fine with just calling all of them "Total."  Thanks!


Repeating the indefinite article. Is it a matter of style? If so, which quote is more natural [or maybe sounds better]?     My name is Amy Purdy, I am a survivor, snowboarder, founder of   Adaptive Action Sports, globetrotter and daydreamer.   vs.     My name is Amy Purdy, I am a survivor, a snowboarder, a founder of   Adaptive Action Sports, a globetrotter and a daydreamer.   Source: Amy Purdy Note: the first comma is from the source. It should be replaced by a period.


Casting spells that require sight through familiar sight

Here is the setup:  I play a sorcerer and got blinded and deafened at the start of the combat I use my action to use my familiar's senses, which leaves me blinded and deafened, which I already am My familiar (an owl) uses his movement and lands on my head I am 10 ft away from my ally, and I want to use quickened spell to cast haste as a bonus action.  Haste states: "Choose a willing creature that you can see within range". Technically, I can't see him with my own eyes, but I can with my familiar's eyes which are on top of my head. In a real-world scenario, I don't believe this would be a problem for a caster. However, my DM ruled that I can't cast it since it strictly states that you need to see the target. Should this be allowed?


I've seen this since... mm... yesterday? Well, in the sidebar over the amount of views I'm supposed to see something like this:    But instead I see this:      This happens on Chromium Version 31.0.1650.63 Debian jessie/sid (238485).  .module.question-stats doesn't have tagged element


Must a continuous function on $\mathbb R$ with only rational values be constant?

As I'm preparing for my exam I have to solve the following question:  Determine if the following is correct: Let $f$ be a continuous function is $\Bbb R$. If $f$ recieves only rational values, thus $f(x)\in\Bbb Q$ for all $x\in\Bbb R$, then $f$ is a constant function.  My solution: The statement is not correct. Let $f$ be the following functoin: $f(x) = \begin{cases}x & x\in\Bbb Q \\ \lceil x \rceil & x \notin\Bbb Q  \end{cases}$ $f$ is continuous since $$\lim_{x\to x_{0}} f(x)=f(x_0)$$and certainly is not constant. Is my solution correct? Thanks.


Within my SharePoint 2013 form I have a field labeled "Type of Outage" which has different six different choices.  Further down the form I have fields labeled "day of the week" and "week #".  These two fields are used in order for me to sort within views the way I need to.  I don't want users to be confused and think information needs to be placed here.  I would like to disable "day of the week" field at all times unless "type of outage" is equal to "telework".  I would like to do the same with "week #" if "type of outage" is equal to "AWS".  I did see this question asked recently but I feel like I am needing something a little different:    Thanks for the assistance.


Would anybody possibly elaborate the differences between these?  Or, when/where- in which situations- would you rather use the followings?     Each student      Every student


the dual boot is not working. ubuntu installed but startup is with win7 only

I have a win 7 laptop. Today I installed ubuntu 12.04 on it.. after installation, it asked for restarting the PC. I clicked on "restart". after that there should have been a dual boot option or option to choose between win7 and ubuntu.. But there was no dual boot menu. win 7 start up took place. what to do now? how can I access ubuntu?  I had installed ubuntu from a USB drive. I had temporarily booted from USB. now how to run ubuntu?  replies are appriciated. :)


Does Health.app intelligently count step from multiple sources?

I recently bought an external tracker to track various activity and I wonder, whether I should disable tracking on my iPhone?  E.g. let's say my tracker reports that I made 1000 steps and my iPhone reports that I made 850 steps within same period (carried both devices together). What will be the result score?


How do you rough in lighting for drop ceilings?

I have a basement office that I intend to put a drop ceiling in. I was also planning to use the can lights that rest on the drop ceiling track itself rather than between the floor joists above. How would I rough in these can lights in this scenario since the drop ceiling supports won't exist until after drywall is up? Also, are there better alternatives for lighting?


Does a non-buoyant (denser than water) object (such as a lead diving weight) weigh any less when submerged in water?

I've just been discussing this question with my eldest son, who is an extremely intelligent man, as well as being an engineer, a sailor and a scuba-diver, and he believes that an object heavier than water, such as his anchor, or his diving weights actually becomes less heavy when submerged in water. I described a scenario, whereby a solid steel, or lead weight was suspended from a spring balance and slowly lowered into a body of water, the weight reading on the spring balance would not change. He insisted that it would... I think it would not, because an object that is denser than water would not posess any buoyancy once submerged, therefore the density and weight would remain unchanged. Any comments anyone??? There's a £5 bet riding on this :)


I set up the render and have tried multiple 'write' locations...hell I even tried to send the output .png to the desktop...no joy...renders 1/2 an hour and I still can't locate a file. Help please.


Error Message using: sudo apt-get update command

This is the output I get while trying the sudo apt-get update Running Ubuntu 16.10  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Changing a value node in many materials with a python script

Blender and python newbee here. I would be very happy if one of you could help me with the following problem i am running into: i have imported a scale model into blender, which i want to render in real life scale. When i scale the model, the materials do not scale with it and look bad. The materials however all have a  named "Scale", which, if i edit it with the same scale i am scaling the model, fixes everything and it looks right then.  It would be so much easier to have a script to do that semi-automatically, as the model uses way over 100 objects with different materials... What i could find was this , but i have not been able to adapt it to solve my problem, as i have no prior experience with scripting. What i would like to do:  Select the objects i want to change Go into scripting copy a script into it edit a number that should be put into the value node labeled "scale" of all selected objects run script be happy to get way better rendering results.  I am using Blender 2.83.4, in scripting the console says PYTHON INTERACTIVE CONSOLE 3.7.4 (default, Feb 17 2020, 16:23:28) [MSC v.1916 64 bit (AMD64)] Every help is much appreciated!


How to Get the QuickAction Name in Lightning Component?

We are in process of converting our existing JS buttons to Quick Action + lightning Components.  There are some 2/3 buttons which do the same functionality with very little difference among them. For Example, Creating a case with subject field Test1 in buttonA, Test2 in button B, Test3 in button C.  So ideally i should have 3 quick actions with 3 components.  But since this is a very little change, i do not want to create another new component+controller and would like to reuse 1 component for all 3.   My Solution:  document.getElementsByClassName('modal-header slds-modal__header')[0].innerText   Using the above js code, i get the modal header name (which is nothing but the quick action label).  Finally based on the value from above js, i assign value to the field in sObject.  Is this correct approach or is there any predefined function which can be used for getting the quick action name?