For the same website two domains are used.  Would onedomain.com/node/100 be indexed by search engines for the alias onedomain.com/article/100 which is disallowed to be indexed by search engines in robots.txt? (onedomain.com/node/100 = onedomain.com/article/100)

How to disallow one domain path in robots.txt? (there is a module which allows to do that but it is better to avoid it because of performance issues) For example, onedomain.com/path1/* must be disallowed. Is it right to type like this in robots.txt (there is another domain twodomain.com for the same website):  Disallow: onedomain.com/path1/*  Twodomain path must be allowed to be crawled and Onedomain path must be disallowed to be crawled (both of them are pointing to the same path).


I am using a server (by ssh) and as I am French I would like to be able to use characters such as "à", "ç" and "é". However they simply can't be printed in the standard output, whether when I press the corresponding key on my keyboard (it simply ignores the key), or when I run a script supposed to print them. For example a Python script will raise:  UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-3: ordinal not in range(128)   Following some advices I looked at the locale:  $ locale LANG=C LANGUAGE= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=   So I opened the /etc/default/locale file, and changed it from:   LANG="C"   to  LANG=fr_FR.UTF-8   It still doesn't work, but a call to locale now tells me:  $ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=fr_FR.UTF-8 LANGUAGE= LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL=   Any ideas how I could fix this ?

I am getting this message every time I do something like starting or stopping a service.  perl: warning: Setting locale failed.    perl: warning: Please check that your locale settings:            LANGUAGE = "en_US:en",            LC_ALL = (unset),            LC_MESSAGES = "en_US.UTF-8",            LANG = "en_US.UTF-8"        are supported and installed on your system.    perl: warning: Falling back to the standard locale ("C").    locale: Cannot set LC_CTYPE to default locale: No such file or directory    locale: Cannot set LC_MESSAGES to default locale: No such file or directory    locale: Cannot set LC_ALL to default locale: No such file or directory    (Reading database ... 21173 files and directories currently installed.)   Removing bind9 ...    * Stopping domain name service... bind9                                        [ OK ] Processing triggers for man-db ...    locale: Cannot set LC_CTYPE to default locale: No such file or directory    locale: Cannot set LC_MESSAGES to default locale: No such file or directory    locale: Cannot set LC_ALL to default locale: No such file or directory      How do I fix this error ?


Quick question that took me a little fiddling to solve neatly...  Take two structs with unique fields.  % Struct #1 S_1.a = 1; S_1.b = 2; S_1.c = 3;  % Struct #2 S_2.d = 1; S_2.e = 2;   How to merge them into a single struct that contains all of both structs?    MATLAB does not, AFAIK, have a command to automate combining structures.  The obvious method of manually typing: S_1.d = S_2.d; is, of course, frustrating and an inefficient use of your time.

I want to combine two structures with differing fields names.  For example, starting with:  A.field1 = 1; A.field2 = 'a';  B.field3 = 2; B.field4 = 'b';   I would like to have:  C.field1 = 1; C.field2 = 'a'; C.field3 = 2; C.field4 = 'b';   Is there a more efficient way than using "fieldnames" and a for loop?  EDIT: Let's assume that in the case of field name conflicts we give preference to A.


I am an amateur in learing programming in Python. Recently, I found a question on local variable for functions. Here is my sample code:  """ Scenario-1: """ a=4  def g(x):     #global a     #a=a+2     print(a)     return x+a   when I type g(2) in console (I am using Enthought Canopy), it returns:  4 6   ----nothing wrong. then I change the code to (delete "#" before "a=a+2"):  """ Scenario-2: """ a=4  def g(x):     #global a     a=a+2     print(a)     return x+a   then re-run the code and type g(2), it shows:  *UnboundLocalError: local variable 'a' referenced before assignment*    My 1st question is: in Scenario-1, as I return x+a, why there is no referenced before assignment error?  Additionally, I change the code to:  """ Scenario-3: """ a=4  def g(x):     global a     a=a+2     print(a)     return x+a   then I re-run the code and type g(2), it returns:  6 8   ----nothing wrong. BUT, when I type a and enter in console, it returns:  4   Here comes my 2nd question, on global variable:  as I declare a to be global in function g(x), why variable a did not change to 6=4+2 (according to a=a+2)? I thought when variable a is so-called "global", the value changing in function inside will lead to the changing outside of the function, which is in main(). Am I wrong?  Above are my two basic questions. Thank you very much!

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


Let $G$ be a group s.t. $|G|=pqr$, where $p,q,r$ are primes that are not necessarily distinct. Show that $G$ is soluable.  Unless there is a more general method to do this, I was going to break it up into cases when all thee primes are different, when two are the same, and when they are all distinct.   For a group to be soluable, then either it's derivied series has to terminate in the trivial subgroup, or there has to be a series such that every factor is abelian. I've been trying to use both definitions for the case when $G$ is three distinct primes but I am stuck an need some new insights.

Let $G$ be a group such that $|G|=pqr$, $p<q<r$ and $p,q,r$ are primes. i need to prove that:   There exists a subgroup $H$ such that $H\unlhd G$ and $|H|=qr$. $G$ is solvable. $r$-Sylow subgroup of $G$ is normal.   I know the proof that $G$ isn’t a simple group, and by that I think I can prove the second part of the question, but I can’t manage to prove the first and the third parts of the question.


I am trying to join this cube.    With this cube with a Boolean Union modifier.   The result is always this fuzziness in the final mesh.  WHY?  I have checked for correct face orientation and Scale and Rotation.     Here is a file upload and screenshot of the Boolean as requested.      Below is a  successful joining of 2 intersected objects without fuzziness as I explained below.

I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


My Ubuntu 18.04 desktop hangs on me ~1x per day. This happens when I am in the middle of web browsing or using a desktop application, not when booting. When it does, the mouse pointer will still move freely, but clicking or keystrokes have no effect on my system until I do a hard reboot.  How can I stop this from happening?  Here is some system info:  selah@selah-Precision-Tower-5810:~$ uname -a Linux selah-Precision-Tower-5810 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux  selah@selah-Precision-Tower-5810:~$ lspci | grep VGA 03:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)  selah@selah-Precision-Tower-5810:~$ sudo lshw -c video   *-display                         description: VGA compatible controller        product: GM107GL [Quadro K2200]        vendor: NVIDIA Corporation        physical id: 0        bus info: pci@0000:03:00.0        version: a2        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress vga_controller bus_master cap_list rom        configuration: driver=nouveau latency=0        resources: irq:31 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff   Note, I had a similar issue with my 16.04 install:

Ubuntu 16.04 has been hanging on me ~1x per day.  This happens when I am in the middle of web browsing or using a desktop application, not when booting.  When it does, the mouse pointer will still move freely, but clicking or keystrokes have no effect on my system until I do a hard reboot.  What is the best way for me to debug this?  Here is some information:  selah@selah-Precision-Tower-5810:~$ uname -a Linux selah-Precision-Tower-5810 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux   Also, in case it is relevant, I have a "very big" monitor, a Dell 42" at 3840x2160 resolution.  selah@selah-Precision-Tower-5810:~$ lspci | grep VGA 03:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)     UPDATE:  Following Artyom's advice I found the following message in my error logs:   Apr 27 09:47:25 selah-Precision-Tower-5810 kernel: nouveau 0000:03:00.0: fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT] Apr 27 09:47:29 selah-Precision-Tower-5810 kernel: nouveau 0000:03:00.0: fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT] Apr 27 09:47:33 selah-Precision-Tower-5810 kernel: nouveau 0000:03:00.0: fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT]   Which has let me to this bug which describes similar behavior:


Accoring to webmasters tools (sitemaps), the number of pages for one of my sites in the Google index has been steadily declining over the last few days.  In the space of a week the number of pages has dropped from over 1000 to just over 400.  Why might this be?  Has anyone else experienced something similar recently?

I am monitoring the number of pages indexed by Googlebot for one of my websites .  I noticed that since last week, the number of pages has dropped by about 60 or so. Now to be fair, I have not added that much over the last week. (Actually I don't think I added any new content.) But at the very least, I would have thought that the number of indexed pages would be static (if I was not adding anything new.)  I don't understand why the numbers have dropped.  Does anyone have an official explanation for this?. I have checked the Google Webmaster Tools, and have not come across anything that addresses this issue directly.


I have some lua code that should prepare a tikz matrix of nodes similar to this . After having run into many issues with whitespaces, I finally got some output but it is not as expected.  I narrowed it down to this example code that should result in the same matrix being displayed twice:  main.tex  \documentclass[preview]{standalone} \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \directlua{require('main') print_matrix()} \begin{tikzpicture}[mycell/.style={draw, minimum size=1cm}, dot/.style={mycell,fill=blue!20}] \matrix (m) [matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={mycell}, nodes in empty cells] {0&1&2\\ |[dot]|3&|[dot]|4&|[dot]|5\\ 6&7&8\\ |[dot]|9&|[dot]|10&11\\}; \end{tikzpicture} \end{document}   main.lua  function print_matrix()         tex.print([[\begin{tikzpicture}[mycell/.style={draw, minimum size=1cm}, dot/.style={mycell,fill=blue!20}] \matrix (m) [matrix of nodes, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={mycell}, nodes in empty cells] {0&1&2\\ |[dot]|3&|[dot]|4&|[dot]|5\\ 6&7&8\\ |[dot]|9&|[dot]|10&11\\}; \end{tikzpicture}]]) end   The main.tex calls main.lua which should print the same code as is followed after the call.  However, when I run this through lualatex I get the following output:   I don't understand why the same code is handled differently when printed from lua or when entered directly in the .tex document. In the end my question boils down to:  What do I have to do to make the LaTeX code from lua behave exactly like when entered directly into the .tex document?

I am having difficulty printing LaTeX from a lua function in a LaTeX document processed with lualatex (version 0.70.2). I have a sample that works (if I remove all newlines from the code) and a case that fails. I don't know why these get different results. Here is the sample that fails:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | }  \hline  {\bf File} & {\bf Cards} & {\bf Summary} \\ \hline  \end{tabular} ]]) \end{luacode*}   \end{document}   I get an error saying:  ! Misplaced \noalign. \hline ->\noalign               {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.22 \end{luacode*}   When I put all of the LaTeX code printed from lua on one line the code works fine:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | } \hline {\bf File} &{\bf Cards} & {\bf Summary} \\ \hline \end{tabular} ]]) \end{luacode*}   \end{document}   So I have a few question.  First, why does the first example shown above fail? It seems like something I am not aware of is being inserted into the generated LaTeX.  Also is there a way for me to see the actual LaTeX that is generated and processed so that I can debug issues like this better?  Is there a way to tell the lualatex to log the actual LaTeX it tries to process?  Any other suggestions for how to debug a problem like this?


I need to take an average of several rasters using ArcGIS. Suppose there are 6 rasters and want to have an average of all those 6 rasters. How can I do so?

I have a large number of rasters (300+) I would like to average using Raster Calculator as is explained at  I know I can manually select each raster by double-clicking, hitting the '+' key, and then dividing by the total number of files.   Is there a less tedious way to get the average raster, without having to double-click and hit "+" hundreds of times? (or typing each raster's filename into the box, or something similarly tedious)


I just came across this:    I would appreciate anyone's help. Thanks!  Edit: Duplicate exists () Sorry about this.

Let     $$ 1< \alpha_1<\alpha_2<......<\alpha_n< \pi/2$$ then prove that $$ tan(\alpha_1)< \frac{sin(\alpha_1)+sin(\alpha_2)+.....+sin(\alpha_n)}{cos(\alpha_1)+cos(\alpha_2)+......+cos(\alpha_n)} < tan(\alpha_n)$$   I tried to solve the problem but I am not actually able to get a well established answer or you can say I am not even able to advance ahead to solve this one. It tried to use AM-GM inequality, but its didn't work as I couldn't establish any direct relation.


I want to use the colours offered by \usepackage[dvipsnames]{xcolor}  in a beamer but I have an error: Option clash for package xcolor. \usepackage  I am using the following packages: \documentclass{beamer} \usetheme{Madrid} \usecolortheme{beaver} \usepackage{textpos} \usepackage{subfig} \usepackage{tikz} \usepackage{parallel,enumitem} \usepackage[export]{adjustbox} \usepackage[italian]{babel} \usepackage{ dsfont } \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{varwidth} \usepackage{multicol}

I have an option clash between package xcolor and another package, but I don't know which. Here is my MWE  \documentclass[10pt]{beamer} \setbeamertemplate{navigation symbols}{} \usepackage{caption} \usepackage{subcaption} \usepackage{url} \usepackage{color} \usepackage[usenames]{xcolor}  \author{The author} \title{Package conflicts} \date{October 3rd, 2012}  \begin{document}  This is supposed to be \textcolor{olivegreen}{olivegreen} \end{document}   And the error message is :  This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode (./error_xcolor.tex LaTeX2e <2009/09/24> <blablabla> ! LaTeX Error: Option clash for package xcolor.   I hope this is enough log for you guys. At this time of the day, I'm hoping for America to save my french ass ... again : )


I'm studying in Denmark with a student visa, but it expires on July 14th and I've booked to stay in Europe for an extra month.   I already booked Airbnbs with friends on the July 15th and don't want to change the plans, so I was wondering whether I could leave the Schengen Zone and come back before it expires, but as a tourist.   Edit: Sorry, I'm an Australian citizen.

I am an Australian currently on a Netherlands working holiday visa that ends in May next year. I would like to know if when my visa ends I then get another 90 days just as a regular tourist visa as I would like to do some more travel within Europe when my visa ends before going home to Australia.


Accelerating masses are now confirmed to produce gravitational waves. Also it is known that accelerating charges (electrical) produce EM waves. But what kind of waves are produced when particles interacting via strong or weak force accelerate. Are waves even produced at all.

In the same way as there are electromagnetic and gravitational waves that update the information on their respective field, is there an analogue for the weak and strong forces?


If light is energy, then according to $E =mc^2$, it should have mass. My reasoning is that if light has speed, and it is a form of energy, it must have mass, otherwise how can it satisfy the equation?

Einstein equation  where $E$ is energy, $m$ mass, and $c$ the speed of light in vacuum. So does it mean objects without any mass does not posses energy for eg lights photons does not have mass but how can they posses energy


What's the difference between executing multiple commands with && and ;?  Examples:  echo "Hi\!" && echo "How are you?"   and  echo "Hi\!"; echo "How are you?"

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .


Grandi's series : $$\sum_{n=0}^\infty (-1)^n$$ I heard many many times about Grandi's series and also read about it in this site . In some sources , It's equal to $\frac{1}{2}$ and in the other it's undefined! I'm confused ! I want to know what is the correct answer and why it's true ? (Please answer in simple words)  Please Help!

This is the Grandi's series: $1-1+1-1+1-1+\dots$  The series can be equal to $0$   $$(1-1)+(1-1)+(1-1)+\dots=0+0+0+\dots=0,$$  or to $1$   $$1-(1-1)-(1-1)-(1-1)-\dots=1-0-0-0\dots=1,$$  or to $1/2$   $$S=1-1+1-1+1-\dots,\quad\quad    S=1-(1-1+1-1+1-1+1-...)$$ $$\Rightarrow   S=1-S\Rightarrow     2S=1\Rightarrow    S=1/2$$  Isn't this a contradiction? The integers are closed under addition and subtraction, but we get a fraction. Why?


I have a new Acer Aspire S7. I tried to install Ubuntu, alongside with Windows 8, but i messed up in the middle, and now i can't even run Windows 8. I'm desperated, when i turn the computer on, it asks me to enter a bootable device. I made a backup with the Acer tool, but it doesn't seem to work. I don't know what to do.  I leave you the report of what boot-repair returned:

I used a live USB to install Ubuntu 14.04 and completely erase windows 8.1, the installation went fine but when I restarted the computer Ubuntu wouldn't boot from my HDD, instead it came up with try Ubuntu or install Ubuntu so I restarted without the live usb plugged in and I got an error message Reboot and select a proper boot device or insert boot media in selected boot device and press any key.  I read a lot of posts about people that had similar problems but so far none of the solutions that worked for them have worked for me.  I also ran boot-repair but that didn't fix the problem either.   Here is the link from boot-repair   Please any help would be appreciated.  My laptop is a Toshiba Satellite U50D-A notebook with AMD A6-5200 processor


The top bar seems to have disappeared on stackexchange.com ...    The plain text links are still there and the markup looks correct, the CSS just seems to be missing. The nav items still work too but are similarly not styled. This is my inbox:    I've reproduced on a bunch of browsers on a few different devices.  I'd guess it's something to do with  being rolled out.

Apparently the new top bar rollout had some negative effects on the top bar of the network site . It looks completely unstyled:     Since I see this on different browsers and machines, I assume it's a server-side issue.


Is there any offline (.deb) installer for "Educational Desktop for Ubuntu"?  I am using Ubuntu 14.04 LTS amd64   I have some problem with internet connection. An offline installer would help me :D

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


Hello, I'm trying to work through this question.  I define linearly independent as:  $a_1*v_1+a_2*v_2+...+a_n*v_n = 0$ iff every $a_i=0$.   I also know that an eigenvector is a vector $v$ such that:  $T(v)=\lambda*v$  where $\lambda$ is the eigenvalue.  Thanks for your help.

Show that the determinant of a matrix $A$ is equal to the product of its eigenvalues $\lambda_i$.   So I'm having a tough time figuring this one out. I know that I have to work with the characteristic polynomial of the matrix $\det(A-\lambda I)$. But, when considering an $n \times n$ matrix, I do not know how to work out the proof. Should I just use the determinant formula for any $n \times n$ matrix? I'm guessing not, because that is quite complicated. Any insights would be great.


How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?

How can I have a table like the following picture in latex?


I have a specific question and a more vague web of questions (that are, however, the motivation for the specific question). Specific: Can Zorn's lemma be proved in  (with choice, but without the axiom of regularity)? Motivation: I know that the axiom of replacement is needed to do some serious set theory, for example to discuss ordinal numbers. So Zermelo set theory doesn't suffice for that purpose. But it certainly suffices for most of the set theory mathematicians use in practice (I know the relationship to topos theory). But I wonder how many applications of set theory to "normal" mathematics can be proved within Zermelo set theory. Zorn's lemma is the first such application of real set theory that normal mathematics uses that came to my mind. How tragic is the lack of the axiom of regularity: is it used in any real application of set theory to mathematics? (By that I don't mean appealing concepts like the cumulative hierarchy, that is definitely important for pure set theoretical purposes.)

Recently I read the following quote (for the umpteenth time):     The Axiom of Choice is obviously true, the well-ordering principle obviously false, and who can tell about Zorn's lemma? — Jerry Bona   Normally, the equivalence of these three over ZF is given as a justification for Zorn's lemma, since AC is 'intuitively' true. However, I have always found it lacking because the equivalence crucially depends on transfinite induction via the axiom schema of replacement, which I find unintuitive, unlike the axioms of  (which lacks both Replacement and Regularity). So my question is:     What are 'counter-intuitive' consequences of AC in ZC (Zermelo set theory)?   I understand that this is not a precise question, but I am looking for examples of the same sort as mentioned  and . I consider these examples as 'near misses', because while many people consider them counter-intuitive, I do not since they all rely on being able to handle arbitrary real numbers or even sets of real numbers, which is not possible in the first place. Specifically, there is no issue with a conceptual choice function that picks one representative from every equivalence class even if it is not implementable, just as there is no issue with a conceptual oracle machine to solving the halting problem even though it is not implementable.  As for the Banach-Tarski paradox, I do not find it counter-intuitive because we cut up the ball not into nice pieces at all, but instead sets of point dust that can be rearranged. It is not much different from taking the countable set $S = \{ \exp(i{\large \frac{k}{2^m}}) : k,m \in \mathbb{N} \land m2^m \le k < (m+1)2^m \}$ as points in the complex plane and rotating it by $\exp(i)$, which is a rigid transformation of a bounded point set that has just made countably many points vanish (in fact, ordered around the unit circle, every other point has vanished), completely constructively.  Related to this question, based on the iterative conception of sets, we get roughly Replacement for countable sequences as stated by Boolos in the quote . Thus I am also interested to know any 'counter-intuitive' consequences of AC in ZC plus Replacement for countable sequences.


Suppose that $T : W \rightarrow W$ is a linear operator on a finite dimensional complex inner product space. Suppose that $\langle T(x), x \rangle = 0$ for all $x \in W$. Must $T$ must be zero?  I can only prove all eigenvalues of $T$ are zero.

Suppose $T$ is a linear operator on a complex inner product space. Is it a theorem that if $\langle Tx,x\rangle=0$ for all $x$ in the space then $T=0$. The theorem fails in the real case, as seen for instance by rotation by $\pi/2$ on $\mathbb{R}^2$.  Is there anything deeper behind this fact, or can it mostly be looked at as a quirk of the conjugate-linearity of the complex inner product?  If anyone is interested in looking up this proof, it is theorem 9.2 in Roman's Linear Algebra, third edition.


I entered sudo fdisk -l now I want to know how much of my hard disk belong to this partition:      Device Boot      Start         End      Blocks   Id  System /dev/sda2       156264318   273474494    58605088+   7  HPFS/NTFS/exFAT

Is there a way to quickly check the amount of free / used disk space in Ubuntu?  I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.


This code:  __asm__ (   "f_asm:\n"   "jr $ra\n"   "nop\n" );  void f(void) __asm__("f_asm");  int main(void) {   f();   return 0; }   Yields this error when compiled with mips-linux-gnu-gcc on Debian x64 host:  /usr/lib/gcc-cross/mips-linux-gnu/6/../../../../mips-linux-gnu/bin/ld: /tmp/ccjejLxv.o: CALL16 reloc at 0x2c not against global symbol /tmp/ccjejLxv.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status   It works if I add .globl f_asm ... but why is this necessary? Can't one have local functions on mips ABIs?

I'm getting these errors while linking, both messages have to do with the same object file.  CALL16 reloc at 0x5f8 not against global symbol   and  could not read symbols: Bad value   The 2nd message seems to be the reason I'm getting the CALL16 error, but the file compiles just fine.  Any tips on fixing this?  FYI, I'm cross compiling for a MIPS target and using gcc 4.1.2  EDIT: No luck so far:  Here are my flags used: -fPIC,-Wl,-rpath,-Wl,-O1  I've also tried the following without success: -mno-explicit-relocs  -mexplicit-relocs  -mlong-calls  -mno-long-calls  -mxgot  -mno-xgot    Meanwhile, I'll go back to the source at this point and investigate more.


I have a oneplus 2 and I was wondering about installing Ubuntu OS on it ... Is it recommended or not ?  And how can I do it if yes ? Thanks in advance

With the announcement of the Ubuntu Phone OS I'd like to know what phone (and tablet) models are supported at this time.  Note from foss & Oli: We are making this the master question for all future "Will this work on <insert random tablet/phone/device here>?!" questions


I'm trying to set the environment variable HTTPS=true in macOS bash shell but it doesn't work when I printenv the variable HTTPS=true doesn't appear:  TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/kr/848p_nc116l4vvkbgkc_c1200000gn/T/ Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.PkTkQaYUUc/Render TERM_PROGRAM_VERSION=421.1 TERM_SESSION_ID=44933CE9-8A15-40AD-A534-286602490A93 USER=rh SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6RrPiiuDzY/Listeners PATH=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin PWD=/Users/gerardo XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 SHLVL=1 HOME=/Users/rh LOGNAME=rh LC_CTYPE=UTF-8 SECURITYSESSIONID=186a8 _=/usr/bin/printenv   to set the env variable I used the commands set HTTPS=true and HTTPS=true  I have 3 questions:   What's happening? How can I fix it? Which file I have to use in macOS to set the env variable as a permanent variable

My variables are   LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib ORACLE_HOME=/usr/lib/oracle/11.2/client64   How to save these variables permanently ?


Sorry, my stats is rusty and I'm failing to find a quick answer to what is likely to be a very basic question.  If I take n measurements of a property that has an inherent mean mu and standard deviation s, I would estimate mu from the sample mean, and quantify the uncertainty in this estimate with the standard error. But what about the standard deviation? (I guess this is sort of a population s.d., though of a potentially infinite population) Presumably I'd estimate it from the sample standard deviation, but what is the right way to quantify its uncertainty? Clearly a value based upon 5 values is less reliable than one using 500.

I read from  that the standard error of the sample variance is  $$SE_{s^2} = \sqrt{\frac{2 \sigma^4}{N-1}}$$  What is the standard error of the sample standard deviation?  I'd be tempted to guess and say that $SE_{s} = \sqrt{SE_{s^2}}$ but I am not sure.


When I go to the question details page it shows the expire time form (picture one)... I am requesting it should also show in the bounty tab like (picture two). I think it will be helpful for question readers... Picture One  Picture Two

When we go to a page like  we see the active Bounties on a certain tag (in this case, Python). When we put the cursor on the blue bounty box in the list we can see the message  this question has an open bounty worth XX reputation   Wouldn't it be useful to have the end time of the bounty so that it shows... ?  this question has an open bounty worth XX reputation ending in YY days


I am on mobile.   This is fifth time. I reinstalled four times.  Please look at my recent questions.  I entet password and it says xxx files xx blocks and keep showing logib screen.  I dont know what caused this.  I installed as usual chrome yakuake zsh notepadqq inteljidea nvidia mysql emma  Changed  etc enviroment Zshrc Anthome javahome  Please help me. I dont want to reinstall :( or break my desktop  This is 5. Times happening same thing. I dont know what i am doing to cause.  What i did:   I removed nvidia, settings but did not work. Renamed xauthotiry to see if causing. But not worked sudo dkpgreconfigure lightdm var log xorg 0 log shows no error. I couksnot find any error or warning there. But maybe i am looking wrong. This is image fron there. Only error is that. Can you look   This is xsessionerrors   ls -al , all of them are my user except dbus. It is root. Inside tmp, all of rhem are root. Such as xim unix  Any suggestions?

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


i just lost my original laptop adapter 20v 7.5A , and the only one i could find that is not expensive enough is the laptop charger for a laptop type that is above my laptop which has 19.5V 9.23A the head is 5.5 , while mine is 6.0  the price for the 19.5v 9.23A is 60 USD , while for my 20v 7.5A is 120 USD - 140  MY Laptop : Asus Tuf FX505DT | The Charger replacement that i targeted is for Asus Tuf FX505DU  can i use that charger ? , and is there risk of shorting something on my laptop if i use it ? or i must buy my original one

I'm using a common charger for both of my laptops.  The charger is specified at 20 Volts and 3.25 Amperes. My other laptop has a specification of 19 V and 3.42 A.  Is it safe to charge my laptop with chargers whose specifications exceed or are not equal to the mentioned specifications?  I have read somewhere that it may cause some damage if the voltage or amperage is not matching the specs.


Here sys is a namespace. If we use sys::xx, I know exactly the meaning of ::, but I saw a code, it's using   ::sys::xx;   what's the meaning by putting :: before a namespace?

In C++, what is the purpose of the scope resolution operator when used without a scope? For instance:  ::foo();


Let's say my party member is around 30 feet in front of me and engaged with a monster in melee close combat.  If I successfully cast Thorn Whip and pull the monster 10 feet closer to me, will this generate an opportunity attack for my party member who is next to the monster?

If I cause an opponent to leave my reach with an ability, spell, or effect can I use my reaction to take an Opportunity Attack against them?


I'm having two objects(say obj1 and obj2) If I change  obj1 it is affecting in obj2 also. I'm trying to change the multiple['w']=10. Is there any way for copying object without affecting in second object i.e obj2    let obj1={    "director":{     "data":[       "multiple":{         "w":1       }      ]    } }  let obj2={...a}

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


Sorry about the title but the question is hard to sumarize. I am dealing with a poorly constructed database and came across a table that has multiple records on the same column, something like this:  | Column Header |  Record1; Record2; Record3   I wanted to ask if there is any way in SQL to separate those records using the ; as a separator. I ask this because remaking the database isn't an option at the moment.

Using SQL Server, how do I split a string so I can access item x?  Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"?


When I try to run a program, the program screen turns to black.  It occurs also when I do Alt + Ctrl + T to open the Terminal, it's all black color.  I haven't installed anything and the last thing I did was turn off the computer.  The system runs Ubuntu 16.0 with AMD Radeon graphics drivers.

I'm running Ubuntu 15.10 on a Lenovo Ideapad, and whenever I try to open a terminal window, only a black box appears, and the menus have thick black borders and the nofification box is also black.


Whenever I'm browsing or downloading , I'll randomly get these long spikes of no internet connectivity. It only happens in Ubuntu versions like Ubuntu,Xubuntu,Kubuntu and so on. Tried on arch and my internet was fine the whole day. What should I provide?

I have a HP Pavilion dm4-2070us which has an Intel Corporation Centrino Wireless-N 1000 adapter.   The problem is that my computer doesn't show the wireless networks after I upgraded my system to Ubuntu 11.10. Following is my output for sudo lshw -class network:  *-network DISABLED          description: Wireless interface    product: Centrino Wireless-N 1000    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:01:00.0    logical name: wlan0    version: 00    serial: 8c:a9:82:81:5a:30    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=iwlagn driverversion=3.0.0-12-generic firmware=39.31.5.1 build 35138 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn    resources: irq:42 memory:c2500000-c2501fff  *-network    description: Ethernet interface    product: AR8151 v2.0 Gigabit Ethernet    vendor: Atheros Communications    physical id: 0    bus info: pci@0000:08:00.0    logical name: eth0    version: c0    serial: 2c:41:38:07:f3:e3    size: 100Mbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.1.0-NAPI duplex=full firmware=N/A ip=192.168.1.7 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s    resources: irq:44 memory:c1400000-c143ffff ioport:2000(size=128)   The output for rfkill list all:  0: hp-wifi: Wireless LAN     Soft blocked: no     Hard blocked: no 1: hp-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 2: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 3: hp-wwan: Wireless WAN     Soft blocked: no     Hard blocked: no   I have also searched about the status of the WiFi network being shown as disabled. Somehow everything pointed to the fact that my wireless device is switched off and it can be switched on from Windows only. However, I don't have windows partition and it has just Ubuntu 11.10 so I don't see any point in switching the device on in Windows.


What is the relation between potential energy & electric field?

I was reading an article about resistivity when I faced this equation:  $$V_P-V_O=\int_P^O E.dr$$  The equation is in one dimension and $P$ and $O$ are points on the $x$ axis.  The Electric field is oriented in the $+x$ direction ans has the formula $c\frac1r$ where $c$ is a coefficient and $r$ is the distance form the origin of the coordinate system.  The vector $\vec r_P - \vec r_O$ has the same direction as that of the electric field.    Now, Why do we put $P$ below the integral and $O$ above it? Can someone explain the equation for me?


The new version of the android app 1.0.68 has a serious problem.  I can look at my first site just fine (say ask ubuntu for example).  When I go back to the main page/intro screen, it looks fine too.  When I touch a 2nd group (android enthusiasts for example) I get the list of questions displayed OK.  But when I touch a question, I get the main page/intro screen mixed up with the question screen, and the app crashes.  I reverted to version 1.0.63 and it works fine.  Android 4.2.2

I can reproduce that every time now, I go to a site, open an article, then to the next site, open another article. The Feed page pops up for a second, the article page lays over this with some some transparent areas (see picture). The same app-version is ok on a Smartphone with Android 4.4.2. I also sent in some bug reports.    Edit  1.0.71 isn't the solution yet. I go to Meta SE, then to an article. When I want back to Meta SE again, it crashes. Much earlier than before. I already sent in a bug report for this.  Another Edit  I can describe it better now. From the questions-page of a site I go to a post. When I use the back button, everything is ok, I can go to the next site. When I try to go to the next site directly from the post, it crashes. This only happens on the Nexus 10 with Android 5.1.1, App version 1.0.71. Hope this helps.  Edit3  This is fixed in 1.0.73 now. Thanks again.


I have 2 GB allocated for swap partition and I have 16 GB of RAM. Yet my chromium-browser keeps crashing if I have too many tabs open. How is that possible with 16GB ram? I am running Ubuntu 18.04 64-bit

It gets so horrible that I can not even switch to TTY1 to force a reboot. I have to hard reset, and I lose work.  Ideally, I would like to be able to use the chrome browser on Ubuntu without having to keep reminding myself to close tabs.   Are there any extensions for Chrome, or tools for Ubuntu that can help prevent me going past the point where Ubuntu eats up all the RAM and becomes incapacitated?


What I mean is if I have two ways to write a SQL query:   write it inside SQL as a stored procedure and execute it from C#  build a query in C# then execute the query so it does not exist in my database    Which is better and why?

What are the advantages/disadvantages of keeping SQL in your C# source code or in Stored Procs? I've been discussing this with a friend on an open source project that we're working on (C# ASP.NET Forum). At the moment, most of the database access is done by building the SQL inline in C# and calling to the SQL Server DB. So I'm trying to establish which, for this particular project, would be best.  So far I have:  Advantages for in Code:   Easier to maintain - don't need to run a SQL script to update queries Easier to port to another DB - no procs to port   Advantages for Stored Procs:   Performance Security


When he came to Dumbledore asking for a job at Hogwarts, he hid Ravenclaw's diadem in the Room of Requirements. When Harry saw the memory, he noticed that although he did not look like the handsome Tom Riddle, his features were not snake-like as of then. Ravenclaw's diadem was his last Horcrux before Nagini (or Harry). If he didn't make any more Horcruxes until 1981, did he still look like he did on the day he asked for the job when he killed the Potters?

As the title says, when and what made Voldemort look the way he does (pale, snake-like etc) as opposed to how we've seen him in his earlier years as Tom Riddle? Is it just a side effect of his unnatural resurrection? Before he died attacking Harry as a baby did he look like a normal guy?


Given a group G and its subgroup H that creates cosets, prove that cosets form a group iff H - is a normal subgroup. I've tried to find any good prove but I failed - most of the sources (including ProveWiki) provide this statement "as is" and other sources provide incorrect proves like here:    6:54 - brackets are opened as the operation is commutative - but in fact, it not necessarily true.    Can you, please, tell why there's a huge leap between statement that   product of two elements from two cosets must be contained by the third coset and this operation should be associative <=>  subgroup ability to form up equal left and right cosets.  Or give me, please, prove of the statement, I'll try to understand the leap.

Let $G \in \mathbf{Grp}$, $H \leq G$, $G/H := \lbrace gH: g \in G \rbrace$. We can then introduce group operation on $G/H$ as $(xH)*(yH) := (x*y)H$, so that $G/H$ becomes a quotient group when $H$ is a normal subgroup. But why do we only work with quotient groups by normal subgroups? If we introduce the notion of left quotient group in the above manner, how much good properties of a quotient group do we lose?


I'd like to change the colour of the red close button in the top right of each window (Windows 8 / 8.1). Presumably there's an RGB code / hex code somewhere in the registry that I could edit?

Is there some way to modify the colour of the "Close" button in Windows 8?   On several applications, an active window displays a not-so-subtle red.


The first flight is from Europe to Miami and the unconnected flight to Bahamas is three hours later.  Is it possible to check-in for the second flight without going through Immigration?

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


My question about  is:  When all of the cards are finally turned face up, what determines the order in which their "when X enters the battlefield..." effects resolve?

Let's say I have  on the board. He is a 2/2 that says:  Whenever another creature enters the battlefield under your control, creatures you control get +1/+1 until end of turn.  I play a . It says:  Put three 1/1 red Human creature tokens with haste onto the battlefield. Sacrifice those tokens at the beginning of the next end step.  The sacrifice portion is not important to this question. What is important is how these two cards interact with each other. Playing this card in my first main phase, assuming no counters or other shenanigans by my opponent, I will have my Commander and 3 tokens on the battlefield. What will happen in terms of the power/toughness of my tokens and Commander? Option A The tokens will be 1/1 each. They don't see each other come in at all. The Commander is 3/3, as one "enter the battlefield" trigger happens. Option B The tokens will be 1/1. They don't see each other come in at all, because they weren't on the battlefield to see any of the triggers. The Commander is 5/5, as he saw three "enter the battlefield" triggers occur. Option C The tokens will all be different, with one being 3/3 as he saw the other two come in, one being 2/2 as he saw only the last one come in, and 1/1 as the last one saw none come in. Option D The tokens will all be 4/4, as three creatures entered the battlefield this turn. I am obviously hoping for this option. It may be supported by a ruling on Goldnight Commander that says, emphasis mine:  The creature that entered the battlefield will also get +1/+1 until end of turn if it's still on the battlefield when the ability resolves.  The key being the ability resolving. So my thought is thus:  Thatcher Revolt goes on the stack. Thatcher Revolt resolves, and three separate "enter the battlefield" triggers go on the stack as the three humans enter the battlefield as 1/1. The last (it is a stack) "etb" trigger resolves. This puts an ability from Goldnight Commander on the stack. This resolves and the humans are now all 2/2. The next "etb" trigger resolves. This puts a new ability from Commander on the stack, and resolves with the humans being 3/3. The first "etb" trigger finally resolves, puts a Command ability on the stack, which resolves putting the humans at their final state of 4/4.  Option E The tokens will all be 2/2.  Thatcher Revolt goes on the stack. Thatcher Revolt resolves, and one single "enter the battlefield" trigger goes on the stack. The "etb" trigger resolves. This puts an ability from Goldnight Commander on the stack. This resolves and the humans are now all 2/2.  I would really like to have a complete understanding both of the result and how this result is calculated by the game engine.


How to evaluate $$\displaystyle\int \sin^3(x) \,\operatorname{d}x$$  without using integration by parts?

In evaluating integral $\int\sin^{3}x dx $ I am pretty sure we need to use substitution $e^x=t$, but can't go  next step.


How do I do that? I have root access and the it's a custom build of AOSP project.

I'm accustomed to running scripts on boot in Linux, but I'm not sure how to do this in Android. I'd like to start my SSH daemon on start, so I'll always be able to connect. How can I run an arbitrary script on Android boot? It'd be preferable to do this outside of Dalvik.


In Keyboard Maestro, is there any way to define a macro that is triggered when two conditions are true?   A certain application is active (i.e. on focus) A hot key is activated (i.e. I press a key)   I have tried adding conditions, but they are interpreted with an OR and not with an AND.  Below is an example of what I tried:

How can I tell Keyboard Maestro to only enable a given trigger (e.g. a hot key) when a specific application is active?  For example, I would like a specific macro/hotkey that pastes without formatting to only be active when I am editing a document in Word or TextEdit.


Are the movies, Ewoks: The Battle for Endor (1985), and Caravan of Courage - The Ewok Adventure (1984) considered canonical, or just children's movies that happen to involve a Star Wars license?  Some parts of the movies, such as the Witch, Charal, don't really feel at home with the universe of the three movies.

For all types of derivative works, namely:   Movies Novels Comic books Other written works (including RPG materials) Cartoons Video games Derivative movies (such as the infamous Ewok movies and even more infamous )   According to what rules does something become "canon" and who is responsible for the evaluation of a published work?


So I was using Windows 7 and the latest version of Ubuntu on dual boot. I decided to remove my Ubuntu OS so I deleted my Ubuntu partition in 'windows disk management' and alloted the free space to create a new disk.   After that I tried to upgrade my windows 7 to 8 using the windows upgrade tool. The ISO was downloaded and was installing. After some time when the OS had to restart the computer to complete the remaining progress it got struck in grub rescue.  Nothing is helping me out to get out of it. I can't even access anything. I tried the solution given on some forums Where I change the file system to by set prefix = (hdx,Y)/boot)  But the problem is all my file systems are unknown when I try to open it through the 'ls' command. So no file system is allowing me to boot it to normal mode.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I'm trying to remove the left-indentation inserted automatically before the subsection's text. \noindent and parindent are not working (I guess they're made to work with paragraphs not with sections).  See in the next screenshot in red the indentation (spacing) I'm trying to get rid of:    The only code I'm using to style the subsections (and sections) is the following:  \documentclass{article}  % customize sections style \usepackage{titlesec} \titlespacing\section{0pt}{12pt plus 2pt minus 2pt}{12pt plus 4pt minus 2pt} \titlespacing\subsection{0pt}{12pt plus 2pt minus 2pt}{12pt plus 4pt minus 2pt}  % experience and education items \newcommand{\experienceline}[3]{     \subsection*{         #1 \hfill \small #2 \newline         \normalsize #3     } }  \begin{document}     % hobbies section     \section*{Hobbies}     \experienceline{Reading}{2011-2011}{Lorem ipsum dolor sit amet} \end{document}

I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?


I have a corrupt file system that I am trying to repair with gparted. When I go to the "rescue" option in gparted, it says to install gpart. Shen I give the command sudo apt install gpart  it says there is no installation candidate and that the package is referred to by another package. How can I get gpart? I have booted from an Ubuntu image on a flash drive.

How do I get to the Universe Repository in supported versions of Ubuntu?


In the tikzpicture routine below I wish to use the data recorded ininvcum.dat which I know resides in folder C:\Users\Reinhard Neuwirth\AppData\Local\Programs\MiKTeX 2.9\doc\latex\pgfplots\plotdata. All my attempts to set this path in either the preamble or as a parameter to the \addplot instruction, for example like so:  \addplot [blue] table[\table \search path={C:\Users\Reinhard Neuwirth\AppData\Local\Programs\MiKTeX 2.9\doc\latex\pgfplots\plotdata}]{invcum.dat}; are failing.    \documentclass{article} % RN. 20 June 2019 % BRIEF DESCRIPTION: Setting the PATH to data files for use in pgfplots %======================= \usepackage{pgfplots} \pgfplotsset{compat=1.16}  ? how to set path to invcum.dat in the preamble ?  \begin{document}  \begin{tikzpicture} \begin{axis}[ title=Inv. cum. normal, xlabel={$x$}, ylabel={$y$}, ] \addplot [blue] table{invcum.dat}; \end{axis} \end{tikzpicture} \end{document}

I have recently discovered the wonderful pgfplots package and I've started coding my Python code to output tabular data of whatever is plotted (at least for simple plots). In my LaTeX source code, I use plot file {../datafiles/data.dat}; and similar commands extensively. All my external figures (yes, I still have some) are in a separate directory that I specify in my preamble using \graphicspath{...}. Is there any equivalent path that TikZ and pgfplots use to search for data files?  I have difficulties searching for an answer to this question, because the word path has such a specific meaning in a TikZ context. I'm using PGF 2.10 and pgfplots 1.5.  I checked in the PGF manual (section 19.4, page 224) and in the pgfplots manual (section 4.2.2, page 25–26) but did not find anything relevant.  MWE:  \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot plot file {somedata.dat}; \end{axis} \end{tikzpicture} \end{document}   where somedata.dat contains:  1 2 3 4 5 6 7 8 9 10   Sorry for not adding a MWE earlier, I figured it wasn't needed because the question was obvious.


The following question from $\textit{Statistical Inference }$by Casella & Berger was given to me on an assignment last semester. On the surface, it appeared to be a straight-forward question about transformations, but I stumbled across an integral I could not understand. Here is the question:     If $X \sim \text{exponential(1)}$, show that $Y=\mu-\beta \log X$ has the $\text{Gumbel$(\mu,\beta)$}$ distribution, where $-\infty<\mu<\infty$ and $\beta>0$.    We have that $f_X(x)=e^{-x}$ for $x \geq 0$. Now, let $Y=\mu-\beta \log X$. Then, $g(x)=\mu-\beta \log x$, which is monotone on $0<x<\infty$. We will use the standard theorem for transformations, with $g^{-1}(y)=e^{\frac{\mu-y}{\beta}}$ on $-\infty <y<\infty$. Then, the transformed pdf is given by: $$f_Y(y)=e^{-e^{\frac{\mu-y}{\beta}}}\left|\frac{d}{dy}e^{\frac{\mu-y}{\beta}}\right|=\frac{1}{\beta}e^{-e^{\frac{\mu-y}{\beta}}}e^{\frac{\mu-y}{\beta}} \text{ on $-\infty<y<\infty$} $$  I then attempted to find the mean of the distribution as follows. \begin{eqnarray*} \text{E}(Y)&=& \frac{1}{\beta}\int_{-\infty}^\infty ye^{-e^{\frac{\mu-y}{\beta}}}e^{\frac{\mu-y}{\beta}}dy \hspace{0.5in}  \text{Let $u=e^{\frac{\mu-y}{\beta}} \implies du=-\frac{1}{\beta}e^{\frac{\mu-y}{\beta}}dy$} \\ &=& \int_0^\infty \left(\mu e^{-u}-\beta e^{-u}\log u \right)du=\mu \int_0^\infty e^{-u}du-\beta\int_0^\infty \left(e^{-u}\log u\right) du \\ &=& \mu-\beta\int_0^\infty \left(e^{-u}\log u\right) du \end{eqnarray*} According to , the mean is given by $\mu+\beta\gamma$, where $\gamma\approx 0.5772$ is the Euler-Mascheroni constant. Therefore, the last integral above is equal to $-\gamma$, and indeed, that is the answer  provides. I am wondering if there is any way to solve the integral $I=\int_0^\infty (e^{-u}\log u) du$ using standard methods. I tried making every substitution I could think of and kept getting stuck. I even showed this to my instructor; he was not able to show that it equals $-\gamma$ either. I should also mention that prior to doing this question, I had never heard of the Euler-Mascheroni constant. Any help would be appreciated. Thank you!

Show  $$\int_0^\infty \frac{\ln(x)}{e^x} = -\gamma$$ (gamma is Euler-Mascheroni constant).  Can anyone please prove this result?  Also  $$ \int_0^\infty \frac{\left( \ln(x) \right)^2}{e^x}\mathrm dx. $$


So still kinda new to blender, and decided to try out 2.8 because of eevee. But I seem to be doing something wrong. Was trying to figure out why the emission wasn't showing a shadow by itself on the two blocks like in the cycles preview.

The closest I can get to making mesh lights affect their environment in Blender Eevee is giving them an Emission material and turning on "Bloom". But this isn't emitting proper light, it just looks like it is, but it doesn't light the surroundings whatsoever.     I would like to be able to light a scene with meshes without having to put point lamps everywhere just to make them emit light.


I just installed Ubuntu 14.04 LTS on my LENOVO IdeaPad U430 Touch. How come the battery just charges up to 59%? I also have Win8 on another partion and it easily reaches 100%.  I tried "" but nothing changed. I've read some complaints from people who have a similar problem but they all have ThinkPads and there's a special modul for "TLP" where you can control the charging threshold.  What to do?

On my y510p, I set Lenovos battery software to "Optimize battery health" while I was in Windows 8.1. I forgot to change it before overwriting that partition with Ubuntu, and now my battery in Ubuntu never charges past 59~60%. I think this is due to something in the BIOS because it persists despite my Windows partition being gone.   I've searched the BIOS but there's no mention of battery anywhere!  I'm using Ubuntu 14.04 LTS.


How do I estimate sample size or do power analysis for logistic regression with one nominal independent variable? Is there a way to do it with Stata?

I have a logistic regression model and output an $R^2$ value. I then go and add another predictor variable to fit a second model. I can output a new $R^2$ value associated with the second model. When I run an ANOVA test, I see no significant improvement in the second model, but I want to assess the power associated with including the additional variable in model 2.  I have found  for linear regression that uses an $F$-Test. I want to do something similar for a logistic regression using G*Power.   But there appears to be very little documentation on multiple logistic regression models like my situation. .  From what I understand, in G*Power I set Test Family == z tests and statistical test == logisitic regression. But I am not sure what to set R² other X equal to. Is that the improvement in $R^2$?  Reading the tutorial in 27.4 from the  makes no variation of $R^2$, whereas , does not discuss the improvements made from $R^2$.


As the title hints at, I am wondering if I am able to use functionality in a class's constructor from another constructor (overload) of the same class in Java.  Hopefully this code demonstrates what I'm trying to achieve (ignore the fact that children gets overwritten, bad example in this case):  class Node {     int[] value;     ArrayList<Node> children;      Node ()     {         this.children = new ArrayList<>();     }      Node (int[] value)     {         this.value = value;         Node();     }      Node (int[] value, Node[] children)     {         this.children = new ArrayList<Node>(Arrays.asList(children));         Node(value);     } }

Is it possible to call a constructor from another (within the same class, not from a subclass)? If yes how? And what could be the best way to call another constructor (if there are several ways to do it)?


I was wondering how many Pokemons a single gym can hold because it doesn't let me put my Pokemon into the gym.

Is it possible to deploy more than one Pokemon in a gym? And how many gyms can you be in?


I want to get the "Accordion" effect you find in the some tools dialog boxes in my own Python Script tool.  I can't find anything on the ArcGIS Resources website about this.  An example is shown below:    I am referring to the feature shown in "Additional Model Parameters" and the other additional toolsets.

There is plenty of documentation on how to add parameters to a category in a Python Toolbox i.e. see the bottom of )  But I haven't found a way to do this for a Python Script Tool. Can this be done?


I just asked  about how far away the light is that would show us the beginning of time, the Big Bang.   Some answers claim that the light I ask about doesn't exist, because "The Big Bang created space and time."  The way I see it, space, true "space" is literally nothing. You can't create nothing. So I would argue that the BB didn't create space, but only filled it.   Can someone please explain why we theorize that space itself was created by the Big Bang?

Did spacetime start with the Big Bang?  I mean, was there any presence of this spacetime we are experiencing now before big bang? And could there be a presence/existence of any other space-time before the big bang?


I want to change the clock on the Ubuntu panel into something more exotic. I am interested in finding a way to add an icon to the panel and be able to change it (like Psensor and Slack applications do, see picture) based on time or some other conditions.      When googling for this I've always gotten the response for the launch icons, and not the Ubuntu panel. I'm using Ubuntu 16.04  I've got the ide from Destin from Smarter Every Day YouTube channel, and I've made the second image in GIMP.

I am trying to write some panel apps for ubuntu Mate.  I know C/C++, and SDL reasonably well.  I have seen the Mate-University panel apps github page, but i cannot get it to work properly / Im having a though time with it.   I am just wondering, if there is some easy avenue to write panel apps? I am not talking about using the custom application launcher, I would like to add new functionality, to the panel, but Im not sure how to.  A tutorial, or description about writing panel apps could be really helpful.


$ sudo dpkg -i cav-linux_1.1.268025-1_amd64.deb   Selecting previously unselected package cav-linux. (Reading database ... 333566 files and directories currently installed.) Unpacking cav-linux (from cav-linux_1.1.268025-1_amd64.deb) ... dpkg: dependency problems prevent configuration of cav-linux:  cav-linux depends on libssl0.9.8 (>= 0.9.8m-1); however:   Package libssl0.9.8 is not installed.  dpkg: error processing cav-linux (--install):  dependency problems - leaving unconfigured Errors were encountered while processing:  cav-linux

Say, I have foo-1.2.3.deb which depends on perl and python, however, running command:  dpkg -i ./foo-1.2.3.deb   won't install these dependencies. So I must apt-get install perl python by hand.  How to make dpkg -i install these dependencies for me automatically?


I have a database server (MySQL) which can only be accessed from another server. for example: another server = hubserver.com:22 user => `admin` password => `admin123` mysql server = mydb.com:3306 user => `root` password => `root`  I was searching in google about ssh tunnel. Search results mostly show how to connect from your local to remove database server (your computer -> database server). In my case, (my computer -> another server -> database server). please give your answer with example command line syntax to setup ssh tunnel (terminal OSX) and db connection syntax (php)

I have my database on remote Linux machine, and I want to connect using SSH and PHP functions (I am currently using ssh2 library for that). I tried using mysql_connect, but it gives me can't access (although I have granted permission) when I tried using this function:  $connection = ssh2_connect('SERVER IP', 22);  ssh2_auth_password($connection, 'username', 'password');  $tunnel = ssh2_tunnel($connection, 'DESTINATION IP', 3307);  $db = mysqli_connect('127.0.0.1', 'DB_USERNAME', 'DB_PASSWORD',                           'dbname', 3307, $tunnel)     or die ('Fail: '.mysql_error());   I got error "mysqli_connect() expects parameter 6 to be string, resource given". How can I resolve this?


Please see code snippet, javascript return unexpected value when calculating numbers. I'm using newest firefox. Is there a way I could always get correct value ?    console.log(100+59.59, "expected 159.59");  console.log(200+59.59, "expected 259.59"); console.log(300+59.59, "expected 359.59"); console.log(400+59.59, "expected 459.59"); console.log(500+59.59, "expected 559.59"); console.log(600+286.59, "expected 886.59"); console.log(700+286.59, "expected 986.59");

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I wanted to make a function that rotates a 2-dimentional list in python like so: input: [[0,1,2,3],[0,1,2,3]] output: [[0,0],[1,1],[2,2],[3,3]] I wanted to first create a list with placeholder None values so I could easily put in the values later. I came up with this code: matrix = [[0,1,2,3],[0,1,2,3]]#debugging value, will be an argument of the function.  output = [] row= [] for x in range(len(matrix)):     row.append(None) for x in range(len(matrix[0])):     output.append(row)  So, this creates a nice starting point to now organise the data, but now something weird happens. If I now try to run something like output[0][0] = 5, the output variable suddenly has the following values: [[5, None], [5, None], [5, None], [5, None]], while this line should only affect the first list in the list. Even stranger, now the value of the temporary list row is [5, None]. The line should not affect this variable at all. Am I missing something, or is this a bug in Python? I tried this on Python 3.7.6 on windows and Python 3.8.2 on Linux. Can someone please help me with this?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


What kind of data or function is better to be put in the protected area of C++ class? And what's the benefit of doing it?

What is the difference between private and protected members in C++ classes? I understand from best practice conventions that variables and functions which are not called outside the class should be made private—but looking at my MFC project, MFC seems to favor protected. What's the difference and which should I use?


If I'm 5.1% Jewish, how far away are my Jewish ancestors and do I count as a person of the Jewish race ?

My sister, cousins, and other relatives speculate that my mom's grandmother was Jewish (for various reasons). I've heard people say at times things like, for example, "I'm 50% German" or "I'm 25% Swedish." This has to do with their ancestry. But, how exactly is this calculated? Say for example that my mother's paternal grandmother was indeed 100% Jewish, what would that make me and my siblings, and how is it calculated?


I've made a doubly linked structure in C, and need to know how to calculate the size of custom made structures.  I understand the size of certain data types, and that pointers are 8 bytes on my machine.    However when I create this data type  struct doublylinked {     int data;     struct doublylinked *next;     struct doublylinked *prev; };   I get that all the values inside add up to 20 bytes in total.  size of data = 4   size of next = 8   size of prev = 8   However when I print out the size of this data type it equals 24.  size of doublylinked = 24  Where are these extra 4 bytes coming from?  Thanks

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


My English teacher told me that some native speakers omit the /t/ sound in some words, for example, writ't'en, Bri't'ain, impor't'ant. That means before pronouncing the /t/, there is a sudden pause and then go for /ː(ə)nt/.Is that true? Thank you so much :)  [maybe there is no such a thing. But when I listen to BBC radio, someone says "Britain", I can hardly hear /t/ when they say that word. Why they pronounce that way?]

It's just strange to me because "t" is pronounced with the front teeth, while the glottalized "t" is produced with the back of the throat; that seems like quite a noticeable journey that couldn't have happened all at once.  If I'm correct, do linguists have any clue what intermediate steps would have been taken, and can someone demonstrate a couple of those pronunciations with English words?


I try to install steam on my laptop but when I try to open the steam, there is a notice says that "Couldn't set up Steam data - please contact technical support". What should I do? Please help me what to do right now

So, I am fairly new to xubuntu, and have just made a fresh install. I decided to get steam, so I used the Software Center to install steam, but i am encountering problems. Running steam from the start menu simply brings up a box saying:     Couldn't set up Steam data - please contact technical support   And running it from the terminal produces:   alex@Craptop:~$ steam Repairing installation, linking /home/alex/.steam/steam to /home/alex/.local/share/Steam rm: cannot remove ‘/home/alex/.steam/steam’: Is a directory Setting up Steam content in /home/alex/.local/share/Steam rm: cannot remove ‘/home/alex/.steam/steam’: Is a directory"   Tried re-installing twice now, and am still getting the error saying it couldn't set up steam data.


Spanish special characters are not displaying correctly, a word like: 'Árbol' is displayed like '�bol'.   1) Text in database is saved correctly. 'Árbol' looks perfect on database.   2) If I insert a new word, eg. 'Tétrico', it is saved correctly on database.   I've been experiencing this problem since I moved the project to another server, on localhost (Ubuntu server) works perfect.   I've tried everything reading similar questions:    View files are encoded in UTF-8 without BOM.  header('Content-type: text/html; charset=utf-8'); In my.cnf, I've added the lines:  init_connect='SET NAMES utf8'  character_set_server=utf8   It just doesn't work.   What else can I do?  I've replicated changes that I did on localhost (because project works perfect here, everything's displaying correctly) to new server, but nothing's changed.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I am currently writing a program that will compute the moves needed to be taken in the Tower of Hanoi problem. I need to write all the moves taken to an output .txt file.   When I try to do this I keep keeping a StackOverFlow error once at the beginning of the if statement in the towerOfHanoiMoves method and multiple times at the first recursive call to that same method.   I'm guessing the error has to do with the outStream and passing it each time to the method, but I am not sure. If that is the case, I cannot figure out how I would be able to write to the same output file given by the user in the main method.  Also the code will always print the information from the "finally" statement in the try catch block, and the outStream statement in the if statement, but nothing else.  I've tried to flush the outStream after using the outStream.write commands in the towerOfHanoiMoves method but that did not help at all.  Also I've imported all the libraries for the BufferedReader, FileReader, etc. but they won't show up properly in my question. So they are in the code just so you know, but they just don't appear in the code here.  public class TowerofHanoiRecursive {      public static void main(String[]args)throws IOException,     EmptyFile,     FileNotFoundException {         int n; //number of disks in tower         String rodLeft = "A",         rodRight = "C",         rodMiddle = "B";         FileReader inputStream = null;         FileWriter outputStream = null;         BufferedReader str = null;          try {             outputStream = new FileWriter(args[1]); // output file             inputStream = new FileReader(args[0]); // input file             str = new BufferedReader(inputStream);             String nextLine;             File newFile = new File(args[0]);              if (newFile.length() == 0) { //Tests if input file is empty                 throw new EmptyFile("Input file is empty.");              }             while ((nextLine = str.readLine()) != null) {                 outputStream.write("----------------------------------------"                      + "------------------------\n");                 outputStream.write("Number of Disks in Starting Tower = "                      + nextLine);                 n = Integer.parseInt(nextLine);                  towerOfHanoiMoves(n, rodLeft, rodRight, rodMiddle,                     outputStream);              }          } catch (FileNotFoundException e) {             outputStream.write("Input file not found.");             outputStream.flush();             if (outputStream != null)                 outputStream.close();          }         catch (EmptyFile e) {             outputStream.write(e.getMessage());             outputStream.flush();             if (inputStream != null)                 inputStream.close();             if (outputStream != null)                 outputStream.close();             str.close();          }         finally {             outputStream.write("");             outputStream.write("Total time to taken to solve Tower: ");             outputStream.write("\n\nSuccess!");             outputStream.flush();              if (inputStream != null)                 inputStream.close();             if (outputStream != null)                 outputStream.close();             str.close();         }      }      public static void towerOfHanoiMoves(int n, String srcRod, String destRod,         String spareRod, FileWriter outStream) {         try {             if (n == 1) {                 outStream.write("\nMove disk 1 from rod " + srcRod + " to rod "                      + destRod + ".");             }             towerOfHanoiMoves(n - 1, srcRod, spareRod, destRod, outStream);             outStream.write("\nMove disk " + n + " from rod " + srcRod                  + " to rod " + destRod + ".");             towerOfHanoiMoves(n - 1, spareRod, destRod, srcRod, outStream);          } catch (IOException e) {             e.printStackTrace();         }     } }

What is a StackOverflowError, what causes it, and how should I deal with them?


Is it possible to represent the following tensor in pdf by TeX.

In tensorial analysis, the position of covariant and contravariant indices may be relevant. The following image shows the output of {A_i}^j and {\tilde{A}_i}^j:    But I expect the second expression (with the tilde) to have the index j at the right of the index i. Why do they behave different? How can I obtain something like the first expression?  Also, I am trying to write an expression like {{{A_i}^j}_k}^m (see following figure), but I get the error Double subscript. How can I write something like this?


I am very new to Linux / Ubuntu and have been playing around with it for the past week. I have come across a problem I can't seem to fix.  If I want to open a PDF with Okular, which has been stored / filed through Zotero, I get the following message:   Could not open file:///home/ingrid/snap/zotero-snap/common/Zotero/storage/GI4FVK9I/Vranken - 2020 - Rooted Hauntology Lab Attempts at vegetal curatio.pdf   The only program that can open the files seems to be pdf viewer, but this does not have the functionality I need.  Thank you for helping me out!!

I have made my laptop double boot a few months again, with Ubuntu 18.04.1 . I have been working with okular to open pdf files (for the commenting option) but suddenly okular doesn't work anymore. When trying to open okular I get the following error:     Unable to find the Okular component: Cannot load library /snap/okular/39/usr/lib/x86_64-linux-gnu/qt5/plugins/okularpart.so: (libKF5JSApi.so.5: cannot open shared object file: No such file or directory)   I don't understand how to solve this problem. Okular was working fine until today and I didn't change anything to my ubuntu system in the mean time. Perhaps the problem comes from the fact that I have been working on windows the last few days and also used the windows ubuntu app.   How can I make okular work again?


I have installed a SP2013 Farm everything works. Now for some reasons I need to install AD domain controller.  Could this cause any problems to the FARM?  What should I do before this operation to ensure functionality after?

I installed Sp 2013 farm into a local machine e now I Installed Active Directory with domains controller. SP Central admin doesn't work now. Should I re install everything or is there any workaround?


I want to echo the domain tld such as .com or .net from any domain  althought I want to echo if this domain https or http  example :   I want to echo com and https  example 2 :   I want to echo info and http  example 3 :  I want to echo info and http  I have tried this     <?php  function get_domain($url) {   $pieces = parse_url($url);   $domain = isset($pieces['host']) ? $pieces['host'] : $pieces['path'];        if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {     return $regs['domain'];   }   return false; }  echo get_domain("https://facebook.com");  ?>     but this  echo facebook.com  edit: I want to echo domain tld and the https/http

Given the URL (single line):   How can I extract the following parts using regular expressions:   The Subdomain (test) The Domain (example.com) The path without the file (/dir/subdir/) The file (file.html) The path with the file (/dir/subdir/file.html) The URL without the path () (add any other that you think would be useful)   The regex should work correctly even if I enter the following URL:    http://example.example.com/example/example/example.html


I would like to include the content of a binary file within filecontents. Is there any way to do so? My MWE is as follows: \documentclass{article} \begin{filecontents}{file.txt}     CPYA 4,3268 195 W64 #     s         ÷˙÷˙‰    Y           Z*oG8#@      á~  a>  ‹-  ‚  î9  ˘o  É}                                          x                 “          @˙ P   Ä        ÷ !Q                      đ?      đ?             0                        Book1_A                  ÎM                                   @   \end{filecontents}

In  of mine, I was trying to show how to embed an audio file into the pdf with the multimedia package. The resulting MWE does not stand on its own because it requires an example audio file.  I guess my first question is, does TeXLive include any example audio files? The second, and potentially less uninteresting question is, can I use the filecontents environment, or some other environment, to create a binary file?  \documentclass{article} \usepackage{graphicx} \usepackage[implicit=false]{hyperref} \usepackage{multimedia}  % What goes in here to produce a usable wav file. Happy to use a different environment. \begin{filecontents}{\jobname.wav} \end{filecontents}  \begin{document} \sound[inlinesound]{\includegraphics{example-image}}{\jobname.wav} \end{document}


I've been trying to create a topographical wire mesh as shown below to convert to curves later:    Here I have a Bisect Tool Cut in Blender, but as you can see, the Tools panel really doesn't have an option to Create Multiple Cuts like I would want:      But heres an example from Cinema4D below, but I know it's possible in Blender too.    I would then like to select those edges and convert them into splines.    Apologies for the confusion.

I am looking for the best way to make a model comprising of many thin layers.. each with their own unique shape and editability...such as this:    Would it be best to model the object first then divide down into layers? Or to avoid having thousands of seperate objects and risk crashing.. could something be achieved with modifiers such as the array tool? Thanks


Every six months I used to delete the mails in my inbox but now I need access to one of the emails I deleted a year back.  Is there any way to recover the mail?

Is it possible to recover an email that has been clicked on "delete forever" in the trash folder? I have accidentally clicked delete forever for an email but now I need to recover it.


I want to get get memory usage info for each called method/function during a request. I'm working on a cloud service, for past years. When PHP 7.0 released, we noticed that we had about 30% more memory usage with same codes.  On 7.1, we noticed that 10% more memory usage was common for each request.  At the time we faced a trade-off between speed and memory (also cool new features), and we chose to upgrade our environment.  But now, PHP 7.2 has almost the same speed as 7.1 while we noticed that again, about 10% more memory is used by our codes on 7.2.    I want to know how to test our codes and see how much memory each method is using during a request. I tried a few things like memory_get_usage() or  but I'm looking for a way to automatically generate a report for all methods/functions that are called during a request. It's really impossible to check 2000+ methods/function by hand.

What's the easiest way to profile a PHP script?  I'd love tacking something on that shows me a dump of all function calls and how long they took but I'm also OK with putting something around specific functions.  I tried experimenting with the  function:  $then = microtime(); myFunc(); $now = microtime();  echo sprintf("Elapsed:  %f", $now-$then);   but that sometimes gives me negative results.  Plus it's a lot of trouble to sprinkle that all over my code.


This situation came up last week during our session. The party was facing a pretty difficult mob of enemies and one of the party members was knocked unconscious. Seeing the situation worsening, one of the players decided to use the  (DMG p. 197). In the text, it says:     The rod then instantly transports you and up to 199 other willing creatures you can see to a paradise that exists in an extraplanar space.   At first glance I thought this was actually a pretty good time to use the rod. The question came up though, what about the party member who is unconscious? In the end I made the call that the character went with them to keep things moving and more fun.  However, I'm feeling like back pedaling a bit and notifying my players that for future uses, the line "... willing creatures..." will be more strictly enforced as I don't feel like an unconscious creature could be willing.  Did I handle this the right way?

Some spells like  and  specify that only an unwilling creature makes a saving throw:     If the target is unwilling, it can make a Constitution saving throw.    and     An unwilling creature must make a Wisdom saving throw to avoid the effect.   ... but is an unconscious character able to make this judgment (and therefore be eligible to make a saving throw)?  Mind you, I've seen  on opting in to certain spells, but I'm specifically asking about opting out so as to be eligible for the saving throws.


I work on a project in Java for school, and I have a problem with JOptionPane.showInputDialog().  My question is: What does JOptionPane.showInputDialog() return if I enter nothing into the field and then hit "OK"?  I tried to find it out by myself with this test-code:  public static void main(String[] args) {     String test = JOptionPane.showInputDialog("Please enter:");     if (test==""){         System.out.println("Found it");     }else{         System.out.println(test);     } }   This doesn't work, as I said. It will print out the variable test, instead of the string "Found it".  What must I enter in the if-query in case I enter nothing in the field and then hit 'OK'?  Excuse my English, I'm Swiss.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have a text file which has 1000 rows/entries. These 1000 entries correspond to the column names  for my dataframe. These are the  new features that need to be added to the dataframe  for  model development. My input text file looks like this: show temperature all#Total Numbers Approved#g2/3 show temperature all#Total Numbers Approved#g2/2 show temperature all#Total Numbers Approved#g2/4 show temperature all#Total Numbers Approved#g0/2 show temperature all#Total Numbers Sent#g1/2 show temperature all#Total Numbers Sent#g1/3 show temperature all#Total Numbers Sent#g1/1 formulastat gpucores all parameter function-frames#formula:1#gpucores:11 formulastat gpucores all parameter function-frames#formula:1#gpucores:10 formulastat gpucores all parameter function-frames#formula:2#gpucores:10 formulastat gpucores all parameter function-frames#formula:2#gpucores:11 formulastat gpucores all parameter function-frames#formula:0#gpucores:8  I was looking to automatically add '' for each line, remove the line break and add a comma after each line entry. Expected  output is as follows: 'show temperature all#Total Numbers Approved#g2/3', 'show temperature all#Total Numbers Approved#g2/2', 'show temperature all#Total Numbers Approved#g2/4', 'show temperature all#Total Numbers Approved#g0/2', 'show temperature all#Total Numbers Sent#g1/2', 'show temperature all#Total Numbers Sent#g1/3', 'show temperature all#Total Numbers Sent#g1/1', 'formulastat gpucores all parameter function-frames#formula:1#gpucores:11', 'formulastat gpucores all parameter function-frames#formula:1#gpucores:10', 'formulastat gpucores all parameter function-frames#formula:2#gpucores:10', 'formulastat gpucores all parameter function-frames#formula:2#gpucores:11', 'formulastat gpucores all parameter function-frames#formula:0#gpucores:8'

I have the following data (a list of R packages parsed from a Rmarkdown file), that I want to turn into a list I can pass to R to install:  d3heatmap data.table ggplot2 htmltools htmlwidgets metricsgraphics networkD3 plotly reshape2 scales stringr   I want to turn the list into a list of the form:  'd3heatmap', 'data.table', 'ggplot2', 'htmltools', 'htmlwidgets', 'metricsgraphics', 'networkD3', 'plotly', 'reshape2', 'scales', 'stringr'   I currently have a bash pipeline that goes from the raw file to the list above:  grep 'library(' Presentation.Rmd \ | grep -v '#' \ | cut -f2 -d\( \ | tr -d ')'  \ | sort | uniq   I want to add a step on to turn the new lines into the comma separated list. I've tried adding tr '\n' '","', which fails. I've also tried a number of the following Stack Overflow answers, which also fail:      This produces library(stringr)))phics) as the result.      This produces ,% as the result.      This answer (with the -i flag removed), produces output identical to the input.


Now I have some websites that open only inside an RDP connection. However I would like to proxy all my browser requests through the RDP connection. Is there a simple way to do so on windows 10?

There is a remote Windows server on a private network which I can connect to via Remote Desktop Connection.  I would like to be able to make TCP/IP connections from my computer to other computers on that server's network.  Remote Desktop Connection makes it possible to share printers, drives, and other local resources through the connection.  Is there any way to "tunnel" a TCP/IP connection via RDC?  I'd like something similar to the port-forwarding provided by SSH.  I don't see any way to do this via RDC, but I'm hoping the capability is there and I just don't know about it.


I use 16 gb bootable pendrive for ubuntu 18.04 . after installation , computer takes about 700 mb updates through software updater . Is it possible to add-install these updates into the bootable pendrive directly before installtion ? how ?

There are so called "point releases" for LTS versions of Ubuntu. 10.04.3 for instance.  What are those "point releases" releases?


first of all sorry for my bad english.  right now, im making a seamless isometric tileset and i really like the shading color but i cant seem to pick the shaded color and its only picking the base color.  is there a way that i can pick the shaded color?

Sometimes when using Adobe Illustrator I need to get a range of tints from a certain color, so I'll drop the opacity to, say, 75%, 50%, and 25% on a white background to get there. It's the quickest way to get what I want in that moment, but then it comes back to bite me later when I put something underneath and then I have visibly overlapping layers.  What I want to be able to do is get the value of the color that I'm seeing. In Photoshop I'd do this by putting a white layer underneath, merging the two layers, and then sampling the color. Is there some sort of trick I can pull in Illustrator to do the same thing?   If not, is there a different (and preferably simple) way to add white to a color? Changing S and B values in the color picker is the only thing I could think of in that regard and isn't always terribly simple to do...


So, this is my class which contains my constructor and accessor methods:  public class sac { // Initializing instance variables. private double bal; private double[] dep; private double[] wit;  /**  * Constructor for objects of class sac  */ public sac() {     //Declaring instance variables     bal = 500;      //Deposits:     double[] dep = new double[5];     dep[0] = 100.00;     dep[1] = 124.00;     dep[2] = 78.92;     dep[3] = 37.55;     dep[4] = 83.47;      //Withdrawals:     double[] wit = new double[7];     wit[0] = 29.88;     wit[1] = 110.00;     wit[2] = 27.52;     wit[3] = 50.00;     wit[4] = 12.90;     wit[5] = 15.20;     wit[6] = 11.09; }  /**  * Returns and sets the value of balance.  *  *   * @return bal  */ public double setBal(double b) {     //Declaring instance variables     b = bal;     return bal; }  /**  * Returns and sets the values of deposits.  *  *   * @return deposits  */ public double[] getDep() {     double[] d = new double[5];     //Deposits:     d[0] = dep[0];     d[1] = dep[1];     d[2] = dep[2];     d[3] = dep[3];     d[4] = dep[4];     return d; }  /**  * Returns and sets the values of withdrawals.  *  *   * @return withdrawals  */ public double[] getWit() {     double[] w = new double[7];     //Withdrawals:     w[0] = wit[0];     w[1] = wit[1];     w[2] = wit[2];     w[3] = wit[3];     w[4] = wit[4];     w[5] = wit[5];     w[6] = wit[6];     return w;     }  }   The code may be sloppy as I have been messing around trying to find out the solution to this error, however this is my driver which I am trying to run. The error occurs while trying to call my values from my accessor methods in the other class.   import java.util.*; /**   */ public class sacDemo { public static void main(String[] args) {     Scanner input = new Scanner(System.in); //Creates new scanner object.     sac sac = new sac(); //Creates accessor object to retrieve variables       from sac class.      int bal;     double air;     double[] dep = new double[5];;     double[] wit = new double[7];      double[] d = dep;     double[] w = wit;      w = sac.getWit();     d = sac.getDep();      System.out.println("What is your annual interest rate?");     air = input.nextInt();     air = air/10;      System.out.println("Your deposits for the month were: ");     for(int i=0;i<5;i++){          System.out.println(dep[i]);     }     System.out.println("Your withdrawals for the month were: ");     for(int i=0;i<6;i++){          System.out.println(wit[i]);     }  } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


The problem is as title suggests, I selected CUDA and checked my GPU in preferences for the Cycles Render Device . But when I'm running my render, the CPU usage is anywhere from 88-99% and the GPU usage is around 10-15% . I can only imagine that Blender is still using my CPU to render the scene. How do I fix this?

I want to enable GPU rendering, but there is no option in User Preferences > System:    Why is this? How can I get cycles to render using my GPU?


is it possible to change exif data from photos ? I get the exif data thus :   var directories = ImageMetadataReader.ReadMetadata(file);  foreach (var directory in directories) {     foreach (var tag in directory.Tags)         Console.WriteLine($"[{directory.Name}] {tag.Name} = {tag.Description}");      if (directory.HasError)     {         foreach (var error in directory.Errors)             Console.WriteLine($"ERROR: {error}");     } }   Now I need to replace the exif data from other photos to these, is that possible ?   - its not correct answer, because all this librarycant edit exif , just read

I am writing a photo gallery/sharing website and want to (1) write EXIF data to the JPEGs stored on server, and (2) strip that EXIF data prior to writing to the output stream for display.  Is anyone aware of a dotNet library -- preferably open source -- that allows the editing (the key here is that I need to write/erase the EXIF data, not just read it) of EXIF data in image files?


As space-time is distorted in a gravitational field, relativistic effects such as time dilation and length contraction take effect.  Time dilation is explained simply enough: closer to the source of gravity, slower the time passage.  However, space contraction gives no such clear answer. for example, a single thread on the matter contains the following:   gravitational field would produce a transverse expansion of distances gravitational fields produce increased distances in the direction perpendicular to the field [gravitational fields] produce decreased distances in the radial direction   So, to pose the question as bluntly and directly as I can:  Ignoring all other effects (relativistic or otherwise), which is shorter: a measuring stick closer to the source of gravity or a farther one?  If the orientation of the stick plays a part, try to answer for both the case where it's pointing towards the source of gravity, as well as perpendicular.  Similarly, if the position of the observer relative to source of gravity plays a part try to take that into account (but it doesn't seem to in the case of time dilation so I don't expect it here either)

General Relativity predicts that a clock at rest in a gravitational field will run slower than a clock in free fall.  Similarly, will a vertical ruler on the earth's surface be shorter than a ruler in free fall?  Why or why not and by how much?


Apologies as I know cross-thread operations have been addressed elsewhere, but all I see are fragments and can't quite figure out where to apply the solutions correctly. So I have distilled this problem to it's most basic essence in the hope that me and anybody else who comes across this can see a complete solution without a lot of support code to wade through or fragments with limited context. I have looked at various posts such as ,  and  but can't quite place the solutions in context.  I have created a Windows Forms project with a single button and textbox. In the form.cs file here is the complete code to demonstrate the problem:  using System; using System.Windows.Forms; using System.Threading;  namespace SampleEventTest { public partial class Form1 : Form {     public Form1()     {         InitializeComponent();     }      private void Button1_Click(object sender, EventArgs e)     {         new Thread(() =>         {             Thread.CurrentThread.IsBackground = true;             TestClass();         }).Start();     }     private void TestClass()     {         TestEvent tv = new TestEvent();         tv.OnClsConnect += new TestEvent.clsConnect(OnConnected);         tv.DoSomethingThread();     }     public void OnConnected(string str)     {         textBox1.Text = str;     } } public class TestEvent {     public delegate void clsConnect(string str);     public event clsConnect OnClsConnect;      public void DoSomethingThread()     {         if (OnClsConnect != null)         {             OnClsConnect("Thread run");         }     }  } }   Click the button and you will get the "Cross thread operation not valid" error. How does one properly fix this code? TIA

I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List<string> which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List<string> which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database.