Unbiased estimator of standard deviation of a normal distribution, using gamma function

According to , the following estimator of the standard deviation $$s=\sqrt{\frac{1}{n-1}\sum_{k=1}^n(x_i-\bar{x})^2}$$  for a normal variable, verifies $E[s]=C_4(n) \sigma$, where  $$ C_4(n) = \sqrt{\frac{2}{n-1}}\cdot\frac{\Gamma(\frac{n}{2})}{\Gamma(\frac{n-1}{2})}=1 - \frac{1}{4n} - \frac{7}{32n^2} - \frac{19}{128n^3} + O(n^{-4}) $$  Therefore we have an unbiased estimator for the standard deviation of a normal variable,  $$\hat{\sigma}_\text{unbiased} = \frac{1}{C_4(n)} \sqrt{\frac{1}{n-1}\sum_{k=1}^n(x_i-\bar{x})^2}$$  How could you prove this?


Searching through tex.stackexchange.com, I've come to understand that xetex is currently the preferred engine for documents that include Chinese characters. In xetex, one simply uses the xeCJK or ctex packages and start including the characters in the body of the document. But it appears these two packages don't work with luatex.  So is it possible to include Chinese characters in a document using luatex? I cannot find a single example of this.


Find a prime factor of $A=14^7+14^2+1$. Obviously without just computing it.


Many great scientists have made important contributations to many related fields. Gauss, Euler and Newton each made many contributions to both math and physic.  One of the great scientists of last century is Albert Einstein and I wonder, did he make any contributations to math?


Why is serial data transmission faster than parallel?

Intuitively, you would think that parallel data transmission should be faster than serial data transmission; in parallel you are transferring many bits at the same time, whereas in serial you are doing one bit at a time.  So what makes SATA interfaces faster than PATA, PCI-e devices faster than PCI, and serial ports faster than parallel?


For positive real numbers $a,b,c$ prove that $$ \sum{\frac{a^3}{(a+b)(a+c)}} \geq \frac{a+b+c}{4}$$  Source: high school olympiad inequality  I didn't succeed in any way, I am quite sure it will be done with multiple AG inequalities


While reading the String class in java I noticed a weird constructor declaration  public String(byte bytes[], int offset, int length, String charsetName)   notice that the array bytes is declared as byte bytes[] instead of byte[] bytes   is there a difference between the two declarations? the java documentation never mention such possibility..


Add geometry attributes (x y) in the lat long column using Python console in QGIS

I would like to add geometry attributes (x y) to my point layer using py console.I know it is possible to calculate using the field calculator syntax, but then it creates a new layer which I want to avoid.  Basically below task using script.


du, df and ls report wrong free / used space

We have an Ubuntu 12.04 server running on a VMware ESXi host, with multiple partitions, running Zimbra 8 (mta/ldap only). One of partitions is a 30GB partition mounted as /opt/zimbra/data. I had a rude wake up call this morning from my manager claiming the mail server was down.   I logged in and took a look and sure enough, all commands were reporting that there wasn't enough free space on the /opt/zimbra/data partition. I was trying to figure out which file it was that was using up all the space, but both df and du failed me. Here are the outputs from the various commands after I had tracked down the file by doing an ls one directory at a time:  zimbra@mail:/opt/zimbra/data/ldap/mdb/db$ du -sh . 20M .  zimbra@mail:/opt/zimbra/data/ldap/mdb/db$ du --apparent-size data.mdb 31409532    data.mdb   zimbra@mail:/opt/zimbra/data/ldap/mdb/db$ df -h . Filesystem      Size  Used Avail Use% Mounted on /dev/sde1        30G  1.3G   28G   5% /opt/zimbra/data   zimbra@mail:/opt/zimbra/data/ldap/mdb/db$ ls -allh total 20M drwxr-xr-x 2 zimbra zimbra 4.0K Nov 26 13:50 . drwxr-xr-x 3 zimbra zimbra 4.0K Jul 16 05:47 .. -rw------- 1 zimbra zimbra  30G Nov 26 14:04 data.mdb -rw------- 1 zimbra zimbra 8.0K Nov 26 14:07 lock.mdb   Note that the file data.mdb is using up all 30Gigs, but is not being taken into account when reporting the total space.   We have since created a new partition, copied the files over, and have things up and running, but I am still curious what would have caused the incorrect reporting of used space on the partition. We still have the old partition lying around, so if there are other commands I don't know of that would yeild more accurate results, I would like to try them out.  Update:  Output from ls -alsh  root@mail:/opt/zimbra/data/ldap/mdb/db# ls -alsh total 20M 4.0K drwxr-xr-x 2 zimbra zimbra 4.0K Nov 26 13:50 . 4.0K drwxr-xr-x 3 zimbra zimbra 4.0K Jul 16 05:47 ..  20M -rw------- 1 zimbra zimbra  30G Nov 26 14:04 data.mdb 4.0K -rw------- 1 zimbra zimbra 8.0K Nov 26 14:07 lock.mdb   So it looks like the file is indeed a sparse file, and was very close to the partition size. I still have no idea why commands like touch or cp started returning no space left on disk, as this file only seems to have actually been using around 20 MB.  Wrapping up, here is what I have come up with to list all files, including sparse files, recursively and order the results by file size desc:  ls -aldSh $(find .) | grep -v '^d'  For any Zimbra users who might end up here with a similar issue, the following links will help:      Update 2:  Another thing to check is if the partition has run out of inodes. Of particular interest are the logger and zmstat subdirectories. These contain a number of small files, and can quickly run out of inodes before running out of space, if mounted on their own partitions. Most commands will still return a "no space left on device" error, which can be misleading.  df -i can be used to show information on the number of free inodes. For example, I have a partition that has about 80% free space according to df -h, but still returns a "no space left on device" error because it is out of inodes:  root@mail:/opt/zimbra/logger# df -h Filesystem       Size  Used Avail  Use%  Mounted on /dev/sdh1        20G   3.9G   16G  21%   /opt/zimbra/logger  root@mail:/opt/zimbra/logger# df -i Filesystem       Inodes   IUsed     IFree IUse% Mounted on /dev/sdh1        5120     5120         0  100%  /opt/zimbra/logger


Which color space should be used for a logo?

I'm currently designing a logo in CYMK (in Illustrator CS6). The logo will be used in digital printing, web and for business cards. Is it correct to use CYMK or would it better to use colors from Pantone/HKS?  If CMYK is the correct choice, is it good to export the logo from Illustrator for web publishing? Is there something that I need to ensure that the colors remain the same as in CYMK?


Can't find some apps installed from Ubuntu Software in Ubuntu 17.10

First Ubuntu Software app renamed as only "Software" (and also orange logo has gone) and then when I search in all apps list in Ubuntu, I can't find apps that I installed from Ubuntu Software.  I can only find them if I search on Software app, they are installed, and I can only launch from there by clicking launch button.


Why does wc get wrong result with output from ps

To output all lines into a file /tmp/ps.txt  $ ps -e >/tmp/ps.txt       To count it with wc -l  $ wc -l /tmp/ps.txt 172   To count it without exporting a file.  $ ps -e | wc -l 173   Why ps -e | wc -l  get one more line?  I don't think  for my question.  $ echo "test" | wc -l 1   Please try it in your terminal, it would yield 2 as .


How do I change dconf keys without a gui (for a post-install script)?

I have installed dconf-tools. In this case I am manipulating the display of a name in the panel on the session indicator.  I can change this in dconf-editor gui with no problem, I go to apps/indicator-session, and untick show-real-name-on-panel.  However, I have also tried to toggle it just using dconf at the command line:  dconf write /com/canonical/indicator/session/show-real-name-on-panel false   After rebooting, the panel is unchanged, and the key in the dconf-editor is unchanged as well.  Moreover, trying to update the dconf database via the terminal yields an error:  $ dconf update fatal: Error opening directory '/etc/dconf/db': No such file or directory   From my experience it seems as though dconf and dconf-editor have no relationship, so I just wonder what I am doing wrong.  If I can get this figured out, I want to just place the command in a bash script to run the next time I have to do a clean install for an upgrade*. I do a lot of tweaks in 6 months and I just want to automate as much as possible from now on.   Slightly off-topic: the distribution upgrade mechanism has never worked without a hitch for me; I tried it going from 11.04 to 11.10 as well.


Achievement icon shows different reputation than what was earned

The other day, I checked on my . To my surprise, the achievements icon displayed a different reputation change amount than what I had earned:    There is a discrepancy of 2, just as in .  My reputation total appears correct, but can we please get the discrepancy fixed?  Edit:  The next image, taken immediately after the first, shows the vote count. With 1 upvote and 1 downvote, the achievement icon could not have totaled +6:    2nd Edit:  Images of all my sites show no recent reputation changes, except MSE.  Stack Overflow:    Super User:    Software Engineering:    Code Review:    Code Golf:    Stack Apps:    Meta Stack Exchange:


How to fill a hole between 2 circles quickly

If I had 2 circles placed on top of each other, like the cap and bottom of a cylinder, how would I fill in those walls without filling in the circles themselves?  (Basically, a cylinder without its top and bottom).  I'm not looking for a "just use a cylinder" in this case.  Thanks!


Quick question about users in my computer

I was taking a look for questions, and I started to read  thread.  One of the answers says to use the command cat /etc/passwd|grep '/bin/bash', to test if there's other users in the computer. For security purposes, I tested that and I got this:  root:x:0:0:root:/root:/bin/bash nori:x:1000:1000:Nori,,,:/home/nori:/bin/bash   Now, I would like to know, why there is a root user? I thought I only created 1 user.  Also, please note that after installing Ubuntu, my friends (who also use Linux, but not Ubuntu) told me to create a root password (which is different from the user password).  EDIT: To add the root password, I used the sudo -i, and then I used the passwd to create a new password.  Thank you for the help, and sorry if this question have already been answered.


Ask sed to ignore all special characters

I use the following code to delete a line :  sed -i "0,/$DELETE_THIS/{/$DELETE_THIS/d;}" file.txt   But this code fails if the variable DELETE_THIS contains special characters, like ., /, * and so on...  Is there a way to tell sed to ignore all special characters and use them as basic text ?


I am aware that there is a similar question elsewhere, but I need help with my proof in particular. Can someone please verify it or offer suggestions for improvement?     Show that $X$ is Hausdorff if and only if the diagonal $\Delta = \{(x, x):x \in X\}$ is closed in $X \times X$   The proof is trivial if $|X|=1$. So, assume that $|X|>1$.  Suppose $X$ is Hausdorff. Let $(a, b) \in X \times X - \Delta$. Note that such an element exists, since $|X|>1$. Then, $a \neq b$. Since $X$ is Hausdorff, we can pick open sets $U_a$ and $U_b$ such that $a \in U_a$, $b \in U_b$, and $U_a \cap U_b = \varnothing$. Now, note that $(U_a \times U_b) \cap \Delta = \varnothing$ (Assume $(p, q) \in (U_a \times U_b) \cap \Delta.$ Then, $(p,q) \in \Delta$ implies that $p = q$. But then, $p \in U_a$ and $p \in U_b$, contradicting the fact that $U_a \cap U_b = \varnothing$). This implies that the set $X \times X - \Delta$ is open in $X \times X$. So, $\Delta$ is closed in $X \times X$.  Now, suppose $\Delta$ is closed in $X \times X$. Then, $X \times X - \Delta$ is open in $X \times X$. So, there exists a basis element $U \times V$ of $X \times X$ such that $(a, b) \in U \times V$ and $U \times V \subseteq X \times X - \Delta$. This implies that $(U \times V) \cap \Delta = \varnothing$. Then, $a \in U$ and $b \in V$. Note that $U \cap V = \varnothing$. If such were not the case, then there exists a $y \in U \cap V$. This implies that $(y, y) \in U \times V$, contradicting the fact that $(U \times V) \cap \Delta = \varnothing$. This shows that $X$ is Hausdorff.


