I have a Dell Inspiron N5110 running Windows 7 SP1. The webcam is Dell P/N: T3NPC.  I was on YouTube watching TeamFourStar. Right as I finished the video I was watching, I exited Mozilla and went to shutdown my computer for the night when I noticed (white LED next to camera) the built in webcam was on. I opened task manager and without even having to show processes from all users there it was, WebcamDell2.exe. I haven't used my webcam for about a month. Last time I used it was for Skype. I already have my computer calling me Dave,(HAL 9000) the last thing I need is for it start watching me sleep.


Looking for a story about a Sun that becomes self-aware

Trying to find this book. In it, over eons of time, a sun actually begins to think. He becomes self-aware, and then, one day MOVES itself, and its system.   I read this approximately 10-15 years ago, in paperback format, I believe.  Any help is appreciated!


Find all positive integers $a, b, c$ such that $1/a + 1/b + 1/c = 4/3999$.  The contest is just ended, so you may freely answer. (I did not attend the contest: it is an Italian contest for schools and the groups may ask other people for hints. This is how I got involved, but of course asking on MSE would have been cheating)  I found three solutions: I am explaining below what I did. I would like however to know if there is a more general approach.


How to show proof of funds for parents UK visitor visa

My parents are applying for visitor visa to the UK. My father receives a monthly pension. This comes into my mother's and father's joint account. My mother has Fixed Deposits (FD) under her name. Including the pension and FDs, they have sufficient funds for the trip.   Can they enter the total amount from FDs and pension in each application form, or can only my mother enter income from FDs in her form as they are only in her name.   Also, is a letter needed stating that father has the permission to use the money from FDs for the trip?


I changed the permission for /etc folder. Sudo is not working after that

I changed the permission for /etc folder to 777 with chmod. When I try to run Sudo after that it refuses to work. I found a few fix, such as going to recovery mode to fix things but recovery mode is not an option for me as Grub is not loading at all. Even holding shift key or repeat Esc does not load Grub. I tried to update grub but again, that requires sudo!    r2d2@Sdnhbuz-r2d2:~$ sudo update-grub sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin


Basic question about PDFs: multi-parameter PDF, not multi-variate

I'm kinda new to stats and trying to find info on PDFs that depend on multiple parameters, but I keep finding info only on multi-variate distributions. The point is that I have only one random variable $R$, but it depends on two or more parameters, say $(x_1,x_2,x_3)$. My actual goal is: I know the dependency of R on the separate params, and I need to create a joint PDF for it. An example can be: say you have the distribution of heights based on age, and separately based on weight, how do you combine those to one PDF such that given (age, weight) will give the correct height distribution? Any help will be very appreciated! Edit: it seems that there's not enough data to “build” a joint PDF. Will the answer be any different if I can assume everything is distributed normally? Meaning, can the “joint” mean and variance be determined given age + weight?


Is there a term for the case when the author does not see the flaws of their own project?

Lets say you are writing a book, making a cardboard game or composing a music.   After a while you are so invested into your creation and know it so well from inside and out. You can no longer see the major flaws in the design or errors you made. And only way is to get a feedback from other people who can give you a fresh perspective.  Is there a term for this "author's blindness"?


Default state space representation matrix in latex

In system theory it is very common to represent a system in state space form, which consists of 4 matrices, A, B, C and D. The professors have a nice way of representing these in a general form. Now I am writing the report, but I do not know how to represent it in such a form. If I would explain it in latex it would be  \left[  \begin{tabular}{c|c} $A$ & $B$ \\ \hline $C$ & $D$ \end{tabular} \right]   However, this does not work in equation form, but I do not know how to represent this is properly. It is important that the A,B,C and D are seperated by a thin line that does not touch the brackets around it.  I know this is maybe an odd question, but I would not know how to ask it otherwise.   EDIT: Thank you for the quick answer. This question is a duplicate from  Therefore the question can be closed.


Weak convergence in separable Hilbert spaces

Let $H$ be a Hilbert space with ONB $\{b_1, b_2, \cdots \}$.     I want to prove that the sequence $x_n = \frac{1}{n}\sum_{i=1}^{n^2}  b_i$ converges weakly to $0$.   Notice also that $\|x_n\|=1$.  The claim is easily verified on the basis elements, i.e. for large $n$  $$\langle x_n, b_i \rangle= \frac{1}{n}\to 0$$  but I fail to see why it is true for an arbitrary element $y = \sum_i \langle y, b_i \rangle b_i$. Why does  $$\langle x_n, y\rangle = \frac{1}{n} \sum_{i=1}^{n^2} \langle y, b_i \rangle$$  converge to $0$?


I'm trying to write a proof for this, but I don't know how to begin. Any help appreciated.  Suppose $g$ is a function  such that $g'(x) = \frac{1}{x}$ for all $x > 0$ and $g(1) = 0$. Prove that $g(xy) = g(x) + g(y)$ for all $x, y > 0$.    Let $h(x) = g(x,y)$


I'm using Ubuntu 12.04, and till day before yesterday, the shortcut was working perfectly. But when today I pressed it, it didn't open terminal. The terminal app still works. I am on GNOME3 3.4.2, and I updated recently using apt-get install gnome-shell  The Keyboard shortcuts window shows no problem -    Pls. help, what should I do now?


There is this sentence:     There are several parts to this problem, the most important (part) being that many of the learners find it rather boring.   I would like to know if the phrase in bold-faced type is short form of a clause or something. If yes, what is the original form of the sentence?  To me, it sounds like the original form is "the most important of which is that..." As in:       The man who lives next door = the man living next door   Does it follow the same rule or is the case different? And, can we simply use the verb "is" instead and say "the most important is that ..." If yes, what is the difference between "...being that..." and "...is that..." in the sentence? Is it only a matter of style?


RHEL: Creating stable names for network interfaces

We have a RHEL 5.5 box with 8 interfaces. And the eth interface naming is flip flopping. Sometimes eth0 comes up on physical port 7th, and sometimes on another physical port.   We want the naming to be as per the sequence of PCI BUS. I did the research and found that   cat /sys/devices/pci0000\:00/0000\:00\:1e.0/0000\:07\:07.0/net\:eth0/address\   This locations have the mac address of the eth devices. So If I get "address" in sequence from this pci bus locations and put them in ifconfig-eth0 to ifconfig-eth7 in order of PCI BUS location, my eth naming will be stable.  I tried:  find /sys/devices/ -name "address"   but it does not bring any results. I don't know why…   Any help here?


Generate polygons for each map extent in ArcGIS DDP layout

I have a set of maps I am creating with Data Driven Pages. Each map has a scale and rotation set by the feature class that is driving the map creation.  I would like to create a polygon that is the extent of each page that is created - not the polygon from the DDP index feature class. Is this possible?  I am playing around with the Fishnet, as my page size is the same, but not sure I can put the rotation into that.


I was reading about alpha decay and why it happens.  The strong force holds protons and neutrons together, but I don't get why does an atom emit helium nucleus when it has too many protons&neutrons? I mean why isn't the strong force holding on to it?


How to determine if certain operation is associative based on Cayley table

I have the following table and I don't know how to determine if an operation is associative based on the table. Is there an easy way to do it? Or it's just brute force  \begin{array}{|c|c|c|c|c|c|} \hline *& a & b & c &d &e \\ \hline  a& a&b &c&b&d\\ \hline  b&  b&c &a&e&c\\ \hline  c& c &a &b&b&a\\ \hline  d&b&e&b&e&d\\ \hline  e&d&b&a&d&c\\ \hline \end{array}  We can see that it's not commutative because $b*e \neq e*b$, but how do we check if it's associative?


Gnome extension: can I create a button in the top bar?

I'm trying to write my first (extremely simple) gnome extension. The documentation and API docs seem a bit lacking, so I'm having a bit of trouble. Most tutorials show how to add a button with a dropdown menu to the top bar, by instantiating a PanelMenu.Button, overriding _init, and then passing it to Main.panel.addToStatusArea. However, I'm looking for something simpler, and I can't find how to do it. Can I simply add a plain button to the top bar (with no dropdown menu), such that, when I click it, it executes a bash command? What class should I instantiate to do this?


Considering a second PhD, this time in statistics. Will any professors be interested in working with me?

I have a PhD in applied mathematics from a top university. I didn't realise it at the time because I was so focussed on my research, but it seems my research area (numerical analysis of PDEs) is actually very niche in terms of real-world problems in industry.  All the job listings I see are looking for people with a probability/statistics/machine learning background. There are literally hundreds of listings for these types of jobs for every one job in my area. I am currently a postdoc but I plan to leave academia for industry (probably finance) in the near future.  As the need for people with statistical skills is so clear, I have started considering the possibility of doing a second PhD, this time in a statistical area.  It would have to be part-time as I will be working full-time in industry. However, I currently work 7 days a week and very long hours on research as a postdoc, it is my hobby as much as my job. So when I begin working in industry, which is a standard 40 hour Mon-Fri working week, from my perspective I will have a huge amount of free time, i.e. eveninings and weekends, that I could dedicate to statistical research.  So I have several motivating factors for considering doing a second PhD:   Statistical skills are very much in demand and are of far more use in real-world applications than my own niche skillset. I would like to work on important real-world problems and it would be ideal to have a qualification for this. I absolutely love research and having a goal to work towards to motivate me to get really deep into a topic. I will have alot of free time when I move to industry soon, and I would like to dedicate that time to something constructive. I am interested in probability and statistics from a theoretical perspective and I would like to make a contribution to this field. Originally I applied for PhDs in this area, along with applied math PhDs; I went with the math PhD as I was also very interested in that area and it was a great opportunity to work with an excellent supervisor and university.   So a second PhD in a statistical area seems to make alot of sense to me.  Questions:   Would any professor even be interested in working with me considering that I already a PhD and that I plan to work on the second PhD during evenings and weekends? If you think there are professors that might be interested, how should I go about approaching them? I would not like to appear unprofessional. I don't need any funding as I will be working full-time. Will this help me in finding a professor for a second PhD or is it largely irrelevant?


How to install Nvidia driver in Ubuntu 18.04?

I downloaded the Nvidia driver for Linux from the official Nvidia website to install in my laptop. It is a file named NVIDIA-Linux-x86_64-390.67.run. How to install this file?


A question about (c0)complete categories

Does every complete category have a terminal object, and dually every cocomplete category an initial object?   If so, can someone indicate to me how one can see that?


Difference between number of scalars for proving linear transformations

