why the output is not excepted (true) if two string has same reference?

Yesterday this Question asked by Interviewer what is the output for that line.  public class StringTest {    public static void main(String[] args) {       String s1 = "abc";       String s2 = "abc";       String s3 = s1+s2;       String s4 = s1+s2;        //check s1 == s2       System.out.println(s1==s2);        //check s3 == s4       System.out.println(s3==s4);   } }   when i looked at this question then thinking how the easy question asked by interviewer. I told him output s1==s2 and s3==s4 will return true and trueand i was very confident. Suddenly he said no thats the wrong output then i thinking he might be joking or trying to loosing my confidence, but till the end he said its wrong. When i checked the output was true and false . I also thinking how it is possible please solve my confusion by giving a appropriate answer. thanks in advance.


I have run the JDK 1.8 installer from , and it all apparently installed correctly. But in the terminal, when I do:    javac -version   It still reports 1.6.0_65  What am I doing wrong?  I'm using Mavericks 10.9.4


Why are second order linear PDEs classified as either elliptic, hyperbolic or parabolic?

Is there a geometric interpretation of second order linear partial differential equations which explains why they are classified as either elliptic, hyperbolic or parabolic, or is this just a naming convention? That is, do they have any relation with actual ellipses, hyperbolas and parabolas?


Where was Alastor Moody in Harry Potter and the Half Blood Prince?

In Harry Potter and the Half Blood Prince, it was mentioned that Moody attended Dumbledore's funeral.  Did Moody take part in the Battle of the lightning struck tower?  There seems to be no mentioning of Moody during this battle.  Can someone explain?  Thanks.


Before the last shutdown of Ubuntu 20.04 my storage space of disk was very low, then after starting my laptop this error occurs. Error: no partition found Cannot read or write outside partition   When I enter into the command line by pressing the c key grub> loads, but on giving commands like ls, cd, sudo, etc. it says error: can't find command... After pressing the power button, the first thing that comes to the screen is error: no such partition, four times the same sentence is repeated, and at the end Press any key to continue On pressing any key, some options appear.  Ubuntu Advanced options for Ubuntu Memory test  but all results to reload the boot but no results. On restarting sometimes this kernel panic screen also appears.  Another time it goes until ubuntu logo appears after which login field to appear but after logo, immediately black screen appears saying  /dev/sda4: clean, 1500298/7749632 files, 29454730/30995712 blocks  And nothing happens, until I press power button and it shutdowns


What do the terms root, bootloader unlock, custom recovery and ROM installation mean?

I'm trying to root my Galaxy Note 4 and I see the above terms being used everywhere. What do each of them mean? I have a vague idea about each of them, but I'm still confused about some of them. A brief description about each would be enough. Thanks in advance.


When I enter point id 1790 result join is only one input. I won from list all id_gm to be shown in atribute table of layer tacka6.  Can this be done in Qgis?    Solution


What happens if someone imitates other answers?

I don't know how I got this idea, sorry if it is already asked. I searched but couldn't find.  Let's say there is a question and X person writes first answer with low quality. Then Y person comes and writes a good answer. Then, X answer edits his own question containing the information Y shared, sometimes exactly with same words. Is it possible to detect this? If it happens what should we do?


Missing Shade of Blue in An Enquiry Concerning Human Understanding by David Hume

I was reading An Enquiry concerning Human Understanding by David Hume, and came across (a couple days ago) a part wherein Hume draws a counterexample towards his epistemological theory and drops it. The paragraph in question is as follows  "There is, however, one contradictory phenomenon, which may prove, that it is not absolutely impossible for ideas to arise, independent of their correspondent impressions. I believe it will readily be allowed, that the several distinct ideas of colour, which enter by the eye, or those of sound, which are conveyed by the ear, are really different from each other; though, at the same time, resembling. Now if this be true of different colours, it must be no less so of the different shades of the same colour; and each shade produces a distinct idea, independent of the rest. For if this should be denied, it is possible, by the continual gradation of shades, to run a colour insensibly into what is most remote from it; and if you will not allow any of the means to be different, you cannot, without absurdity, deny the extremes to be the same. Suppose, therefore, a person to have enjoyed his sight for thirty years, and to have become perfectly acquainted with colours of all kinds, except one particular shade of blue, for instance, which it never has been his fortune to meet with. Let all the different shades of that colour, except that single one, be placed before him, descending gradually from the deepest to the lightest; it is plain, that he will perceive a blank, where that shade is wanting, and will be sensible, that there is a greater distance in that place between the contiguous colours than in any other. Now I ask, whether it be possible for him, from his own imagination, to supply this deficiency, and raise up to himself the idea of that particular shade, though it had never been conveyed to him by his senses? I believe there are few but will be of opinion that he can: And this may serve as a proof, that the simple ideas are not always, in every instance, derived from the correspondent impressions; though this instance is so singular, that it is scarcely worth our observing, and does not merit, that for it alone we should alter our general maxim."  I was quite troubled by how Hume dismissed the example as inconsequential, considering that the event could further imply missing auditory or other sensory qualities which could be conceived without a corresponding impression. What then, is this counterexample dismissed? My idea was that perhaps the ideas derived from the impressions of the nearby colors could be combined, augmented and diminished (three of the four ways Hume states that ideas can be conjoined) to create the idea of the missing shade. Hence, perhaps the idea of the missing shade, rather than being a simple idea, would be a complex idea with no corresponding impression. But if this is the case, why then does Hume claim that the example is a counterexample? I myself am highly skeptical of my idea, so if there exists a better defense from a more experienced Hume scholar, it would be greatly appreciated.


I need to prove the following inequality: $$\|x\|_{p} \geqslant \|x\|_{q}$$ if $q \geqslant p$.  I tried to do it using this inequality: $$\frac{d\left(\sum_{i=1}^{d}|x|^{\alpha}\right)^{\frac{1}{\alpha}} }{d \alpha} \leqslant 0$$ After differentiation I got stuck in the following equation: $$\left(\left(\sum_{i=1}^{d}|x_i|^{\alpha})^{\frac{1}{\alpha}}\right) \ln\left(\sum_{i=1}^{d}|x_i|^{\alpha}\right) \left(\sum_{i=1}^{d}(|x_i|^{\alpha} \ln(|x_i|\right) \right)$$ Could someone help me to prove it, please?


Is it possible to serialize and deserialize a class in C++?  I've been using Java for 3 years now, and serialization / deserialization is fairly trivial in that language. Does C++ have similar features? Are there native libraries that handle serialization?  An example would be helpful.


Why a global variable is defined as static in this C program?

I'm trying to learn C using  tutorial. There is an example there that the author is tried to learn us what static storage class is.  This is that example :  #include <stdio.h>  /* function declaration */ void func(void);  static int count = 5; /* global variable */  main() {    while(count--)    {       func();    }    return 0; } /* function definition */ void func( void ) {    static int i = 5; /* local static variable */    i++;     printf("i is %d and count is %d\n", i, count); }   My question is: Why he/she is defined count as static? In the other words, what is the difference between the above program and the following program?  #include <stdio.h>  /* function declaration */ void func(void);  int count = 5; /* global variable */  main() {    while(count--)    {       func();    }    return 0; } /* function definition */ void func( void ) {    static int i = 5; /* local static variable */    i++;     printf("i is %d and count is %d\n", i, count); }   I mean, when we must use the  first program and when we must use the second one?


How to prevent multiple user login with same user name and password?

I am developing secure login system with php. I want to prevent multiple login for user with same username and password. With my script user can login on account from different browsers or from different IP with same username and password. I need to add some column on my database. When user logged in field becomes 1, and account is locked, when user logged out account is unlocked. But what if user close the browser without logout?


Windows 10 out of memory (4GB) with no programs running

I've got an almost completely fresh install of 64-bit Windows 10 on my wife's laptop. It has a Core i5 processor and 4 GB of memory.  If I leave it on for too long, it gets slower and slower. It fills up the RAM and then it fills up the page file. And then it'll show the error:     Your computer has run out of memory.   I'm not confusing "available" with "free" or anything like that. The system is literally out of memory.  It appears Windows 10 isn't showing all of the processes running on the system. Task Manager and Resource Monitor both report no processes running. But the disk utilization and RAM utilization totals are bright red because they're at 97% RAM and 100% disk. A look at the “Processes” tab shows nothing using more than 10 MB of RAM, and there's only maybe two dozen total background processes, all using no disk.  So I want to know:   Are there processes that Windows hides? If do, how do I find them?  What's causing my memory problem?   I set the computer to reboot. Five minutes later, it's still trying to close down Task Manager and Resource Monitor. How can this happen? What possible reason could exist for a fresh install of an operating system to have this problem?  Okay, let's look at some pictures.      [edit] Nope. Poolmon doesn't show the problem. I'm hitting 4 GB usage again, and poolmon doesn't show it:    [edit] Two more, from the next commenter, running RAMMap:  Notice that "process private" is HUGE (which I have read is memory dedicated to a single process) and yet, no related processes show up in the process list.


what is prerequisites for study real analysis?

I have a plan to self-study real analysis,but I'm not sure about myself I complete read Calculus,linear Algebra ,Number theory. But I saw in some thai textbook mention about topology.Is it important for real analysis ? I have more question . Is calculus by spivak will help for studying real analysis?


I want to delete an app called "Xbox Game Bar" on my computer (my version is Windows 10). When I tried to go to settings to uninstall the app, the uninstall button is grayed out and I am unable to click it. Does anybody else have this issue?


Split string by particular character ,iOS

I have a string structured in this way:  "Description#Data#IMG"  What's the best method to obtain three distinct strings through the position of sharps?


Are some variables automatically assumed to be global?

Here is some basic code:  a = 1 def test():     print a     return  test()   This returns 1 as expected. But, why do I not get an error that there is no global variable a defined? The function does not use a as a variable.   I ask this because sometimes I get errors about NameError: global name 'a' not defined, but in trying to make the skeleton code case above, the error seems to have gone away.


Scatterplot with two different categories of data

I have a text document containing three columns.  One column is "sex", and each value is either "M" or "F".  The other two columns contain numerical data (my explanatory variable and response variable).  I want to create a Scatterplot in R where the point will look different for males than for females.  I don't know how to do this.


How can I get an uppercase sigma (∑) with both a subscript and a superscript to appear in a sentence WITH the subscript BELOW the sigma and the superscript ABOVE the ∑ (and neither of the lower/raised FOLLOWING the sigma?   In a regular formula that is preceded and followed by a double space, everything works/looks fine.


why the square root of x equals x to the one half power

Could someone explain how/why the square root of $x$ equals $x$ to the one half power? I know by definition it does, but is there any mathematical process we can go through to get from one to the other?  In addition, I know the $x$ to the 2ed power is equal to $x*x$, but what is $x^{1/2}$ equal to? Is it one half of $x$ times one half of $x$? No!  I know all this stuff by definition, but I want to know why. Thanks


Given that $\sum_{n=1}^\infty x_n$ converges, show that $\sum_{n=1}^\infty \frac{\sqrt{x_n}}{n}$ converges

Given that $\sum_{n=1}^\infty x_n$ converges and $x_n \ge 0$, show that $\sum_{n=1}^\infty \frac{\sqrt{x_n}}{n}$ converges. I tried showing it as follows: Since $x_n$ is positive it must be the case that $(x_n)$ is a monotonically decreasing sequence, then $x_n > x_{n+1}$. We'll show that $\left(\frac{\sqrt{x_n}}{n}\right)$ is a monotonically decrasing sequence with a lower bound of $0$, and therefore, converges. Since $x_n > 0 \to \sqrt{x_n} > 0 \to \frac{\sqrt{x_n}}{n} > 0$, therefore it is bounded bellow by $0$. Now all we have to show is that $\frac{\sqrt{x_{n+1}}}{n+1} \le \frac{\sqrt{x_n}}{n}$: $\frac{\sqrt{x_{n+1}}}{n+1} \le \frac{\sqrt{x_n}}{n}$ $\frac{\sqrt{x_{n+1}}}{n+1} - \frac{\sqrt{x_n}}{n} \le 0$ $-n\sqrt{x_{n+1}} + n\sqrt{x_n} + \sqrt{x_n} \ge 0$ $n(\sqrt{x_n}- \sqrt{x_{n+1}} ) + \sqrt{x_n} \ge 0$ Since $n>0 \land \sqrt{x_n}>0\land\sqrt{x_{n+1}}>0$ if $\sqrt{x_n}- \sqrt{x_{n+1}} \ge 0 \to n(\sqrt{x_n}- \sqrt{x_{n+1}} ) + \sqrt{x_n} \ge 0$ but $\sqrt{x_n}- \sqrt{x_{n+1}} \ge 0 \iff \sqrt{x_n} \ge \sqrt{x_{n+1}} \iff x_n \ge x_{n+1}$ Since $x_n \ge x_{n+1}$ we have shown that $\left(\frac{\sqrt{x_n}}{n}\right)$ converges.  But as is the case with the harmonic series, this is not enough to show that $\sum_{n=1}^\infty \frac{\sqrt{x_n}}{n}$ converges. I tried solving it using the comparison test but I'm having a hard time showing that $\frac{\sqrt{x_n}}{n} \le cx_n$ (I don't even know how to tackle showing this inequality). Note: Also in my attempt above I've assumed that it is the case that $(x_n)$ must be monotonically decreasing, but I'm not sure if this is true.


Proof of this property of greatest common divisor: $\gcd( n! + 1 , (n+1)! + 1 ) = 1$

Show that for any strictly positive integer $n \in \mathbb{Z}^{+}$ , one has   $\gcd( n! + 1 , (n+1)! + 1 ) = 1$   The hint given to me was : Recall that the greatest commond divisor of any two integers $a, b \in \mathbb{Z}$ is defined as the unique non-negative integer $gcd(a, b) \in \mathbb{Z}^{+}$ such that $\{ ar + bs \in \mathbb{Z} | r, s \in \mathbb{Z} \} = \gcd(a, b) · \mathbb{Z}$  I don't understand the equation $\{ ar + bs \in \mathbb{Z} | r, s \in \mathbb{Z} \} = \gcd(a, b) · \mathbb{Z}$.   help?


I was working on some integrals, and I proved the following really beautiful identity:  $$\int_0^{\infty}\frac{\ln(x)}{x^2+nx+n^2}dx=\frac{2\pi}{3\sqrt{3}}\frac{\ln(n)}{n}$$  I found it by solving $\int_0^{\infty}\frac{x^{k-1}}{ax^2+bx+c}dx$, and then differentiating my result with respect to $k$ and evaluating at $k=1$. When I saw that it yielded a nice formula for the above integral, I was surprised, which is why I posted this question.  But my proof is very long and messy, and since the result is so elegant, I was wondering if there was a simple and elegant proof of this identity.


Using competitors domain with different ending to boost traffic

Imagine my competitor is getting 1000s of views a day and is established in Google search engine.  I plan to launch my website in a weeks time but will have to work hard to get into google search results  If my competitor has the domain www.example.com , can I buy the domain www.example.co.uk and then redirect that to my website?  I figure some people may accidentally put .co.uk instead of .com  Would this me illegal in any way , or is it fair game as they haven't bought the domain, meaning I could possibly look to selling it to them?


Wireless driver not working for Broadcom BCM43224 after latest update

So, I did the latest update, and now my wireless driver isn't working. In the taskbar area, it shows that there is no device. However, when in my Win8 partition and when using an older version of Linux, it is working fine. How would I fix this? Also, here is the output showing the specifics of my wireless driver:  ~$ lspci -vvnn | grep 14e4 07:00.0 Network controller [0280]: Broadcom Corporation BCM43224 802.11a/b/g/n [14e4:4353] (rev 01)


Prove that $(\mathbb{Z},+)$ and $(\mathbb{Q},+)$ are not isomorphic.

Prove that $(\mathbb{Z},+) \text{ and } (\mathbb{Q},+)$ are not isomorphic.  Usually in order to show that two groups are not isomorphic I would show that either the groups have different orders, one is abelian and the other isn't, one is cyclic and the other isn't or one contains an element of order d and the other doesn't. I can see that this isn't going to work here though.  I feel like a proof by contradiction is the way to go with this, I'm not sure how to proceed with that in this case though.


I want to write all zeros to my hard drive, so I can re-install windows 7

I am booting from an Ubuntu CD on my laptop. I want to write all zeros to my hard drive, then re-stall Windows 7. I have backed up all the files I want to.  After booting up, I open a terminal window, and type:    dd if=/dev/zero of=/dev/sda bs=1024   The computer responds with "permission denied".  Any suggestions on how to proceed?


Interior of cartesian product is cartesian product of interiors

I have to prove that:  $$Int(A\times B) = Int(A)\times Int(B)$$  Where $A\subset M$ and $B\subset N$, both $M$ and $N$ metric spaces.  The problem is that the exercise does not specify the metric, so I need to try to prove it using a generic metric.  If $x\in Int(A\times B)$, then an open ball can be centered at $(x,y)$ such that it is contained in $A\times B$. Therefore, this open ball, $B((x,y),r)\subset A\times B$. It means that $d((x,y),a)<r$ for any $a\in A\times B$ for some $r>0$. I guess that if I can take from here that $d(x,a)<r$ and $d(y,a)<r$ I can prove thhat $Int(A\times B)\subset Int(A)\times Int(B)$, but I still have to prove the other way around.   Any ideas?


I am travelling through Dubia and staying there for two days before travelling onto Brisbane I have a British subject passport do I need a different visa from my husband who is a British citizen


I am planning to buy a Nexus 4 from US and want to use it in India.  Should I expect any issues with this? Is that phone compatible with all carriers in India? Are there any power related problems?


biblatex: How to remove the comma before ed./eds.?

How can I remove the comma before ed. or eds. and put this abbreviation in parentheses? I'm using biblatex.  For example this reference:     Dozy, Reinhart, ed.: Supplément aux dictionnaires arabes. 3rd ed. 2   vols. Leiden: Brill, 1967.   should look like this:     Dozy, Reinhart (ed.): Supplément aux dictionnaires arabes. 3rd ed. 2   vols. Leiden: Brill, 1967.   Moreover, I would like to have the "rd" of "3rd edition" in superscript. Is this possible?  EDIT: Here is a minimal example (with lockstep's solution for superscripts inluded, sorry for not having given an example the last time):  %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt,final, oneside]{memoir}   % ******************************************************************** % Biblatex + Bibliography % ********************************************************************  \usepackage[style=authortitle-ibid, sorting=nty, hyperref=auto]{biblatex} \usepackage[english=british]{csquotes} \bibliography{Bibliography} \defbibheading{prim}{\subsection*{{Primary Sources}}} \defbibheading{sec}{\subsection*{{Secondary Sources}}} \renewcommand*{\mkbibnamelast}[1]{\textsc{#1}} \DeclareFieldFormat{postnote}{#1}%%keine Anzeige von S. \renewcommand{\labelnamepunct}{\addcolon\addspace} %%Doppelpunkt nach Autor  %Serientitel in Klammern und nach der bibliographischen Angabe \renewbibmacro*{series+number}{} \renewbibmacro*{publisher+location+date}{%  \printlist{location}%   \iflistundef{publisher}%    {\setunit*{\space}}%     {\setunit*{\addcolon\space}}%   \printlist{publisher}%     \setunit*{\addcomma\space}%   \printfield{year}%   \setunit*{\space}%   \iffieldundef{series}%     {}%     {\printtext[brackets]{%       =\addnbspace%       \printfield{series}%       \setunit*{\addspace}%       \printfield{number}}}%  \newunit}   %%Ed. in parenthesis \renewbibmacro*{editor}{%   \ifboolexpr{     test \ifuseeditor     and     not test {\ifnameundef{editor}}   }     {\printnames{editor}% %     \setunit{\addcomma\space}% DELETED %     \usebibmacro{editorstrg}% DELETED      \setunit{\addspace}% ADDED      \printtext[parens]{\usebibmacro{editorstrg}}% ADDED      \clearname{editor}}     {}}  \renewbibmacro*{editor+others}{%   \ifboolexpr{     test \ifuseeditor     and     not test {\ifnameundef{editor}}   }     {\printnames{editor}% %     \setunit{\addcomma\space}% DELETED %     \usebibmacro{editor+othersstrg}% DELETED      \setunit{\addspace}% ADDED      \printtext[parens]{\usebibmacro{editor+othersstrg}}% ADDED      \clearname{editor}}     {}}   %Superscript for cardinal numbers before edition \usepackage[super]{nth} \AtBeginDocument{\renewcommand*{\mkbibordinal}[1]{\nth{#1}}}  \begin{document}  \printbibliography[heading=prim, keyword=prim, nottype=reference] \printbibliography[heading=sec, notkeyword=prim, nottype=reference]   \end{document}


While installing VLC player on ubuntu 14.04 I recieve the following error:     The following packages have unmet dependencies:  vlc: Depends: vlc-nox (= 2.1.6-0ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed      Depends: libc6 (>= 2.15) but 2.19-0ubuntu6.6 is to be installed      Depends: libfreetype6 (>= 2.2.1) but 2.5.2-1ubuntu2.4 is to be installed      Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed      Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed      Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed      Depends: libstdc++6 (>= 4.6) but 4.8.2-19ubuntu1 is to be installed      Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-1ubuntu1 is to be installed


Render shadows without denoise on a transparent background in cycles

I have a problem with the graininess that appears in the shade. I want to render an object with a nice and clean shadow. The result is a png with a transparent background. Render in Cycles engine. I have enabled Shadow Catcher, Transition, RGBA, Denoising - OpenImageDenoise . The number of Samples is 1000. Can I fix this problem somehow?


Manual entry for history missing... `man history`

I'm trying to figure out what's going on with my history... but I can't find the manual  history -h returns nothing man history returns a level 8 history manual, not the bash one we all use.


Excel,word,pdf files got encrypted by ransomware

My MS Office files and pdf files has been encrypted by some ransomware in my pc which was running window XP. I removed the ransomware,formated the OS and put windows 7, but my files are still encrypted. Is there any way of decrypting it as it very important files and i dont have a backup of these files. Some one pls help me out of this mess.


I installed Lubuntu 13.10 as a dual boot with Windows XP on an e-machines.  Lubuntu crashes frequently, especially when I use the browser.  I can't close Lubuntu using Alt+SysRq+REISUB, must power off the computer.  How can I log off without powering down? How can I resolve the crashing problem?


data[2:2 * n + 2:2] in relation to the code below

I'm new to coding and python. I've taken an intro comp sci class but I still feel out of my depth when trying to understand most code so please forgive me if this question seems poorly placed.   I'm taking an algorithms class on Edx, which has an automatic grader. Starter code is provided for each problem and contains a section like the one below. This section is particularly difficult for me to understand.   I believe what will be fed into the function I write is a list that will look like this [1:2,4:6,7:10], but I'm not really sure.   I'm hoping someone could help me understand this code, so I can design a function around the data.   if __name__ == '__main__':     input = sys.stdin.read()     data = list(map(int, input.split()))     n = data[0]     m = data[1]     starts = data[2:2 * n + 2:2]     ends   = data[3:2 * n + 2:2]     points = data[2 * n + 2:]     #use fast_count_segments     cnt = naive_count_segments(starts, ends, points)     for x in cnt:         print(x, end=' ')   Further, I don't really understand how to test this code on my own computer so that I can figure it out on my own. Any help would be much appreaciated. Thanks in advance.


I'm trying install mysql but I can not start the server.   The journalctl -xe return this:  Unit mysql.service has begun starting up. oct 24 18:37:11 carlosPc audit[20528]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/ oct 24 18:37:11 carlosPc audit[20528]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/ oct 24 18:37:11 carlosPc audit[20528]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/ oct 24 18:37:11 carlosPc kernel: audit: type=1400 audit(1508863031.769:402): apparmor="DENIED" operation="open"  oct 24 18:37:11 carlosPc kernel: audit: type=1400 audit(1508863031.769:403): apparmor="DENIED" operation="open"  oct 24 18:37:11 carlosPc kernel: audit: type=1400 audit(1508863031.769:404): apparmor="DENIED" operation="open"  oct 24 18:37:14 carlosPc systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE oct 24 18:37:41 carlosPc systemd[1]: Failed to start MySQL Community Server. -- Subject: Unit mysql.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel --  -- Unit mysql.service has failed. --  -- The result is failed. oct 24 18:37:41 carlosPc systemd[1]: mysql.service: Unit entered failed state.  oct 24 18:37:41 carlosPc systemd[1]: mysql.service: Failed with result 'exit-code'. oct 24 18:37:42 carlosPc systemd[1]: mysql.service: Service hold-off time over, scheduling restart. oct 24 18:37:42 carlosPc systemd[1]: Stopped MySQL Community Server. -- Subject: Unit mysql.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel --  -- Unit mysql.service has finished shutting down. oct 24 18:37:42 carlosPc systemd[1]: Starting MySQL Community Server... -- Subject: Unit mysql.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel --  -- Unit mysql.service has begun starting up. oct 24 18:37:42 carlosPc audit[20630]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/ oct 24 18:37:42 carlosPc audit[20630]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/ oct 24 18:37:42 carlosPc audit[20630]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/ oct 24 18:37:42 carlosPc kernel: audit: type=1400 audit(1508863062.269:405): apparmor="DENIED" operation="open"  oct 24 18:37:42 carlosPc kernel: audit: type=1400 audit(1508863062.269:406): apparmor="DENIED" operation="open"  oct 24 18:37:42 carlosPc kernel: audit: type=1400 audit(1508863062.269:407): apparmor="DENIED" operation="open"


I realize most PDF documents are locked for a reason, but I spend several hours a week editing datasheets provided directly from my vendors to be sent to customers. Obviously it's very annoying and somewhat of a show-stopper when I download a datasheet in PDF format, then I am not able to draw boxes, add comments, or draw arrows to the supplied product.  One of our vendors told us the way around that was to print a physical copy, then scan it in as a PDF - not the most technological or aesthetically pleasing solution I have found.  I at least would like to be able to print the PDF to another PDF so that the new copy is unlocked for editing. Is there any way around this?


Designing a Minecraft Redstone Sorter where 64 items every second

Problem Currently, I am playing on a server where hoppers transport items at the rate of 64 items a second, and this has proved very difficult to build a sorter for. I'm not at all proficient in Redstone building but have tried building basic sorters and ones that I have found on YouTube and I haven't gotten anything to work. Solution Hopefully one of you is really good at Redstone and can help me design a sorter that can work under these conditions. (I need the sorter that can sort items while I AFK kill witches with a looting 47 sword P.S. most of the problem is with the sorter itself because no items will stay in the sorter hopper (bc the whole stack goes into the chest so the hopper doesn't have anything to go off of to sort) so any solution to that would be helpful as well.


Why do I lose reputation when I downvote?

Problem  I've recently reached 125 reputation on a Stack Exchange site, (yay!) and I now have the privilege to downvote. So I tried it out, and I lost a reputation point. At first I thought I got downvoted on a post, but then I remembered that when that happens, it's -2. So the I decided to ignore it, but then I found a bad answer to a question, so I decided to downvote it too. Then I lost another reputation point, and that's when I got nervous that there was something wrong. So I resorted to the help center, and it told me that when I downvote, I lose a reputation point. Why is this?


Expected Number of Single Socks when Matching Socks

Whenever I go through the big pile of socks that just went through the laundry, and have to find the matching pairs, I usually do this like I am a simple automaton:  I randomly pick a sock, and see if it matches any of the single socks I picked out earlier and that haven't found a match yet. If there is a match, I will fold the two socks together and put them in the 'done' pile, otherwise I will add the single sock to the 'no match yet' pile of single socks, and pick out another random sock.  So, as I was doing this last night, I started thinking about this, and figured that the following would be true: The 'no match yet' pile can be expected to slowly grow, up to some point somewhere in the 'middle' of the process, after which the pile will gradually shrink, and eventually go down back to $0$. In fact, my intuition is that the expected number of loose socks as a function of the number of socks picked so far, is a symmetric function, with the maximum being when I have picked half of the socks.  So, my questions are:  With $n$ pairs of socks, what is the expected number of loose socks that are in my 'no match yet' pile after having picked $k$ socks?  Is it true that this function is a symmetric function, and that the maximum is for $k=n$? (if so, I figure there must be a conceptual way of looking at the problem that makes this immediately clear, without using any formulas ... what is that way? Is it just that I can think of reversing the process?)  Of course, this is all assuming there are $n$ pairs of socks total, and that there are no single socks in the original pile, and while this is something that never seems to apply to the pile of socks coming through my actual laundry, let's assume for the sake of mathematical simplicity that there really just are $n$ pairs of socks.


Create Nodes for multiple languages in webform?

I have a default Node for English, which will be translated when user logs in based on the user locale. Beside I need to create a separate node for ja(Japanese) like (mydomain.com/node/7).  I created a node(nid=7) by changing the 'Language neutral' to 'Japanese' language. when I hit the node it not gets translated to Japanese.  Is there any way to get it translated?


Do you like getting up early?  (1) Do you like to get up early?   (2) (Essential Grammar in Use)  What is the difference between the two? I guess, in (1) I ask you whether you’re currently enjoying of getting up early. But (2) is rather difficult. It can present asking either about your futural / intentional getting up or repetition of enjoying ( says to-infinitval has the meaning of ‘repetition’ but I don’t know why –– I want to get some explanation about this in CGEL, p1241).


How do I add sudo commands to a keyboard shortcut?

I am running Ubuntu 16.04 on a Sony Vaio laptop, which features a keyboard backlight. I can enter this command into the terminal, putting a "0" in place of *value* to turn the backlight off, and a "2" to turn it on.  sudo su -c "echo *value* > /sys/devices/platform/sony-laptop/kbd_backlight"   When I went to the settings app to create a custom keyboard shortcut and bind it to a simple ctrl keybinding, it doesn't work.


Visual Studio doesn't recognize .NET Framework 4.6.2 is installed

I've installed .NET Framework 4.6.2 via the web installer, and everything looked good. However, after I restarted and opened up Visual Studio, it reported that 4.6.2 was not installed:   I checked registry per  and did find the expected entries under HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full:   Additionally, under HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs, there is an entry for 4.6.2, as well as others:   I also checked the installer's log file to see if there were any issues, but nothing stood out. Towards the bottom, I see:   MSI (s) (AC:E0) [10:06:03:829]: Note: 1: 1707  MSI (s) (AC:E0) [10:06:03:829]: Product: Microsoft .NET Framework 4.6.2 -- Installation completed successfully.  MSI (s) (AC:E0) [10:06:03:830]: Windows Installer installed the product. Product Name: Microsoft .NET Framework 4.6.2. Product Version: 4.6.01590. Product Language: 0. Manufacturer: Microsoft Corporation. Installation success or error status: 0.  MSI (s) (AC:E0) [10:06:03:830]: Value of RebootAction property is  MSI (s) (AC:E0) [10:06:03:830]: Windows Installer requires a system restart. Product Name: Microsoft .NET Framework 4.6.2. Product Version: 4.6.01590. Product Language: 0. Manufacturer: Microsoft Corporation. Type of System Restart: 2. Reason for Restart: 1.  MSI (s) (AC:E0) [10:06:03:831]: Product: Microsoft .NET Framework 4.6.2. Restart required. The installation or update for the product required a restart for all changes to take effect.  The restart was deferred to a later time.    This is a Windows 7 Pro machine running Visual Studio 2017 Community Edition, and I am not logged in as a system administrator. Does anyone know how to make VS recognize this framework version as a valid target?    NOTE: I've already see . This appears to be a different issue.


How do I install the latest version of Java on Ubuntu 12.04 LTS?

I want to play on Minecraft servers, I can get on, but can't do anything, I can only play like one day per month. Do I need the latest version of Java or something? I am now using OpenJDK Java 7 Runtime to play Minecraft. By the way, the happened after I turned off my computer during the upgrade to 14.04 LTS. Before it was all normal. And now I am back to 12.04. Thanks to whoever that helps.  I already got Java 8 but there's a problem, I can't even play Minecraft now! When I go in one of my worlds this comes out:  AL lib: (EE) alc_cleanup: 1 device not closed pure virtual method called terminate called without an active exception   Now what? :/


Do I need to decouple an LM386 if it is run from a battery?

What I would like to do is to put an LM386 in my bass guitar so that I can plug my headphones directly into it for practice. The LM386 was my first choice because it can run off of a 9V battery and requires no external parts. I understand that the output impedance of a 9V battery is fairly low (about an ohm or so). The LM386 has  PSRR of 50dB. Do I need to decouple the power supply going to the LM386?


Can I visit the UK for tourism if I originally applied to receive it for business travel?

I'm going to apply for UK standard visitor visa with an business invitation. The purpose of visit is Business related. What i can see with UK standard visitor visa i can do lots of activities normal tourism, business meetings ,conference  family visit many more all comes under ( C Type  Visit ) My question is If I applied C type visa for business purposes with invitation can i travel first time for General tourism purposes? Or it has to be same that I applied to embassy? Do UK immigration officer will know what documents I submitted to embassy? Thanks


How to make a script wait for another script to finish reading a file

This is not a duplicate of Locking a file in Python   I have two scripts, one runs every 30 minutes, the other one runs every one minute. and they both use the same file to do few things.  at some point, every 30 minute they try to access the same file at the same time and they corrupt the file. I was thinking about using wait. but they are two independent scripts and I am not sure if this is possible.  Any idea?  I thought about using        with FileLock("document.txt")   The problem that arise is; if script-1 acquire the lock for "document.txt" then script-2 wants to access document.txt, is it going to wait that script-1 finish? or is it going to skip that line of code? as the 2nd one isn't an option? also. once the lock is acquired, how to remove it when it's no longer needed?


Determining file type in PHP without MIME or extension

I have a PHP website that takes file uploads, and I want to be able to do certain actions based on the file type. But I don't want to trust what type of file the browser says it is, and would rather read the file's header to determine it. Do any libraries exist for this in PHP? Or would this be something I need to write from scratch?


How use the ROC curve to choose correct threshold in logistic regression

I built a logistic regression model.  How can I choose the optimal threshold by looking at the ROC?  I want to be able to make the decision if the observation has the event.  acc = read.csv("path to data") View(acc)  set.seed(1) index  <- sample(1:nrow(acc), round(0.75*nrow(acc))) train  <- acc[index,] test   <- acc[-index,] fitTrn <- glm(isOneday~., data=train, family=binomial(link="logit"))  fitted.results <- predict(fitTrn, newdata=test, type='response')  library(ROCR) p   <- predict(fitTrn, newdata=test, type="response") pr  <- prediction(p, test$isOneday) prf <- performance(pr, measure="tpr", x.measure="fpr") auc <- performance(pr, measure="auc")


How can I prove  from first principles that $0!$ is equal to $1$?


Will U.S. citizenship boost credit score?

I have a good friend in USA who is a permanent resident and is married to a US citizen.  They have only one income (although his income is a bit over $100K per year) and his wife (who is the citizen) has not had any income for over a decade. She also does not have any debt. They have common budget and he had paid off the little bit of debt she had (less than $4K) last year.  His own debts are moderate (less than $10K total on revolving credit + two car loans totaling about $38K). Neither one of them has any bad credit markings on their credit report. They have been married for over 20+ years but moved back to USA about 4 years ago (they lived abroad because of his work and kept filing the international tax returns to IRS).  Anyway, he told me that her FICO score is about 50 points higher than his.  Could this be caused by that he is a permanent resident instead of a citizen?


What is the difference between these two ways to calculate average velocity?

Average velocity:  $$v_{\rm avg,1}=\frac{v_{\rm final}+v_{\rm initial}}{2}$$   and average velocity:   $$v_{\rm avg,2} =\frac{\rm total\;displacement}{\rm time \;taken}=\frac{\Delta x}{\Delta t} $$  What is the difference between them and when do we use them?


How can I take multiple fighting styles?

For a fighter in D&D 5e, I can take one fighting style as part of the character creation. At third level, I can choose a martial archetype (Champion) which can then allow me to choose an additional fighting style.  Is there any other way to choose multiple fighting styles?


is it possible to only let the traffic of Deluge through a VPN (OpenVPN) and the other traffic not with iptables?


Relation between condition numbers $\kappa(A^T A)$ and $\kappa(A)$

Let $A$ be a real $m\times n$ matrix. Why is the  $\kappa(A^T A)$ approximately the square of the $\kappa(A)$?


How store hexadecimal strings in a Byte array?

I need help to create the header as explain below, I am not confident with byte conversion and big endian convention.  I think my problem comes from the lines byte[] VERSION = "01".getBytes(); I don't know how to 'force' the String to be stored in one byte.  Header creation     public static final int HEADER_SIZE = 8; byte[] header = new byte[HEADER_SIZE];  // Header struture /* *byte 0   : Version *byte 1   : Inverse Version *byte 2-3 : Type *byte 4-7 : Length */  // Hex values byte[] VERSION = "01".getBytes(); byte[] INVERSE_VERSION = "FE".getBytes(); byte[] TYPE = "9000".getBytes(); byte[] LENGTH = "02".getBytes();  ByteBuffer buf = ByteBuffer.wrap(this.header);     buf.order(ByteOrder.BIG_ENDIAN);     buf.put(VERSION);     buf.put(INVERS_VERSION);     buf.put(TYPE);     //buf.put(LENGTH); <-- Overflow  //out System.out.println(new String(buf.array(), "ASCII"));   Actual Output  01FE9000   Output Expected  01FE900020000000


Prove by mathematical induction that $n!  1$

Basic step  Show that $P(2)$ is true:  $$2! < (2)^2$$  $$1*2 < 2*2$$  $$2 < 4 \quad \text{(which is true)}$$   Inductive Step  Assume $P(k) \implies (k)! < (k)^k $ is true  then, I'm not sure how to continue


When is it better to create STATISTICS instead of creating an Index?

I have found plenty of information on what STATISTICS are: how they are maintained, how they can be created manually or automatically from queries or indexes, and so on. But, I have been unable to find any guidance or "best practices" information regarding when to create them: what situations benefit more from a manually created STATISTICS object than from an Index. I have seen manually created filtered statistics helping queries on partitioned tables (because the statistics created for the indexes cover the whole table and are not per partition--brillaint!), but surely there must be other scenarios that would benefit from a statistics object while not needing the detail of an index, nor worth the cost of maintaining the index or increasing the chances of blocking / dead-locks.  @JonathanFite, in a comment, mentioned a distinction between indexes and statistics:     Indexes will help SQL find the data faster by creating lookups that are sorted differently than the table itself. Statistics help SQL determine how much memory/effort is going to be required to satisfy the query.   That is great info, mostly because it helps me clarify my question:  How does knowing this (or any other technical info on the whats and hows related to the behaviors and nature of STATISTICS) help determine when to choose CREATE STATISTICS over CREATE INDEX, especially when creating an Index will create the related STATISTICS object? What scenario would be better served by having only the STATISTICS info and not having the Index?  It would be super-duper helpful, if possible, to have a working example of a scenario where the STATISTICS object is a better fit than an INDEX.    Since I am a visual learner / thinker, I thought it might help to see the differences between STATISTICS and INDEXes, side-by-side, as a possible means of helping determine when STATISTICS are the better choice.  Thingy           PROs                             CONs -------          ----------                       ------------------- INDEX            * Can help sorts.                * Takes up space.                  * Contains data (can             * Needs to be maintained (extra I/O).                    "cover" a query).              * More chances for blocking / dead-locks.  STATISTICS       * Takes up very little space.    * Cannot help sorts.                  * Lighter maintenance / won't    * Cannot "cover" queries.                    slow down DML operations.                  * Does not increase chances                    of blocking / dead-locks.     The following are some resources that I found while looking for this, one that even asks this same question, but it was not answered:        ** To be clear, I do not have an answer for this and am actually looking to get feedback from hopefully a few people to provide what appears to be oddly missing information out here in the interwebs.


Affine cipher : Why it is required to have GCD(a, m) equals to 1

In the , the key $k = (a, b)$ should have the following property, i.e. GCD of $a$ and the modulus should be 1:     $\gcd (a, m) = 1$, where $m$ is the set of possible moduli   My question is, why it is required that $a$ should have the above property? What is the significance of this? And why is $b$ excluded from this condition?


SSL cert continues to fail to cover second-level subdomains

If you try to log in from a meta site (meta.*.stackexchange.com), you get an "Untrusted Connection" from Firefox, even without HTTPS Everywhere enabled.  For example, I just tried this on meta.law.stackexchange.com and the certificate appears to be only valid for ssl8217.cloudflare.com, *.stackexchange.com, stackexchange.com domains, thus causing ssl_error_bad_cert_domain.  It has been over two years since this issue was reported, and it continues to appear.  Here's one version of the security warning, on Firefox:    It's 2016, and we should be having reliable HTTPS coverage by now, at least for login.


Java program returning int array with 3 elements (#of lines, # of words, # of characters) from a text fil

My code is using the read() function to "read" through a txt file one character at a time and needs to internally count the number of lines, words, and characters.  Definitions of what is considered a line, word, and character:  of characters = any character that is "read" even if it is a 'whitespace' character  of lines = whenever the whitespace character '\n' is read.  of words = whenever a non-whitespace character is read that is either the first word OR one that is preceded by a whitespace character  *** I used Character.isWhitespace() method to determine if the current character is a whitespace or not.   import java.io.*; import java.util.LinkedList; public class UnixCommands{      public int[] wc(Reader in) throws IOException {          int[] result = new int[3];           int countChar = 0;          int countWord = 0;           int countLine = 0;          int savedD = -1;          int data = in.read();           while (data != -1) {               countChar++; //countChar no matter what.             if(data == '\n') { //countLine if '\n' is read.             countLine++;             }              if((countWord == 0 && !Character.isWhitespace(data)) ||              // first word appears           (!Character.isWhitespace(data) && Character.isWhitespace(savedD)))              //anytime another word appear.         {             countWord++;         }           savedD = data;         data = in.read();     }           result[0] = countLine;         result[1] = countWord;         result[2] = countChar;         System.out.println(countLine);         System.out.println(countWord);         System.out.println(countChar);         System.out.println(result);      return result;  }    }  Input: I am giving it a text file. Output:  63852     -> count of lines 562492    -> count of words (i think my number of words is off by 1 word)  3202326    -> count of characters [I@63b719   -> not sure why my result array is outputting this   I guess the question is why is not outputting the appropriate number of words?


Will the JVM garbage collect orphaned cycles in memory?

"Orphaned cycles" may not be exactly the correct term for what I'm trying to describe.  Here is an example of what I'm trying to describe in code:  public class Container {     private Container otherContainer;     public void setContainer(Container otherContainer) {         this.otherContainer = otherContainer;     } }  public class Main {     public static void main(String[] args) {         doStuff();     }     public static void doStuff() {         Container c1 = new Container();         Container c2 = new Container();         c1.setContainer(c2);         c2.setContainer(c1);         //c1 and c2 now each hold a reference to each other,         //will they be garbage-collected once this method falls out of scope?     } }   Given a graph of references in memory containing a cycle, can the JVM garbage collect the memory references once the cycle is unreachable by code?  Or is this a memory leak?


Can I use a paired t-test when different subjects have different number of data points per condition?

I want to compare the effect of a drug (immunomodulator) on antibody levels in a group of patients $(n=18)$. Blood samples were taken pre- and post-treatment in each patient and the means of antibody levels compared for each study subject. At this point I guess that the best and simplest option is a paired t-test.  However, in some cases, I have a different number of blood samples in the pre- vs. the post-treatment group. For example, for one patient I have $16$ samples pre-treatment and $5$ post-treatment.     Can I still use the paired t-test?  Should I use the independent t-test?


I'm kind of used to linux. I'm using Busybox from the Busybox Free installer, with Busybox 1.21.0-Stericson. Trying to chance my shell to the Busybox shell using busybox ash gives the following error after every single command:  ash: precmd: not found echo $PS1 $(precmd)$USER@$HOSTNAME:${PWD: -?} $    I tried to go back to the normal shell and find out WHERE precmd is:  which precmd   It just changes the prompt to have "1|" in front of it, without giving me WHERE it is. I found a solution , but have no idea where to put it. I'm basically trying to do the same as  (make Busybox shell the default).


Cycles option to turn off texture tiling?

Update  As of 2.76 there is a .    In Blender Internal there was an option to turn this off (called )  Is there a way to do this with Cycles? I know you can just scale your textures up with a transparent background, but you end up with textures much bigger than they need to be.  Is there a way to this, and if not, why not?


Should word embedding vectors be normalized before being used as inputs?

To keep all the inputs to a network on the same scale, they are usually normalized so that they end up being represented as number of standard deviations from the mean.  Is this something that needs to be done for the result of trained word embeddings, e.g. vectors from GloVe or word2vec? If so, should I use the mean/variance of only the embeddings, or all the samples in my data set?


I have installed Ubuntu 12.10 from a CD in a book I just bought, but it, of course, is out of date. There should be an executable or an archive that I can pull to my hard drive, and open with the Archive Manager or the Software Updater.  Please don't just give me another link! I've been Googling and linking all day.  I have gone to the upgrade page, and a file (ubuntu-14.04.2-desktop-amd64.iso) downloads, but I can't do anything with it. It's not an executable, and the archive manager looks, but doesn't install or run anything from it.  Please, what are the STEPS? as in: 1. download THIS from HERE 2. Put it in THIS-PLACE (under Home, or '/Root' or where??) 3. open it with UBUNTU-TOOL-A  Rant follows here: My ultimate goal is just to get the Eclipse Java compiler running. To install it in that other operating system, I just downloaded and ran the install for the JDK and then downloaded the Eclipse zip file, extracted it, and BOOM, I was programming in Java.  I downloaded Eclipse for Ububtu, and it needs the JRE or JDK. I download the JDK, and it needs the JRE. I search for the JRE for Ubuntu, and the link takes me to the same page for the JDK.  Why is it so convoluted just to get what amounts to a software program to run here?


Whenever a new version of Ubuntu is released do I need to re-download Ubuntu?

Let's say if I have Xenial Xerus, when a new version (let's say Yakkety Yak) comes out will I have to go to the website and install it or will I just have to do the update command and it save all my data and update to the new version?


Which of these sentences is correct?  A) This is the toughest part to me. B) This is the hardest part for me. C) This is the toughest part for me. D) This is the hardest part to me.


I have a bibliography entry which shows up in my .bib file as      @article{Weber1885,     author = {Weber, H F},     journal = {Sitzungsberichte der Akademie der Wissenschaften zu Berlin},     pages = {809--815},     title = {{Das W\"{a}rmeleitungsverm\"{o}gen der tropfbaren Fl\"{u}ssigkeiten}},     year = {1885}     }   However when I compile this the entry shows the authors name as ----- instead of H F Weber (as shown in the picture). I have no idea what to do, however, it does seem to be linked to another article in my .bib file which is:    @article{Weber1880,   author = {Weber, H F},   journal = {Annalen der Physik und Chemie},   number = {5},   title = {{Untersuchungen \"{u}ber die W\"{a}rmeleitung in Fl\"{u}ssigkeiten}},   volume = {10},   year = {1880}   }   In the .bbl file the same reference shows up as:   \bibitem{Weber1885a}    ------, ``{Das W\"{a}rmeleitungsverm\"{o}gen der tropfbaren Fl\"{u}ssigkeiten},'' \emph{Sitzungsberichte der Akademie der Wissenschaften zu Berlin}, vol.~1, pp. 809--815, 1885.   Hence why I see the result I see in the bibliography... Has anyone come across this or have a solution?  Cheers


I am currently running some GLM's looking at different carnivore species and environmental variables. One of my variables is habitat which I have coded  from 1-6. I ran the models with Poisson, but I think I need to use a different model as it may be assuming my habitat data is continuous like my other variables. Can anybody please tell me what type of model I should be using that can account for both numerical and categorical data sets combined (if that makes sense).       glm1<-glm(Jaguar_RAI~Habitat+Dist_river+Human_RAI+Fox_RAI+     Puma_RAI + Tayra_RAI+Ocelot_RAI,family = poisson())      summary(glm1)      plot(glm1)      #now test the sig relationship with spearmans because it's non parametric      cor.test(Jaguar_RAI,Habitat,method = "spearman")


Creating a network flow model for building a new organizing schema for a departament

The problem I'm attempting to solve is formulated like this:  A department consists of n groups such as for each group i in $\overline{1,n}$ contains $p_i$ members.  A change in the organization is wanted so that:  the new organizing schema contains q groups of members each group in $\overline{1,q}$ will contain $k_i$ members the new groups may not contain more than c members which were part of the same old group (c $\geq$ 2 , c $\in \mathbb{N}$)  How to find a model based on a flow network to build this new organizing schema?  I've tried building a network flow graph but I had trouble in representing the member groups and the restriction that no more than c members which were part of an old group can be present in a new group. Thank you for reading the question, any hint or solution is greatly appreciated.


My object isn't fully Rendered, but in viewport is alright

I come to you today with this issue. I've just start blender course @blenderguru (I really enjoy it;)). As you can see (in render) my icing is gone... but sprinkles are there. And when I check it in blender viewport everything is alright. I am just starting learning, so please be nice :)  Rendered image (icing doesn't show up)      Here's how it looks like in Rendered Preview      And here's an image of my particles settings      P.S.: If it can help


How come my free ram keeps getting less and less?

I have a Samsung gs3 gt 19300 running on cyanogen mod 10.2 stable version, so far it has been smooth other than the  ram problem (which I also encounter when using stock ROM)   Whenever I restart, I often have around 300 + MB of free ram (after recent apps are all cleared)  however, a few days later, I find that my free ram drops to less than 100 MB (with all recent apps cleared as well)   Well I checked the list of running services on the background and their sizes, but there were the almost the same compared to when the first day after restart, but if the running services are the same, how come the free ram drops that much? What is the problem? Is it memory leak by apps? What's the best way to handle it?


Accessing my Gmail account without going through Google sign in and not remember password

I cannot access my Gmail account inbox Access please help me


Biometrika journal style file not getting along with TeXLive-2020

I cannot compile styleguide.tex in biometrika.zip (see ). Here is a MWE which leads to the same error message, though not sure yet that I've not tossed baby out with bath water. \documentclass{article} \RequirePackage[thmmarks]{ntheorem}  \makeatletter \def\arabic#1{{\rm\expandafter\@arabic\csname c@#1\endcsname}} \theoremnumbering{arabic} \newtheorem{definition}{Definition} \makeatother  \begin{document}  \begin{definition} This is a definition. \end{definition}  \end{document}  Here is the output of pdflatex: % pdflatex styleguide This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode (./styleguide.tex LaTeX2e <2020-02-02> patch level 5 L3 programming layer <2020-03-06> (/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo)) (./ntheorem.sty  Style `ntheorem', Version 1.24 <2004/09/20> ) (/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def ) (./styleguide.aux) ! Use of \@item doesn't match its definition. \update@series@target@value #1->\def \reserved@a {                                                   #1}\ifx \target@meta@famil... l.13 T       his is a definition. ? q OK, entering \batchmode


I am using Beamer with biblatex.   When I use the code below, it produces the following slide.   I would like to replace the tiny journal picture by [FC1] for the first category (then [FC2] for the second reference in the first category etc...) and [SC1] for the second category (then [SC2], etc...).  Is it possible?  As pointed out in comment, the solution proposes in  do not work here. If I use     \setbeamertemplate{bibliography item}{[\theenumiv]}   I get [0] in front of each article. If I use   \setbeamertemplate{bibliography item}{\insertbiblabel}   I get nothing in front of each article. In addition, I would like to have FC or SC for my reference depending of the keyword of each article.     The code  \documentclass[10pt]{beamer} \usepackage{beamerthemesplit}  \usepackage[english,french]{babel} \usepackage{xcolor}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage[backend=bibtex,style=authoryear, defernumbers=true]{biblatex} \addbibresource{bib.bib} \usetheme{default}  \begin{document}  \begin{frame} \begin{itemize} \item First category \nocite{*} \printbibliography[prefixnumbers=FC, heading=none,keyword=fstcat] \item Second category \printbibliography[prefixnumbers=SC, heading=none,keyword=sndcat] \end{itemize} \end{frame}  \end{document}   The .bib file   @article {test1, AUTHOR = {LastName1, FirstName1}, TITLE = {A long title that says nothing interesting}, JOURNAL = {Big journal}, VOLUME = {1}, YEAR = {1111}, NUMBER = {1}, PAGES = {1--111}, keywords={fstcat}  }  @article {test2, AUTHOR = {LastName2, FirstName2}, TITLE = {A long title that says nothing interesting again}, JOURNAL = {Very Big journal}, VOLUME = {1}, YEAR = {1111}, NUMBER = {1}, PAGES = {1--111}, keywords={sndcat}  }


Change channel of pulseaudio default device

I am using pulseaudio. I have set the Bluetooth as default device, it set perfectly but I wanted to change the channel of that default device. Can I change the channel of default device to right only or left only?  And how?


I am doing this problem mentioned above and I know the answer because I know Euler's Theorem that $$a^{\varphi{(m)}}\equiv{1}\pmod{m}.$$  I used 100 as my modulus and got that the last two digits of $7^{355}$ are $43$.  My question is this.  What prime should I pick to solve this problem using Fermat's theorem $$a^{p-1}\equiv{1}\pmod{p}$$  As a precursor problem, the author (Dudley; Elementary Number Theory) asked to find the last digit of the number above; so using a modulus $5$, $7^4\equiv{1}\pmod{5}$ by Fermat.  Since the answer is $7^{355}\equiv{3}\pmod{5}$, the last digit is either $3$ or $8$.  Since $7$ is odd, the answer will clearly be odd, so $3$ is it.  The book is working linearly, building from the previous chapters and Euler's Theorem isn't mentioned for another two chapters (I remembered Euler from a problem solving class in college).    So again, what prime would be best?  How should I procede?    EDIT: I've seen a bunch of problems on the site and none that I looked at did it using Fermat.  If there is one, that could be posted and I would be happy.  EDIT 2:  it seems that the problem of finding of finding the last two digits using is rather difficult because of the implication that we need something mod 100.  Is there a way around this , like adding a step or complexifying, in order to finish the problem with Fermat?


How does one register an IP without DCHP?

Scenario: I have a Linux computer in AP mode and for whatever reason, I do not have a DCHP server installed. Now, I connect a couple laptops to said AP. How do I tell the AP (computer) that the new devices belong to such-and-such IP address?


How to install arm-none-eabi-gdb on Ubuntu 20.04 LTS (Focal Fossa)

I tried to install arm-none-eabi-gdb as a part of gcc-arm-embedded. I added PPA:  sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa   and executed:   sudo apt install gcc-arm-embedded    It responded with:  Err:8 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release   404  Not Found [IP: 91.189.95.83 80]   As far as I understand - gcc-arm-embedded doesn't have a version for Ubuntu 20. So I've changed release version for this PPA in Software & Updates to bionic so that I can avoid error 404.  Even though ubuntu 20 has libisl22, now I have unmet dependencies when I try to install gcc-arm-embedded:  The following packages have unmet dependencies:  gcc-arm-embedded : Depends: libisl15 (>= 0.15) but it is not installable E: Unable to correct problems, you have held broken packages.   I was unable to find a way to install requested version of libisl, as apt offers only two versions - libisl22 and libisl-dev and both are not accepted by installer.  I need advice on how to install arm-none-eabi-gdb. Thank you!


I have a HashMap with a String and an array of Integer and I want to sort the map by the first value of the array.  For example, in the entries:  {"Name1"=[2,4],  "Name2"=[1,5],  "Name3"=[3]}   the order should be:  {"Name2"=[1,5],  "Name1"=[2,4],  "Name3"=[3]}


Custom URL Hack - anybody know how can i find the fields IDs from "User" object?

I'm new in custom URL hacking.  I am trying to write a custom URL in a custom button. It is suppose to clone the User record, and while doing so, I want some user fields to be cleared. However, I need help identifying those fields IDs (e.g. Email, Name, etc).  How can i refer these fields when writing the custom URL code?


How to bind click event to button from ajax result

So I have Button_1 that when click, it will request a new button_2 using ajax. Both button has click event on my jquery(document).ready but when the button 2 added to the page, it doens't have jquery event on it. Is that possible?  Here is my code on page load:  jQuery(document).ready(function($){  $('#button_1').click(function(e){     e.preventDefault();     var id = $(this).data('id');      $.ajax({         type: 'POST',         url: 'get_button_2.php',         data: 'id='+id,         dataType: 'html'     })     .done(function(response){         $('#button-container').html('');         $('#button_1').remove(); // remove button 1         $('#button-container').html(response).show('500');     })     .fail(function(){         $('#button-container').html('Something went wrong');     });  });   $('#button_2').click(function(e){     e.preventDefault();     alert ('Thank You!'); });  });


What is the word for someone that uses other people?

What is the word that describes a person who uses other people, generally for personal gain, without anything given in return? Maybe through blatancy or through manipulation. I was using extortionist, but I know that's not correct. To further explain; someone who keeps a relationship only for the benefits it provides.


How to compute $k$'th roots $\!\bmod n$?

I have the following equation: $$ n \equiv M^k\mod(b) $$ where n, a, b are integers, and M is unknown. How do I solve this equation to find the M value? Those a and b are public keys of the RSA algorithm and n is the result of encryption. I need to find the encrypted message.


I've met the symbol ||- many times in modal logic textbooks, especially in epistemic logic books. But I cannot find any info about how to type or read it. Usually, it means "semantical entailment" or "modelling" in modal logic. But in first-order logic, semantical entailment is symbolised as |=. By contrast, we also use |- to express "syntactical entailment" or "proving". Can anyone help me?


Blender intro turns black after rendering

So I recently rendered an intro overnight and when I woke up the blender intro was a black screen. I scrolled through all the frames and they were still black but the audio would still play.


I am trying to click on the link shown on the attachment but, no matter what I try, webdriver can't find the element. I tried these: elem = driver.find_element_by_xpath("/html/body/div[1]/div/div/div[2]/div[2]/div/div[1]/div/div[1]/div/div[1]/div[2]/div/div/table/tbody/tr/td[1]/div/a").click()  elem = driver.find_element_by_xpath("//*[text()='P0005 - ORP TEST Dev Team 4 Mateusz']").click()  elem = driver.find_element_by_link_text("P0005 - ORP TEST Dev Team 4 Mateusz").click()


Create a graph network flow model for the Computer Science Department

I need to create a network flow model for building (if possible) the new organizing schema for the following problem: At the Computer Science Department at the beginning of the first semester there are p freshmen (study) groups: group i contains n(i) students, for all i = 1, p. For the second semester the Department wants to reorganize these groups in such a way that: ->the new organizing schema has r groups; ->the new group j contains m(j) students, for any j = 1, r; ->any new group cannot contain more than c students which were classmates in a same old group from the former organizing schema (c ∈ NN∗ \ {1}). - My idea would be to use a network that contains a bipartite graph but don't know how to organise students and grups inside it and how to describe this bipartition.


Not getting the correct output from this if statement in for loop?

I'm making a vocabulary practice program using arrays (I know, not Lists, but I need array practice). However, everything goes well until the program evaluates if the typed answer (when the program quizzes the user) is the actual definition. I always get the answer wrong, and I don't know why. Here's the whole program:  import java.util.Scanner;  public class organ { public Scanner input = new Scanner(System.in); public String language; public int temp;  public static void main(String[] args){     organ organObject = new organ();     organObject.greeting();     organObject.ending(); }  public void greeting(){     System.out.println("Hello! Do you want to practice vocabulary in English or Spanish?");     //Need to fix this grammar.     System.out.println("!Hola! ?Quieres practicar el vocabulario en ingles o espanol?");     language = input.nextLine();     checkLanguage(language); } public void checkLanguage(String answer){     if (language.equals("English") || language.equals("ingles")){         englishTree();     }     else{         spanishTree();     } } public void englishTree(){     System.out.println("How many words do you want to practice using?");     int temp = input.nextInt();     String[] wordStorage = new String[temp];     String[] meaningStorage = new String[temp];     String answer;         for(int counter = 0; counter < wordStorage.length; counter++){              System.out.println("What is word number " + (1 + counter) +   "?");             wordStorage[counter] = input.next();              System.out.println("What is def number " + (1 + counter) + "?");             meaningStorage[counter] = input.next();         }     if (wordStorage.length > 10) {         System.out.println("Stop. Now.");     }     System.out.println("Alright, let's get to the good stuff.");     for(int counter = 0; counter < wordStorage.length; counter++){         System.out.println("What is the meaning of " + wordStorage[counter] + "?");         answer = input.next();         if (answer == meaningStorage[counter]){             System.out.println("Correct!");         }         if (answer != meaningStorage[counter]){             System.out.println("Wrong. The answer is " + meaningStorage[counter] + ".");         }     } } public void spanishTree(){     System.out.println("Espere."); } public void ending(){     System.out.println("This is the ending of the program for now. Bye!"); }   } The problem is under "Alright, let's get to the good stuff."


Get fan speed from terminal without spindump or third party software

I was wondering if there was a way to access the computer fan speed through terminal. I've heard that you can use software like smcFanControl, but I was wondering if there was a way to do it without any third party software.   Another way i've heard of is using the spindump command, but from what I remember it can take a bit for it to finish.  Is there a way to get the info from terminal almost instantly without using third party software?  Also, is there a command I could possibly use to adjust the fan speed using terminal without any third party software?  I'm using a MacBook Pro 2015 running macOS High Sierra.


If refraction slows down light, isn't it possible to hold light still?

I have a quick question about the refraction of light, and I'm sorry if it seems a bit simplistic or even stupid, but I'm still learning.  We know that when light passes through a denser medium, it slows down. However, is there a limit to that slowing down? If no, wouldn't it be possible, with some type of medium we make ourselves (like a crystal), to decrease the light's speed down to a point where we would be able to "see the photons moving forwards"?  I know it is way more complicated than that and that you can't see light unless some other light bounces off it, what I mean is slowing down light to an extreme and unusual speed). That sounds completely absurd but I can't seem to find what is wrong. Can anyone can explain it to me? :)


The review system flagged me down in an audit for trying to edit a vandalizing edit. The vandalism was trivially undoable (two clicks and delete), and I had an edit in mind anyway - so I was trying to do it quicker without opening the question on another page. I think the review system should only act when your action is finished. In case of an edit, clicking "Edit" doesn't mean you actually did anything just yet!  Shouldn't this misbehavior of the review system be considered a bug, and shouldn't it be fixed?


Getting into a PhD program with a low gpa but good profile

I am going to apply to few PhD programs in Microbiology (I'm particularly very interested in Microbial ecology) but I'm afraid my undergrad gpa (8.5/10 for the first 6 semester as I'm currently in my 7th semester) might hold me back (however I have scored 9/10 in all core biology subjects). But I have a lot of other aspects to my application. For e.g. :  I have co-authored 3 research papers which are published in peer reviewed journal. I have co authored 6 book chapters (4 in peer reviewed journals like springer, Elsevier etc) I have presented 4 of my papers in 3 different international conferences (2 of them I was the first author) I received funding from ISRO-ASI scholarship (Indian Space Research Organisation- Astronautical Society of India)  to attend one of the aforementioned conferences. One of my team projects received a funding of 38,000 USD from our college trust. I have conducted 3 months full time research internship in a research laboratory Tsinghua University. I have also done 2 company trainings of 10 day each. Plus few extra curricular activities like I was in tedx team, entrepreneurship cell etc. And as part time job I also taught few high school kids. By the way I should mention my college is well reputed  (best in the state) in my country (India) but is tier-2  I need your help! I have no idea as to which colleges I should target ( my dream College would be University of Illinois (Urbana-Champaign) because of this particular professor Bruce W Fouke. He's amazing!) But I don't know if I would be accepted. I'm also not very rich so I can only afford the application fee for 10 colleges. I need your advice! Do you guys think I should apply to M.S. first get good grades and then try out for PhD. What kind of colleges I should target? (I actually concentrate more on the laboratory and not on the affiliated University but the University would be the one screening my application).


I would like to know if there is a formula that could tell me the future balance of a loan. For example, if I have a loan of 10,000 at 6% for 5 years and I do the amortization it brings that the payment should be 193.33. After 3 monthly payments the balance would be 9,568. My question is, if there a formula where I can plug in the 10,000 and it would tell me how much the principal would change after 3 payments, which result should be 9568.


What exactly are and what's the relation of the Pokémon with the environment?

I mean from an in-universe perspective. There are dossiers and encyclopedias around there, but what are Pokémon? They seem to be mostly animals but are they really animals, are they aliens or are they something else entirely? All I've seen is that the characters are fighting between species or being captured for people. Is this all they really do? How these Pokemons affect the planet environment? the fights are really necessary? The innate features of these suggest so, but why?


EDIT: I have reviewed the "Duplicate claim" and to be frank, it is not answering my query, like most of my questions, the existing duplicate question do not answer my query.  Besides that, I am dumping Ubuntu as I am sick and tired of the persistent issues with it, things working one day then not the next and everything breaking after each update and I do believe the main reason I can't update is due to my system being knobbled :)   So enough is enough, I have found a stable version of software that does not contain spyware like Ubuntu does.  Happy smoking guys.  Ciao.    I have asked a couple of times on how to go about this cloning of a drive, I have been advised to use dd or cat but neither work, well dd worked but not as expected. The command I used was:   dd if=/dev/sda | gzip -c > "/media/mark/Seagate Expansion Drive/ssd.img.gz"   The result was an unusually large container (51.3GiB) for a very small image file (3.9GiB) and it took more than 10 hours to do. I was able to copy data from the drives with copy and paste in about 45 Minutes before I unmounted for the drive image to be completed.  So, to set things straight from the outset...  Drive to be copied - SSD drive, 64GB on the tag, has two partitions, is referenced as /dev/sda/ with /dev/sda2 as the boot partition NOT MOUNTED  Drive to have image dumped to - USB HDD, 2TB on the tag, has one partition with 144MB buffer at the end on /dev/sdc1 IS MOUNTED  The drives copied from and copied to are not used as a boot drive, the boot device/partition is on /dev/sdb1 (which is an SD Card) and neither device is used during the process. Yes the sda drive is unmounted, had to repeat that point as the first time around it may have been missed.  Each time I am told that I should use dd if=/dev/sda | gzip -c > "/media/mark/Seagate Expansion Drive/ssd.img.gz" the image results in a very strange file that is 51.3GiB and in that file is a 3.9GiB file thats the image!?!?! Ummm the drives are nearly full!  Each time I try to do this using ZIP which is what I want and thats so I can access in Windows should I need to do a blanket reinstall and pull the files I need from the ZIP file, however when I use dd if=/dev/sda | zip "/media/mark/Seagate Expansion Drive/ssd.img.zip" I get a message that the program has nothing to do!  I have tried the same with the cat command and that results in errors stating that "nothing to do!" and despite pointing out my needs, I get answers that would over write the existing partition, not what I am looking to do.  Yes "I have the ZIP libraries", yes "the drive to write to is mounted", no "the source drive is not mounted", I have no storage issues, so the ZIP can be uncompressed format.  Can someone help please?  ** EDIT **  Excuse me for getting frustrated BUT does Ububntu have ANY software that works?  My problem is very simple to follow, I have an SSD that is 64GiB in size, it is about 98% full.  I have followed examples online and by advice from here in askubuntu and everyone posts stuff like I have previously posted.  The image file made using dd resulted in a 51.3GiB file called ssd.img.gz, within that gz archive a file called ssd.img resides and it is 3.9GiB in size.  NOW FORGET ALL THAT ABOUT THE CONTAINER...  I want to make an image of a drive that can later access in a ZIP program, I have gzip and zip libraries, my preference is ZIP because windows can read ZIP files without any external program.  How can I make a useable drive image that I can verify as being the same so I can then repair / break the drive with the confidence that I can restore the contents as it once was.  How can I do that please?


How to prove the equation below:  $(A^TA + \mu I)^{-1}A^T$  =  $A^T(AA^T +  \mu I)^{-1}$  no ideas at all, i major in signal processing and it needs some math techniques so i am not familiar with this part of knowledge, really need help please.


Java changes the variable without me doing so

So I wanna compute a covexhull but in the I want the right and left sets seperately. I cannot understand what Java is doint right here exactly.  So I first call the hullset function for the right part and then put it in rightCov (at that point right set has 3 points). After that I can hullset for the left set . The problem is that even though I have "saved" the 3 points of the right set after the second call of the hullset,for the left set only,the variable rightCov takes all the 5 points of the covexhull without me using it again. The calls are below.  hullset(A, B, rightSet, covexHull); ArrayList<Point> rightCov=covexHull;  hullset(A,B,leftSet, covexHull);


Plotting a Bivariate Normal Distribution in Tikz

I have been trying to make a 3D plot of a certain bivariate normal distribution but that is far from ideal at the moment. The code I have been using is   \begin{tikzpicture} \centering \begin{axis}[ width=6in, height=4in, title=Bivariate Normal Distribution, axis lines=left, grid=both, ] \addplot3[samples=50,surf,faceted color=blue] {1/(2 *pi* sqrt(1-0.9^2))* exp(-(x^2+y^2-2*0.9*x*y)/(2*(1-0.9^2))}; \end{axis} \end{tikzpicture}   which produces this    This is is not what I would like though and me messing with the different graphical parameters of \addplot3 does not lead to a more pleasant result for the eyes. Ideally, the surface I would like to produce is something like this     I really don't mind the shape, I can change it without any problems, it's the graphics I am having trouble with. Could you please tell me which parameters I need to change to get something like the picture above?  Thank you.


Gravitational lensing or cloud refraction?

My current understanding of gravitational lensing follows  When a star or other massive body passes between us and another star, the phenomenon generally labeled 'gravitational lensing' occurs.  The term 'gravitational lensing' refers to the bending of light rays due to the gravitational influence of the massive body.  Since the bends concentrate light for the observer, they act like a magnifying lens.  OTOH  But since I was young I have pondered other explanations for such observations.  One thought about what (else) might cause the observed effect is a cloud of gas around the massive body itself.  The assumption being that any change in density between the thin gas of interstellar space and the thicker gas surrounding a massive object should form a refractive boundary.  In the case of an active star, that gas & might be the heliosphere of the star, and for any massive object that is not creating an  heliosphere, it could be due to clouds of gas that the massive object is sucking in.  I raised this idea with a physics teacher in high school & he assured me that any possible refraction from clouds of gas had been ruled out in observations of gravitational lensing.  I never got to see papers on the subject, so I cannot confirm that (and am not convinced).  My questions are:   Does anybody know of papers on gravitational lensing that discuss the refraction from clouds of gas around the lensing body? How could an observer/experimenter go about quantifying the likely refractive index of such a gas cloud.


I haven't touched series and sequences in a while and am rusty, so need some direction in finding the following:  $$ \lim\limits_{n \to \infty} \sum_{k=1}^n \frac{k}{n^2 + k^2}$$  Thanks in advance.


I have Ubuntu 13.04 installed on a Gigabyte BRIX and serving as a HTPC (plugged into my television through a HDMI connection)  My question is pretty simple, is it possible to start Ubuntu without the Unity desktop and still be able to launch graphical applications such as XBMC ?


I figured we'd have to show $a=qb$ from $2^a-1=r(2^b-1)$ for $q,r\in\mathbb{Z}$ for the first implication and vice versa, how should I proceed from here?


Let $p > 2$ be prime. Show that there exist integers $a,b \geq 0 $   satisfying the congruence $a^2 + b^2 \equiv -1 $(mod $p$).    A few things that can be seen instantly: $ p \equiv 1$ mod $4$, and I am contemplating using Wilsons theorem: $(p-1)! \equiv -1$ mod $p$.  Alternatively there is the consideration of sets $\{1+a^2 : 0 \leq a \leq \frac{p-1}{2} \}$ and $\{-b^2 : 0 \leq b \leq \frac{p-1}{2} \}$,  Is it true that $1+ a^2 = -b^2$ and hence $a^2 + b^2 \equiv -1$ mod $p$ ? I'm sure this isn't completely correct, nor is it rigorous enough - can anyone tell me the answer?


How Can I make the World background Material to be checker Texture?

I am making a cube whose material is reflective plastic [With Principled Shader], And now I want the background to be checker Texture,So that the cube reflect the texture giving a cool sense, My problem is when I choose the checker texture As a background I didn't know the scale of it to be small ... I tried a very big value and i tried a very small value but the two didn't work,what is the value could i choose to make the background checker texture ? I am using cycles render,blender v2.79  I want this to be my background ...    This is my settings [What is missing ?]...


How to find: "Sorry, we are no longer accepting questions from this account?"

I realise this has been asked a few times, but I am wondering how do I find out if I can post / my "rating" before I get the error? I can find my Stack Overflow profile.   Tonight I've got the above message & cannot post a new question to Stack Overflow. (I found / find it hard to find questions I know how to answer :)  Though I've found one good query now I answered. Hopefully the person thinks my answer is good.  EDIT: I know I find many similar queries in meta.stackechange, but I can't find a general answer re reading your profile, etc.


What determines how much experience I get from a hearthstone match in play mode?

Sometimes I win handily and get a little experience, sometimes I squeak out a victory and get a lot.  How is experience earned?


Current in series resistors and voltage drop in parallel resistors

When we have resistors in series, the current through all the resistors is same and the voltage drop (or simply voltage) at each resistor is different.  Question 1: It is fine that voltage drop (potential drop) across each resistor is different because each resistor offers different resistance (suppose). but how is the current through each resistor same? If we have resistors of different resistance, shouldn't the current be different through each resistor?  Similarly, when we have resistors in parallel, the current through each resistor is different but the voltage drop at each resistor is same.  Question 2: Current through each resistor is different because resistance of each resistor is different (suppose). but how is the voltage drop across each resistor same here? Shouldn't the voltage drop at each resistor be different because each resistor offers different resistance?


Why can't evince open this pdf issued by my bank while adobe pdf reader can?

When I'm trying out a PDF which is a form fill PDF given to me by my bank for signing up to a business account Evince (3.26.0) just shows me the following    Which is not very helpful. I waited for 10 minutes and still nothing so I don't believe the Please wait instruction is the way to go..  Interestingly enough, libreoffice 5.4 could open it. Any ideas of what to do?  I'm on Ubuntu 17.10 and Linux einstein 4.14.12-041412-generic #201801051649 SMP Fri Jan 5 16:50:54 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


When Ron broke his wand, why didn't he apply for Hogwarts financial aid?

We know, from Book Six, that Hogwarts has a financial aid for students in need. It's supposed to cover all expenses regarding materials and school supplies, so it certainly covers wands. So why didn't Ron simply apply for this fund when he broke his wand in Book Two, since his family could not afford a new one?  Seems absurd that no teacher would notice that Ron had a broken wand and inform him there's a school fund. Plot hole?  Obs.: Even if Ron could afford a new wand, one could ask how we would purchase it (you must experiment personally to find a wand that chooses you). It turns out that there's a local branch of Ollivander in Hogsmeade. I'm sure that, under those circumstances, a second-year student like Ron would be allowed to visit Hogsmeade to purchase a new wand.


how to visualise solenoidal vector field?

How to visualise solenoidal vector field;I am thinking it as a solenoid going  in a circular fashion with propagation in the z direction.  I was solving a problem to check that field is solenoidal or not ?


Isn't it obvious for $|a|=|a^{-1}|$, since $\langle a\rangle = \langle a^{-1} \rangle$?  For $|ab|=|ba|$, I think we should go like this: $e=(ab)^n\Rightarrow e=(ab)(ab)^{n-1}\Rightarrow (ab)^{-1}=(ab)^{n-1}\Rightarrow b^{-1}a^{-1}=(ab)^{n-1}\Rightarrow a^{-1}=b(ab)^{n-1}$ But I get stuck here, since I don't know whether to get from here to $e=(ba)^n$.  For $|a|=|cac^{-1}|$, do I have to show that $\langle a\rangle = \langle cac^{-1}\rangle$?


Why do I get an error while compiling this code?

Whenever I try to include any other.h file other than the glut.h I get an       error while compiling . What am I doing wrong?  #include <glut.h> #include <type_traits>  #include <iostream>  //using namespace std;  int h=500; int w=1000; int x=1; float a=0; float b=0; int s=35; float speedy=0.2; float speedx=0.15; float rate=0.0002; bool touchright=false; bool escaped=false;   the error is:     "Error    1   error C2381: 'exit' : redefinition; __declspec(noreturn) differs    d:\program files (x86)\microsoft visual studio 11.0\vc\include\stdlib.h 360 1   OpenGL2DTemplate"


Is there any danger to letting food cook in a slow cooker for a very long time?

I've recently started using a slow cooker and I was thinking about recipes that could be cooked for days.  My main concern is if there are any side effects for leaving food cooking for days that would make this plan unfeasible (dangerous to try).  Since it is at cooking temperature, there wouldn't be any reason to worry about bacteria growing on the food.  Liquid would be lost over time, which could result in burning if left unchecked, but if I add more every morning/night as needed, that too wouldn't be a problem.  All I can see is that most recipes wouldn't end up tasting as well, but undesirable isn't equal to dangerous.  There just seems to be something absurd with the notion of leaving food cooking for 5 days or even 2 weeks without there being any dangers, but I'm having a hard time figuring out what they would be.


Fallout shelter: Where does the mystery man appear

I need to know how to quickly find the Mystery Man. He's a good way to get caps but is very rare in my vault.  As in, like three times a month.   Any ways to find Mr Mystery quickly?


If $f$ is analytic and $3\operatorname{Re}f+2\operatorname{Im}f$ is constant, is $f$ also constant?

Let $f\colon U\to\mathbb{C}$ be analytic on a region $U$. If $f=u+iv$ and $3u+2v=c\in\mathbb{R}$ is constant, is it true that $f$ is also constant?


Let (G, ∗) be a group and a,b € G.   Show that (a✻b)^-1 = a^-1✻b^-1 if and only if a✻b=b✻a  I could not solve this, how can ve prove it?  a^-1 means inverse of a


Legacy Geocoder Retiring - Alternatives to ESRI World Geocoder

Knowing that ESRI is retiring their legacy geocoding systems, what good alternatives for batch geocoding do you know of?


How can i connect my amplifier output to my PC

I would like to know whether it is possible to connect my Yamaha amplifier to my computer. I'm very scared to do this, because some say that the output from my amplifier would cause my sound card to smoke up. And I don't even have a singlue clue how I can connect my amplifier to my computer...  Can someone please help me with this?


Proof of equation with binomial coefficients: $\sum\limits_{k=1}^{n} (k+1) \binom{n}{k} = 2^{n-1} \cdot (n+2)-1$

$$\sum\limits_{k=1}^{n} (k+1) \binom{n}{k} = 2^{n-1} \cdot (n+2)-1$$  Maybe it's simple to prove this equation but I'm not sure how to get along with the induction. Any hints for this? Or may I use another method?  Thanks a lot!


Is there a way to remove an allied Pokémon in a gym?

Near me, there are a couple of gyms at max level and I was wondering if there is a way to remove an allied Pokémon in those gyms and put my pokémon? Of course, without creating another account on another team, reducing prestige and then using my main account to reach the max level again.


A cryptic sentence containing "so ... as to"

I am reading Roger Scruton's Kant, A Very Short Introduction. The following sentence, in the first page, makes me pretty confused (I include the context to make it clearer):     (The greatest modern philosopher was moved by nothing more than by duty. His life, in consequence, was unremarkable.)      For Kant, the virtuous man is so much the master of his passions as scarcely to be prompted by them, and so far indifferent to power and reputation as to regard their significance as nothing beside that of duty itself.      (Having confined his life so that he could act without strain according to this ideal, Kant devoted himself to scholarship, entirely governed by congenial routines.)   I need an analysis for this sentence. I don't understand the phrase "so much ... as (scarcely) to do ...". I wonder the meaning and the usage of this kind of construction, explained in the context, not merely a translation, and I don't understand "so far ... as to do ...".  Incidentally, what's the meaning of "itself" here in the phrase "beside that of duty itself".  I need your help to understand this sentence well.  EDIT: Related:


While using 10.04 and the previous versions I used to put Ctrl+F6 to zoom in and subsequently Ctrl+F7 to zoom out. Now (using 11.10, Unity) I can't even find the options to zoom in and zoom out in the "keyboard shortcuts". I tried "the Magnifier" in the Compiz but really can't understand what is going on right there. There is simple question I would like to ask:   What to do so as to be able to zoom in with Ctrl+F6 and zoom out with Ctrl+F7?


How can I create a bootable USB drive with Ubuntu?

With Windows you can easily make a bootable USB drive using Universal USB Installer. How can I make a bootable USB drive using Ubuntu? Universal USB installer, Unetbootin, Rufus, etc. are only for Windows.


I messed up the ~/.bashrc file and now terminal doesn't open ubuntu 16.04

I just installed Android Studio on my ubuntu 16.04 machine and as I didn't want to go to its own home directory and now every single time I try to open the terminal, it tries to start android studio (yes, I'm that noob in ubuntu).  The problem with this is: it can't. Every single time I try to open the terminal, I get this error:   No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.   I have this in /etc/environment:   JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"   And when I went to android studio's folder and started studio.sh (before messing up the .bashrc of course) with sudo, it worked.  Anyway, I'm thinking that this happens because .bashrc file is executed without sudo privileges every single time I try to get up a terminal.  What can I do to fix my .bashrc file (at least delete the last 4 lines in it)?  Thanks in advance.


how many infinite cardinals are smaller than $\aleph$?

What can be said in general (if we do not assume the continuum hypothesis) about the cardinality of the set of all infinite cardinals smaller than $\aleph$?


Automount ext4 partition with user permission/ownership (fstab?)

I just installed Lubuntu 12.10 "Quantal Quetzal" on my Acer Aspire One D257, creating the partitions:  $ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda5        15G  2.1G   12G  15% / ... /dev/sda1      1008M   62M  896M   7% /boot  /dev/sda6        15G  180M   14G   2% /home /dev/sda4       195G  188M  185G   1% /media/data   (or see partitions.png:)    (I know boot partitions were useful for old bios, but now they are also useful for encryption, LVM... (though differerent from a dedicated GRUB partition !)) I renamed the "data" partition (=sda4) flag/name (using utility Disks). I have been trying for hours now to find a solution to:      How to get my data partition (not my home partition!) to auto-mount at boot time somewhere (if possible in /media/data) with me (user =   christophe) as owner and the permissions as rwxrwxr-x (=user:rwx,   group:rwx, other:r-x)?  My problems are that every time I reboot:   /media/data is back under root ownership /media/data is back under rwxr-xr-x permissions /media/data content is back as just lost+found (!!!) frequently, when trying options in /etc/fstab, I had "an error occurred while mounting /media/data" at boot time.  I tried mostly to edit my /etc/fstab file. Now it is:  $ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/sda5 during installation UUID=8325697c-2c27-49dd-99f8-2a1a3e1467be /               ext4    errors=remount-ro 0       1 # /boot was on /dev/sda1 during installation UUID=3ba24cc6-e38b-48d9-b526-68358783d980 /boot           ext4    defaults        0       2 # /home was on /dev/sda6 during installation UUID=1ef16ece-0965-4611-a2e5-dd687f4ee5ff /home           ext4    defaults        0       2 # /media/data was on /dev/sda4 during installation # UUID=0598f54b-dcf8-4508-97de-94d9f2c5e2a8 /media/data   ext4    defaults        0       2 UUID=0598f54b-dcf8-4508-97de-94d9f2c5e2a8 /media/data     ext4    rw,suid,dev,exec,auto,user,async,errors=remount-ro,relatime,uid=1000,gid=1000        0       2 # swap was on /dev/sda2 during installation UUID=04f73159-479d-4a4b-a78c-37a406909225 none            swap    sw              0       0  In a way, I'd like my data partition to automount like my home partition. I do not want a solution where I would have to chmod or chown or do something every time I (re)boot!   Thanks.


What is the highest possible power of a creature, assuming a deck of 60 cards and infinite time?


Installing Ubuntu on 64 bit Pentium i3 HP ProBook 4530S that has Windows 7 Home Premium as the original OS.  I will be using it as a server to house a handful of websites of my own. I have partitioned the drive already and installed version ubuntu-18.04.2-desktop-amd64, and it is functional, working, etc.   Problem is, it says AMD 64 bit, I have Pentium. Is there a difference?? I see it in other things from time to time and am asking now because I never found out and am wondering if it may be important in this install and what I will be using it for. I do still have a small partition with the original Windows that came with the laptop, but it is set to automatically boot into Ubuntu if there's no input at boot-up.  I am aware of the Windows problems with security vulnerabilities, that is why I want to use Ubuntu, and I have never used it before.  ANY tips or advice are most welcome, and thanks to all!  :D


I saw a dog.       I have seen a dog.   What are the differences between them? Did these events happen on the same day?