When you open an .iso file with e.g. 7-zip, the tool lets you test the ISO file, just like you can test any RAR or 7Z or ZIP file that the file is still ok.  If that test finishes successfully, does that mean the .iso file data and all the files within the ISO disc image are fine and not corrupted (bitrot)?   I am a bit confused because elsewhere I saw it mentioned that the ISO (raw disc image) format doesn't contain any data integrity checksums, so I am unsure what the 7-zip tool is testing while testing an ISO disc image file.


If $A_i$ is a sequence of sets, define$$\liminf_i A_i = \bigcup_{j = 1}^\infty \bigcap_{i = j}^\infty A_i, \quad \limsup_i A_i = \bigcap_{j = 1}^\infty \bigcup_{i = j} A_i.$$Given a set $D$ define the function $\chi_D$ by $\chi_D(x) = 1$ if $x \in D$ and $\chi_D(x) = 0$ if $x \notin D$. Does it follow that$$\chi_{(\liminf A_i)}(x) = \liminf_i \chi_{A_i}(x), \quad \chi_{(\limsup A_i)}(x) = \limsup_i \chi_{A_i}(x)$$for each $x$?


In Careers 2.0, individuals can choose "search jobs" and sort by date posted, job title, and company name.  However, Careers 2.0 already knows what tags I'm proficient in, and knows the tags associated with the job postings.  A sort option, relevance, should be added so that jobs matching my skill set, as demonstrated on stack exchange, will float to the top.


Ctrl+A does not select all in URL bar in Chrome and Firefox

Selecting all text in URL by Ctrl+A doesn't work anymore. Now it brings the cursor to the front.


How does the interpretation of main effects in a Two-Way ANOVA change depending on whether the interaction effect is significant?

As far as I can tell this question has never been asked before. There are several questions that touch on related issues, but as far as I can see none of them have provided a definitive answer to this question. Furthermore, in at least one case the most upvoted and second most upvoted answer have implicitly disagreed with each other.  Textbooks often caution against interpreting main effects in Two-Way ANOVA when the interaction effect is significant. Here's a (mild) example of this, from pp562-563 of Hatcher's "Step-by-step Basic Statistics Using SAS: Student Guide":     When you perform a two-way ANOVA, it is possible that you will find   that (a) the interaction term is statistically significant, and (b)   one or both of the main effects are also statistically significant.   When you prepare a report summarizing the results, you will certainly   discuss nature of your significant interaction. But is it also   acceptable to discuss and interpret the main effects that were   significant?      There is some disagreement between statisticians in answering this   question. Some statisticians argue that, if the interaction is   significant, you should not interpret the main effects at all, even if   they are significant. Others take a less extreme approach. They say   that it is acceptable to interpret significant main effects, as long   as long as the primary interpretation of the results focuses on the   interaction (if it is significant).   Do I assume correctly that the hard-line stance ("you should not interpret the main effects at all") is incorrect, but that the interpretation must nonetheless change if the interaction effect is significant? If so, how does the interpretation change?


How to remove duplicate values from arrays

I have these arrays i want to remove remove duplicate links from my array how can i do this please help  I have many links in my array first array have no key and others have key all links have unique ids i want to remove same id links and submit it into mysql. all work is done now i am stuck in this duplicate issue please kindly help me.   Array     (         [0] => mainlink          [apple] => Array             (                 [0] => http://apple1.to/getac/fdjpkb9xdixq                 [1] => http://apple1.to/getac/fdjpkb9xdixq                 [2] => http://apple1.to/getac/fdjpkb9xdixq                 [3] => http://apple2.to/getac/fdjpkb9xdixq                 [4] => http://apple2.to/getac/fdjpkb9xdixq                 [5] => http://apple2.to/getac/fdjpkb9xdixq             )         [banana] => Array            (                 [0] => http://banana1.to/getac/fdjpkb9xdixq                 [1] => http://banana2.to/getac/fdjpkb9xdixq                 [2] => http://banana1.to/getac/fdjpkb9xdixq                 [3] => http://banana2.to/getac/fdjpkb9xdixq            )       )   Thanks.  I want this result:   Array     (         [0] => mainlink          [apple] => Array             (                 [0] => http://apple1.to/getac/fdjpkb9xdixq                 [3] => http://apple2.to/getac/fdjpkb9xdixq             )         [banana] => Array            (                 [0] => http://banana1.to/getac/fdjpkb9xdixq                 [1] => http://banana2.to/getac/fdjpkb9xdixq            )       )


why don't we define vector multiplication component-wise?

I was just wondering why we don't ever define multiplication of vectors as individual component multiplication.  That is, why doesn't anybody ever define $\langle a_1,b_1 \rangle \cdot \langle a_2,b_2 \rangle$ to be $\langle a_1a_2, b_1b_2 \rangle$?  Is the resulting vector just not geometrically interesting?


Can this capacitor move this solenoid kicker

I'm buying this solenoid:    The data are:    Voltage: 12V DC Current: 8A   I need to build a kicker: push a button, capacitor charge, when is charged the solenoid kick an object.  I want to do it with Arduino, and I have a 2-channel relay module 12V with optical coupler protection.  When I push a button with the first relay channel I charge the capacitor using a  DC-DC boost converter 8~32V to 45~390V booster module 40W, and when the capacitor is fully charged, I will power the solenoid with the second relay channel.  I tried to read something, but I don't understand if a 4700μF 63VDC capacitor is ok for my circuit.    Links: ,   This is basically my circuit: I want to use a cheaper capacitor and I want to use a typical DC power source instead of the battery.


I can't uninstall matlab from my Ubuntu 14.04. When I run sudo apt-get purge matlab then it shows the matlab configuration page but when I cancel the installation process then it shows:  Reading package lists... Done Building dependency tree        Reading state information... Done Package 'matlab' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 148 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up matlab-support (0.0.19) ... No default Matlab path found. Exiting. dpkg: error processing package matlab-support (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  matlab-support E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I uninstall matlab?


if $f$ is continuous, $f(x)\ge 0$ and $\int_a^bf(x)\ dx = 0$, then $f(x) = 0$

I need toprove that:  If $f$ is continuous, $f(x)\ge 0$ for all $x\in [a,b]$, and  $$\int_a^bf(x)\ dx = 0$$  then $f(x) = 0, x\in [a,b]$  using , that is:  $$\underline{\int_{a}^b}f(x) dx =  \sup s(f, P)  = \sup \sum_{i=1, t_i \in P} m_i(t_{i}-t_{i-1})$$  where $m_i = \inf\{f(x), x\in [t_i, t_{i-1}]\}$  and  $$\overline{\int_{a}^b}f(x) dx =  \inf S(f, P)  = \inf \sum_{i=1, t_i \in P} M_i(t_{i}-t_{i-1})$$  where $M_i = \inf\{f(x), x\in [t_i, t_{i-1}]\}$.  And, $\int_a^b f(x) \ dx $ exists when the sup and inf integrals are equal, and its value is the value they take.  My reasoning is the following:  $$\int_a^b f(x) \ dx = 0 \implies \underline{\int_a^b} f(x) \ dx = 0 \implies$$  $$\sup \sum m_i(t_i-t_{i-1}) = 0$$  that is, the greatest value of the sum above is $0$, but since $f(x) \ge 0$, we must have that the sum above is $0$. This means that $m_i = 0$ in every interval $[t_i, t_{i-1}]$. For the $\overline{\int_a^b}$, we could think the same and arrive that $\inf \sum M_i (t_i-t_{i-1}) = 0 \implies M_i\ge 0$. But I don't know how to conclude that $f(x) = 0$, neither I know how to use the hypottesis that $f$ is continuous.   Also, I'm asked to show an example where the discontinuity of $f$ will lead to a negation of what I need to prove.


Select * into #tempTable from exec Command shows an error

I am executing the string that contains the below code  DECLARE @BadgeNo NVARCHAR(MAX); SET @BadgeNo='8107';  SELECT * INTO #Testing     EXEC spNotification 'Param1','Param2','Param3','Param4';  EXEC  spSqlTmpTblToHtmlTbl 'tempdb..#Testing'   I just want the result in html format. So I am executing spnotification to get the results.  The spSqlTmpTblToHtmlTbl converts the temp table to table format. But here is an issue that I can't create a temp table from spNotification result. I know   select * into    command won't work with the exec command. So how can I achieve this?


statistical method for finding significant numbers in a set

Suppose that we have a population of $N= 1000$ people and they want to select 5 items (for simplicity) $\{A, B, C, D, E\}$ (but actually number of items is in the order of thousands). Number of selections for items is $\{3, 142, 52, 633, 800\}$. Each person (selector) is free to select as many items as they want. Selecting of one item may affect for selection of another item by one person. For example, if items are goods in a supermarket, the first person may select items $A$ and $C$. The second person may select all items. We want to find “the minimum number of selections”, named $T$, so that if number of selections for an item is larger than $T$, we can say that item is interesting or popular for the population since at least $T$ people have selected that item. We want to find this number ($T$) by “a statistical method”. As an another example, for each item, we can assign a value to it by the percentage of people who have selected that item. So, we have a range of 0 (no person has selected it) to 100% (all people have selected that item). Definitely, 100% means popularity or significance for that item for the population. But We want to find what is the minimum percentage so that we can say that item is still popular. In other words, is the range of popularity from 20-100% or 10-100% or ....? We want to find a statistical measure for defining popularity of significance. Thanks.


So I have defeated about 5 or so dragons outside of solstheim and absorbed all their souls yet my Bend Will and other shouts still won't unlock. What do I need to do?


United States City/State comprehensive database

I have been searching online for a comprehensive record of all Cities by State in the United States.  When I searched I found some dead links to old data sets.  Where is the best place to find such a record online?


What is the latest iOS version for iPhone 4?

I want to download the latest iOS version for offline restore for my iPhone 4. I want to know what is the latest iOS version and how can I download it?


Where to put apostrophe after "their" when referring to plural noun?

Which one is correct? I'm not sure where to put the apostrophe on "phones":  This software allows iphone users to remotely access their phone's settings.  vs   This software allows iphone users to remotely access their phones' settings.


When should you push variables in quotes in boolean conditions?

Are the following two boolean expressions the same?  if [ -n $1 ] ; then  if [ -n "$1" ] ; then   If not - When should you put a variable in quotes?


Permission issue between Windows 10 host and Ubuntu 19.04 usiing VirtualBox

I have shared my Windows 10 home folder as a host in VirtualBox with my Ubuntu 19.04 guest OS. However, I cannot drill down into the Documents folder, because Ubuntu claims it does not have permission.  How do I grant permission for Ubuntu to drill down into all of these folders?


20 amp breaker with 12 gauge and 14 gauge wire

I am looking at replacing a couple of old, porcelain style single bulb fixtures in my basement with some 4 lamp fluorescent fixtures.  I am actually running new wire to the fluorescent fixtures from a 100amp sub panel in the basement, and not reusing then existing wiring that goes to the current light.  As I was taking the porcelain fixture down I discovered that there is 14 gauge wire going to it - ok.  There are 3 such fixtures in the basement.  There are also other things on this same breaker upstairs in the main living part of the house - 3 or 4 outlets that are on 12 gauge wire.  The breaker is a 20 amp breaker for all of these.  Is this ok to mix 14 & gauge wire like this?  If not, why did they do it?


This is question B4 in 1999 Putnam Exam. I would appreciate if somebody could help me with this.      Let $f(x),f'(x),f''(x),f'''(x)>0$ , $f'''(x)$ is a continuous function and $f'''(x)<f(x)$ on $\mathbb{R}$. Then show that   $$f'(x)<2f(x),~ \forall x\in \mathbb{R}.$$


After writing to NTFS partition from Ubuntu, Windows sees it as RAW

I have a dual boot on 2 SSDs: 1)Windows7 (main) 2)Ubuntu 17.10.  After copying a folder from Ubuntu to Windows NTFS partition and rebooting Windows stopped  recognizing this partition as NTFS (DISKPART shows RAW) and can't boot from it at all partition.  Chkdsk shows something like Corrupt master file table... cannot recover.  When I try to mount this partition under Ubuntu - it shows error message:   I tried to use ntfsfix, shows the same input:  sudo ntfsfix /dev/sdb2  Mounting volume... ntfs_mapping_pairs_decompress() failed: Input/output error Failed to load $MFT: Input/output error FAILED Attempting to correct errors... ntfs_mapping_pairs_decompress() failed: Input/output error Failed to load $MFT: Input/output error FAILED Failed to startup volume: Input/output error Checking for self-located MFT segment... OK Unrecoverable error Volume is corrupt. You should run chkdsk.   I tried TestDisk, didn't help  I created windows VM on my ubuntu and installed Acronis Revive on it, Acronis Revive allows to do scan and even quick scanning SHOWS ALL FILES AND FOLDERS and allow to restore it (saving to another drive), but how to restore the partition's MFT instead of cherry picking?  Please help!!!