Why did the solution to the first question only have one scalar, and the solution to the second had two scalars? Is it up to the solver's preference?  Question 1:     Define $T : \mathbb{P}_3 \to \mathbb{R}^4$ by $$T(p) = \begin{bmatrix} p(-3) \\ p(-1) \\ p(1) \\ p(3) \end{bmatrix}$$ Show that $T$ is a linear transformation.       Question 2:     Let $T : \mathbb{P}_2$ -> $\mathbb{P}_4$ be the transformation that   maps a polynomial $p(t)$ into the polynomial $p(t) + t^2 p(t)$. Show   that $T$ is a linear transformation.


In  is written that Kuratowski definition of ordered pair is now-accepted (I use down-right index "K" to mark Kuratowski formula):  $p_K = (a,b)_K := \{ \{a\}, \{a,b\} \}$  My question is why people not use below simpler definition instead:  $p = (a,b) := \{ \{a\}, \{b, \varnothing \} \}$  ?    UPDATE  After discussion on comments we get following   Advantages of $(a,b)$:   for paris $(a,\varnothing)$ the result of $(a,\varnothing) = \{ \{a\}, \{  \varnothing \} \}$ is simpler than $(a,\varnothing)_K = \{ \{a\}, \{ a, \varnothing \} \}$ (we don't need to duplicate $a$) for case when $a=b$ formula $(a,a)=\{ \{a\}, \{a,\varnothing \} \}$ save property that we have two elements(pairs) in set, which is loose by formula $(a,a)_K=\{\{a\}\}$   Disatvantages of $(a,b)$:   for case  $(\{\varnothing\},\varnothing) = \{ \{\{\varnothing\}\}, \{ \varnothing \}  \}$ we loose property that when $a\neq b$ the first element of pair  cardinality is $=1$ and second element cardinality is $=2$ which is saved for Kuratowski formula: $(\{\varnothing\},\varnothing)_K = \{ \{\{\varnothing\}\}, \{ \{\varnothing\}, \varnothing \}  \}$. In this case both elements has cardinality $=1$.  for case $a=b$ formula $(a,a)_K=\{\{a\}\}$ is simpler than $(a,a)=\{ \{a\}, \{a,\varnothing \} \}$ for Kuratowski formula is easy to extract pair elements using union/intersection (which is not possible/easy for my formulat):   $\pi_1( p_K ) = \bigcap (a,b)_K = \{a\}\cap \{a,b\} = \{a\}$  $\pi_2( p_K ) = \bigcup (a,b)_K = \{a\}\cup \{a,b\} = \{a, b\}$    I also realized that my definition is similar (but not the same) to


MacBook Air shuts down on fully charged, healthy battery

I have a MacBook Air 13" High Sierra, early 2015.  The computer is only a year old. Battery life is good, amperage good, holding a charge.  The problem is, the very instant I unplug the Magsafe adapter it shuts down. Goes black.  Dead.  I've reset the SMC to no avail.  I'm attaching images to show that the battery is indeed fine. Before I take this to the Apple store I thought I would check in with this bright, enlightened community.


PHP: fetch_assoc() into array causing null values

I'm trying to fetch data from a MariaDB database of festivals and respective locations. When running:  while($row = $sth->fetch_assoc()){}   and iterating over $row while outputting the values, I get data as it is in the database. However, when storing each row like so:  while($row = $sth->fetch_assoc()){     $results[] = $row; }   And echoing the results as JSON (echo json_encode($results);) I get this:  {"id":"0","name":null,"village":"0","startDate":"2019-01-16", "endDate":"2019-01-23","message":null}   This is for an existing Linux server, which I do not manage (I'm using CPanel). PHP version is 5.4 and MariaDB 10.1.37.  So far, a lot of code samples on Stack Overflow and other websites are using      $results[] = $row; for storing the results. I'm returning to PHP after 3 years of Swift only programming... So I suspect this could be a simple issue to solve...  Thanks!


I'm playing Minecraft and I'm not sure how to save my items/stuff when I die. I always lose my house and I found out I have to commit suicide to go back to my home. But then I can't find my items. This is always a problem for me! Please tell me the command for saving my items and for my house. My compass always points to the place where I spawn I don't understand I sleep at my house and I don't spawn there, is my compass broken?


$\tau$ be the topology on $\mathbb R$ generated by $\{(a,b] : a,b \in \mathbb R\}$ ; then is any basis for $(\mathbb R,\tau)$ must be uncountable ?

Let $\tau$ be the topology on $\mathbb R$ generated by the basis $\{(a,b] : a,b \in \mathbb R\}$ , then is it true that any basis for $(\mathbb R,\tau)$ must be uncountable ?


Why can partial derivatives be exchanged?

In the   post in this stack exchange, one of the answers to the questions of do partial derivatives commute is: Second order partial derivatives commute if f is $C^2$ (i.e. all the second partial derivatives exist and are continuous). This is sometimes called Schwarz's Theorem or Clairaut's Theorem. This theorem is in my textbooks, yet I cannot seem to find the proof in them. I have tried proving the theorem yet I have gotten stuck. So, what is the proof of Clairaut's Theorem, or why do partial derivatives commute? If the proof is too long, a link to the proof with an intuitive explanation will be sufficient.


Heathrow change in terminal flight UK Border control check?

I am traveling from NYC to Mumbai via London. Assume my connecting flight belongs to different terminal. If I have to change terminal at Heathrow, do I need to go through UK Border control ?


mysql real escape string solve sql injection definitely

I want to know if I add mysql_real_escape_string to my variables that's enough to solve sql injection  $get_id = "select * from `book` where id='".$mysqli->real_escape_string($id)."' limit 1";


Is network flair broken or is it just me?

From the about me section of my profile:    When I go to my network profile's flair tab () I get following code:           which is broken (as can be seen when I paste this right below:    Manually navigating to the link given gets me to "Oops! Something Bad Happened!"  now... is it just me, or is the network-wide flair currently borken?  And if it's just me, could that be because I hid some of my "top communities" with the new feature?


How to align a set of equations in the left yet retaining the auto-numbering?

I have found many codes through which equations can be aligned in the left but the problem is it assigns either a single number to all the equations or no numbering at all. I want something like fleqn or falign that can retain the auto-numbering feature of eqnarray.  For example:    \documentclass[fleqn]{article} \usepackage{amsmath} \begin{document}  \begin{equation} \begin{aligned} &A = B + C + .... \\  & A^\prime  = B^\prime + ...\\ &D  =  E + F ...\\ \end{aligned} \end{equation}  \end{document}     It assigns a single number to the whole set of equations, but I want numbering for individual equations and I don't want to assign numbers manually, it should be automated. Like when we use eqnarray.


How can I do disk partition in Ubuntu 18.04 while installing it?

I don't need windows any more, I have 1TB of hard disk and 6gb ram.Please help me out I'm a beginner!


Conservation of $\vec{p}$ in Ballistic pendulum

So I was thinking about this really simple situation and then I came across a little question. The situation is as follows: There is a block of wood suspended from a ceiling like support with two strings. The strings are perfectly rigid and light with no friction between various parts of the string. .A bullet is shot horizontally and gets embedded in the block My question why can we conserve momentum in the horizontal direction in this scenario when there is a component of tension acting in the horizontal direction which is an external force force. Why do we consider that the bullet block system has a horizontal velocity at max height? I get that $\frac{(M+m)v^2}{r}=(M+m)g$ And $\vec{F_{net}}=0$ at this point but there is still a velocity component perpendicular to the direction of the string which means the system will rotate about point of suspension further and has a greater height achievable which is a contradiction In conclusion shouldn't the equation for max height be $1/2mv^2=(M+m)gh_{max}$ rather than $1/2\mu v^2=(M+m)gh_{max}$ where $\mu$ is the reduced mass of the system Please correct my conceptual misunderstandings and shed some light on situation. Thanks in advance.