Change keyboard shortcut for cycling application windows

Bear in mind this is a different issue to the following:   As I am looking to change the shortcut that cycles through different applications, rather than different windows of the same application.  So the keyboard that is currently ⌘ CommandTab  I can't see this listed anywhere in system preferences however? I've never had trouble customising keyboard shortcuts until I wanted to change this one


Is there any default return type for a function in C++?

I have recently read that the default return type for all functions in C++ is int. Googling this does not help me to confirm this.  So :   Is really the default return type for all functions in C++ int ? If not, then does any such default return type exists for functions in C++ ? If so, then what is it ?


how to separate one object into different parts?

I do not know exactly what I did, but I am a beginner/noob with Blender. When I select one shape all of the shapes have an orange outline. I don't really know but they are all somehow on the same line/tab. I wanna put them each back to their own tab. Look at the picture to see what I mean. 3 of the shapes have an orange outline when I click "cube" even though it should only be one cube. I wanna make each one its own line again. See how the cones are not selected, each cone has its own separate line/tab. I feel like it is really simple to fix, but it is probably a rare problem so I do not know how to fix it since I am new. Any help would greatly be appreciated.


Is there any way to script Windows 10's "color filter" feature programmatically?

I'm trying to get Windows 10 to emulate the new "Digital Wellbeing" feature that Google released alongside Android 9. Basically it changes the screen to grey-scale at night-time to try and incentivize people to get off their phone and go to sleep.  When I learned of Windows 10's "color filter" feature (which also allows you to set the color profile to grey-scale), I thought scripting this might be easy, but I can't seem to find a way to do this in a script directly.  At the moment, I basically have it working by turning on the Win+Ctrl+C toggle hotkey, and have a scheduled task set to run an AutoHotkey script that essentially hits those keys to trigger the shortcut. This works ok, but I'd like to be able to leave the shortcut key disabled so I don't accidentally hit it, or have such an easy way to disable the feature (and weaken the "Digital Wellbeing" effect). Also, the script has no way to know what the state of the setting is. If it runs twice, it undoes itself. Currently I don't have the machine scripted to unset the feature, but if I created a task to do that, and I shut the machine off before the nightly trigger, it might go grey-scale in the morning.  My question is to ask if there is any way I might be able to explicitly set "color filter on", or "color filter off" directly (via PowerShell, Batch, VBS, whatever) that doesn't depend on the shortcut key, and preferably that doesn't toggle?


I currently got the following piece of code:  captureFile = theCaptureFile;     // If there is only 1 currency it gets the total right away     if (captureFile.getTotalMoney().size() == 1) {         Money totalMoney = captureFile.getTotalMoney().values().iterator().next();         totalAmount  = totalMoney.getAmount();         currencyCode = totalMoney.getCurrencyCode();     }     // If there is more than one currency, goes through every one, converts it to GBP and adds it to the total amount     else if (captureFile.getTotalMoney().size() > 1) {         Map<String, Money> totals = captureFile.getTotalMoney();          for (Entry<String, Money> money : totals.entrySet()) {             try {                 totalAmount = totalAmount + money.getValue().getEquivalent(BASE_CURRENCY).getAmount();             }              catch (CurrencyNotFoundException e) {                 LOG.error("Getting ExchangeRate:", e);                 totalAmount = null;                 break;             }              catch (ExchangeRateNotFoundException e) {                 LOG.error("Getting ExchangeRate:", e);                 totalAmount = null;                 break;             }         }     }   When the code gets called, the first IF works just fine but, in case there are more than 2 currencies, I get a NullPointerException on the TRY bit. None of those methods have a return null so I'm guessing it is something wrong that I am doing on the mapping part to pull the values out.  Here are the other 2 methods that are pulled off:  public Money getEquivalent(String targetCurrencyCode) throws CurrencyNotFoundException,ExchangeRateNotFoundException {     if (this.currencyCode.equals(targetCurrencyCode))   {         return this;     }     return getEquivalent(CurrencyCache.get().getCurrency(targetCurrencyCode)); }   and:  public long getAmount() {     return amount; }   Any help would be greatly appreciated, any more info you might need just let me know.  Many thanks in advance.


Why do flies "rub" their front legs when resting?

I've noted that every time a house fly is resting on a surface, it appears to "rub" or "scrub" its front legs in a repetitive movement. And they do it continuously. Why?


X11: disable Shift+NumpadN outputing N when NumLock is off to have Shift+NumpadHome

I’m using GNOME 3.14.3 on ArchLinux.  If I press Shift+Home (regular Home) while the cursor is placed at the end of a line, the line gets selected. That’s expected.  If I press just the regular Home, it jumps to the beginning of the line.  If I press Numpad9 with NumLock turned off, it, too, works like Home → the cursor jumps to the beginning of the line.  HOWEVER, if I press Shift+Numpad9 with NumLock off, it… outputs “9”.  Now, I can see how this can be useful to some, but how do I turn off this behavior of outputting N, when Shift+NumpadN is pressed? I’d rather have it behave like Shift+Home.


Some issues with timezones in PHP have been in the back of my mind for a while now, and I was wondering if there are better ways to handle it than what I'm currently doing.  All of the issues revolve around reformating database stored dates:  When dealing with a site that has to support multiple timezones (for users), to normalize the timezone offest of stored timestamps I always store it with the server timezone using the CURRENT_TIMESTAMP attribute or the NOW() function.   This way I don't have to consider what timezone was set for PHP when the timestamp was entered (since PHP time functions are timezone aware). For each user, according to his preference I set the timezone somewhere in my bootstrap file using:  date_default_timezone_set($timezone);   When I'm looking to format dates with the php date() function, some form of conversion has to take place since MySQL currently stores timestamp in the format Y-m-d H:i:s. With no regard to timezone, you could simply run:  $date = date($format,strtotime($dbTimestamp));   The problem with this is that date() and strtotime() are both timezone aware functions, meaning that if the PHP timezone is set differently from the server timezone, the timezone offset will apply twice (instead of once as we would like).  To deal with this, I usually retrieve MySQL timestamps using the UNIX_TIMESTAMP() function which is not timezone aware, allowing my to apply date() directly on it - thereby applying the timezone offset only once.  I don't really like this 'hack' as I can no longer retrieve those columns as I normally would, or use * to fetch all columns (sometimes it simplifies queries greatly). Also, sometimes it's simply not an option to use UNIX_TIMESTAMP() (especially when using with open-source packages without much abstraction for query composition).  Another issue is when storing the timestamp, when usage of CURRENT_TIMESTAMP or NOW() is not an option - storing a PHP generated timestamp will store it with the timezone offset which I would like to avoid.  I'm probably missing something really basic here, but so far I haven't been able to come up with a generic solution to handle those issues so I'm forced to treat them case-by-case. Your thoughts are very welcome


python - try to update element in a 2D list

class Solution:     def gameOfLife(self, board):         return self.livingNeighbors(board)      def livingNeighbors(self, board):         m = len(board)         n = len(board[0])         nLivingNeighbor = [[0]*n]*m         neighbors = [(-1,-1),(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1)]         for i in range(m):             for j in range(n):                 n_liv = 0                 for r,c in neighbors:                     row = i + r                     col = j + c                     if (0 <= row < m) and (0<= col < n) and (board[row][col] == 1):                         n_liv += 1                 print("n_liv = " + str(n_liv))                 nLivingNeighbor[i][j] = n_liv         print(nLivingNeighbor)          for i in range(m):             for j in range(n):                 if board[i][j] == 1:                     if nLivingNeighbor[i][j] < 2 or nLivingNeighbor[i][j] > 3:                         board[i][j] = 0                 if board[i][j] == 0 and nLivingNeighbor[i][j] == 3:                     board[i][j] = 1         return board   I tried to update the elements in 2d list nLivingNeighbor by using nLivingNeighbor[i][j] = n_liv  And I used [[0,1,0],[0,0,1],[1,1,1],[0,0,0]] to test the code. The result turned out to be  n_liv = 1 n_liv = 2 n_liv = 3 n_liv = 5 n_liv = 3 n_liv = 1 n_liv = 3 n_liv = 2 n_liv = 2 n_liv = 3 n_liv = 2 [[2, 3, 2], [2, 3, 2], [2, 3, 2], [2, 3, 2]]   n_livupdated in each iteration, however, all rows of nLivingNeighbor are the same. Is it because I didn't apply deep copy? How can I fix it?


Modular exponentiation with exponent that has repeating pattern

If i have to count a large exponent modulo N, that has some repeating pattern. Is there some way how to simplify the exponent before actually counting the remainder?   $131^{123456789876543212345678987654321 } \;(mod \;12)$


Javascript regex to replace special characters

How to replace these symbols "ąčęėįšųūž" with these symbols "aceeisuuz" in javascript? I know I need to use regex, but I can't make pattern.  this is what I have  var string = $(this).val();         string = string.replace(/\s+/g, '-').toLowerCase();         string = string.replace(/[^a-zA-Z0-9-]/g,'_');         string = regExp something here...      $("#custom_url").val(string);   UPDATE:  found this solution in other thread:  function convert_accented_characters(str){     var conversions = new Object();     conversions['ae'] = 'ä|æ|ǽ';     conversions['oe'] = 'ö|œ';     conversions['ue'] = 'ü';     conversions['Ae'] = 'Ä';     conversions['Ue'] = 'Ü';     conversions['Oe'] = 'Ö';     conversions['A'] = 'À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ';     conversions['a'] = 'à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª';     conversions['C'] = 'Ç|Ć|Ĉ|Ċ|Č';     conversions['c'] = 'ç|ć|ĉ|ċ|č';     conversions['D'] = 'Ð|Ď|Đ';     conversions['d'] = 'ð|ď|đ';     conversions['E'] = 'È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě';     conversions['e'] = 'è|é|ê|ë|ē|ĕ|ė|ę|ě';     conversions['G'] = 'Ĝ|Ğ|Ġ|Ģ';     conversions['g'] = 'ĝ|ğ|ġ|ģ';     conversions['H'] = 'Ĥ|Ħ';     conversions['h'] = 'ĥ|ħ';     conversions['I'] = 'Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ';     conversions['i'] = 'ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı';     conversions['J'] = 'Ĵ';     conversions['j'] = 'ĵ';     conversions['K'] = 'Ķ';     conversions['k'] = 'ķ';     conversions['L'] = 'Ĺ|Ļ|Ľ|Ŀ|Ł';     conversions['l'] = 'ĺ|ļ|ľ|ŀ|ł';     conversions['N'] = 'Ñ|Ń|Ņ|Ň';     conversions['n'] = 'ñ|ń|ņ|ň|ŉ';     conversions['O'] = 'Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ';     conversions['o'] = 'ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º';     conversions['R'] = 'Ŕ|Ŗ|Ř';     conversions['r'] = 'ŕ|ŗ|ř';     conversions['S'] = 'Ś|Ŝ|Ş|Š';     conversions['s'] = 'ś|ŝ|ş|š|ſ';     conversions['T'] = 'Ţ|Ť|Ŧ';     conversions['t'] = 'ţ|ť|ŧ';     conversions['U'] = 'Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ';     conversions['u'] = 'ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ';     conversions['Y'] = 'Ý|Ÿ|Ŷ';     conversions['y'] = 'ý|ÿ|ŷ';     conversions['W'] = 'Ŵ';     conversions['w'] = 'ŵ';     conversions['Z'] = 'Ź|Ż|Ž';     conversions['z'] = 'ź|ż|ž';     conversions['AE'] = 'Æ|Ǽ';     conversions['ss'] = 'ß';     conversions['IJ'] = 'Ĳ';     conversions['ij'] = 'ĳ';     conversions['OE'] = 'Œ';     conversions['f'] = 'ƒ';      for(var i in conversions){         var re = new RegExp(conversions[i],"g");         str = str.replace(re,i);     }      return str; }


Comma as decimal marker with siunitx (Spanish usage)

I'm using siunitx to input some big numbers and units in my document.  Is there a way to make the output of \num{3.14} be "3,13" instead of "3.13"? In Spanish, we use the first one.


Ubuntu 13.10 does not boot after successful installation: 'all boot options are tried'

I am new to Ubuntu and Linux.  I installed Ubuntu 13.10 64-bit on my new Samsung Ativ (4 GB memory / Quad Core 1.4 GHz processor / AMD Radeon HD8250 graphic card / 128 G SSD).  The first time all went well, except for graphics issues, which I was able to fix by installing fglrx.  After an update something went wrong, I couldn't log in anymore and could only work with a guest account. After trying to fix that, I decided to reinstall Ubuntu.  This won't work, as after installation and rebooting all I see is All boot options are tried, press F4 for Recovery mode. Pressing F4 didn't change anything. If I reinstall, I see that Ubuntu is installed and am asked if I want to reinstall, install alongside 13.10 or erase and install.  After installing, the whole thing repeats, "all boot options are tried" after rebooting.  Pressing shift while booting didn't help.   What went wrong?


I looking to convert a word document to latex. I know this has been asked before but this was a few years ago and there may be new software etc. I have seen the Word-to-latex software. Has anyone used this? Thanks for any help!


On Download Menu it says Download Ubuntu desktop and replace your current operating system whether it’s Windows or Mac OS or run Ubuntu alongside it.  So I was wondering if it means that Ubuntu will remove Windows(Meaning I will not have access to it "anymore") or it won't and it will be used as "Option" choices when powering on PC?


E.coli divides in 20 minutes and its DNA replicates in 38 minutes .Kindly explain.


Ok so I got as far as getting the colors I want, and making them gradient. Now my question is how do I get the colors to wrap around a circle mesh like the rings around a planet? Im guessing it has something to do with mapping?


Is the Moonbeam spell amazing, or are we doing it wrong?