I need to match words of certain criteria, but only if they are within quotes*. I'd wish to do this via Regex.     I think there's a "jQuery plugin for that". Google for jQuery basic arithmetic plugin.   Let's say I have the above text as the subject of a Regex search, and I'd wish to find the word "plugin", if it is inside quotes. I do not need to match the second "plugin" word at the end of the sentence, since it's not within quotes, but (edit) I do need to match multiple occurrences of "plugin", were they enclosed by quotes (even if there are multiple occurrences inside a single quotation block).  With a working expression, the following words (highlighted with bold text) should be matched:     I think there's a "jQuery plugin for that". Google for jQuery basic arithmetic plugin.   I have a theoretical solution that would use a positive lookahead to determine if there is an even or odd number of quotes, and match the word if that number is odd.  What regular expression should I use to accomplish this?  *double quotes only    I use this expression to match words that are not surrounded with quotes, following a very similar logic:  \bplugin\b(?=[^"]*(?:"[^"]*"[^"]*)*$)


Why when flagging a post I see "rude or abusive":         But for comment similar option looks as "rude or offensive":        Should the text be different?  P.S. English is not my native language :)


Sci-fi short story about aliens using primitive weapons

Sci-fi short story where bear-like aliens try to invade Earth but it comes out that excepting hyperdrive technology, (which the author suggests to be primitive near to the wheel concept and not being discovered by us just occasionally) their technology corresponds to what Earthlings had around 19th if not 18th century.  Some unique details:   the story is quite short as far as I remember, maybe 3-5 pages aliens look bear-like their weapons are very close to  as alien ships have only primitive sewerage facilities, the story points a couple of times to how much they stink. at the end of the story, two captured aliens are shocked by the knowledge how much powerful will Earthlings become with the hyperdrive technology they have now (because with exception of hyperdrive Earthlings seem to them the most advanced tech civilization compared to other civilizations they know)


How can I automatically have a space added before \to iff there is a [ before it?  It's just that   $f\colon]a;b[\to[c;d]$   looks awfully bad...  Thanks!


Avoid Catastrophic Cancellation for difference between sines

Is there a way to rewrite $\sin(x)-\sin(y)$ that avoids catastrophic cancellation when $x \rightarrow y$?   I've tried to rewrite it using trigonometric identities such as  $$\sin(x)-\sin(y)=2*\cos\bigg(\frac{x+y}{2}\bigg)\sin\bigg(\frac{x-y}{2}\bigg)$$  but it always seems that there is an $x-y$ or other term that will cause the same catastrophic cancellation.


How to check if two samples come from the same population?

I was wondering if or which tests can be used to test if two samples come from the same population for data that is not normally distributed?


Is there a way to use nikon lens with a sony nex 3n

I have a nikon d3200 and I want to use those lenses on a Sony nex 3n. Is there an adapter for this or it it not possible?


The limit of infinite product $\prod_{k=1}^{\infty}(1-\frac{1}{2^k})$ is not 0?

Is there any elementary proof that the limit of infinite product $\prod_{k=1}^{\infty}(1-\frac{1}{2^k})$ is not 0?


Mail crashes permanently - can't open it anymore

I have a question and need a bit of help. I do have my complete mails on my Mac since 2012. Now today Apple Mail crashes when I opened it. I looked up where the files are and I do have more then 105 GB of mails in the Library. Now - YES - I could delete all folders - which would take away all my infos from the past.  I can't get in and archive or do anything.  Is there any fix to that or do I need to start new ??


Number of solutions of $x_1+x_2+\dots+x_k=n$ with $x_i\le r$

Let $n,k,r$ be positive integers. The number of all nonnegative solutions of the Diophantine Equation $x_1+x_2+\dots+x_k=n$ is $\binom{n+k-1}{n}$. Is there a general formula for the number of solutions of the equation $x_1+x_2+\dots+x_k=n$ with $x_i\le r$ for every $i\in \{1,2,\dots,k\}$?  If one defines $A_i$ to be the number of solutions with $x_i>r$ then the answer will be $\binom{n+k-1}{n}-|A_1\cup\dots\cup A_k|$. I think it can give a complicated formula. What is the formula?


I had asked this problem earlier but I was too vague in how I asked it so I'm making a new post to be more specific.      Problem: Say we have a series circuit with an ammeter, a cell with internal resistance and known emf, and a 10 ohm resistor. It is noticed that the resistor gets warmer. How would this affect the calculated value of the internal resistance?   Here is the official answer:   Here is my thinking: Since the resistor increases in temperature, it increases in resistance. Let's look at the equation ℰ = IR + Ir, where "ℰ" is emf, "I" is current, "R" is external resistance, and "r" is the internal resistance of the cell. if R increases and current is constant, in order to maintain constant emf, r must decrease. Where's the flaw in my thinking?


Did Hermione use the Memory Charm Obliviate?

When Hermione erases her parents' memories with the Memory Charm "Obliviate" she doesn't store them in a bottle for safe keeping. To my knowledge Obliviate erases memories instead of hiding them or removing them for storage. So how could she have returned what was no longer there to return? Edit: Did she actually use Obliviate? In the movie she clearly says "Obliviate". Is it possible to cast a spell while uttering the words to a different spell? In the first movie she tells Ron that he is saying "Wingardium Leviosa" wrong implying that the wording is the reason the spell is not working. We have seen wizards cast spells without saying the words implying that there is a level of mastery involved. However Hermione states later that she has never performed the Obliviate spell so she would have no prior experience.


Define a preprocessor value from command line using MSBuild

I need to create a demo version of an existing large application consisting of multiple projects.  I'd like to use the existing projects, and just neuter the functionality via preprocessor directives   #if DEMO     mycode.NeuterNow(); #endif   We are building our app using MSBuild, and I'd ideally use something along the lines of:  MSBuild -DefineProperty:DEMO MySolution.sln   Does such functionality exist?


CSS Flexbox / Fixing footer on bottom of the page in all cases

I'm getting issue to get my footer at bottom of page in all cases, or it's disappearing when scrolling up or down, or it's just showing at the top of the page... Tried to find out on here but impossible for me to get it.. I do apologize if this post is a duplicate from an existing one..   body {   display: flex;   flex-direction: column; }  footer {   background-color: rgba(255, 255, 255, 0.9);   height: 25px;   order: 4;   border-top: 1px black solid;   margin-top: auto;   text-align: center; }    Text of my footer     Not sure if Grid might help on such situation and make life easier? And thank you for any answer! :) Rgds, Erick


I have a small question about simple groups: When we're decomposing a group $G$ we take a non-trivial normal subgroup of maximum order $G_1$ so that $\frac{G}{G_1}$ is simple and so on. But why is $\frac{G}{G_1}$ simple? I thought it had to do with the fact that $G_1$ is of maximum order, so there is no 'bigger' normal subgroup in $G$?


Why I cannot access class after I use package?

I write a normal class   public class TestAccess { } class T{     private int i=0;         int j=0;     protected int k=0;     public int m=0; } class TT {     public void m(){         T t= new T();         t.j=9;     } }   Then I access it in the same directory with another class     public class TestProtected extends T   {      public void method(){      System.out.println(k);     }     public static void main(String[] args)      {         System.out.println("HW!");     } }   But when I use package in the second class, there is something wrong to access class T;     package m;     public class TestProtected extends T       {          public void method(){          System.out.println(k);         }         public static void main(String[] args)          {             System.out.println("Hello World!");         }     }   Can you guys tell me how I can access class T in package m?  The issue here is not related with public, I have tried, to be more general, what if you only have class T instead of its java code? The situation is you can access the T class without package, but you cannot access it with package.


I have a server that runs websites and exim for e-mail. I've added countless RBLs including barracuda to try and cut back on incoming spam. However, they still keep coming in. The clients use RoundCube. Is there a way for them to submit e-mails as spam or something?  Are there any other ways I could try and cut down on the incoming spam?


scp copy over ssh doesn't work - permission denied error, please?

It's driving me nuts! I just want to transfer one simple file from laptop to server.  I'm using ubuntu on both machines.  So I have:  -rwxr-xr-x 1 sandro    414622 2011-10-14 23:42 sandrophoto-html.tar.gz   And I'm sending it using:  sudo scp -P XXXX sandrophoto-html.tar.gz usern@server.local:/media/xx/xx/xx   And I get: scp: /media/xx/xx/xx/sandrophoto-html.tar.gz: Permission denied  p.s. I might be doing this other way around - I want to send file tar.gz that is located on my desktop, to remote server into the folder /media/yadayda


Exclude specific site from search result

In Google, we can use minus (-) operator to remove one site from the results.  Example:          How can I do this when I search using stackexchange.com search?


Can I Travel to USA from India just before 4 days before my visa expires to USA, I never Travel to USA before, but I was issued visa for 2 months, I mentioned to visa offer that I am traveling on September 10th and stay there for 15 days, yet Visa granted and visa expiring in Sept 8th, Well does it possible for me to stay in Usa for one month? and Does it effect for my future visas to usa?


I added a user to a group, but group permissions on files still have no effect

I changed permissions of a file (chmod g+w testfile) and running ls -l testfile gives:  -rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile   I then added a user to that group ("/etc/group" has user1:x:1000:user2 line), but am failing to edit that file as user2. Why is this so?


How to detect why my ubuntu 18.04 is crashing multiple times

I have been work around a new desktop (with 3 months of use) which has been freezng and crashing multiple times.   In the first 2 months I used the Ubuntu 16.04, and multiple times I have crash with the firefox browser and in java using Pycharm IDE.   One week ago I change to Ubuntu 18.04 (by a erase, repartitioning and reinstall). It have been show the same problem of frozen when I'm use the firefox or brave browser.  I don't know what I can do to find the problem. Maybe is my pci wifi adapter or not (sincerely I don't know what is happing).  In attached is the last crash (occurred at 21hs in Brazil time in 25/06/2018).  Any help I will save my life (I work at computer to finish my phd thesis, in a hurry...).      ################################### Running tests over the disks   Running a SMART test: Apparently there is no problem at the filesystem disk.    Running the SMART test in the data disk 1.     Running the SMART test for the disk 2.     Runnning the SMART test in the backup disk.


Measurable function $f: \mathbb{R} \to (0,\infty)$ with $\int \chi_If d\lambda = \infty$ for every open interval of $\mathbb{R}$

True or False: Is there a measurable function $f: \mathbb{R} \to (0,\infty)$ such that $\int \chi_I f d\lambda = \infty$ for every nonempty open interval $I \subset \mathbb{R}$ where $\lambda$ represents Lebesgue Measure on $\mathbb{R}$?  I am pretty sure there is such a function as I am not able to prove the statement. However, I cannot think of an example.


chi square test for 6X4 contingency table

i wanted to find out the association between two variables and it reduced to 6X4 contingency table. grand total is 103. the spss output of chi square test displayed "82.1% cells have expected count less than 5". test shows as significant by the p value. is this reliable enough to reject the null hypothesis? or how to make it reliable? can i used monte carlo confidence intervals to check the pa value? please guide me. thanks


Trying to remember a book where technology is split amongst different political groups

I think I read this in the early 90's. In this story, technology was divided up and zealously guarded by the cultures that use it. Different groups held different tech. One group held the secret of internal combustion. The protagonist was from off world and knowledgable. He had to travel from place to place and used his wits to assist/escape from those he encountered along the way.


What is currently the best way to get a favicon to display in all browsers that support Favicons?

What is currently the best way to get a favicon to display in all browsers that currently support it?  Please include:   Which image formats are supported by which browsers. Which lines are needed in what places for the various browsers.


Let $f:G\to G$ when $f=x^2$ if $f$ is homomorphism then $G$ is abelian group.  suppose $f$ is homomorphism so $f(xy)=f(x)f(y)$ $\forall x,y \in G$   then $xy=yx$  how to prove  this sentence.


As the base I was given $\dfrac{4^{n}}{n + 1} < \dfrac{(2n)!}{(n!)^{2}}$ for $n\ge2$ For $n=2$ the inequality is right. I tried to prove it for $n+1$ and i got here $ \frac{4^{k+1}}{k+2}< \frac{(2k+2)!}{((k+1)!)^2}$. I don't know how to solve it from here. Someone in the comments referred to me that this question has already been answered and I am very thankful.


For every family A of subsets in X there exists a unique minimal σ-algebra containing A. How do we prove this ? Can somebody help me please ?


Is there a way to force the Nikon D40's rear LCD panel to stay off?

Is there an off/disable control anywhere? I realize that the INFO button toggles it off, but it comes right back on as soon as you tap the shutter, and that it a problem in low light situations where the LCD keeps blasting me in the eye.


LaTeX; Refer in one document-class to chapters in another document-class

I want to include an article (with documentclass: IEEEtran)  into a report (with another, company specific, documentclass). I want to refer in the article (myarticle.pdf) to the ten appendices of the report.  I tried it with  include pdf:  \documentclass{Report}   \usepackage{pdfpages}   \begin{document}    Report   includepdf{myarticle.pdf}%refer in this article to ~\ref{app:req}   \appendix   \chapter{Requirements}% The first appendix   \label{app:req}   \end{document}     The problem is that with pdfpages the article can not refer to the appendices of the report. How can I solve this?


I'm reading Kim and there are many lines like "Canst thou?".   Seems this is a conjugation of verbs on the 2nd person pronoun.   Nowadays seems English only has conjugation on the 3rd person pronoun. Was there conjugation on other person pronouns? and when did such conjugation go away?


I am looking for an easy answer of how to fill an area defined by an inequality like for example y >= 4 - x in latex.   I would also appreciate if you could tell where the options go as well, for example I might be intereseted in replacing the line by a dashed line or I might be interested that the area has transparency in case it croses with other areas.  As guidance, I would like to fill the area under the two straight lines of this picture:    KR


I have a lot of data objects, and I want to be able to generate a String representing each object, without implementing a toString method for each one.  I'm thinking of reflection for getting the fields and its values.  any other ideas?  thanks.


Taking the automorphism group of a group is not functorial.

Once upon a time I proved that there is no functorial 'association' $$F:\ \mathbf{Grp}\ \longrightarrow\ \mathbf{Grp}:\ G\ \longmapsto\ \operatorname{Aut}(G).$$ A few days ago I casually mentioned this to someone, and was asked for a proof. Unfortunately I could not and still can not recall how I proved it. Here is how much of my proof I do recall:  Suppose such a functor does exist. Choose some group $G$ wisely, and let $f\in\operatorname{Hom}(V_4,G)$ and $g\in\operatorname{Hom}(G,V_4)$ be such that $g\circ f=\operatorname{id}_{V_4}$. Then, because $F$ is a co- or contravariant functor we have $$F(g)\circ F(f)=F(g\circ f)=F(\operatorname{id}_{V_4})=\operatorname{id}_{\operatorname{Aut}(V_4)},$$ or $$F(f)\circ F(g)=F(g\circ f)=F(\operatorname{id}_{V_4})=\operatorname{id}_{\operatorname{Aut}(V_4)},$$ where $\operatorname{Aut}(V_4)\cong S_3$. In particular $\operatorname{Aut}(G)$ contains a subgroup isomorphic to $S_3$. Then something about the order of $\operatorname{Aut}(G)$ leads to a contradiction.  I cannot for the life of me find which goup $G$ would do the trick. Any ideas?


Can't access uploaded image to generate thumbnail in PHP

I had trouble fixing the file uploading, but then I ran chmod a+w /var/www and it worked - files were being uploaded to my specified directory.  However, my script also generates a thumbnail immediately after the file is uploaded. This part is not working. I'm assuming that the files uploaded by the script are locked (they have a small lock appearing near them when going to the directory manually) and it can't grab the uploaded file and create a new thumbnail file based on it.  I'm not getting any error or something.  How do I edit the permissions in the way that lets me create new files using "locked" files?


Why are templates not redefined, why is it all written in the header file?

If I will write something like this:  // A.h #ifndef A_h #define A_h class A { public:     void f(); };  void A::f() { } #endif //A_h   // B.cpp #include "A.h"  void foo() {     A a;     a.f(); }   // C.cpp #include "A.h"  void bar() {     A b;     b.f(); }  // main.cpp #include "B.cpp" #include "C.cpp" using namespace std;  int main() {     foo();     bar();     return 0; }   I get a linker error as such:     error LNK2005: "public: void __thiscall A::f(void)" (?f@A@@QAEXXZ)   already defined in B.obj   Why does the same problem not happen when the A class is a class template? Eventually it becomes a plain class (a non-template one) during compilation, right? For this reason, I expect the same behavior as a non-template class, i.e. a linker error.


is it possible to spawn wither skeletons using commands?

The annoying thing about wither skeletons is: There is no way I know of to spawn them in the overworld!  I have determined that there is no way to spawn wither skeletons in the overworld without commands. So that is what I am looking into.   I want to know if there is a command that summons wither skeletons so then I can play around with it a bit and possibly even convert it so I get a wither skeleton spawner.  Also, I already know that if you spawn a skeleton in the nether it has an 80% chance to spawn as a wither skeleton.


How do I write span like this? (linear algebra)

How do I write the word span like this?  UPD: it's not clear from the screenshot but the letters are thinner than the normal ones (letters not in math mode)


I will be needing to decide if I should roll my 401k from a previous job into the 401k at my current job.  Are some companies which the employer has a 401k through much less appealing than others, or are they all similar?  I'm wondering how likely it would be that the rate of return drastically decreases after rolling over into a similar fund with a different provider.


How many arrangements of k items from n items when there are duplicate items

Given the letters "BALL", how many arrangements of two letters exists? Using brute force, i.e. without using any counting technique, I get the following arrangements:   AB AL BA BL LA LB LL   Please let me know how I can get the correct answer using a counting formula. For example, if I wanted to know the number of arrangements that include all the letters, it would be $\frac{4!}{2!}$; where the 2! accounts for the duplicate L's in BALL.


How can I draw a matrix with dots in tex like the one shown below:


Do I need a visa to work for my company in Europe whilst holidaying in New Zealand?

My Europe-based company has offered to allow me to work during my holidays in New Zealand which would really help out.  I go there the 1st June.  Do I need a special visa or is a tourist one OK?


On MOSFETs with multiple source pins, is the so-called "Kelvin-connected source pin" connected any different internally? Or is it just like every other source pin?   EDIT: Just to be clear, I am not asking what the Kelvin connection is for. I'm asking whether it is physically implemented any differently than the other source pins or whether it is just an extra regular, old source pin.


`\makeatletter` and `\makeatother` : the difference relationship and usage of

Can a MWE be given showing the difference, relationship and usage of \makeatletter and \makeatother ? The existing answer explain these commands but do not provide a useful MWE which would show the usage of them. They say \makeatletter % changes the catcode of @ to 11 <your changes here> \makeatother % changes the catcode of @ back to 12


I am trying to authorize another sandbox/production to create connection. When I first time authorize the connected app, it is returning the Auhorization Code in the URL, however when it gets redirected to LWC app, code is disappeared because the parameter is 'code' not like 'c__code'. So, pagereference state is unable to read the param value. It was working till the previous release, with Spring release it started behaving differently.  Original URL: not working    I tested with adding 'c__' to the param manually and it worked fine.  Modified URL: Working    is there a way we can rename the redirected URL params dynamically?  'code' to 'c__code'


Middle align an inline paragraph and svg inside a div, why do I have to use a flexbox?

Well consider I have two elements: an svg image (icon) and a paragraph (styled to be inline). I wish to render them side to side inside a div, and I wish to align them "in the middle".  Now I "got" this working using display: inline-flex for the outer div as follow:

test
  <svg class="icon" focusable="false" viewBox="0 0 24 24" aria-hidden="true" role="presentation"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path><path fill="none" d="M0 0h24v24H0z"></path></svg>
   css:  .grouper {     display: inline-flex;     vertical-align: middle;     align-items: center;     width: 100%; }  .borderhelper {   border-style: solid;   border-width: 1px;   border-color: 0; }  .icon {     width: 1em;     height: 1em;     display: inline-block;     font-size: 24px; }  p {   margin: 0px; }   .  However I am wondering: why would I need a flexbox in this case? It makes no sense as there's no flexing to happen, only aligning. Yet when I try to change display to "inline-block" the alignment fails.


How to show $\int_{0}^{\infty} \frac{dx}{x^3+1} = \frac{2\pi}{3\sqrt{3}}$

I am trying to show $\displaystyle{\int_{0}^{\infty} \frac{dx}{x^3+1} = \frac{2\pi}{3\sqrt{3}}}.$  Any help? (I am having troubles using the half circle infinite contour)  Or more specifically, what is the residue $\text{res} \left(\frac{1}{z^3+1},z_0=e^\frac{\pi i}{3} \right )$   Thanks!


tell if last command was empty in PROMPT_COMMAND

In bash, from inside PROMPT_COMMAND, is there a way to tell if the user just hit 'return' and didn't enter a command?


Set width of modal window of lightning action

Do you know how can I set the width of a modal window opened by a lightning component action? In the edit options I can set only the height but is not enough because the content of my table is not completely shown. Here is the code:  <aura:component access="GLOBAL" implements="force:hasRecordId,force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" controller="OrganizeEnvelopeController" >     <aura:handler name="init" value="{!this}" action="{!c.doInit}" />     <aura:attribute name="plico" type="Envelope__c" />     <aura:attribute name="fixedDocs" type="Bit2Sign__Fixed_Document__mdt[]" />
         <lightning:layout horizontalAlign="space">             <lightning:layoutItem flexibility="auto" padding="around-small" size="6">                 <aura:text value="Tipologia Plico: "/>                 <aura:text value="{!v.plico.Bit2Sign__Tipologia_Invio__c}"/>             </lightning:layoutItem>             <lightning:layoutItem flexibility="auto" padding="around-small" size="6">                 <aura:text value="Descrizione Plico: "/>                 <aura:text value="{!v.plico.Name}"/>             </lightning:layoutItem>         </lightning:layout>
     <aura:text value="Elenco Documenti"/>

Nome documento

Tipologia Documento

Stato

Firmatari

File

Action

             <aura:iteration items="{!v.fixedDocs}" var="docs">
                     {!docs.Label}	                     {!docs.__Document_Type__c}	                     {!docs.__State__c}	                     {!docs.__Firmatari__c}	                     <lightning:input aura:id="file" type="file" label=" " name="file" multiple="true" accept=".pdf, .doc, .docx" onchange="{!c.save}"/>	                     <lightning:button label="" iconName="utility:delete" iconPosition="left"/>
             </aura:iteration>             <c:OrganizeEnvelopeRow />             {!v.body}

 </aura:component>


How to execute this procedure in PL/SQL?

I have this table in the below format:     Persnbr | Userfieldcd | Value 01      | Port | Funds    01      | Vip1 | Systems   02      | Port | Bank   02      | Vip1 | Authority      This is how I want it:    Persnbr | Port  | Vip1 01      | Funds | Systems    02      | Bank  | Authority   As I dont know the all the fields in the userfieldcd column, I am trying to dynamically pivot the table. So I am using this procedure but I dont know how to call it in PL/SQL developer. I am using Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production     CREATE OR REPLACE procedure dynamic_pivot_po(p_cursor in out sys_refcursor) as sql_query varchar2(1000) := 'select persnbr ';  begin     for x in (select distinct userfieldcd from persuserfield order by 1)     loop         sql_query := sql_query ||             ' , min(case when userfieldcd = '''||x.userfieldcd||''' then value else null end) as '||x.userfieldcd;              dbms_output.put_line(sql_query);     end loop;      sql_query := sql_query || ' from persuserfield group by persnbr order by persnbr';     dbms_output.put_line(sql_query);      open p_cursor for sql_query; end; /   When I call the procedure using:  VARIABLE x REFCURSOR   BEGIN          dynamic_pivot_po(:x)       END       /   it gives me      ORA-00900: Invalid SQL statement.


'pyrcc4' is not recognized as an internal or external command?

C:\Users\Department\.qgis2\python\plugins\np>pyrcc4 -py2 resources.qrc -o resources.py      'pyrcc4' is not recognized as an internal or external command,      operable program or batch file.   How do I solve this problem?


Total Ubuntu/Linux in general noob here.   What is the difference between /home and /Home ? I've noticed I need to use sudo to do anything in /home. /Home (home folder?) has pictures, videos, etc. in it so thats where I want to really create new folders and stuff but I can't seem to get to it using cd.


Show that there exits infinitely many functions $f:\mathbb{N}\to\mathbb{N}$ satisfying  (a) $f(2)=4;$  (b) $f(mn)=f(m)f(n)$ for every $m,n\in\mathbb{N};$  (c) $f(m)<f(n)$ whenever $m<n.$


Nullpointexception when try run app only after app was closed by system(Android)

I noticed that my app only when is closed by system during open there is nullpointexception.  Look I have Activity here I get data form db and create an object. Then I create new Fragment and set before created object to frament by setter.  And use fragment manager to display fragment.  Any here is a problem because in onCreate method field with my object is null.  I am sure I seted object and it wasnt null.   Activity where I get data from db and create Fragment  public class ActivityForSingle extends AppCompatActivity {   Employee emloyee;    protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_for_single);     ...      getEmployee(); // here I get emplyee from db and create employee object      SitePersonFragment f = new SitePersonFragment();             f.setEmpoyee(employee); // here emplyee is not null             getSupportFragmentManager().beginTransaction().add(R.id.frameForFragment, f, "USER_SITE").commit();   }   public class SitePersonFragment extends Fragment implements Update, DatePickerDialog.OnDateSetListener {   Employee employee;    setEmployee(Employee e){       this.emplyee = e;   //here e and employee is not null    }    @Override      public void onViewCreated(View view, Bundle savedInstanceState) {     super.onViewCreated(view, savedInstanceState);    //here employee is null   // why??  }   What happend?  I cannot debug because app is  destroyed.


According to the Kolmogorov definition, given two events A and B,  $P(A|B) = \frac{P(A \cap B)}{P(B)}$ . But I dont really understand why this is true. Why isn't $ P(A|B) = P(A \cap B) $??  Somebody please help me get an intuition why the Kolmogorov definition is true??


Nvidia drivers 375.39 are crazy from suspend, GTX 970

This happens right after wake up:    What is the problem? Nvidia or Ubuntu?  And where to report this bug? Can't find Nvidia proprietary drivers repo on Github.  By the way it's nice to see Nvidia dirvers' logs:  375.39 Fixed a bug that caused system hangs when resuming from suspend with some GPUs. Fixed a regression that could cause corruption when hot-plugging displays. Fixed a regression that prevented systems with multiple DisplayPort monitors from resuming correctly from suspend.


I would like to use the attached texture as colored window glass. I found the following tutorial for this, but I can't follow it pretty early on ("Assign a material and add the following nodes") Is this tutorial still up to date? At the very bottom, a church window was attached in the reply that gives exactly the effect I want to achieve with my file. What do I have to do for this? Tutorial:


Permanantly delete BITS annd Windows update services in windows 10

I have windows 10 enterprizes. i know that there is no way to stop windows 10 update. but we can only stop it from downloading updates by using registry and group policy. but it still takes too much of internet to check for updates on my computer i don`t want to update it because i use  WUD to update it. actually i want to delete these services so that neither windows update nor any other app can use internet through BITS. any way to delete it. i had tried soloutions to disable it but after some time they automaticaly start.


Help with file transfer from windows to ubuntu

I have looked long and hard for this, but can't find exactly what I'm looking for. I want to edit videos on my Linux computer because of how much better the software is for editing. I record videos on my Windows computer which are mostly tutorial videos using an Elgato capture card these files are very big.    The question is: How can I set up a wireless file transfer from Windows to Ubuntu?


International layover - do I need to go through immigration and customs?

I am looking into flights from Tokyo to Bogotá. The layover is in ATL - Hartsfield-Jackson. Do I need to go through immigration and customs if I am not going to stay in ATL or the US? Both flights with same airline, KLM.


Remote desktop connection to linux from windows

How can i connect to my desktop version of linux from windows, i need graphic mode ?


How can I mount a partition from dd-created image of a block device (e.g. HDD) under Linux?

I have an image of the entire disk created using dd. The disk structure follows:  kent@cow:~$ sudo fdisk -l  Disk /dev/sda: 750.1 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000b8508     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *           5       90872   729929303+  83  Linux /dev/sda2           90873       91201     2642692+   5  Extended /dev/sda5           90873       91201     2642661   82  Linux swap / Solaris   The image was created using:  dd if=/dev/sda of=image750.img   How would I, if it is possible, mount /dev/sda1 from the image so that I'm able to read the contents?  It's not an option to clone the HDD again, I know how to do it if I had only cloned the single partition by itself. I hope it's still possible with the current image.


Have there been cases of errors in math papers, that were undetected for so long, that they caused subsequent errors in research, citing those papers. ie: errors getting propagated along. My impression is that this type of thing is extremely rare.  What was the worst case of such a scenario? Thanks.


What is a tag wiki? How do I write a good one?

As the title says:     What are tag wikis, and how do I write a good one?


Speed of editing attributes in QGIS from a Python plugin

I'm trying to edit the value of an attribute for each feature in a layer using a QGIS Python plugin. I've found that doing this outside of editing mode is much slower than while editing (even including committing the edits). See code below (lines interchangeable at the same point in a loop). The difference in speed for my sample dataset is 2 seconds (edit mode) vs 72 seconds (not edit mode).  Modifying an attribute in edit mode:  layer.changeAttributeValue(feature.id(), 17, QtCore.QVariant(value))   Modifying an attribute outside of edit mode:  layer.dataProvider().changeAttributeValues({ feature.id() : { 17 : QtCore.QVariant(value) } })   Is this an expected behavior? I don't need the user to be able to undo the changes, so I don't think I need to use edit mode.  Edit 1: See full code below with both versions included (but commented out):  def run(self):     try:         # create spatial index of buffered layer         index = QgsSpatialIndex()         self.layer_buffered.select()         for feature in self.layer_buffered:             index.insertFeature(feature)          # enable editing         #was_editing = self.layer_target.isEditable()         #if was_editing is False:         #    self.layer_target.startEditing()          # check intersections         self.layer_target.select()         self.feature_count = self.layer_target.featureCount()         for feature in self.layer_target:             distance_min = None             fids = index.intersects(feature.geometry().boundingBox())             for fid in fids:                 # feature's bounding box and buffer bounding box intersect                 feature_buffered = QgsFeature()                 self.layer_buffered.featureAtId(fid, feature_buffered)                 if feature.geometry().intersects(feature_buffered.geometry()):                     # feature intersects buffer                     attrs = feature_buffered.attributeMap()                     distance = attrs[0].toPyObject()                     if distance_min is None or distance < distance_min:                         distance_min = distance                 if self.abort is True: break             if self.abort is True: break              # update feature's distance attribute             self.layer_target.dataProvider().changeAttributeValues({feature.id(): {self.field_index: QtCore.QVariant(distance_min)}})             #self.layer_target.changeAttributeValue(feature.id(), self.field_index, QtCore.QVariant(distance_min))              self.calculate_progress()          # disable editing         #if was_editing is False:         #    self.layer_target.commitChanges()      except:         import traceback         self.error.emit(traceback.format_exc())     self.progress.emit(100)     self.finished.emit(self.abort)   Both methods produce the same result, but writing via the data provider takes much longer. The function classifies proximity of building features to nearby fields (purple) using pre-created buffers (brown-ish).


Why didn't Voldemort murder the Dursleys?

Voldemort couldn't kill Harry as long as he called the Dursleys home. Why didn't he just murder the Dursleys? This would prevent Harry from being able to live there.


Prove via mathematical induction that $4n < 2^n$ for all $ n≥5$.

I did the following base case $n = 5$ $$\begin{align*}     4(5) &\lt 2 ^5\\     20 &\lt 32 \end{align*}$$ So true.  $$\begin{align*}     4n &\lt 2^n\\ n &\lt 2^{n-2}\\ \log_2(n)+2 &\lt n \end{align*}$$ But I don't think this is right. Where do I add in the $(n+1)$.


error while adding repo for kde plasma 5 in ubuntu 14.04

I was trying to install KDE plasma 5 in ubuntu 14.04 64 bit when i am trying to add  sudo apt-add-repository ppa:neon/kf5   i am getting this error  Cannot add PPA: 'ppa:neon/kf5'. Please check that the PPA name or format is correct.   I was following the tutorial


Javascript regex with literals and single quotes

I came across this problem when trying to stop a single quote (') being matched in a string.   Here is a snippet from a console session in Chrome. Params is the regex I'm trying to match (no single or double quotes should be allowed?). I would have expected the first two execs to find a match and the second two to fail due to the single quote in the text.  Suppose this raises two questions:   Why does the literal behave differently to the variable? Why does the third exec find a match when there should be no match on the single quote?   thanks  > params >  >> "^[a-zA-Z0-9 -_/&,()\[\];:+~.!\\]*$" >  >  > new RegExp(params).exec("some string") >> ["some string"] >  > new RegExp("^[a-zA-Z0-9 -_/&,()\[\];:+~.!\\]*$").exec("some string") >> null >  >  > new RegExp(params).exec("some string's") >> ["some string's"] >  > new RegExp("^[a-zA-Z0-9 -_/&,()\[\];:+~.!\\]*$").exec("some string's") >> null


How's This for a Simple HTTP Callout Retry Framework?

Most of what I have read about retry operations is that they are vaguely complicated and indepth. I have written the code below which seems to accomplish this without too much confusion - I'm wondering if there are any pitfalls I am not seeing here.   The class uses a top-level schedulable class, which calls a queueable class to make the callout, and if the callout is unsuccessful, it just schedules the top level class again five minutes later. After testing it appears this works indefinitely.   A simple string token, assigned at the first invocation, is also passed between the classes, and I have tested and found that the token does persist, even when runs are scheduled for a later time.   Thanks for helpful thoughts!  public class SelfServe implements Schedulable {      public String Token = null;      public void execute(SchedulableContext ctx) {                  RetrieveMachineDetails Job = new RetrieveMachineDetails();             Job.Token = Token;             System.enqueueJob(Job);      }           public class RetrieveMachineDetails implements Queueable, Database.AllowsCallouts {          public String Token = null;          public void execute(QueueableContext context){                                            Http http = new Http();             HttpRequest request = new HttpRequest();                             request.setEndpoint('https://app.endpoint.com/api');                     request.setMethod('POST');                     request.setHeader('Content-Type', 'application/json;charset=UTF-8');                                      request.setBody('{"query":  "$message_=\'METRIC\' && $tier=\'customer\' "}');                                                                                HttpResponse response = http.send(request);                            if (response.getStatusCode() == 200) {                 //do stuff                  }              else { //retry                  DateTime Dt = system.now().addMinutes(5);                                String day = string.valueOf(Dt.day());                                        String month = string.valueOf(Dt.month());                                          String hour = string.valueOf(Dt.hour());                                       String minute = string.valueOf(Dt.minute());                                                       String year = string.valueOf(Dt.year());                                   String ScheduledTime = '0 ' + minute + ' ' + hour + ' ' + day + ' ' + month + ' ?' + ' ' + year;                  SelfServe Job = new SelfServe();                     Job.Token = Token;                 System.schedule('SelfServe Job'+Dt, ScheduledTime, Job);              }         }        }  }


I've installed the GNOME Shell in Ubuntu 12.04 and I want to change the "Shell Theme", But it doesn't allow me to do that.  The alert says something like: "The GNOME-Shell extension is not activated", and I want to install it with the console, But it returns me an error.  How can I solve this problem?


differences between 2 JUnit Assert classes

The JUnit framework contains 2 Assert classes (in different packages, obviously) and the methods on each appear to be very similar. Can anybody explain why this is?  The classes I'm referring to are:  and .


Too much space after integral sign with unicode-math and lualatex

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.)  Consider the minimal example  \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \setmathfont{lmmath-regular.otf} \begin{document} \begin{equation*}   \int f(x) \, \mathrm{d}x \end{equation*} \end{document}   When compiled with lualatex the space between the integral sign and f(x) is too large, larger than what I get if I compile with xelatex (or if I'm not using unicode-math).   With lualatex:       With xelatex:       Without unicode-math:      I'm using a recently updated TeXlive 2011, and the same thing happens with Asana-Math.otf or xits-math.otf as math font. Can this be corrected somehow?


Ubuntu 19.10 download. Is there a problem?

I run 18.04 on my boat computer and wanted to try 19.10 on my desktop, but three download attempts have all failed after downloading 2.0 GB out of 2.3 GB.  Is this a problem with the download or with my computer which is currently running Windows 10 Professional?


hierarchical retreival of records in postgresql

I am using postgresql-9.2 . I have a table of products which stores the information about the products and its child table is content table , which contains the products linked to it.  PRODUCT MASTER TABLE  MASTER_ID                NAME   1                      PRODUCT1 2                      PRODUCT2 3                      PRODUCT3 4                      PRODUCT4 5                      PRODUCT5 6                      PRODUCT6 7                      PRODUCT7 8                      PRODUCT8 9                      PRODUCT9 10                     PRODUCT10   PRODUCT_CONTENT TABLE  PRODUCT_CONTENT_ID                     PRODUCT_MASTER_ID        CONTENT_ID A1                                          1                       2 A2                                          1                       3 A3                                          1                       4 A4                                          2                       3 A5                                          2                       4 A6                                          2                       5 A7                                          3                       5 A8                                          3                       7 A9                                          3                       8 A10                                         5                       8 A11                                         7                       9 A12                                         8                       10   I am writing a query to retrieve all the products(ids associated with them) with their content products which should display something like this hierarchy  MAINPRODUCT                     SUBPRODUCT     2                               3     2                               4     2                               5     3                               5     3                               7     3                               8     5                               8        7                               9     8                               10   I have written the following query   SELECT PM1.PRODUCT_MASTER_ID AS MAIN,PC.CONTENT_ID AS CONTENT     FROM PRODUCT_CONTENT PC      LEFT JOIN PRODUCT_MASTER PM ON PM.PRODUCT_MASTER_ID = PC.CONTENT_ID     LEFT JOIN PRODUCT_MASTER PM1 ON      PM1.PRODUCT_MASTER_ID = PC.PRODUCT_MASTER_ID     WHERE PC.PRODUCT_MASTER_ID IN        (        SELECT PC.CONTENT_ID FROM PRODUCT_CONTENT PC         LEFT JOIN PRODUCT_MASTER PM ON            PM.PRODUCT_MASTER_ID = PC.CONTENT_ID        LEFT JOIN PRODUCT_MASTER PM1 ON            PM1.PRODUCT_MASTER_ID = PC.PRODUCT_MASTER_ID        WHERE PC.PRODUCT_MASTER_ID IN ('1')       )   IT RETURNS SOMETHING LIKE THIS  MAIN            CONTENT  2                       3 2                       4 2                       5 3                       5 3                       7 3                       8


figure label inside standalone is not working. I am not able to refer the figure , its printing ??. my code is printed here

\usepackage{lscape}  \usepackage{afterpage}% removing blank space before landscape \usepackage{adjustbox} \usepackage{graphicx}   these are the packages i am using for the below figure    \afterpage{     \begin{landscape}         \begin{figure}\label{fig:604}             \centering             \begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{Comparison of Velocity ratio FEM,Experiment and Analytical}\end{minipage}},rotate=180,center}                 %\includestandalone[angle=90,width=\linewidth]{Velocity_ratio_comparison}                 \includegraphics[width=0.8\linewidth]{image001.png}                 %\caption{My caption}             \end{adjustbox}              \end{figure}     \end{landscape} }


What's the point of multiple (more than 2) down-votes; it hurts?

Suppose I have posted a question or answer a question, which people don't consider suitable, so, they down-voted it.  Now why does some other person (3rd person) have to down vote it? If you have another opinion put it in comments or if you liked it up-vote it.  I believe it's not collecting votes to totally remove someone from "Stack", for example like voting in a presidential election, one wins and another gets removed from post, it's certainly not that kind of voting.   "Hey Jerry, hey Peter, it's me Michael" I also not liked it, c'mon if you want to participate, put your comments. Someone already stated that this is not the right answer/question by down-voting, so unless you have a different opinion don't use the voting feature.  Am I right, or there is some other significance of down-voting, person with zero points or less than zero points, can also exit in "Stack"?


How to know if a mac is under DEP (Device Enrollment Program)?

I just bought a used macbook air 2015 I made a system restore... and was confident the mac is not stolen because of these checks  1- there were no icloud on the computer, and I was able to add my own iCloud normally.  2- the mac firmware had no password  but now, I see something that I have never seen before  I keep seeing this message, always skipping it    1- what are the consequences of allowing DEP, and is it reversible?   2- how to contact the person who has DEP and ask them to remove it from the program?  3- when buying a new mac, how to know if it's on DEP? (the most important question)  4- someone on IRC said that if i was unable to authorize my machine from itunes then the machine is on DEP.. is this correct?  5- the same person on IRC says that there could be a previous owner, and this owner can format my computer and see all of my files even if i have my own icloud on it, is this correct?  the person who sold it to me imported 60 macs from a closed startup in sweden, I can return it to the seller and get my money back, but I really need an answer for these questions...


Loop variable value not correctly passed to task

I have a very simple C# .NET multitasking example that is not producing the result I expect.  (I am using VisualStudio 2017 on Windows 10, and this is a .NET Console application.)  Here is the code:  using System; using System.Threading.Tasks;  namespace Multithreading_Example {     class Program     {         static void Main(string[] args)         {             Task[] tasks = new Task[3];              for (int i = 0; i < 3; i++)             {                 int n = i;                 tasks[i] = Task.Run(() => TestTask(i, n));             }             Console.ReadLine();         }          static void TestTask(int taskNum, int n)         {             Console.WriteLine("{0} {1}", taskNum, n);         }     } }   Here is the output that this program prints:  3 0 3 1 3 2   (The three lines of output could theoretically appear in a different order because the tasks are asynchronous, but that is fine.)  TestTask() simply prints the two integers that are passed to it.  Those two integers should be identical - one of them is the loop variable "i," and the second one is a new local variable "n" that is set to the same value as "i."  In other words, the above program should (it seems to me) produce this output:  0 0 1 1 2 2   The weird part, though, is when I run the program, TestTask() always prints "3" as the first number (see the actual output, above).  Why?  This feels like maybe some kind of optimization bug in the compiler, which is getting confused by the loop variable "i" being passed into the task.


Do I say "I am going" or "I will be going"?

Which sounds more correct?   I am going to the post office in 2 hours  I will be going to the post office in 2 hours   Is there any difference between the two sentences?


Apex Programming: Calculate weeks difference between the two dates?

How we can calculate weeks between two dates? I dont see any API. Does any API exsists? How we can do that?  I see there is an API to calculate Months only  Date myDate1 = Date.newInstance(2015, 2, 17); Date myDate2 = Date.newInstance(2017, 12, 17); System.debug('Months Between Two :'+myDate1.monthsBetween(myDate2)); System.debug('Weeks Between Two :'+myDate1.weeksBetween(myDate2));   The below line will never works. Any pointers to get weeks difference ?  System.debug('Months Between Two :'+myDate1.weeksBetween(myDate2));


Show that $$\displaystyle\sum_{k=0}^{2n}(-1)^k \dbinom{2n}{k}^2 = (-1)^n\dbinom{2n}{n}$$ where  $n \in \mathbb{N}$   Induction didn't work, and the formula $\displaystyle\sum_{k=0}^{2n}\dbinom{2n}{k}^2 = \dbinom{4n}{2n}$ wasn't very usefull. $(1+x)^{2n} = \displaystyle\sum_{r=0}^{2n} \dbinom{2n}{r} x^{r}$ and $(1-x)^{2n} = \displaystyle\sum_{l=0}^{2n} \dbinom{2n}{l} (-1)^lx^{l}$. Multiplying the two gives me,   $$ (1+x)^{2n}(1-x)^{2n} = (1-x^2)^{2n} = \displaystyle\sum_{k=0}^{2n} \dbinom{2n}{k}(-1)^kx^{2k} = \left( \displaystyle\sum_{r=0}^{2n} \dbinom{2n}{r} x^{r}\right)\left( \displaystyle\sum_{l=0}^{2n} \dbinom{2n}{l} (-1)^lx^{l}\right) $$  Coefficient of $x^{2n}$ on left side will be $\dbinom{2n}{n}(-1)^n$. But how do I exactly calculate the coefficient of $x^{2n}$ in the R.H.S? Please give a detailed solution


Software updates crashes on nvidia driver

I just downloaded and installed 14.04 to replace a xubuntu 14.10 that has been crashing on every reboot. Now, with nothing else installed, Software updates crashes when it gets to the nvidia driver.  Any hints on where to start to fix this would be appreciated.  mobo: M4A89GTD-PRO  Bios: 2101  cpu: AMD Athlon(tm) II X4 645 Processor  ram: 6111188 kB  hdd: ATA OCZ-VERTEX3  gpu: GeForce GT 440 Mouse / keyboard: M510, K350 single unifying receiver  Linux 3.13.0-43-generic (x86_64) Ubuntu 14.04.1 LTS   edit - based on a recommendation below, I've completely wiped the proprietary driver and replaced it with the xorg.edgers driver. Technically, it corrected the problem, so this is solved.


How to pass a stack to a function when the function modifies the stack?

Here are the constraints :   Only  STL must be used for stack creation (do not use struct to create stack) Sort the stack without using any loops   I have figured out the solution with constraint 2. But when I create a stack using STL to satisfy constraint 1, the stack is not getting sorted and the output is just same as the input.  Expected Output : 5 4 3 2 1 My Output       : 1 2 4 3 5  Below is the code :  #include<iostream> #include<stack> using namespace std;  void SortedInsert(stack<int> S,int x) {     if(S.empty() || x > S.top())         S.push(x);     else     {         int temp = S.top();         S.pop();         SortedInsert(S,x);         S.push(temp);     }  }   void StackSort(stack<int> S) {     if(!S.empty())     {            int x = S.top();         S.pop();                 StackSort(S);         SortedInsert(S,x);     } }  void main() {     int arr[5] = {1,2,4,3,5};      stack<int> S;      for(int i=4 ; i>=0 ; i--)         S.push(arr[i]);      StackSort(S);      while(!S.empty())     {         cout<<S.top()<<" ";         S.pop();     }      cin.get(); }


Intuition - why does the period not depend on the amplitude in a pendulum?

I'm looking for an intuition on the relationship between time period and amplitude (for a small pertubation) of pendulums.  Why does the period not depend on the amplitude? I know the math of the problem. I am looking for physical intuition.


How to get the IPV4 address for an interface from /proc

Is there a clean, simple way to get an IP address for a network interface from /proc, similar to the way I can get the MAC address for a network interface? Ideally I would just type cat /proc/<foo>/{interface_name} and get the IPv4 address.  I'd rather not run anything other than cat.


Changing my administrator user's username has removed privileges

I've taken over my wife's Mac mini running osx high sierra.  I was in a rush and went into system preferences, clicked on the current user (advanced options), which was named 'user', which was also the administrator, and changed the name to 'grant'. This didn't end up changing the username. I then tried to create another administrator user called 'grant'.   I logged out. When I logged back in the only user available to log in with was 'user'. When I opened user preferences I see that 'user' is no longer an administrator.  I now have no way of accessing an administrator. When I try move files into the applications folder it asks for admin username and password. I've tried every combination of 'user' and 'grant' and nothing works.  Any help getting me access to an admin user will be appreciated.    Here is the screen where I try remove the file in single user mode


Is it possible to make multitouch gestures on Ubuntu Xenial Xerus? For example with TouchEgg? I tried already but without success.


Why is electric field strong at sharp edges?

I learned about the coronal discharge, and the common explanation is because the electric field is strong where radius of curvature is small. But I haven't found anything yet that explains why electrons like to crowd at the peaks, and escape from the holes. My intuition suggests electrons try to distribute on the surface as uniform as they can, but they don't. Why?


Who to up-vote - Integrated two answers to get to what I needed

I asked a question over on StackOverflow and got two answers to my question. The one answered my question in the most technical sense, but an integration of the two answers received is what I used in my actual code, since that actually delivers the result I was looking for.  I couldn't have done it without the two answers I received, but who do I give credit now? Which one should I mark as "correct"? Or should I answer my own question, mark it as correct, and just up-vote the other two? I just want to be fair to the people that helped me and give them the credit they deserve, I couldn't do it without them.  This question is different to the one  because without the one answer, the other doesn't entirely do what I want it to do, and vice versa.  Here is my question if you're interested:


Background: I did an "A" level in electronics 25 years ago; now been a professional programmer for nearly 20 years. I want to build some very basic circuits to interact with an Arduino but I've forgotten a lot, apparently :)  Question: I am playing around with the below circuit, and it is confusing me. The values below are taken from a website, and they work fine and as expected. However, they clip the bottom half of the waveform.  Reading that the gain is only set by RL and RE, naively, I though that biasing the transistor to half the supply would move the waveform up so that it would be amplified the same in both directions, so I altered R1 to 11k.  However, this seems to completely stop the circuit amplifying at all; in fact the gain is now ~-0.5. Now, I'm willing to accept that my change didn't do what I wanted, but if the load is only set by RL and RE, why did this have such a dramatic effect?  NOTE: I have read all the many Common Emitter questions on the site and I'm afraid the answers are a bit over my head, so if you could aim your responses at my beginner 17yo self, that'd be good :)  NOTE TWO: RE should be 470R, not 5R. Screenshot is wrong.  (Also I cannot get it to run in Circuit Lab for some reason, so here it is in PartSim - )


I have some issues creating a login activity.  Even though I put the right username (123456) and password (123456789).  I made sure to put the getText() method inside onLogin but I always get the message "login failed" and so I assume I don't get any data from EditText, and so I can't see what's wrong. this login java class:        public class LoginActivity extends AppCompatActivity {      private EditText UsernameEt;     private EditText PasswordEt;     AlertDialog alertDialog;       @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_login);            UsernameEt=findViewById(R.id.username);         PasswordEt=findViewById(R.id.password);         alertDialog = new AlertDialog.Builder(this).create();         alertDialog.setTitle("Login Status");       }      public void onLogin(View view) {         String username = UsernameEt.getText().toString();         String password = PasswordEt.getText().toString();         String type = "login";          //BackgroundWorker backgroundWorker = new BackgroundWorker(this);         //backgroundWorker.execute(type, username, password);          if(username=="123456" && password=="123456789"){              alertDialog.setMessage("Login success");             alertDialog.show();         } else {              alertDialog.setMessage("Login failed");             alertDialog.show();         }     }   }     and this is the login xml:        <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     xmlns:app="http://schemas.android.com/apk/res-auto"     android:background="@drawable/bg"     android:fitsSystemWindows="true">       <LinearLayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_gravity="center"         android:orientation="vertical">          <EditText             android:id="@+id/username"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:backgroundTint="#FFFFFF"             android:drawableLeft="@drawable/ic_person_black_24dp"             android:ems="10"             android:hint="IPN"             android:inputType="textPersonName"             android:textColor="#FFFFFF"             android:textColorHint="#FFFFFF" />          <EditText             android:id="@+id/password"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:backgroundTint="#FFFFFF"             android:drawableLeft="@drawable/ic_lock_black_24dp"             android:ems="10"             android:hint="Password"             android:inputType="textPassword"             android:textColor="#FFFFFF"             android:textColorHint="#FFFFFF" />          <Button             android:id="@+id/buttonLogin"             style="@style/DefaultButton"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_gravity="bottom|center"             android:layout_marginTop="16dp"             android:layout_marginEnd="0dp"             android:layout_marginRight="0dp"             android:background="@drawable/gradiant"             android:onClick="onLogin"             android:text="@string/login"             app:layout_constraintEnd_toEndOf="parent"             app:layout_constraintStart_toStartOf="parent" />     </LinearLayout>  </ScrollView>


If, for example, someone casts Fog Cloud, next to the target A and target B when they're fighting each other. If target B would run away from the fight he would cause an Opportunity Attack but when the area is Heavily obstructed (by the Fog Cloud spell) all the targets are counted as Blinded.     Blinded Condition         A blinded creature can’t see and automatically fails any ability check   that requires sight.   Attack rolls against the creature have advantage,   and the creature’s Attack rolls have disadvantage      -     Opportunity Attack:      In a fight, everyone is constantly watching for a chance to strike an   enemy who is fleeing or passing by. Such a strike is called an   opportunity attack. You can make an opportunity attack when a hostile   creature that you can see moves out of your reach. To make the   opportunity attack, you use your reaction to make one melee attack   against the provoking creature. The attack occurs right before the   creature leaves your reach.   If target B tries to leave target A's reach can target A use his Perception to beat target B's stealth? Or is target B is not detected, since target B cannot be seen? Or is target B forced to use Disengage even though he can't be seen?


How to prove this using modular arithmetics?

We know that p, q - odd primes such that $$(q - 1) | (p - 1)$$ and a is an integer such that $$ (a, pq) = 1 $$ How do we prove that $$ a^{p-1} \equiv 1 \mod pq $$


2.8 - Is it possible to assign (override) a material to a whole collection?

I have a collection that contains linked assets. I would like to override their materials and give them a unique material. Is it possible to assign a material to a whole collection, and how ?  Thanks !


what's the wrong when we use Euclid logic to prove the twin prime conjecture?

what's the wrong when we use Euclid logic to prove the twin prime conjecture ? $$Q1=p1*p2*p3*.....*pn+1$$ $$Q2=p1*p2*p3*.....*pn-1$$ where: $$Q1-Q2=2$$  Euclid's proof considers any finite set S of primes


Pattern of out-of-sample reconstruction error in NMF cross-validation: why is it monotonically decreasing?

I am using nonnegative matrix factorization, NMF (in its variant OPNMF, which is subject to additional orthogonality and $H = W^TV$ constraints) to factorize a dataset.  To find the optimal number of components in my data, I am doing split-half cross-validation. This means, I split my original dataset in two random splits for some thousands of times, and at each iteration I run opnmf on both splits for a given number of components K. Then I reconstruct the split matrices, in-sample and out-of-sample:  $\widehat{V_1,_1} = W_1*W_1^TV_1$ or $\widehat{V_1,_2} = W_2*W_2^TV_1$  and I calculate the reconstruction error by simple difference: $insampleRecErr = \widehat{V_1,_1} -V_1$ and $outofsampleRecErr = \widehat{V_1,_2} -V_1$   I do this for a large number of components, going up to almost the entire number of dimensions in my data.  However, the out-of-sample reconstruction error is not behaving as I expected. I was expecting the in-sample and out-of-sample reconstruction errors to follow the classic trend of being (1) monotonically decreasing for in-sample reconstruction, and (2) for out-of-sample reconstruction, to decrease until the optimum number of parameters, and then increase again when the model overfits.  What I see, instead, is that also the out-of-sample reconstruction error decreases monotonically at increasing number of components:   I tried creating synthetic datasets suited for testing NMF algorithms (via the synthethicNMF function in an R package), but I observe the same behaviour also in these artificial data.  This seems to suggest that it is related to NMF per se, and not my data.  Can anyone help me understand why is out-of-sample recontruction error also decreasing motonically?  In other sources (), this is not observed. So, it doesn't seem like it is a property of NMF to achieve better reconstruction at increasing number of components.  But if so, what would be a better way to assess generalization for NMF?  Thank you very much in advance!


How can i count the object of my request?  I am using ajax and  requesting json data to this url pbxApi+"/conference/participants/"+circle+"/"+data.conference+"/"+data.uniqueid+'?jsonp=response'; and i want to count the object of the response .   This is my code    var uri = pbxApi+"/conference/participants/"+circle+"/"+data.conference+"/"+data.uniqueid+'?jsonp=response';         getJsonData(uri, function(res){             console.log(res.length); });   This is my functiion:    var getJsonData = function(uri,callback){     $.ajax({       type: "GET",       dataType: "jsonp",       url: uri,       jsonpCallback: 'response',       cache: false,       contentType: "application/json",       success: function(json){         callback(json);       }     });   }   This is my response   response({"_id":"561713a78693609968e3bbdd","event":"ConfbridgeJoin","channel":"SIP/192.168.236.15-00000024","uniqueid":"1444352918.94","conference":"0090000293","calleridnum":"0090000288","calleridname":"0090000288","__v":0,"status":false,"sipSetting":{"accountcode":"0302130000","accountcode_naisen":"201","extentype":0,"extenrealname":"UID1","name":"0090000288","secret":"Myojyo42_f","username":"0090000288","context":"innercall_xdigit","gid":101,"cid":"0090000018"}})   Thanks :)


Windows 10 - disable reopening programs after restart/startup

Occasionally, a forced restart is happening on my Windows 10 computer. When the OS is restarted every program that I've had prior to the restart is reopened at startup. The programs are reopened like I would just double-click them.  I usually hold 5-6 windows of Visual Studio and few more programs all together. When the above happens, I have to wait several minutes until I can start working, as everything takes ages to load.  Is there a setting to disable these programs from automatically opening at startup?


Short key for moving windows between monitors?

Is there a short key to move a window between the different connected monitors?  In my setup I have 2 monitors in use. Usually I am on Unity, but I also use Cinnamon. Is there a way to move a window from say the left monitor to the right monitor?


Could someone make the proof into a hinted exercise?

Let $(c_n)$ be a sequence of positive numbers.  Could someone make the proof of the inequality  $\displaystyle\limsup_{n\to\infty}\sqrt[n]{c_n}\leq\limsup_{n\to\infty}\frac{c_{n+1}}{c_n}$  into a hinted exercise?


Eclipse Not Opening. Worked fine yesterday. Not opening today. Getting error log message

Here's the error log that it directed me to. I'm very new to coding and have no idea what it's asking me to fix. I tried to look it up but the few solutions I could find didnt't help. I changed the environment variable HOME to %USERPROFILE% but I don't think that was the right thing to do. Please help!  I've tried re-installing Eclipse but it still won't work.       !SESSION 2017-03-28 10:56:50.318 -----------------------------------------------     eclipse.buildId=4.6.2.M20161124-1400     java.version=1.8.0_112     java.vendor=Oracle Corporation     BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA     Framework arguments:  -product org.eclipse.epp.package.java.product C:\Users\ssfro\OneDrive\Fanshawe\INFO-1150 Programming\workspace\School     Projects\src\Spencer_Frost_INFO1150_Project.java     Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product C:\Users\ssfro\OneDrive\Fanshawe\INFO-1150 Programming\workspace\School Projects\src\Spencer_Frost_INFO1150_Project.java      !ENTRY org.eclipse.core.resources 2 10035 2017-03-28 10:56:52.694     !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.  !ENTRY org.eclipse.osgi 4 0 2017-03-28 10:56:52.842 !MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (84).


How can I strip out extra whitespace from jsp pages' output?  Is there a switch I can flip on my web.xml?  Is there a Tomcat specific setting?


How to access the ext4 file system on Windows XP ?  I've tried the ex2explorer but I can't copy the files.


$(f_ng_n)$ that does not converge uniformly to $fg$

Suppose that the sequences $(f_n)$ and $(g_n)$ converge uniformly to respective functions $f$ and $g$ on some domain $S$. Can someone provide me with a counterexample (preferably with proof) of sequences $(f_n)$ and $(g_n)$ converge uniformly to $f$ and $g$ on $S$ but $(f_ng_n)$ does NOT converge uniformly to $fg$ on $S$.


I appear to be completely invisible on google despite their search console claiming that I am indexed

I recently put the site for my web design business up on google. It's been online for about two weeks and according to Google Search Console, has been indexed several times. Despite this, I can only find it on google if I type the actual url into google. Typing the business name verbatim doesn't work, typing the contents of the meta description tag doesn't work. The things that do come up are a worse match. I can type my business name perfectly and things that are off by one or more characters will show up instead. I've gone to the 15th page of google search results and found nothing. The google search console is even claiming that my page has 7 total impressions, with an average position of 1. I can't tell if that's just because of me typing the url exactly or if it's actually organic. Important Note: My server automatically responds with a 301 redirect to the https url when someone goes to the http url. Does the Google indexing bot mishandle this somehow? Here is what the google search console looks like:  I have a sitemap.xml and a robots.txt. Google search console claims that it has discovered my URL, as a result of the sitemap.xml. I don't understand why it will only come up in google search when I type the exact url. The contents of the meta description and meta author tags have to be unique, and they still don't bring anything up. I should also note that I ran lighthouse on my site and got a 95/100 on the SEO portion.


How to stretch all UV faces to fill canvas?

I need every face of my model to fill the UV canvas (overlap). I thought that Lightmap Unwrap did this but I must be mis-remembering something. I have all edges marked as seams. The mesh is just a subdivided, elongated cube. All but 8 faces are identical and I can tweak those myself. How is this done? More info: I am making a pallet rack (for a warehouse) and I need the supports to have the same shapes cut out of them at regular intervals. The material is otherwise matte. So I figured I would make a really small, b/w alpha texture and overlay the uv faces so they all fill this small texture space. Here is the mapping I already did for the upright frames. I have secondary texture coordinates for the lighting to baked later. This will be exported to Unity.  Here is the horizontal frame that I still need to get the coordinates correct for. I want all these faces to cover the same area, the entire UV space:


I am demanded to figure out the number of integer solutions of this equation: $\frac{1}{x}+\frac{1}{y}=\frac{1}{n}$ where $n=p_1^{\alpha_1}p_2^{\alpha_2}\dots p_k^{\alpha_k}$, $p_i$ being its prime factors. I already got the hint that the above equation can be written as $(x-n)(y-n)=n^2$, however I am still stack. What should be my next step?


Is there a way to track historical averages of flight costs?

Covid-19 has shaken up the flight industry, and I noticed some flights to far off tourist destinations that seem like great deals, e.g. US to Italy for $1000 round trip. If they are so good, I'd like to take advantage while possible; though it would be preferred to wait until Covid-19 is gone to fly. To help with the decision-making process, is there any database of historical flight costs, so I can truly check if these are good prices, or just the usual?


Count all occurrences of a string in lots of files with grep

I have a bunch of log files. I need to find out how many times a string occurs in all files.  grep -c string *   returns  ... file1:1 file2:0 file3:0 ...   Using a pipe I was able to get only files that have one or more occurrences:  grep -c string * | grep -v :0  ... file4:5 file5:1 file6:2 ...   How can I get only the combined count? (If it returns file4:5, file5:1, file6:2, I want to get back 8.)


Possible Duplicate:          I'd like the private member variables of a class to be accessible to a Tester class without exposing them to other classes.   In C++ I'd just declare the Tester class as a friend, how do I do this in C#? Can someone give me an example?


Do partial derivation respect to velocity and total derivation respect to time commute?

Imagine we have a function of position $x^i$ and velocity $v^i$ $f(x,v)$. Position and velocity are both functions of time $t$. If the function doesn't depend explicitely on time, then we have the identity \begin{equation} \frac{d}{dt} f(x,v)= v^i \frac{\partial}{\partial x^i} f(x,v) \end{equation} Now imagine we define a new function \begin{equation} G(x,v)=v^i \frac{\partial}{\partial x^i} f(x,v)=\frac{d}{dt} f(x,v) \end{equation} and we want to derive $G$ respect to velocity. If we derive it using the first equation we get \begin{equation} \frac{\partial}{\partial v^j}G(x,v)=\delta^{ij} \frac{\partial}{\partial x^i} f(x,v)+v^i\frac{\partial}{\partial v^j}\frac{\partial}{\partial x^i} f(x,v) \end{equation} % If we derive using the second equation instead we get \begin{equation} \frac{\partial}{\partial v^j}G(x,v)=\frac{\partial}{\partial v^j}\frac{d}{dt} f(x,v) \end{equation} Now, I thought that these two derivatives commuted but that can't be right because then we would get \begin{equation} \begin{aligned} \frac{\partial}{\partial v^j}G(x,v)&=\frac{\partial}{\partial v^j}\frac{d}{dt} f(x,v) \\ &=\frac{d}{dt}\frac{\partial}{\partial v^j}f(x,v) \\ &=v^i \frac{\partial}{\partial x^i }\frac{\partial}{\partial v^j} f(x,v) \end{aligned} \end{equation} which is only the second term we obtained with the first identity. Does this mean that the commutator between $\frac{d}{dt}$ and $\frac{\partial}{\partial v^i}$ is \begin{equation} [\frac{\partial}{\partial v^i},\frac{d}{dt}]=\frac{\partial}{\partial x^i} ? \end{equation}


How to monitor bandwidth usage per process?

I am using Ubuntu 14.04. My internet connection is pretty slow (512 kbps). Sometimes I see that I have no software running which should download anything from the internet, but the system monitor still shows that some download is going on. So I think some hidden software are causing this. Is there a way I can monitor every software that is using internet?


I am a Philippine passport holder currently working in Trinidad and Tobago. For my one month vacation, I am planning to pass through the Trinidad-London-Dubai-Philippines route. I am applying for UK Transit visa and thinking if I could use this to travel around Europe.    Is it possible?


Can something be "very statistically significant"?

This is not a math question, this is a methodology and philosophy question.   Sometimes I see language describing things as "very statistically significant" because the p-value is extremely small.   But in the way that a p-value of 0.06 should not be called "almost significant",  I wonder if a p-value of 0.00006 should also not be called "very significant".


less with "update file" like functionality

I want to watch a file that gets overwritten every 5 minutes with less. How can I make less follow the new file descriptor instead of keeping the old one displayed? watch "cat file" won't do it because the file is too long to fit into one terminal window.


C , Why does this code work with array notation , but not with pointer notation?

I'm trying to implement my own strcpy function , here is the code :  #include<stdio.h> #include <stdlib.h>    void Strcat(char *p1,char*p2) {     while(*p1!='\0'){p1++;}; //this increments the pointer till the end of the array (it then points to the last element which is '\0')      while(*p2!='\0'){*p1++=*p2++;}; } int main() {     char txt1[]="hell";     char txt2[]="o!";      printf("before :%s\n",txt1);     Strcat(txt1,txt2);     printf("after :%s\n",txt1);  }   Everything works fine .  However , when I change  char txt1[]="hell"; char txt2[]="o!";   to   char *txt1="hell"; char *txt2="o!";   I face a Segmentation fault ,  Why is that ?   Aren't they ( both initialization methods) equivalent ? Aren't "txt1" and "txt2" both act like a pointer to the first element of the char array ?


has a "who to follow" button on the upper side of the screen. Shouldn't it be "whom to follow"?   suggests that whom is the correct usage in a case like this.