The description of the moonbeam spell (PHB pg. 261) says:  When a creature enters the spell's area for the first time on a turn or starts its turn there, it is engulfed in ghostly flames that cause searing pain... On each of your turns after you cast this spell, you can use an action to move the beam 60 feet in any direction.  We read this to mean a creature takes damage from moonbeam when any of the following conditions are met:  It begins its turn inside the moonbeam It enters the moonbeam on its turn The creature finds itself inside the beam on another character's turn, no matter how it got there  The creature will not take damage in the following instances:  A creature moves from one part of the beam to another (obviously it had to take damage, but it won't take more damage) A creature is in the beam after having been inside the beam already on that turn.  Following these assumptions, our druid cast a moonbeam and did damage to two enemies, Bob and Frank. On their turn, they took damage again, killing Bob. Frank left the beam. On the druid's next turn, she moved the beam in a circular motion, not exceeding 60 total feet of movement, and in the process the beam came in contact with a dozen enemies and ended on Frank. All dozen enemies received damage, as they were inside the beam at some point during the turn. On Frank's next turn, he again took damage for the fourth time and died. On each of the druid's turns, she moved the moonbeam around like this until the fight ended (it did not exceed the time limit and she made all concentration checks). Is this a legitimate use of moonbeam? It seems awfully powerful for a level 2 spell.


Interesting and unexpected applications of $\pi$

$\text{What are some interesting cases of $\pi$ appearing in situations that do not seem geometric?}$  Ever since I saw the identity $$\displaystyle \sum_{n = 1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$$  and the generalization of $\zeta (2k)$, my perception of $\pi$ has changed. I used to think of it as rather obscure and purely geometric (applying to circles and such), but it seems that is not the case since it pops up in things like this which have no known geometric connection as far as I know. What are some other cases of $\pi$ popping up in unexpected places, and is there an underlying geometric explanation for its appearance?  In other words, what are some examples of $\pi$ popping up in places we wouldn't expect?


Designing issues with edited user at programmers

I recently go through this website and i found designing issue with edited user check 178 of yannis its collision with pankaj      Is this a issue i have 1024 resolution


How can I form a bijection between $\mathcal P(A)$ and $2^A$.

I am having trouble getting started with this particular problem.  Let $A$ be a nonempty set, and let $\mathcal{B}$ be the set of all functions $f:A\to\{0,1\}$. Show that $\mathcal{B}\sim\mathcal{P}(A)$; that is, construct a bijection $\phi: \mathcal{B} \rightarrow \mathcal{P}(A)$.   Faced with this problem, I know that the power set contains all subsets of $A$. Now, does that mean all possible combinations of the functions which map to $\{0,1\}$? Also, does the fact that the characteristic function is associated with the power set have anything to do with the problem? Thanks.


How could Dumbledore see Harry under the Invisibility cloak?

I've had a look, and while there are many similar questions, they ask about the Marauder's Map or Nagini or some other such magically enhanced object/creature. My question is specifically about Dumbledore, an otherwise ordinary (If very powerful) human wizard.  In Philosopher's Stone, Dumbledore looks directly at Harry and Ron in Hagrid's hut. The Invisibility Cloak is supposedly able to hide the wearer from Death himself and yet Dumbledore just looked right into their eyes like the cloak wasn't there.  I can't think how he was able to do that. Was it a spell? Or is he so awesome that he can psychically just know?


Backup my entire Ubuntu OS image like Norton Ghost used to. A GUI friendly and free method would be preferred

I would like to backup my Ubuntu OS (I just got it all configured VBox additions and a couple VM's) and need a snapshot of it in the event something goes wrong. A simple GUI and free way would be preferred, in the past I have used Ghost on Windows ... but not sure the same/similar in Ubuntu land.  I have read many posts but most all of them are old and I'm looking for the best way to do this. Thanks


How can I calculate percent error with a denominator of 0?

I am using the MAPE formula, ABS(actual-forecast)/actual *100, but this raises problems when the actual values are zero. Is it possible to add 1 to the denominator and calculate this way? Would I get accurate percent error data, as long as I am consistent with the formula? Any ideas are appreciated, thank you


How do I show that $\text{tr}(A^{\dagger} B) = \langle m | A \otimes B |m\rangle $ for general matrices $A$ and $B$?

I am desperately trying to solve the following problem, and would really appreciate help!  Suppose $R$ and $Q$ are two quantum systems with the same Hilbert space $\mathcal{H}$ with $\dim(\mathcal{H})=N$. Let $|i_R\rangle$ and $|i_Q\rangle$ be orthonormal basis sets for $R$ and $Q$. Let $A$ be an operator on $R$ and $B$ an operator on $Q$. Define $|m\rangle := \sum_{i=1}^N |i_R\rangle\otimes |i_Q\rangle$. Show that $$ tr(A^\dagger B)=\langle m|A\otimes B| m\rangle $$  where the multiplication on the left hand side is of matrices, and it is understood that the matrix elements of $A$ are taken with respect to the basis $|i_R\rangle$ and those for $B$ with respect to the basis $|i_Q\rangle$.  What I have is the following:  LHS: $$ tr(A^\dagger B)=\sum_{n=1}^N \langle n_Q|\left( \sum_{i,j,k=1}^N a^*_{ji}b_{jk} |i_Q\rangle \langle k_R| \right)|n_R\rangle $$  Since $Q$ and $R$ are over the same Hilbert space, we can disregard the fact that one set of basis vectors is in system $Q$ and the other one in system $R$.  This yields $$ tr(A^\dagger B)=\sum_{i,j=1}^N a^*_{ji} b_{ji} $$  RHS: $$ \begin{align*} \langle m'|(A\otimes B)|m\rangle &= \sum_{e,f=1}^N \Bigg( \langle e_R| \left( \sum_{k,l=1}^N a_{kl} |k_R\rangle \langle l_R\right) |f_R\rangle \cdot \langle e_Q|\left(\sum_{i,j=1}^N b_{ij}|i_Q\rangle\langle j_Q| \right)|f_Q\rangle\Bigg)\\ &=\sum_{e,f,k,l,i,j=1}^N a_{kl} b_{ij}\langle e_R |k_R \rangle \langle l_R|f_R \rangle \langle e_Q|i_Q \rangle\langle j_Q|f_Q \rangle\\ &=\sum_{i,j=1}^N a_{ij} b_{ij} \end{align*} $$  As you can see, the two expressions are almost the same. Only the first number on the LHS evaluation is a complex conjugate and on the RHS it's not.   Any ideas where I went wrong?  Thanks!  P.S: Full disclosure: I posted this question on PhysicsForum.com as well.


What's the best way to serialize data in a language-independent binary format?

I'm looking into a mechanism for serialize data to be passed over a socket or shared-memory in a language-independent mechanism.  I'm reluctant to use XML since this data is going to be very structured, and encoding/decoding speed is vital.  Having a good C API that's liberally licensed is important, but ideally there should be support for a ton of other languages.  I've looked at  and .  Am I on the right track?  Is there something better?  Should I just implement my own packed structure and not look for some standard?


I am currently using 19.04 and I got "No new release found for 19.10"

As you can see in the image above, I tried to update to 19.10 and it says that   No new release found   I checked the /etc/update-manager/release-upgrades to see if the Prompt is LTS but it is still normal.  What would be your advice?  UPDATE: I already updated the system to 19.10. Thank you very much for the advices.


While loop with a scanner never satisfies condition

public class ex1 {  public static void main(String[] args) {     // TODO Auto-generated method stub     System.out.println("Please enter a series of strings each followed by the enter key. When you'd like to end thr program simply type 'quit': \n");     Scanner scan = new Scanner(System.in);      ArrayList<String> inputList = new ArrayList<String>(); // creates a list to store user input      String input = scan.nextLine(); //takes the scanner input     while(input != "quit") { //makes sure its not equal to quit         //System.out.println(input);         inputList.add(input);         input = scan.nextLine();     }     scan.close();            System.out.println("The number of strings enetered was: " + inputList.size());     System.out.println("The strings you entered were as follows");     for (String i: inputList) {         System.out.println(i);      }   } }  I'm trying to use the preceding code to take a series of inputs from a user using the enter key and if they enter quit I end the program. However the condition is never satisfied and the while loop never ends and I can't understand why


Considering only Black Holes that form due to gravitational collapse since the big-bang, wouldn't it be true that that have not (in our reference frame), in fact, formed a singularity or even much of the interior of the black hole given GR time dilation?


Bind Dynamically Created Bitmap object to Image in WPF

I have a bitmap object that is not a static resource. Normally, with image binding in WPF you can bind to a string path. However, I have a dynamically created bitmap object that I would like to bind to. Is it possible to do something like:  <WrapPanel x:Name="imageWrapPanel" HorizontalAlignment="Center">     <Image Source="{Binding Material1}" Margin="10" />     <Image Source="/NightVision;component/Images/concrete_texture.tif" Margin="10" /> </WrapPanel>   And in the code behind file I have a public accessor:  public Bitmap Material1 {      get      {           return new Bitmap(/* assume created somewhere else*/)      }  }   The above is obviously not working however, is there a way to do something similar?


Are the Hogwarts Potion Books intentionally misleading?

They don't seem to be giving the correct instructions in concocting the potions- as seen when Hermione isn't able to make her draught in Slughorn's class.


Can this be proved using definite integrals

It's a problem from a high school math book that I've been unable to solve:     Prove using definite integrals that,  $${n \choose 1}-\frac{1}{2}{n \choose 2}+\frac{1}{3}{n \choose 3}-...+(-1)^{n-1}\frac{1}{n}{n \choose n}=1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}$$   I've tried using binomial expansions but to no avail. I cannot see any other approach to it using definite integrals. Although I am not sure if this is true. So, if one cannot prove it, can you please at least give me some numerical evidence of its correctness. A proof will be much better though.


When we ask for permission, what shall we use "May" or "Can"?

Can I give to them your emailaddress  May I give to them your emailaddress


How to send group mail in Outlook to multiple recipients, but have each recipient see their own name?

I would like to know how to send an e-mail in Outlook 2003 to a group of recipients in which each recipient will see only himself in "TO" field. You can see an example below;


Can't change mouse influence in proportional editing mode

I press O and I see it change to Proportional Editing mode, but when I press G and mouse wheel down/up, or arrow keys down/up, it doesn't change the influence area.    And I am, I press G and then I tried to scroll to change influence, but it's not working.    Done this aswell and it's not working


I don't want to show my email address in my Stack Overflow profile. I have removed my email address by editing my profile and saving it.  After some time (time is random, sometimes a day, sometimes within couple of hours) my email address is showing up again.  How can I hide my email address?


Need for a side book for E. Soper's Classical Theory Of Fields

I am reading now E. Soper, Classical Theory Of Fields, now and sometimes it is very hard to follow the equations. So I need a side book on  to read it comfortably. Landau & Lifshitz's book is not helping as its content and topics are very much different.


Install Broadcom Wireless Drivers PCI ID 4464

I have Ubuntu 18.04 running on an iMac 27 inch 2019 model. Works fine (had to blacklist thunderbolt in the boot options) but Broadcom Card not working. I followed the instructions  desipte my PCI ID not being listed. Output of lspci -vnn | grep Network is Network controller [0280]: Broadcom Inc. and subsidiaries BCM4364 802.11ac Wireless Network Adapter [14e4:4464] (rev 03)  Is there any support for this? EDIT: As requested the output from sudo modprobe brcmfmac && dmesg | grep brcm [    4.738706] usbcore: registered new interface driver brcmfmac [    4.738726] brcmfmac 0000:03:00.0: enabling device (0000 -> 0002) [    4.844774] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4364-pcie for chip BCM4364/3 [    4.851663] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac4364-pcie.bin failed with error -2 [    4.884406] Modules linked in: snd_intel_dspcfg snd_usb_audio snd_hda_codec intel_rapl_common snd_hda_core applesmc(+) snd_usbmidi_lib mc snd_hwdep snd_pcm x86_pkg_temp_thermal iommu_v2 intel_powerclamp gpu_sched coretemp snd_seq_midi ttm snd_seq_midi_event drm_kms_helper snd_rawmidi kvm_intel cec snd_seq rc_core kvm drm snd_seq_device crct10dif_pclmul brcmfmac snd_timer crc32_pclmul ghash_clmulni_intel aesni_intel hci_uart i2c_algo_bit crypto_simd fb_sys_fops snd btqca cryptd syscopyarea cdc_ether glue_helper brcmutil sysfillrect mei_me btrtl usbnet rapl apple_mfi_fastcharge(+) mii sysimgblt cfg80211 soundcore acpi_als intel_lpss_pci btbcm mei intel_cstate intel_pch_thermal intel_lpss btintel idma64 kfifo_buf bluetooth virt_dma efi_pstore industrialio apple_bl ecdh_generic ecc acpi_tad mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_apple hid_generic usbhid hid ses enclosure scsi_transport_sas uas usb_storage sdhci_pci nvme cqhci tg3 xhci_pci ahci sdhci [    4.884440]  brcmf_fweh_detach+0x19/0x70 [brcmfmac] [    4.884444]  brcmf_detach+0xa0/0x160 [brcmfmac] [    4.884449]  brcmf_pcie_remove+0x78/0x140 [brcmfmac] [    4.884457]  brcmf_pcie_setup+0x25/0x370 [brcmfmac] [    4.884461]  brcmf_fw_request_done+0x73/0x100 [brcmfmac] [    4.884481] WARNING: CPU: 13 PID: 191 at drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c:309 brcmf_fweh_detach+0x63/0x70 [brcmfmac] [    4.884481] Modules linked in: snd_intel_dspcfg snd_usb_audio snd_hda_codec intel_rapl_common snd_hda_core applesmc(+) snd_usbmidi_lib mc snd_hwdep snd_pcm x86_pkg_temp_thermal iommu_v2 intel_powerclamp gpu_sched coretemp snd_seq_midi ttm snd_seq_midi_event drm_kms_helper snd_rawmidi kvm_intel cec snd_seq rc_core kvm drm snd_seq_device crct10dif_pclmul brcmfmac snd_timer crc32_pclmul ghash_clmulni_intel aesni_intel hci_uart i2c_algo_bit crypto_simd fb_sys_fops snd btqca cryptd syscopyarea cdc_ether glue_helper brcmutil sysfillrect mei_me btrtl usbnet rapl apple_mfi_fastcharge(+) mii sysimgblt cfg80211 soundcore acpi_als intel_lpss_pci btbcm mei intel_cstate intel_pch_thermal intel_lpss btintel idma64 kfifo_buf bluetooth virt_dma efi_pstore industrialio apple_bl ecdh_generic ecc acpi_tad mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_apple hid_generic usbhid hid ses enclosure scsi_transport_sas uas usb_storage sdhci_pci nvme cqhci tg3 xhci_pci ahci sdhci [    4.884496] RIP: 0010:brcmf_fweh_detach+0x63/0x70 [brcmfmac] [    4.884505]  brcmf_detach+0xa0/0x160 [brcmfmac] [    4.884509]  brcmf_pcie_remove+0x78/0x140 [brcmfmac] [    4.884515]  brcmf_pcie_setup+0x25/0x370 [brcmfmac] [    4.884519]  brcmf_fw_request_done+0x73/0x100 [brcmfmac] [    5.641108] Bluetooth: hci0: BCM: 'brcm/BCM.hcd'


I know bounties on questions help in getting answers. But it is also possible that some people award bounties to get perfect answers but after getting the answer they do not accept it. Has this happened before? Can we do this? Legal or not?


If I make changes in the template I use for a product page, do I need to update all  tags for all product pages in my sitemap.xml?

I'm currently building a sitemap for my web app.  Note: my app is a single page app built with React and Firebase.  Basically I wan to index blogPost and product pages. So I intend to generate my sitemap dynamically (on server). It's a small website (around 500 pages).  I want to build something like this:  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">   <url>     <loc>       https://www.myproject.org/blog/some-blog-post-slug     </loc>     <lastmod>2019-11-14T20:22:43.502+00:00</lastmod>     <changefreq>weekly</changefreq>     <priority>0.8</priority>   </url>   <url>     <loc>       https://www.myproject.org/dp/some-product-slug     </loc>     <lastmod>2019-11-15T13:08:52.127+00:00</lastmod>     <changefreq>weekly</changefreq>     <priority>0.8</priority>   </url> </urlset>   And I keep the following properties in my database, both for blogPosts and products:  createdAt: <Timestamp> lastModifiedAt: <Timestamp>  // UPDATED EVERYTIME I UPDATE THE RECORD   And I'm thinking about using my lastModifiedAt value as the <lastmod> tag for the sitemap.  So far, so good! Everytime I update my blogPost or product objects in my database. The next time the sitemap is requested, the new modifiedDate will show on those that have been changed.  QUESTION  But what if I make a change not in the database itself, but in the way I render all the product pages, for example.  Imagine that I've added some structured data tags to display rich results on google, with price, reviews etc. So my product info is the same, but from that point on, all of my product pages will render those extra tags that I need to be re-indexed.  Example (add a structured data tag with the product price):

   In that situation, will I have to update all <lastmod> for all the products? How Google will know that it needs to re-crawl those pages and be able to see the structured data tags?  What if I change only the styles for the productPages? Do I have to update the <lastmod> for every product in this case?


Why do I get two different behaviours depending on how I create 2D Arrays in python

I'm trying to edit a value in a 2D array.   Just the value at [0][0] but when I edit it, it propagates to all the values at [x][0] and I don't understand why.   I then copied the exact line from an example that I found online and it works but I don't understand what the difference is.   I simplified both examples and they still don't have the same solutions. This doesn't add up.   counter= 3*[4*[0]] counter[0][3] = 7 print(counter)  T = [[0, 0, 0, 0], [0, 0,0,0], [0, 0, 0, 0]] T[0][3] = 7 print(T)   the top print statement gives: [[0, 0, 0, 7], [0, 0, 0, 7], [0, 0, 0, 7]]  the bottom gives:  [[0, 0, 0, 7], [0, 0, 0, 0], [0, 0, 0, 0]]  but they should be the same.


Can I damage my Sony a6300 sensor if the sun is in my photo?

I took a few photos this weekend of a mountain range, and the sun was up above them, off to the top right for most of the photos. I was taking these photos (moving the angle around and whatnot) for about 5 minutes in total. Would this damage the sensor, or is it more like "don't aim the camera directly at the sun"?


Why does the index keep going out of bounds even when validations?

This is the movement of the random robot, if it hits the wall (*), the line or colune should return to the previous value, right? Since I'm incrementing and decrementing if it happens, basically it checks if it's a wall or not. It keeps doing the loop till the "S", turns into a "R". R is the robot S is the exit.         int linha = 1, coluna = 1;         while (labirinto[7][7] != "R") {             int aleatorio = randomGenerator.nextInt(4);             System.out.println(aleatorio);             switch(aleatorio)             {             case 0://cima                 if(labirinto[linha--][coluna] == "*")                 {                     linha++;                     break;                 }                 else labirinto[linha][coluna] = "R";                 break;             case 1:                 if(labirinto[linha++][coluna] == "*")                 {                     linha--;                     break;                 }                 else labirinto[linha][coluna] = "R";                 break;             case 2:                 if(labirinto[linha][coluna++] == "*")                 {                     coluna--;                     break;                 }                 else labirinto[linha][coluna] = "R";                 break;             case 3:                 if(labirinto[linha][coluna--] == "*")                 {                     coluna++;                     break;                 }                 else labirinto[linha][coluna] = "R";                 break;             }             imprimirLabirinto(labirinto);         }     }  This method just prints the updated maze.     static void imprimirLabirinto(String[][] labirinto) {         for (int i = 0; i < labirinto.length; i++) {             for (int j = 0; j < labirinto[i].length; j++) {                 System.out.print(labirinto[i][j] + " ");             }             System.out.println();         }         System.out.println("\n");     }  The issue I don't understand is why it keeps going out of bounds, with the validations I got in the switch, why does it keep going to the wall. Also if I increment the variables in the else statement, it doubles the movement, which shouldn't happen since it doesn't hit a wall right?


How do I make Div Container 100% width only on homepage of site?

#container {     width: 75%;     float: right; }   If I change the width to %100 it affects the entire site, i just want the homepage to be at 100% width and all other pages with sidebar 75%


True of false? Every subgroup of a simple group is itself simple. May i also get some examples on this as well to verify my answer.


I'm making a presentation and want to insert a comment, like a pop up comment, which contains some equations in math style. For example:  \documentclass{beamer}  \usepackage{pdfcomment}  \begin{document}    go back to the last equation. \pdfcomment{$x^{2}+2x-1=0$ }  \end{document}   My problem is that the equation above doesn't appear in the math style  $ x^{2}+2x-1=0.$  Is there another way to do this?


On what site can I ask questions related to copyright?

I want to make a summary of a book and use it to earn money. However, I don't know whether it's legal or not.  Which Stack Exchange site can I ask this question on?


What can I do if everything with my 55-200mm macro lens is suddenly entirely blurry and the camera won't take pictures?

I have a brand new Nikon D5500.  The 55-200mm macro lens is not working properly as far as I can tell.  It was acting funny the other day when I was trying to take pictures. The pictures were coming out a little blurry. I tried to use it today and it is not capturing whatsoever. There is no image and everything is extremely blurry.  I tried putting on the 18-55mm lens and it took pictures just fine. I changed the battery just to make sure, but when I put the macro lens back on my camera I get nothing. I put it on auto, like I always use mostly. It makes a bunch of noise like it's trying to focus when I partially push down the button to take the picture. Could there be something wrong with the lens already?  I've only had this camera for less than two weeks. It was taking great pictures with both lenses previous to today. Am I missing something like a setting or whatever?


Will the kinetic energy and potential energy of a wave on a string be maximum or minimum in its mean position?

According to the answer key, the kinetic as well as potential energy is maximum in the mean position. I am unable to understand the reason behind this. Please explain.


Arithmetico-geometric mean and recurrence: prove the two sequences have the same limits

the sequences $(x_n)_{n\geq 1}$ and $(y_n)_{n\geq 1}$ are given by:  $$\begin{align} x_1&=a \\ y_1&=b \\ x_{n+1}&= \sqrt{x_ny_n}\\  y_{n+1}&=\frac{x_n+y_n}{2} \end{align}$$  Prove that both sequences have equal limit $\lim_{n\to\infty} x_n = \lim_{n\to\infty} y_n$.  I cant use AM-GM because i dont know if that x(n) or y(n) are positive


How do i address no.8&9 reasons for scheghen visa denial

I would like to re-apply for a Schengen visa after my application was rejected two weeks ago. It should be noted I am employed on contract which is renewable every year. I am not married and have no kids, neither do I have property. I am an administrative assistant earning $207.45 per month. Personal savings amounting to $3,268.85 and $1,595.35 on my salary account. I submitted these documents for my first Schengen application but I was denied. I must say I messed up during the phone interview;   Days to be spent in Finland: I said 10 working days but my application said 14 days Purpose of visit: I said wanted to go to the Santa clause village, visit my friend and other places. But my main purpose was to visit a friend I had not seen in 10 years. They asked me how much I earn and whether it was before tax or after tax Why I wanted to visit this friend of mine after 10 years   I noticed when I was applying I did not put a cover letter, payslips and employment contract plus messing up the phone interview.  I received the refusal letter stating;   Your intention to leave the territory of the member states before expiry of the visa could not be ascertained. Information submitted regarding the justification for the purpose and condition of the intended stay were not reliable.   I would like to reapply soon but how do I address these two reasons in order to get my visa application approved? Plus how should I write my cover letter addressing these issues?  Documents submitted were: employment letter, Application letter, Passport photos, Photos of me and my friend, bank statement(with $1,861),Travel insurance, travel literary, invitation letter from host, his copy of passport, permanent residence card, my national id, passport travel history, leave form.


Dual USA and UK travelling to USA for funeral - expired USA passport

I’m travelling to the USA on Monday for a sudden and unplanned funeral. I have just realised that my USA Passport is expired- only just (June 15 2019). I do have my UK Passport which is in date and valid but I am unsure of what might happen if I travel into USA on UK. I ca obviously arrange to fill an ESTA and I also have a valid USA Driving license. What do you recommend? Should I just chance it and travel in as a UK citizen?


Using `fueloauth` token for Marketing Cloud SOAP API in WCF applications

In this article:  all the examples use username and password for authentication with Marketing Cloud SOAP API: // Create the binding BasicHttpBinding binding = new BasicHttpBinding(); binding.Name = UserNameSoapBinding; binding.Security.Mode = BasicHttpSecurityMode.TransportWithMessageCredential; binding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;  // Set the transport security to UsernameOverTransport for Plaintext usernames EndpointAddress endpoint = new EndpointAddress(https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx);  // Create the SOAP Client (and pass in the endpoint and the binding) SoapClient etFramework = new SoapClient(binding, endpoint);  // Set the username and password etFramework.ClientCredentials.UserName.UserName = username; etFramework.ClientCredentials.UserName.Password = password;  My .NET Core application doesn't have username and password, but has a client id and a secret, so it has to send a request with the fueloauth token as it is described here : <soap:header>   <fueloauth>YOUR_ACCESS_TOKEN</fueloauth> </soap:header>  How can I use the fulloauth token instead of the username and password? I could always write a code that will build an XML request like , but I am looking for a way to use the SoapClient for this or for any other good library if using the standard SoapClient is not possible in this case.


Can't input (č ć š ž đ ) in python 2.7.x console

So , I've searching trough internet and it is so frustrating. When I try to search I get explanations on how to unicode decode and encode files. But I'm not interested in that. I know this is possible since I was able to do that. I don't know what happened. Also, I've tried reinstalling python. Changing the options under the configure IDLE etc. On my laptop there are no problems at all. I can do this:  >> a = 'ć' >> >> print a >> ć   And on my PC I get:   >> a = 'ć'  >> Unsupported characters in input   I repeat, I'm not talking about encoding in the program. I'm talking about Python console, and it works on my laptop and worked on my previous machines. There's got to be a solution to this issue.  Also, take look at this:  >>> a = u'ç' >>> a u'\xe7' >>> print a ç >>> a = u'ć' Unsupported characters in input  >>>


Easy way to toggle between displaying piece-wise slides. Compact for preparation and expanded for presentation?

Suppose I want to use a beamer presentation with lots of piecewise slides e.g., <1->, <2->, etc. During preparation, want to toggle them all off so that the output is compact and easier to edit. Then for presentation, I'm hoping to toggle them all on by changing one line of code for presentation so that the output is expanded (i.e., one slide for each piecewise part).  \documentclass{beamer}  \begin{document}  \begin{frame} \begin{align*}     \onslide<1->{a &= b \\}     \onslide<2->{b &= c \\}     \onslide<3>{\Rightarrow \quad      a &= c} \end{align*} \end{frame}  \end{document}


regex split string without considering spaces in quotes

string = 'protein219 Info=Acidfast Name="Mycobacterium   smegmatis" pcp=36789'   I would like to split the string ignoring  the whitespaces between  "" . I am using the below regex to split the line   mystring = [s for s in re.split("( |\\\".*?\\\"|'.*?')", mystring) if s.strip()]    Which gives me the result as   ['protein219', 'Info=Acidfast', 'Name=' , '"Mycobacterium  smegmatis"', 'pcp=','36789']   Expected Output:  ['protein219', 'Info=Acidfast', 'Name="Mycobacterium   smegmatis"',' pcp=36789']   please provide your suggestion


validate phone number in format (123) 456-7891

I want to validate a phone number and am using the following regex, although it isn't working.    function validPhoneNumber(phoneNumber) {   const pattern = /^(\()?\d{3}(\))?(-|\s)?\d{3}(-|\s)\d{4}$/   return pattern.test(phoneNumber); }  console.log(validPhoneNumber("(123) 456-7890")); //should return true console.log(validPhoneNumber("(1111)555 2345")); // should return false console.log(validPhoneNumber("(098) 123 4567")); // should return false


Probability distribution for varying probabilities in R

I'd like to plot the probability distribution for a set of binomial trials in R, the catch is that each trial has an independent probability of success (which I have in vector form).  So, in R if I were doing this with coin tosses: plot(x,dbinom(x,10,.5)) would work, where x is 0:10. This shows the probability distribution by plotting number of successful trials on the x-axis with percent of the time that specific results is achieved as the y (4 successes is 20.5%).  That said, how do I plot the same graph for 10 discrete trials with varying probabilities. For instance if odds<-c(.1,.8,.2,.2,.3,.7,.9,.99,.05,.5), was the probability of success for each independent toss, and I wanted to see a probability distribution?


How to break circular dependency of the headers that defines nested template class?

edit: the linked one doesn't solve this particular case, since in my case there is a nested type.  Lets imagine the situation is like this:  //foo.hpp //include guards  template <typename T> class foo {     class bar; };   The code for bar is too big, so I'd like (not really me, but it doesn't matter) to another file.   So, the current situation is this:  //foo.hpp #include <bar.hpp> //include guards  template <typename T> class foo {      class bar; };  //bar.hpp #include <foo.hpp> //include guards      template <typename T> class foo::bar {     //... }   This is certainly circular dependency. But the thing is that compiler (clang and gcc) accepts it.   Should I fix it or there is nothing to fix? If it is an error, how should I fix it? Should I just dump everything into one file and call it a day?  In reality, that bar is an iterator, which I wouldn't want to make standalone.  There are include guards there, so I guess that is what prevents it from being included many times, but still the circular dependency makes me worried.


A one hour interuption in cooking chicken, will it be safe to eat?

I half boiled chicken legs and thighs, put them in my Crock Pot with BBQ sauce, put the slow cooker on high, but forgot to plug it in. I discovered my mistake an hour later. So I quickly put them in the oven to finish cooking. They were still steamy hot when I took them out of the crock pot, but I didn't take their temperature. Will they be safe to eat?


Let's say I used some Apple Loops in a 5 min contest video that's being sold to the contest host (So he can show a reference for this years contest). Might be uploaded on youtube + their site..  I have two apple loops and one of my own samples playing on and off, but the Apple Loops have more playtime and they're at a low volume when people speak and such which is for the most part of the video. They fade out come in again etc.  These two audio files (Apple Loops) including my own, still in the original form/format from Apple and I have only mixed them and arranged in one track.  Other than that, no further self compositions were added. And if it makes any difference my own sample is played in the middle, so one Apple Loop in the beginning section and one at the end section.    Is this to repackage them as music beds (Illegal)? Or is the "soundtrack" original (Am I cleared)?


does implementing canonical tags on pages with high page view drop the traffic to them?

My client has a bunch of duplicate content. The problem is all of them have high amount of traffic. So if I implement canonical tags on them, will it hurt the performance?


Angular momentum eigenfunctions and commutators

If two operators commute, they have a common set of eigenfunctions (right?). As $[L^{2}, L_{x}] = 0$, $[L^{2}, L_{z}] = 0$, $L^{2}$ and $L_{x}$ have a common set and $L^{2}$ and $L_{z}$ have a common set. But $[L_{z}, L_{x}] = i\hbar L_{y}$, therefore, they don't have a common set. Can someone explain why there is no actual inconsistency here?


How can I tell if my ISP is intentionally degrading service of particular websites (eg video)

Some particular websites (youtube is a commonly cited example) frequently have poor streaming performance. How can I determine if youtube is just not good at doing video, or if my ISP is just intentionally degrading services of their choosing.


as/while/during it goes through the workflow

Workflow is a sequence of steps through which a piece of work goes (from initiation to completion).  Let's say we are discussing some workflow:     Do we register the time spent on each step as/while/during a piece of work goes through the workflow?   Which of "as", "while", "during" (if any) is correct?


How do i split a String into multiple values?

How do you split a string?  Lets say i have a string "dog, cat, mouse,bird"  My actual goal is to insert each of those animals into a listBox, so they would become items in a list box.  but i think i get the idea on how to insert those items if i know how to split the string. or does anyone know a better way to do this?  im using asp c#


Security team of my organization told us to disable weak ciphers due to they issue weak keys.    arcfour   arcfour128   arcfour256   But I tried looking for these ciphers in ssh_config and sshd_config file but found them commented.   grep arcfour * ssh_config:#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc   Where else I should check to disable these ciphers from SSH?


The question asked is very different from the so called duplicate post as I have specific errors and they are just asking why it needs to be in the .h file... I already have it in the header file and am getting the errors below.  Updated the files and I still get the following errors.   1 Unresolved externals (lab12.exe line 1) unresolved external symbol "public char__thiscall Pair::geetFirst(void)" (?getFirst@?$Pair@D@@QAEDXZ) referenced in function_main (lab12.obj line 1)   Pair.h  #pragma once template <class T> class Pair {  private:     T theFirst;     T theSecond;  public:     /*Pair(const T& dataOne, const T& dataTwo);*/     Pair(T a, T b) {         theFirst = a;         theSecond = b;     }     T getFirst();     T getSecond();  };   Pair.cpp  #include "stdafx.h" #include "Pair.h"   template<class T> T Pair<T>::getFirst() {     return theFirst; }  template<class T> T Pair<T>::getSecond() {     return theSecond; }   Main.cpp  #include "stdafx.h" #include "Pair.h" #include <iostream> using namespace std;  int main() {     Pair <char> letters('a', 'd');      cout << letters.getFirst();       cout << endl;     system("Pause");      return 0; }


Avoiding If statement to check if object is Null

I'm using Lombok S1F4j to log my data and In order to avoid logging empty data , I check if the object is null or not . I want avoid this guys so my code is more robuste and so easy to test .  This is an example :    if (object != null)  { log.info("lalalalal", object) object1.set(object)  }   Is there anyway to avoid checking null and not logging if object is null ?


Hi i have two plot with two linear regression but the legend show the same equation for the straight line... I haven't made a MWE because I thought it isn't needed---Is it?  \pgfplotstableread{ X Y 97 1.0 96 15 96 29.2 96 32 98 42.4 98 59.2 98 66.1 97 84.4 100 94.0 }\tableA  \pgfplotstablecreatecol[linear regression] {regression} {\tableA}  \xdef\slopeA{\pgfplotstableregressiona} %<-- might be handy occasionally \xdef\interceptA{\pgfplotstableregressionb}    \pgfplotstableread{ X Y 0.05 0.17 0.05 0.041 0.05 0.023 0.1 0.332 0.1 0.089 0.1 0.041 0.15 0.5 0.15 0.132 0.15 0.06 }\tableB  \pgfplotstablecreatecol[linear regression] {regression} {\tableB}  \xdef\slopeB{\pgfplotstableregressiona} %<-- might be handy occasionally \xdef\interceptB{\pgfplotstableregressionb}   and in every plot i put this for make a the legend...  \addlegendentry{% $\pgfmathprintnumber{\pgfplotstableregressiona} \cdot x \pgfmathprintnumber[print sign]{\pgfplotstableregressionb}$}   This one of my plot...  \addplot [%     point meta=explicit,     scatter,     scatter/use mapped color={draw=mapped color,fill=mapped color},     mark=*,     draw=none, forget plot]table[meta=X] {\tableA};  \addplot [mesh,mesh line legend,point meta=x,domain=95.2:99.8,very thick,samples=1000] {\slopeA*x+\interceptA};


I must have been dreaming, but I could have sworn one was able to award extra reputation points to answers on stackoverflow.com if you felt the answer deserved it.  I'm in this predicament right now, where I was too late with choosing the best answer for a bounty question. I still want to award the answerer the full points, but I can't find the damn option to award extra rep. points anymore. :-/  Have I been imagining this 'extra rep. points' thing?


Could the Olympians use modern celestial weapons?

Instead of using short range celestial bronze (CB) weapons like swords and arrows why not make advanced weapons like machine guns or grenades with CB shrapnel in it?


I swear I read an ingame hint that said Workshops would share my stuff between them, but that doesn't seem to be the case. I have a settlement at Sanctuary and Red Rocket Truck Stop, but I can't access my items I added in Sanctuary at RRTS. Am I mistaken in remembering that you could do this, or is there something I need to do to get that to work?


The /etc/crontab on my machine is as follows:  17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly 25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )   I have two related questions:   Why 17, 25, 47, 52? I get that you might want to stagger the different jobs, but why not stagger them more evenly? Like for instance 0, 15, 30, 45? Why is anacron used for the daily/weekly/monthly commands but not the hourly ones? Are hourly commands more OK to miss? (If I understand correctly, anacron is for if you have an "Every Saturday" command and the computer is down on Saturday, it runs the command on Sunday instead).


How to use a string column with pgfplotstable to label datapoints in a pgfplot?

I have a comma-separated list of data points. They should be plotted as a scatter plot, and should be labeled using data from the .csv file. Having specified the first column of my file as string type, I still keep running into errors saying Could not parse input [...] as a floating point number, sorry.  Given a CSV file of the following format, how can I read Name and Z as labels?  Name,X,Y,Z ODIN,250,45,2001   Here is my MWE:  \documentclass{article}  \usepackage{tikz,pgfplots,pgfplotstable}     \pgfplotsset{compat=1.5.1}  \begin{document}  \pgfplotstabletypeset[columns/Name/.style={string type}]{table.csv};  \begin{tikzpicture}     \begin{axis}[     visualization depends on=\thisrow{Name} \as \labela,     visualization depends on=\thisrow{Z} \as \labelb,     every node near coord/.append style={font={\tiny}},     nodes near coords=\labela/\labelb,     nodes near coords align={horizontal},]      \addplot[only marks] table [x=X,y=Y,col sep=comma] {table.csv};      \end{axis} \end{tikzpicture}  \end{document}   Note that if the data in column Name is just floats it should work fine.


Unable to click pictures with nikon D3500

here is the link of pictures and videos to my problems. To describe it in words, my camera nikon d3500 is going half way click to autofocus but on full click is not taking any picture. Sometimes it shows error that Error. Press shutter release again. Even if this error is not displayed but still my camera is unable to take pictures. I tried resetting the options but retouch menu is all greyed out, the reset menu in shooting menu is also greyed out. I also tried formatting the memory card and take the battery out for about 8 hours and re-insert it into the camera to reset the settings, but that did not work.


How to create label with variable size in ArcMap?

I'd like to create a circle label in ArcMap in the middle of each Polygon feature in my map document to shows the value of a particular attribute associated with that feature (like number of available stations). I'd like to represent the number of stations by the size of the label, so that the larger number of station in a particular feature is represented by the larger circle in that feature. Is there any possibility in ArcMap to do so? any help would be much appreciated.


I've got a little problem of comprehension with my regex I just want add a variable inside my regex I've got this: static test(Prefix, version: string) {     return "/^" + Prefix + "[0-9]*.[0-9]*.[0-9]*-[0-9]*-(SNAPSHOT)$/.test(version); }  // I don't understand where to put my last "   thanks for your help


Sleep issues on my Razer Blade Stealth. 16.04 LTS

So I have decided to make the leap from Windows to Linux, but I have been having one issue. Whenever I close the lid of my laptop, it goes into sleep mode, and when I open the lid, it comes back awake. My issue is, that 30 seconds or a minute into use, it auto goes into sleep for NO reason, I don't know why it does this. I then have to press the power button to get it to wake, but then it just repeats, I have to completely power off to fix it. Any solutions? I can provide info as needed, provided you tell me how to get that info.


java: simple if condition in while loop does not work

I'm currently working on a financial planning app for class but I cant get a loop with a condition inside it to work. It just keeps looping despite the condition - it's almost as if the condition is being ignored completely.  Here's my code - please help!  while (true){         Scanner scanVar = new Scanner(System.in);         System.out.println("\nEnter expenditure item: ");         String myString = scanVar.nextLine();         Scanner scanVar2 = new Scanner(System.in);         System.out.println("\nEnter expenditure value: ");         double myDouble = scanVar2.nextDouble();         expenditureMap.put(myString, myDouble);         Scanner scanVar3 = new Scanner(System.in);         System.out.println("\nAnother item? ");         String myString2 = scanVar3.nextLine();             if (myString2 == "yes") {                 continue;             }             else {                 break;             }     }   Many thanks, Dylan


Move all files from one folder to another, based on a list

I have a list of files, which I would like to move from folder A to folder B, but I do not want to do that by hand. Is there an easier way to loop through the list and move every file which is on that list?


Proving that the difference of the terms of a sequence, multiplied by $n$ converge

I am trying to prove some theorem, and in the proof of it I have to check the fact that if the sequence $\{a_n\}_{n\in \mathbb{N}}$ converges, then $$\lim_{n\to \infty} n(a_n - a_{n-1}) = 0. $$ I think that this is true because I have tried with many different sequences and it holds, but I do not know how to prove it.  If this is not true, what is a counterexample for it?


If $\Omega$ be a bounded open subset  of $C$, and $\phi :\Omega\to\Omega$ be a holomorphic function satisfied $f(z_0)=z_0,f'(z_0)=1$ then prove that $\phi$ is linear.   The hint told me to let $z_0=0$, and $\phi(z)=z+Cz^n+O(z^{n+1})$,  consider $\phi_k=\phi\circ\phi\circ...\circ\phi$ (k times), then prove $\phi_k(z)=z+kCz^n+O(z^{n+1})$, use Cauchy's inequality  and let $k\to\infty$ to get $C=0$.   I don't know how to prove  $\phi_k(z)=z+kCz^n+O(z^{n+1})$  and here is where i have trouble: assume that in $B(0,r_1)$ we have power series expansion of $\phi$: $\phi(z)=z+Cz^n+O(z^{n+1})$ to make sure we have composite $\phi(\phi)$, we need to restrict $z$ in $D=\{z\in B(0,r_1):\phi(z)\in B(0,r_1)\}$ and assume the maximal disc of $\phi(\phi)$ that has a power series expansion in $D$ is $B(0,r_2)$, then only in this disc we can have $\phi_2=z+2Cz^n+O(z^{n+1})$, next consider $\phi_3$ and so on.  Now we have a series of disc $B_k=B(0,r_k)$ that only in $B_k$ we have the power series expansion $\phi_k(z)=z+kCz^n+O(z^{n+1})$, so what if $r_n$ tend to zero?   We can't let $k\to \infty$.


How does variable assignment work in JavaScript?

So I was playing around the other day just to see exactly how mass assignment works in JavaScript.  First I tried this example in the console:  a = b = {}; a.foo = 'bar'; console.log(b.foo);   The result was "bar" being displayed in an alert. That is fair enough, a and b are really just aliases to the same object. Then I thought, how could I make this example simpler.  a = b = 'foo'; a = 'bar'; console.log(b);   That is pretty much the same thing, isn't it? Well this time, it returns foo not bar as I would expect from the behaviour of the first example.  Why does this happen?  N.B. This example could be simplified even more with the following code:    a = {}; b = a; a.foo = 'bar'; console.log(b.foo);  a = 'foo'; b = a; a = 'bar'; console.log(b);     (I suspect that JavaScript treats primitives such as strings and integers differently to hashes. Hashes return a pointer while "core" primitives return a copy of themselves)


Is there a way to show only specific file extensions?

Call me crazy, but I'm sure I remember this capability existing in previous versions of Windows.  In Windows 7, we can have file extensions Off... or On.  Pick one.  Is there some obscure switch buried in the registry to have Explorer show specific extensions, but leave the rest hidden?  In my case, I'd like to always show extensions for text files (*.txt, *.csv, *.tdt), because I frequently have to handle flat files which may come in with a .txt extension where I need it to be .csv, for example.  I'd rather not have extensions on all the time, it's just clutter for almost all files.


How to remove a positional parameter from $@

Basically, I want to "pluck out" the first occurrence of -inf from the parameter list.  (The remaining parameters will be passed along to a different command.)  The script I have has the following structure:  #!/bin/sh  <CODE>  for POSITIONAL_PARAM in "$@" do      <CODE>      if [ "$POSITIONAL_PARAM" = '-inf' ]     then         <PLUCK $POSITIONAL_PARAM FROM $@>         break     fi      <CODE>  done  <CODE>  some-other-command "$@"  # end of script   Is there a good way to do this?  BTW, even though I am mainly interested in answers applicable to /bin/sh, I am also interested in answers applicable only to /bin/bash.


Which of the following two sentences is grammatically correct?  They did everything together, including fall in love. They did everything together, including falling in love.  You could also tell me why if you want.


I need help to compose a formula in excel. Basically picture below explain what i need, this is just a sample. In column E is many different entry. From time to time I need to SUM in column G from some cells column E, depending of position of No."1" in column B. No."1" is always a mark when I need to SUM, and the distance of No. "1" can varied.    Or it can be as per next picture. In Column A is "date and Time" at 12:00 need SUM from cells in column E to previous 12:00 in column A. Hope that is clear what I need.


For what security reasons are svgs blocked in the media uploader?

I see that SVGs are blocked by default in the media uploader and you have to add it as a supported MIME type in functions.php. What security reasons are behind this?


Prerequisite for Milnor Topology from a Differential Viewpoint

I finished Introduction to Manifold by Loring Tu and I am interested to study this book by Milnor. But I didn't take a course in topology (other than the one I learnt from the appendix of Tu's book). Is this sufficient for me to read the book by Milnor?


I want to give access domain admins group to sudoers access.  I have come across with many commands but nun of works for me.  fname.lname ALL=(ALL) ALL   With this command i can give access to a particular user, But i want to give access to all the members of the domain admin group.  %DOMAINNAME\\domain\ admins ALL=(ALL) ALL %DOMAINNAME\\domain\ admins ALL=(ALL) ALL %DOM.DOMAINNAME.COM\\domain\ admins ALL=(ALL) ALL DOMAINNAME\\domain\ admins ALL=(ALL) ALL DOMAINNAME\\domain\ admins ALL=(ALL) ALL DOM.DOMAINNAME.COM\\domain\ admins ALL=(ALL) ALL %DOMAINNAME\\domain_admins ALL=(ALL) ALL   Like many commands i have tried but non out of these working.  My domain Group have two words i.e      domain admins  Complete domain name is like:      DOM.DOMAINNAME.COM  And short name is      DOMAINNAME  Tell me how can i give access to sudoers for a group.   I am working on python scripting where it asks for sudo run but the user doesn't have sudo access or everytime no any domain user is entertain to enter credentials.


How can i install ubuntu on my ntfs hdd without formatting?

My hdd is just one partition in ntfs (500gb) and 430 gb is used by my photos/movies/music etc which I never will want to lose. Actually I installed Ubuntu on a usb flash drive (using it right now) but it is too slow that way. But my problem is : My computer is damaged ( maybe chipset or but not sure) and none of the windows versions (xp,vista,7) works on my pc. I get blue screen error as soon as windows startup logo shows. But Ubuntu just works flawless. That means I cannot use wubi. I wanted to shrink my hdd without losing data (which can be done in windows) but found nothing about that on Ubuntu forums. Is this possible? Or install Ubuntu on my ntfs filesystem?  Note : I don't have chance to backup 400 gbs of data.  Sorry for my question if it's written a bit compex. I hope you get the point and someone has an idea ;)


Is there a way to disable all notifications on the iPhone in one step?

Is there a way, when doing screen recording (for online gameplay, for example), to disable all notifications in one step, so that it won't interfere with the screen recording?  Details: It can be done by turning off all notifications for 35 apps one by one, and when done with screen recording, turn them on one by one again -- but it will be 70 steps total this way.  I want to disable any notification at all, including the one that slide down showing "no preview" content -- I want to disable those as well -- everything.


If statement seemingly being evaluated incorrectly as false? Java

Hi I am building a simple calculator program, wherein there is a double num1, double num2, string myOperator. For instance the values may hold the following respectively: 1, 2, "+". This would later equate to the equation 1 + 2 = 3;. For my gui I have number buttons, and operation buttons (+,-,/,*) that set the variables value.  public double num1, num2, num3; public String myOperator;    Here is my method:       @FXML     private void handleSolution(ActionEvent event){         if(myOperator == "+"){             System.out.println("plus");         }else if(myOperator == "-") {             System.out.println("minus");         }else if(myOperator == "*"){             System.out.println("multiplication");         }else if(myOperator == "/"){             System.out.println("division");         }else{             System.out.println("wtf");             System.out.println(myOperator);             System.out.println(myOperator.length());         }     }   Regardless of which button I click (+,-,/,*) in the gui, 'wtf' is always printed, so I added myOperator to see what is actually printed out and myOperator.length to see if I perhaps had the correct character, but added a space incorrectly.  Here were my results:  If I press the [+] button the system prints out:  + 1   If I press the [-] button the system prints out:  - 1   If I press the [/] button the system prints out  / 1   If I press the [*] button the system prints out:  * 1   Can anyone tell me how to fix this or what I am doing incorrectly?


Upon system restart, dconf editor doesn't save changes

I can use the dconf-editor to change my touchpad settings to natural scrolling, but upon system restart the settings get reverted. (But not on sleep or hibernate.) When I open the editor, the option is still orange indicating it has been changed. when I uncheck and recheck the natural scroll option, it is re-enabled. Is there a fix, or am I changing the wrong option? The path is org > gnome > settings-daemon > peripherals > touchpad > natural-scroll.  Currently running 13.10


What to do for my graduate school application if I think my GPA doesn't reflect my coursework mastery

I am one of those people with low GPA but want to apply for graduate school in US. I am really having trouble with standardized tests in my institution. It's not uncommon for me to receive low grade in final exams(finals normally account for 60% to 70% percent of grading of corresponding courses) and this has led to a number of courses with poor grades that is already enough to ruin my GPA. It is not that I didn't spend time in studying, in fact I learned those courses quite well (perhaps, in other words, I am not a good test taker). I was initially thinking I should get the right GPA I deserve and was very angry with myself especially when I saw many of my peers could confidently gain much higher GPA than I do even with only a little understanding of course materials plus simply memorizing lecture notes by force(yes, our exams makes this kind of preparation really an effective way to get grades like 3.7/4.0 for most core courses). It seems to me like my classmates can have 3.7/4.0 with ease, but I was more likely to get only 2.7/3.0/3.3 even if I was well versed in coursework and fully prepared for exams. I talked to my classmates for help but they told me they were too surprised by my situation and don't know what I should do at all. I tried various methods to make a difference like making sure my homework/class attendance parts of scoring rubric are going well, even the above mentioned exam preparation strategy, but still received little improvement.  I never successfully found a solution throughout my undergrad, and I really want to defend this shortcoming in my statement of purpose, but I have worries about this. MY QUESTION IS: If I go ahead to explain this in my SOP, would it sound like merely an attempt to find an excuse? If your advice is "do it", is there anything I should not talk about regarding the reason I mentioned above(i.e. don'ts)? *. Some additional information, I am applying physics graduate program. I have first author publication in physics which I think could help me address that my knowledge mastery of related  maths and physics is not what my grade shows. But even so, my paper, of course, cannot address other poorly scored courses.


Obviously there must be some judgement (the seller, no visible flaws).  But yet, is there a significant risk of buying something which will break in the next few weeks buying an used camera?


Can standard healing spells target plants?

If a player chopped a tree with an axe, leaving a big wedge cut into it, could it be healed with say, a cleric's Cure Wounds?  It says a 'Creature', which I would suppose means any living thing, although I guess undead are also creatures since it has an explicit comment about the spell not working on them.