A lot of us have heard before that you should "never defrag an SSD", but that seems to be only relevant for older Windows versions (like XP and below). Windows 7 and above  of how to work with SSDs to make it safe and beneficial to do routine (although not too often) defragmentation and consolidation.   that Windows (7+) should handle routine defragmentation on every installation automatically, and is enabled by default.  However, when I checked out my Windows 7's defragmenter application, it said that my 2 HDDs have been recently completely defragmented and consolidated, and that my SSD on which Windows is installed, has never even been analyzed. What gives?        I can't even select it for automatic defragmentation − neither the main, nor System Reserved partition.  But I was able to defragment it manually. It said it was >70% fragmented right after analysis, which from what I've read about random and sequential read speeds on SSDs means it could have been defragmented to improve system performance significantly.  Then I found       If solid-state media is detected, Windows disables defragmentation on that disk. The physical nature of solid-state media is such that defragmentation is not needed and in fact, could decrease overall media lifetime in certain cases.   But it's been years since then, and there have been countless updates released, and newer Windows versions have appeared, so it could have addressed by now.   Should I manually defragment my SSDs? Are there any known issues that would make it harmful on Windows 7? Additionally, what has changed between Windows 7 and 10 so that now it defragments SSDs?

I have just learned that one should "Never defragment your SSD". But I have no idea if that is true.  I believe that Windows 10 was automatically scheduled to finish  defragmentation on my SSD, but I cancelled it. Would it cause any problems for defragmentations done before?  The SSD is still not partitioned, because I cannot see the SSD drive in My Computer folder, only in system hardware manager. What are the correct steps I should take to install Windows on an SSD (it's my first SSD)?


I'm trying to understand from a systematic point of view how $\mathrm{SU}(n)$ representations may be computed from Young diagrams following Sternberg's Group Theory and Physics. Chapter five gives means to calculate the dimension of each representation from the decomposition into irreducibles of the action of $S_r$ on $\otimes^r \mathbb{C}^n$. Nevertheless I don't see how one can actually compute the representation. If anyone has a good reference where an example is calculated I would appreciate it a lot!

I am looking for a good source on group theory aimed at physicists. I'd prefer one with a good general introduction to group theory, not just focusing on Lie groups or crystal groups but one that covers "all" the basics, and then, in addition, talks about the specific subjects of group theory relevant to physicists, i.e. also some stuff on representations etc.  Is Wigner's text a good way to start? I guess it's a "classic", but I fear that its notation might be a bit outdated?


Is there a closed-form solution for the variance of $Y = \Phi\left(X\right)$, where $X \sim N \left(\mu, \sigma^2\right)$ and $\Phi$ is the standard normal CDF? I can find the variance for some specific values of $\mu$ and $\sigma$ kind of "trivially" ($\mu = 0$, $\sigma = 1$), but is there a general analytical solution? If not, is there at least one if I know the specific values of $\mu$ and $\sigma$? I tried the method described , but when I compare the result to that from a simulation, they're not close.

Suppose, $X\sim N(\mu,\sigma^2)$.   Can anyone help in finding the following : $\text{Var } \bigg(\Phi\big(\frac{X + c}{d}\big) \bigg)$ ? Here, c and d are positive.  Here, $\Phi(x)$ is the "Cumulative Distribution Function" of the above-mentioned normal distribution.  Thanking you in advance.


I must transfer several huge files from a remote machine A to my local computer. The problem is that I can not access A directly, but instead I must access via another remote machine B. Unfortunately, machine B has a very limited amount of space, so I can not copy the files from A to B and then from B to local. Instead, I would need to use B as a kind of proxy. I was thinking in something as simple as possible that does not need to install or configure anything, hopefully simply using sftp, scp o ssh. Does anyone know how to do that?

I want to access a computer, say machine A which is based in my university's network. However, this computer is only accessible via the internal network of the university, so I can not use SSH to this computer from home directly.  Here's what I do now:   Log in to a different university machine, say machine B  (This machine B is accessible via SSH from my home computer.) Use SSH on B to connect to A.   Is there a way to do that faster? Using only one ssh command.


I am reading a computer science paper and have come across some notation that I am unfamiliar with.  it says to consider functions from $\mathbb{R}^N$ to $]-\infty,\infty]$  is this the same as writing $(-\infty,\infty]$?  to use another example, is this true:  $x \in ]4,6] \iff 4 < x \leq 6$

I have frequently encountered both $\langle a,b \rangle$ and $[a,b]$ as notation for closed . I have mostly encountered $(a,b)$ for open intervals, but I have also seen $]a,b[$. I recall someone calling the notation with $[a,b]$ and $]a,b[$ as French notation.   What are the origins of the two notations?  Is the name French notation correct? Are they used frequently in France? Or were they perhaps prevalent in French mathematical community at some point? (In this  Bourbaki is mentioned in connection with the notation $]a,b[$.)      Since several answerers have already mentioned that they have never seen $\langle a,b \rangle$ to be used for closed intervals, I have tried to look for some occurrences for this. The best I can come up with is the article on , where these notations are called Czech notation and French notation. Using $(a,b)$ and $[a,b]$ is called English notation in that article. (I am from Central Europe, too, so it is perhaps not that surprising that I have seen this notation in lectures.) I also tried to google for  or . Surprisingly, this lead me to a  where this notation is used for open interval.


The formula for a 95% confidence interval for proportion is  $\hat{p}\pm 1.96 \sqrt{p(1-p)}$  Suposing a sample of 200, calculating a proportion of 1.8%, the confidence interval is 1.67% - 1.93%. But, what if the population size is about 1 billion? Is this correct? I know that there is a finite population correction factor to small populations, but my thought is about big populations with very different sizes.  The formula can be used even to a a 1 million population also to a 1 billion population?

Which survey is more accurate? Assume the samples are taken perfectly randomly.   A sample of 100 people out of a population of 1000   (sample is 10% of population) A sample of 1000 people out of a population of 1000000 (sample is 0.1% of population)     I remember my lecturer saying something like "when the sample size is small compared to the population, the accuracy depends almost all on the sample size, the population size is unimportant" . Is there a name for that result? It's quite surprising at first.  I'd love to see some graphs of these functions.  If it helps, here's a concrete example (made up by me).     An unknown proportion p of the population favour candidate Alice. The rest favour Bob. We take a random sample size k of the population (size n), and ask their preferences, to come up with an estimate p-hat.      How does the expected error $\mathbb{E}|\hat{p} - p|$ depend on k and n? And in the limit $n\to\infty$?


As we know we cant pass sobjects to @future method due stale of data during the processing time,where as not same in case of Queable apex.How exactly its working by using Sobjects here?

I was going through asynchronous apex and reading it made me confused at one point. In future methods, we cannot pass sojects for reasons future methods being executed at a later point of time, by the time it is executed the sboject data could be stale. But, at the same time, the more advanced queuable apex accepts sobjects. Why is it so? The same reason is applicable for queuable apex also right? kindly clarify.


My question is in relation to the graphical depiction of the distortion of the “Fabric of Space-time” by a massive object in space. Often showing the lines as a single layer that intersect at 90° bending (concave) underneath an object in space must be false since that fabric is continuous in all directions. What it means to me is that if the fabric was shown above the object it should create a dimple not a concave disturbance. Can you please explain what is actually thought to be a occurring but not shown?

I've seen many science popularisation documentaries and read few books (obviously not being scientist myself). I am able to process and understand basic ideas behind most of these. However for general relativity there is this one illustration, which is being used over and over (image from Wikipedia):    I always thought that general relativity gives another way how you can describe gravity. However for this illustration to work, there needs to be another force, pulling the object down (referring to a direction in the attached image). If I put two non-moving objects in the image, what force will pull them together?  So where is my understanding incorrect? Or is general relativity not about explaining gravity and just describes how heavy objects bends spacetime (in that case the analogy is being used not correctly in my opinion)?    UPDATE Thank you for the answers and comments. Namely the XKCD comics is a spot on. I understand that the analogy with bent sheet of fabric pretty bad, but it seems that it can be fixed if you don't bent the fabric, but just distort the drawn grid.   Would you be so kind and answer the second part of the question as well - whether general relativity is explaining gravitational force. To me it seems that it is not (bending of spacetime simply can not affect two non-moving objects). However most of the time it is being presented that it does.


I am not able to update 12.10 which my pc is showing to update.  following errors are coming

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I'm looking for a miniature for my Dragonborn fighter. I know the basics but I haven't really find anything definite about the the little details, like the shape of the legs and if they have tails.

I have heard along the grapevine that at some point, Dragonborn can get wings and/or a tail. But I haven't been able to find anything on it. I have looked through the Player's Handbook, and I couldn't find anything in there about it.  So do Dragonborn get tails or wings at any point? I know they don't start with any, but as I said previously, I heard they could. Does it depend on the ancestry as well? (I.e. Blue Dragonborn only get tails, Black only get wings etc).  This is the inspiration for this question. I'm unsure of where it came from, it may just be fan art, but I have seen similar images (perhaps by the same artist) that led me to believe that this may be canon.


I was able to generate a new
 to another
 and those new
 have a custom id generated by a counter, i need the code to be able to add new
 to those that where generated.  Code :
     <button type="button" ID="BtnAdd" class="btn btn-basic">Add</button>     <button type="button" ID="BtnRev" class="btn btn-danger">Remove last step</button>
     Title:      <input type="text" id="StepTitle" class="form-control" placeholder="Title..." />     Description:      <textarea rows="5" id="Description" class="form-control"></textarea>

This is how the steps will look like:

   I've tried this:  $("#" + "Btn" + counter).click(function () { $("#" + "div" + counter).append("

" + counter + ". " + StepTitle.value + "

" + Description.value + "
<button type='button' ID='Btn" + counter + "' class='btn btn - basic'>Add</button>
"); });   But it's not working, the expected output should be several
 within themselves all of them generated by jquery, if you guys have any other methods i'll be more than glad to check them out, thanks in advance!

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I'm new to LaTeX and I'm just starting to create my own little template. I'm putting comments everywhere to make it easier to remember what command does what.  I'd like to have a seperate file that does not contain those comments though. Is there any easy way I can delete all comments from a .tex file?  Thanks

I've a LaTeX source. I'm ready %for submission %But first I would like to strip its comments.  So I hope there are 100\% auto ways to get this done.  \begin{comment}    Because there are subtle ways to mess it up. \end{comment}   Is there a utility which will eliminate all these comments?  Yes, I could do it by hand, but that seems needlessly laborious, has the potential for mistakes, and makes maintenance difficult. I could also use sed, but there's a potential for mistakes. Besides, it is an axiom of the whole GNU/Linux thing that if you can think of it, someone's probably already made a utility for it.


I have a snort.rule file, I need to extract cve numbers followed by reference key from the line and append them back in msg field of the same line inside flower brackets, below is the old log.     alert udp $HOME_NET 1900 -> any any (msg:"ET INFO UPnP Discovery Search Response vulnerable UPnP device 2"; content:"Intel SDK for UPnP devices"; pcre:"/^Server\x3a[^\r\n]*Intel SDK for UPnP devices/mi"; reference: /infosec/blog/2013/01/29; reference:arch/UPnP-arch-DeviceArchitecture-v1.1.pdf; reference:cve,2012-5958; reference:cve,2012-5959;sid:2016303; rev:4;)   Required output is below, bold ones are the new changes,     alert udp $HOME_NET 1900 -> any any (msg:"ET INFO UPnP Discovery Search Response vulnerable UPnP device 2 {cve,2012-5958 cve,2012-5959}"; content:"Intel SDK for UPnP devices"; pcre:"/^Server\x3a[^\r\n]*Intel SDK for UPnP devices/mi"; reference: /infosec/blog/2013/01/29; reference: arch/UPnP-arch-DeviceArchitecture-v1.1.pdf; reference:cve,2012-5958; reference:cve,2012-5959;sid:2016303; rev:4;)   I do have issue with the awk code below, it is removing semicolon between all keys while displaying back the results, last sub function is culprit, I need to correct the below code:  awk -F\; ' {   for ( i = 1 ; i <= NF ; i++ ) {     if ( $i ~ "msg" )       a = i     if ( $i ~ "reference:cve," ) {       b = $i       sub ( ".*:" , "" , b )       c = c " " b        }     }   sub ( "$" , "{" c "\"}" , $a ) } 1' snort.rule

I have a snort.rule file, I need to extract cve numbers followed by reference key from the line and append them back in msg field of the same line inside flower brackets, below is the old log.     alert udp $HOME_NET 1900 -> any any (msg:"ET INFO UPnP Discovery Search Response vulnerable UPnP device 2"; content:"Intel SDK for UPnP devices"; pcre:"/^Server\x3a[^\r\n]*Intel SDK for UPnP devices/mi"; reference: /infosec/blog/2013/01/29; reference:arch/UPnP-arch-DeviceArchitecture-v1.1.pdf; reference:cve,2012-5958; reference:cve,2012-5959;sid:2016303; rev:4;)   Required output is below, bold ones are the new changes,     alert udp $HOME_NET 1900 -> any any (msg:"ET INFO UPnP Discovery Search Response vulnerable UPnP device 2 {cve,2012-5958 cve,2012-5959}"; content:"Intel SDK for UPnP devices"; pcre:"/^Server\x3a[^\r\n]*Intel SDK for UPnP devices/mi"; reference: /infosec/blog/2013/01/29; reference: arch/UPnP-arch-DeviceArchitecture-v1.1.pdf; reference:cve,2012-5958; reference:cve,2012-5959;sid:2016303; rev:4;)   I am able to extract the CVE numbers, but appending back I am not getting  cat /tmp/snort.rule | grep -o -E -e 'sid:[^;]+' -e 'reference:cve,[^;]+'


I have created a sub theme under  and am having issues removing the "anonymous" div from inside the form.  Here is the displayed code:
     <form class="form-search content-search form-search content-search" action="/" method="post" id="search-block-form" accept-charset="UTF-8">

                 <input title="" placeholder="Search" class="form-control form-text form-search" type="search" id="edit-search-block-form--2" name="search_block_form" value="" size="5" maxlength="128">                 <button type="submit" class="btn btn-default">Search</button>
             <input type="hidden" name="form_build_id" value="form-XXXX">             <input type="hidden" name="form_id" value="search_block_form">             <button class="element-invisible element-invisible btn btn-primary form-submit" id="edit-submit" name="op" value="Search" type="submit">Search</button>
     </form>
  I have my own versions of form-element.func.php and search-block-form.tpl.php and I have created my own theme wrapper to customize this as much as possible but I still cannot figure out a way to get rid of that stupid div!  How can I remove this div WITHOUT modifying the Bootstrap theme or the Drupal Core?  Edit: At the very least, I would be ok with adding the class input-group onto the div and getting rid of the current div.input-group

When I create a form using the form API, the resulting html includes all sorts of unwanted divs. For example, if I use:  $form = array(     'myFieldset' => array(         '#type' => 'fieldset'     ) );   The resulting html looks like this:   <form action="/drupal-7.15/?q=chercheur" method="post" id="form-chercheur" accept-charset="UTF-8">     <div>         <fieldset class="form-wrapper" id="edit-myfieldset">             <div class="fieldset-wrapper">             </div>         </fieldset>         <input type="hidden" name="form_build_id" value="form-87Dv5ezVpaLI5mD345ofMkLgPhsv_dawudUp73ePQTc" />         <input type="hidden" name="form_token" value="sXXINWr7rmParm0tRJoEb6QKGIH_QH-ffRSOtnvxYY0" />         <input type="hidden" name="form_id" value="form_Chercheur" />     </div> </form>   As you can see, two extraneous divs are added here. They are making the javascript I'm writing uselessly complicated, so I was wondering if there was a way to remove the extraneous divs. Ideally, I would like to obtain something like this:  <form action="/drupal-7.15/?q=chercheur" method="post" id="form-chercheur" accept-charset="UTF-8">     <fieldset class="form-wrapper" id="edit-myfieldset">     </fieldset>     <input type="hidden" name="form_build_id" value="form-87Dv5ezVpaLI5mD345ofMkLgPhsv_dawudUp73ePQTc" />     <input type="hidden" name="form_token" value="sXXINWr7rmParm0tRJoEb6QKGIH_QH-ffRSOtnvxYY0" />     <input type="hidden" name="form_id" value="form_Chercheur" /> </form>   Is this possible?


Suppose we have ARIMA(2,3,2) in a study. How to write the final formula for this model? The parameters are: AR1 and AR2 for auto-regressive part, MA1 and MA2 for the moving average part. Most of similar posts in this platform, are hard to understand by beginner. For example, I have been addressed to this , but it is somehow complicated, too. So I decided to create this post to keep it simple as possible for future references.

I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (2,1,0) x (0,2,2) period 12. I'm a little confused with how to go about this. I would prefer an equation involving $Y_t , e_t, θ$ and $Θ$.


I have this output  filename.txt  AC1481523 001 001 001 001 AC1481523 005 005 005 005 AC1481676 003 003 005 004 AC1481676 003 002 001 004   I want to add all the columns separately where the first column has the same value. I tried this   awk '{for (j = 1; j <= 200; j++) a[$1]+=$j} END {for(i in a) print i,a[i] }' filename.txt   I get all the numbers added in a single column, and I get   AC1481523 24 AC1481676 25   But I want   AC1481523 6 6 6 6  AC1481676 6 5 6 8

I'm wondering if there is any sed or awk command that can sum all columns for the rows with an identical identifier. For example, my file data.txt is set out as below, except that it contains ~1800 columns of data and ~1400 rows.  ABCD:1234  1.23  0.23  0.83   0 ABCD:1234    0    1.10  0.21   0  EFGH:5678    0    1.90  0.12  8.21 IJKL:9999    1.22  0    1.84  9.21 IJKL:9999    1.44  0   12.94   0 IJKL:9999    1.32  0   24.12   2.43   And how I would like it to be after the command would be like this:  ABCD:1234  1.23  1.33  1.04  0 EFGH:5678    0    1.90  0.12  8.21 IJKL:9999   3.98   0   38.9  11.64   I'm not sure if this is even possible with awk or sed (I'm a biologist and still learning the basics of Unix). Any help would be much appreciated.


A while ago, I realized there was a dotted box at the origin of my chair object. I don't remember when it appeared. It moves whenever I re-position the origin, and it only appears in the layer my object is in. What does this box represent? Is there a way to turn it on and off for any object? It hasn't caused any problems for me, I'm just interested in what it is.

When I attempt to triangulate a mesh I end up with that dotted yellow bounding box when I mistakenly press Shift+t instead of Ctrl+t.  I cannot get rid of it by using Undo.    From what I can tell, it has something to do with Texture Space but I cannot find anything in the Object Data panel that will remove it once it's there.    So does anyone know how to get rid of this and set things back to how they were before I hit that wrong shortcut?


I don't understand the error of Generic Array Creation. First I tried the following:    public PCB[] getAll() {        PCB[] res = new PCB[list.size()];            for (int i = 0; i < res.length; i++) {                res[i] = list.get(i);             }        list.clear();        return res; }    Then I tried doing this:  PCB[] res = new PCB[100];    I must be missing something cause that seems right. I tried looking it up I really did. And nothing is clicking.    My question is: What can I do to fix this?   the error is :   .\Queue.java:26: generic array creation PCB[] res = new PCB[200];             ^ Note: U:\Senior Year\CS451- file       uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error   Tool completed with exit code 1

Due to the implementation of Java generics, you can't have code like this:   public class GenSet<E> {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack<T> {     public Stack(Class<T> clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on.


Please I really need help. I was trying to get the new update Ubuntu 14.02 I think and I forced it to quit then i logged off and tried to to sign back into my account and that didn't work so I restarted it several times and now it won't go past the logo page please I really need help it's my first laptop.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


My requirement is to provide HA to a Zimbra Server. We want Zimbra files to be installed in a Netapp SAN which is providing around 5.7 TB as a SAN iSCI Drive. Since Netapp comes in with Dual Controller and stable performance, we are unlikely to have any down time.  I have 2 servers each having Xeon processor 6 Core, 32 GB RAM and 2 x 250 GB SSD. These are the two servers where I have installed CentOS 7.6. We would like to have one as primary and the second one as secondary.  Idea is to use the same principle of KVM HA ( What Redhat and even VMware) provides, so that if the primary goes down the IP gets switched to secondary, to create a simple Hot Redudant system.  We have a very few users on Zimbra, but there are a lot of automated emails coming in and we require a very large storage, and hence we are using the Netapp box.  I am able to switch between the KVMs. However I am struggling to figure out how I need to mount the iSCI target, so that the mail application stays alive.  Zimbra typically installs on /opt/. Do I mount the target on /opt/, and if so will it work? Or am I missing something else?  Or should I run the VM of the shared storage itself, and if so how can I configure it.  Zimbra itself is a combination of a database and files, and uses a number of services to keep itself active. Idea of using a shared storage is for Redundancy and high availability.  I have tried to configure HA but i was stuck over STONITH fence_agents.  By the way i followed this Documentation-    Appreciate your response and support.

My requirement is to provide HA to a Zimbra Server. We want Zimbra files to be installed in a Netapp SAN which is providing around 5.7 TB as a SAN iSCI Drive. Since Netapp comes in with Dual Controller and stable performance, we are unlikely to have any down time.  I have 2 servers each having Xeon processor 6 Core, 32 GB RAM and 2 x 250 GB SSD. These are the two servers where I have installed CentOS 7.6. We would like to have one as primary and the second one as secondary.   Idea is to use the same principle of KVM HA ( What Redhat and even VMware) provides, so that if the primay goes down the IP gets switched to secondary, to create a simple Hot Redudant system.  We have a very few users on Zimbra, but there are a lot of automated emails coming in and we require a very large storage, and hence we are using the Netapp box.  I am able to switch between the KVMs. However I am struggling to figure out how I need to mount the iSCI target, so that the mail application stays alive.  Zimbra typically installs on /opt/. Do I mount the target on /opt/, and if so will it work? Or am I missing something else?  Or should I run the VM of the shared storage itself, and if so how can I configure it.   Zimbra itself is a combination of a database and files, and uses a number of services to keep itself active. Idea of using a shared storage is for Redundancy and high availability.  Appreciate your response and support.


This post may be looked upon as a . This is input file: module ABC    x(a,b,c)   module DEFG   y(d,e,f,   g,h,i)   module HIJKL   z(j,k,l)  And output file should be: module ABC x(a,b,c)   module DEFG y(d,e,f,   g,h,i)   module HIJKL z(j,k,l)   I tried using asterisk as a wildcard character in the solutions provided in the  but it did not work as expected.  Addendum Upon closer examination I found out that indeed the solutions provided earlier work for me as well (as pointed out by @steeldriver).  The problem was that the file originated from a DOS/Windows platform and there was an unexpected ^M character that got inserted into the output, which was messing up down-the-line processing for me.  I have now run dos2unix on the input file and the problem has gone away (i.e. the previous solutions work for me as well). I am recommending that this post be closed as duplicate.

I can't find this case in the board, so I'm asking the question.  This is input file:  module   x(a,b,c)   module   y(d,e,f,   g,h,i)   module   z(j,k,l)   And output file should be:  module x(a,b,c)   module y(d,e,f,   g,h,i)   module z(j,k,l)


I want to insulate myself from changes to the domain of the server we're using.  For example, right now we need to point to:  www.oursite.com.    IN  CNAME   www.myserver.com.   But the service we're using to host the site is changing it so we have to change the CNAME of every domain we have pointed to their new domain:  www.oursite.com.    IN  CNAME   www.myserver-two.com.   Since we have over a hundred domains that we must make this change to, we want to insulate ourselves in case this happens again in the future.  Is it valid to setup a single domain ourselves:  www.corpsite.com.  IN CNAME  www.myserver-two.com.   And then point all of our other domains to that one:  www.oursite.com.   IN CNAME  www.corpsite.com.   Such that www.oursite.com will route through www.corpsite.com and end up hitting the correct server at www.myserver-two.com?  EDIT:  We have attempted this on one of the domains and it... appears to be working, but we cannot ping it (pings timeout).  So we're not sure if it's just "accidentally" working, and what other issues there might be to doing things this way.  And this is what happens when I ping it:  $ ping www.oursite.com PING us-east-1-a.route.myserver-two.com (scrubbed): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 Request timeout for icmp_seq 3   I think this is unrelated - I believe the server we're using is dropping ICMP packets.

Is it allowed in DNS to have a CNAME record that points to another CNAME record?  The reason we need this is that we have a hostname that we want to be looked up to the IP address of our web server computer. We also have another web server computer stand by that could be activated in case the first one would die. In such a case we would quickly need to point the hostname to the IP address of the stand by web server computer.  Unfortunately the hostname resides in a DNS domain where any change would take long time due to manual operation dependent on other sysadmins. But we have another DNS domain where we can perform the changes ourselves quickly. Having CNAME to CNAME chain seems like a possible solution. But is it allowed? Will web browsers understand it?


I am going through the following subroutine:  sub new{     my $self  = shift;     my $class = ref($self) || $self; }    Here, I don't understand what does shift is used for? What I understand from googling is that, shift returns and deletes the leftmost value of the array. But still I am not sure.  Another question, what does ref is used for? Google says it acts as typeof function that returns the type like scalar, array, hashes.  Still I am not sure about my understanding. Can someone please clarify?

What could the following line possibly mean?  my $x = shift;


Lately I have been applying to many universities for a position on a master's program, therefore I contaced many people asking them questions regardings these programs. What troubles me is the following:  When I recieve an answer, am I supposed to answer saying "Thank you" or something like that?   My reasoning is that these people (secretaries and such) have too much work and having an email at their inbox just thanking them will just cause iriation and disorganization.

Sometimes there are cases in a e-mail correspondence with academia staff (professors and bureaucrats) in which I don't know which is the best practice. I wonder if there is any best practice for the following cases:  Reply to a reply: when I ask for information via e-mail, and the reply gives me all the information I want, should I send an email just to thank them, or is this considered a bad, time-consuming practice?   How does a professor react to this kind of reply? And what about a bureaucrat (who maybe receives more e-mail)?  If I asked for an internship and he gave me a negative response, is not replying to him considered rude or normal?


When constructing $\mathbb{Q}$ as equivalence classes containing pairs of integers, a natural inclusion of $\mathbb{Z}$ in $\mathbb{Q}$ arises:  $$f: \mathbb{Z} \to \mathbb{Q}, \; n \to \frac{n}{1}. $$ This mapping is not surjective, but it is injective, and the function is well-defined. My question is: is injectivity required for us to conclude that $\mathbb{Z} \subset \mathbb{Q}$?   It seems to me that this isn't the case. I could assign two distinct integers to the same rational, and $\mathbb{Z}$ would still be embedded in $\mathbb{Q}$. I could assign every $n \in \mathbb{Z}$ to the rational $\frac{0}{1}$ and still prove the result.   Is this correct?   As a side question, when we talk about an inclusion map, must I map $\mathbb{Z}$ to $\mathbb{Q}$ or could I instead map $\mathbb{Q}$ to $\mathbb{Z}$ by the rule $\frac{n}{1} \to n$? In this case, perhaps it wouldn't work because the function would not be well-defined for all $\mathbb{Q}$. I'm interested in particular on how we defined an inclusion map.

I think I may have caught a mistake in my professor's lecture notes, and just want to be sure I'm not mistaken.   We want to construct $\mathbb{Q}$ from $\mathbb{Z}$, and we consider the mapping $$f: \mathbb{Z} \to \mathbb{Q}, \; n \mapsto \frac{n}{1}.$$ He writes that because $f$ is surjective, $\mathbb{Z} \subset \mathbb{Q}$.   However, it is surely not surjective because there are surely rational numbers whose  (unique) simplest form is $\frac{a}{b}$ for $b \neq 1$. The function is injective, surely, because the simplest representative in $\mathbb{Q}$ is unique, but that alone would not imply that $\mathbb{Z} \subset \mathbb{Q}$.   I think he meant to say that because $f$ is well-defined over the entirety of $\mathbb{Z}$, meaning we actually can identify each integer with a single rational number via the above inclusion, $\mathbb{Z} \subset \mathbb{Q}$.   Am I correct or glossing over something?


I have been thinking about upgrading to 13.10, the current release of Ubuntu. I am running 12.04 LTS. I was wondering how I would do this without having to back everything up, or do I need to back everything up? Thank you!

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


If data interoperability is authorized on ArcGIS Administrator but is not yet installed, how does one do so in ArcGIS 10.2.2?  I have the license, now how do I get the extension? I have already checked the Customize menu and data interoperability is not listed. Nor can I find it doing a very thorough search in Windows Explorer. My license has not expired, but I cannot figure out how to install the darn thing!  I forgot to say that I am looking for the executable file that installs the extension. Online help has just said that it is in my "media file".

The Data Interoperability Tools .tbx appears in my system toolboxes, however when I double click quick export or import, a red X appears.  I have gone into the administrator settings and the tool doesn't appear to be installed. How do I install it?  I am using ArcGIS 10.2 for desktop trial.  After I attempt to evaluate extensions, I receive a message which states all requested features have already been authorized on this machine.


I want the word that means "a means of getting a job over reliable candidates", but I'm going to explain it here again in an example.  The example: If X and Y applied to a job, and X happened to have a relative that works in the company they applied to it, while Y knows no one in that company, but he has very high qualifications over X. However, X got the job nonetheless since he had a _____.  X could have got the job by other means like he knows the manager there, for example. Thus, it is not only relatives related.  I thought of "means" and "intermediate" but the results I got didn't confirm my thoughts.

"Enchufado" or "enchufe" is a colloquial way of saying that a person got a job because a friend or relative gave it to him, instead of earning it themselves.   I thought about the word "appointed" but that is too formal and I don't think it conveys quite the same meaning (you could be appointed and still have earned the job).


${\rm f}$ is differentiable at ${\rm f}\left(1\right),\,$ ${\rm f}\left(1\right) > 0$.  Calculate the following limit, and here's what I did: $$ \lim_{n \to \infty }\left[% {\rm f}\left(1 + 1/n\right) \over {\rm f}\left(1\right)\right]^{1/n} = \left[{\rm f}\left(1\right) \over {\rm f}\left(1\right)\right]^{0} = 1 $$  Now, On the one hand, I can't see why the above isn't true. On the other hand, I got this hunch something is wrong here.  Can you direct me please?

I was asked to find two limits.  Let $f$ be differentiable function at $x=1$ and $f(1)>0$.   $$\lim_{n \rightarrow \infty}\left(\frac{f\left(1+\frac{1}{n}\right )}{f(1)} \right)^{\frac{1}{n}}$$   Let $\frac{1}{n}=h$ so the limit becomes $$\lim_{h \rightarrow 0}\left(\frac{f\left(1+h \right)}{f(1)} \right)^h=\lim_{h \rightarrow 0} \left(\frac{f(1+h)-f(1)}{f(1)}+1 \right)^h$$  How may I continue?  Same for $\lim_{x \rightarrow 1} \left(\frac{f(x)}{f(1)} \right)^{\frac{1}{\log(x)}}$. I defined $h=\log(x)$ and tried to continue with no luck.  Please help, thank you!


As an engineer, we are taught that the root cause of any problem can be solved if we ask why 5 times.  Sometimes you can figure it out at 4 and sometimes at 6, but it always averages to 5 times. - You can occasionally add a "how" into that root cause analysis, but generally, it is "why".  So I was reading an article on the internet about how black holes form and I started asking why.   Unfortunately, my analysis broke down on the first why.   So why a singularity? -  If the sum of a massive star's core is crushed to become a black hole, why and how does it become a singularity?  How do you crush point-like particles (quarks, electrons, etc) beyond their current size?  Logic dictates that there has to be a size where you cannot make an object anymore dense.     How do you get around Heisenberg's uncertainty principle?  We now know the exact location for all of the matter in the black hole.  We also should know the state of all of the matter in the black hole.  How do you get around Pauli's Exclusion Principle? - Do electrons cease being electrons when you squeeze them hard enough?  If so, at what point is it no longer an electron?  If a BH is a point-like object smaller than an electron, how does matter falling onto it smear over the surface?  Can an object be Planck size and still be a singularity? If so this would solve some of these questions....  Does matter falling onto the surface of a BH cause it to shrink further or does it grow with all of the matter smearing onto it?   If it grows in size, does this mean its gravity gets weaker?  After all, its gravity is inversely proportional to its size isn't it?

A star's collapse can be halted by the  due to the Pauli exclusion principle. In extreme relativistic conditions, a star will continue to collapse regardless of the degeneracy pressure to form a black hole. Does this violate the Pauli exclusion principle? If so, are theorists ok with that? And if it doesn't violate the Pauli exclusion principle, why not?


I have this equation, and I've tried checking which is bigger,  $ e ^ {3 \pi} \space ? \space 3 ^ {e \pi}$  What I've tried:  $ e ^ {3 \pi} \space ? \space 3 ^ {\pi e} / \sqrt[\pi]{} $  $ e ^ {3} \space ? \space 3 ^ {e}$  $ (e ^ {1\over e}) ^ {3e}  \space ? \space (3 ^ {1\over 3}) ^{3e}  / \sqrt[3e]{}$  $ e ^ {1\over e} \space ? \space 3 ^ {1\over 3} / \ln()$  $ {1\over e} \space ? \space {1\over 3} \ln(3) $  and now because ln(3) > 1, I assumed the right side was bigger, apparentaly it wasn't.  For future references. How do I go about checking which one is bigger?

I was trying to find a simple relationship between mutual exponentiation of two positive real values, if one of them is greater/smaller to another.


Suppose a user has no bad posts, perhaps no posts at all, but their user page consists solely to promote a product or is otherwise problematic.  How would I flag or report this user page?  This situation is not covered by , where the accepted answer recommends to flag the user's content and not the user; in some cases the user has no content.  And I do want to flag content, just the content happens to be on the user page.

I've seen plenty of posts about flagging spammy questions, but now it seems to be mutating to profile spam. Not that much of a problem, but there don't seem to be any moderation tools for this on the site.   Am I wrong?   Example:


Let $X,Y$ be independent random variables. Show, without using the change of variable theorem, that if $X \sim N(0,1)$ and $Y \sim N(0,1)$ then $\frac{X}{Y} \sim \mathcal{C}(0,1)$  So this problem is supposed to be solved using conditional expectation. So Im always getting messed in the same step.  We want to see that  $\frac{X}{Y} \sim \mathcal{C}(0,1)$.  Now  $$P(\frac{X}{Y} \leq z)=E(1\{\frac{X}{Y}\leq z\})=E(E(1\{\frac{X}{Y}\leq z\}|Y))$$  Now   $$E(1\{\frac{X}{Y}\leq z\}|Y)=\int  1\{\frac{X}{Y}\leq z\}f_{\frac{X}{Y}|Y=y}(z)dy$$  And therefore, to obtain $f_{\frac{X}{Y}|Y=y}(z)$  Y compute   $$P(\frac{X}{Y} \leq z|Y=y)=P(\frac{X}{y} \leq z|Y=y)=P(X \leq yz|Y=y)=P(X \leq yz)$$  Since $Y,X$ are independent. Now since $X\sim N(0,1)$ I obtain   $$f_{\frac{X}{Y}|Y=y}(z)=(P(\frac{X}{Y} \leq z|Y=y))'=(P(X \leq yz))'=\frac{y}{\sqrt{2\pi}}e^{-\frac{(yz)^2}{2}}$$ So far, no problem (unless thats what I think, but I don't know how to compute  $$\int  1\{\frac{X}{Y}\leq z\}f_{\frac{X}{Y}|Y=y}(z)dy=\int  1\{\frac{X}{Y}\leq z\}\frac{y}{\sqrt{2\pi}}e^{-\frac{(yz)^2}{2}}dy$$  How should I proceed? Is my working out ok so far? Thanks!

Problem: Show that if $X$ and $Y$ are independent $N(0,1)$-distributed random variables, then $X/Y ∈ C(0,1)$.  Question: I don't know how to proceed below. I want to prove that the PDF of $X/Y$ is Cauchy. PS. I looked on wiki and they defined $C$ as $X/Y$  Attempt:   The expression looked hairy and  could not integrate it.   Note to self: problem 8.


I love the Harry Potter books and movies, and I love all kinds of Folklore and Fantasy as well.  I thought the Potter book's concept of Horcruxes sounded familiar but I couldn't pin it down.  The idea of putting a part of oneself magically outside the body to guarantee immortality seemed like maybe something out of Eastern Folklore.  There is a great podcast called  that I recently came across, and there is an Episode about a character from Slavic Folklore named   Koschei the Deathless is an Evil Wizard who has placed his soul (or death) in a needle, which is in an egg, which is in a Duck, which is in a Hare, which is kept in an an iron box a long way away from his castle.  SO long as this is safe, he cannot die, and he recovers from all manner of gruesome death.  This is an awful lot like the concept of a Horcrux.  Even the descriptions of Koschei remind me of Voldemort.  Koschei is described as tall and nearly skeletal.  So does anyone know if the inspiration for Voldemort and the Horcruxes came from this bit of Slavic Folklore?  Or did JKR get the idea from somewhere else?

Although not completely analogous, there do seem to be some similarities between Sauron's "soul" embodied in the  and Voldemort's "soul" embodied in a Horcrux.   Has JKR ever talked about the inspiration of creating the Horcrux idea?  I'm wondering if she has ever discussed this aspect in her numerous interviews/tweets/etc.


I want to say that I was very surprised to see the new email template, you did great work as usual.  I just wanted to point out that there is a small <3 at the bottom of the email. I guess that's not a typo, but anyway, it might be.    See you on Stackoverflow!

I noticed "<3" appears at the very end of the my stackoverflow notification emails (after the zip code). Is this problem related to gmail?


If we click on  in any tag, we can see as in the below image.  Here I didn't understand 11, 4, 5K, and 800 which is displayed on the left side of the profile image.

Please refer to the image below.     I can't seem to correlate any relation between the two numbers. It says I have 222 total score for the jquery tag but how is this evaluated.


In a photo caption, if we use the elliptical 'My kids and me', would 'me' be correct, or would 'I' be correct? It seems as though it could go both ways.   [This is a picture of] 'My kids and me' or 'Me and the kids'.  Or,  'My kids and I' [are in this picture]  Which is the correct choice -- 'me' or 'I' in these elliptical constructions?  Thank you

I've always been taught to put myself last when referring to myself in the same sentence as others but the usage of "me and..." seems to be everywhere these days. The misuse of the word "me" instead of "I" aside, is there some new rule I haven't heard of? Shouldn't we put ourselves last regardless of the "me"/"I" usage?  Examples of "correct" usage:      My friends and I went for some ice   cream. Did you see my friends and me   at the ice cream stand?   Examples of "incorrect" usage:     Me and my friends went for some ice   cream. Did you see me and my friends   at the ice cream stand?   Note: I was also taught that the only person who could put themselves first was the queen.


i'm newbie in Ubuntu.  after installation Ubuntu 14.04 , i want to install firmware-mod-kit  tar.gz but i don't do that.  explain me step by step command to install for tar.gz , please.

I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?


I'm facing some issues with the upload of a custom font on Marketing Cloud. My clients purchased this new custom font and they would use it in cloud pages and email. I have only the css file and the font file (eot, tff, woff extensions). How can I use them? Anyone could help? Thanks in advance, Alessia

Has anyone figured out a way to use custom fonts in Marketing Cloud emails, where the font is specified only with Free Form content block level?   There is a hacky solution provided for full HTML emails in , but this method doesn't seem to work or I'm doing something wrong.   First encode font file on  site.  Then create codesnippet with the code:  %%[ SET @customFont = "T1RUTwAMAMKAAAMAQENGRiDCu2zDikEAAgTCuAAAwoITR1BPUzA.." ]%%   Then add the @fontface to the block  @font-face {               font-family: CustomFont;               src: url(data:font/ttf;charset=utf-8,base64,%%=v(@customFont)=%%) format('truetype');  }   Then style the areas with simple  div {      font-family: CustomFont; }   However even just adding the @font-face to the Free Form will disappear after saving it.   Anyone else have had any luck using custom fonts with emails HTML?


I have been working on a project involving two computers. I have been using Git to manage the code and sync it, but now, when I try to use Git pull, it fails, saying that there are conflicts and telling me to resolve them.  So, my questions are: What causes this? What is a conflict? How can I fix it? Can I force Git to pull?  Any help is appreciated.  Sorry, I'm kind of a noob...  Also, I'm using Linux.  Thank you!

I want to resolve merge conflicts in my Git repository. How to do that ?


I read that TeX was written in SAIL and re-writen in .  Do we still use that version today? In my Linux distribution, I use TeX-Live.  Does that also use the Pascal version?  Wikipedia says the last major revision was in  and that it's quite stable.  So only a  changes have been necessarily over the years.  I don't quite totally agree, since certain layout features are quite difficult to execute, and what if I don't like Pascal?  For my first issue, it may be possible to learn TeX (rather than ) and address these graphic design issues myself.  Still I am rather curious about to layers, thanks.      From blog :     TeX source code is full of examples of what would not be considered good programming style today, such as:         global variables   one-character variables   goto statements   procedures spanning hundreds of lines;   lots of macros;   duplicate code;   local variable reuse;   single-threaded assumption is “everywhere”;   mutability is just “pervasive”

I read on  that the first version of TeX was written in SAIL. However, does anyone know what language later versions (i.e the current one) are implemented in?


let f be an entire function.Suppose,for each a$\in \mathbb R$, $\exists$ at least one coefficient $c_n$ in it's expansion i.e, f(z)=$\sum_{n=0}^\infty c_n(z-a)^n$  which is zero.  then,which of the following are correct:  (1)$f^n(0)$=0, $\forall$ n$\ge$0  (2)$f^{2n}(0)$=0, $\forall$ n$\ge$0  (3)$f^{2n+1}(0)$=0, $\forall$ n$\ge$0  (4)$\exists$ k$\gt$0 such that $f^n(0)$=0, $\forall$ n$\ge$k  answers are given to be second and fourth..but,I have no idea on how to proceed in this problem  any help would be appreciated...

Let $f:\mathbb{C}\rightarrow\mathbb{C}$ be an entire function. And assume that at each point, one of it's derivatives vanishes.  What can you say about $f$?  A hint suggests that $f$ must be a polynomial.


Many languages, such as python, have strict rules as to how best to lay out the code. I have looked around but I can't find anything that details this for Latex. For example when looking at creating lists there are a number of ways it could laid out:  \begin{enumerate}     \item Point one     \begin{enumerate}         \item SubPoint One         \item Subpoint Two     \end{enumerate}     \item Point two     \item Point Three     \item Point four     \item Point five \end{enumerate}   Or  \begin{enumerate}     \item Point one \begin{enumerate}         \item SubPoint One         \item Subpoint Two \end{enumerate}     \item Point two     \item Point Three     \item Point four     \item Point five \end{enumerate}   or   \begin{enumerate}     \item Point one         \begin{enumerate}             \item SubPoint One             \item Subpoint Two         \end{enumerate}     \item Point two     \item Point Three     \item Point four     \item Point five \end{enumerate}   Is there a best practice for how to lay out Latex code or is it up to the individual to decide?

This is probably a really basic question:  When I write code, I want to achieve a logical and readable structure of the lines, where I can see which brace closes which brace.  \begin{equation}  \begin{multlined}   Here is some random equation that goes on for a long time  \end{multlined} \end{equation}   If the equation (here I am referring to the source code, not the compiled document) goes on to where it needs to jump to the next line, it is left-aligned, which screws up the indentation. I can manually add some spaces, but then if I change the size of the window, it realigns and is wrong again. What is the right way to achieve a logical indentation?  My apologies if this has been asked before; I did not find it on previously asked questions.  Edit: Sorry, forgot to mention, I am using writelatex.com as my editor.


I am learning about pointers, and how they can be used to send array(size is not assigned) to objects. Ultimately i m trying to learn how arrays can be added and multipled using operator overloading instead of using "vector" in c++.   I defined a class named vector as follows,  class vector { private:     int len;     int *pvec; } public:     vector(int array[])     {         len = sizeof(array)/sizeof(*array);         cout<<len<<endl;         pvec = new int[len+1];         for(int i = 0;i<len;i++)          {             pvec[i] = *(array + i);          }     }     void display()     {         cout<<"[";         for(int i = 0;i<len;i++)         {             cout<<pvec[i];             if(i < len-1)             {                 cout<<",";             }         }         cout<<endl;     } };   and i declared an object of class vector as follows  int vec1[] = {1,2,3,4}; vector v(vec1);   when i try to display the elements in the vector using the member function as  v.display();   the output is as follows  2 [1,2]   but as you can see the length of the vector is 4, but in the output it is displayed as 2. If i try to display the length of the array in main as  cout<<sizeof(vec1)/sizeof(*vec1)<<endl;   the length is displayed as 4, but if i pass the same array to the object it is displayed as 2.   If any one could point out a mistake in this program, i would be grateful.

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


here Is Code there any way to get Index of the object from the list by calling a method in the list.  for example something like this:  class A{     String a="";     String b=""; }  List<A> alist= new ArrayList();  for (A a : alist) {     a.getIndexInList(); }

Is there a way in Java's for-each loop  for(String s : stringArray) {   doSomethingWith(s); }   to find out how often the loop has already been processed?  Aside from using the old and well-known for(int i=0; i < boundary; i++) - loop, is the construct  int i = 0; for(String s : stringArray) {   doSomethingWith(s);   i++; }   the only way to have such a counter available in a for-each loop?


I am trying to connect to Oracle Database through UI Path but I am getting the below error.  "Connect: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater." After going through all the question on google, I got to know that Oracle installation will get the issue resolved but I have installed 'Oracle 12c' in my system but still facing the same error.  Is there any other solution to it?  Or do we have to give any specified path to UIPath to points towards Oracle? Not sure why the issue is coming up?  Is there anyone who faced the same issue and able to resolve with some solution?  I have tried installing Oracle Client 12c, suggested by almost everyone but the issue still not resolved.  Error Message:     12:40:45.7497 Error {"message":"Connect: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.","level":"Error","logType":"Default","timeStamp":"2019-04-20T12:40:45.7497423+02:00","fingerprint":"f46d089f-69d7-4c8f-b154-891952bbe98e","windowsIdentity":"WSINT\svc_ae_robocrm_1","machineName":"DEHERWSVWWS124","processName":"OracleDB","processVersion":"1.0.0","jobId":"16e75fda-c1e4-4b6a-ade7-9379293173ff","robotName":"WSINT\SVC_AE_ROBOCRM_1","machineId":0,"fileName":"OracleDBExecution"}

I have a web site that I developed on Vista using Vb.net9.  It makes a connection to Oracle.  for the connection I use System.Data.OracleClient.  It works fine on my machine, and our test server, but it does not work on the production server.  We installed the Oracle Client 11 on the server.  The error is System.Data.OracleClient requires Oracle client software version 8.1.7    We've tried, making a console app that opens the connection, connection runs fine, opens, displays a message and all is well there.  Then we make a simple web form, put it in the directory of the program, just a button, opens the connection, try..catch, grabs error, same error.  The console app was running under an Administrator, web site running under iwam.  Is it possible that iwam has a different path?


We are planning to release a new feature on the network in the next few weeks that will give users the ability to follow and unfollow questions. This was mentioned by Teresa in the . The plan is to roll out these changes in multiple releases. (Work is well underway, and we are aiming for a release by the end of March. However,  make it likely that delays may be introduced into the process, so it is hard to give an exact commitment right now).  First release  The initial release of this feature will allow any logged in user (other than the question owner) to follow a question. If a user follows a question, they will receive inbox messages related to any event for which the post owner would have received notifications:   New answers (other than answers by the follower) New comments (other than comments by the follower) Edits to the question (other than self-edits by the follower) Some post notifications   The inbox messages sent to post followers will indicate that they are the result of the question being followed, to distinguish them from notifications related to someone's own posts. And if you allow it in your , the inbox messages (if unread) will also eventually be emailed to you as well.  Users will be able to stop following a post that they have followed at any time.  Post follow will not affect post owner follows and @pings (which will not be muteable at this point — more on this below).  Later releases  We are planning to follow up our initial release with:   Answer following (works the same way as question follow, allowing users to be informed of new edits and comments on an answer) Renaming "favorite" to "bookmark".    The feature will be the same as Favorites, with the name and icon updated to more accurately represent user expectations and usage You will be able to both "bookmark" and "follow" a question We are including this update in the current body of work as there has historically been general confusion surrounding the Favorite function and its connection to notifications  New profile tab to view questions and answers that you are following     Once all of these changes have been made, this is what a question will look like — you can see [following] in the question menu along a popover that appears immediately after clicking the [follow] link, and the star icon for [favorite] has been replaced with a bookmark to match the new term.          No change to existing post owner & comment notification logic  I mentioned earlier that question owners will not be able to follow their own questions, nor will they be able to mute them. They will continue to receive the same inbox notifications that they receive today. Likewise, users who are @pinged on a comment will not be able to mute these pings.   Though we know that this has been requested in the past, there are some big technical hurdles to implementing this properly (even for a small-scale test) that preclude its inclusion in our current schedule. Additionally, allowing a post owner to mute new answers and comments (or any user to mute @pings) has additional potential side effects to the long-established norms of the site that require further research before we can proceed.  Is this a feature that you're interested in us looking into more and working on? If yes, tell us why in an answer.    We're really excited to be able to finally implement a feature that our own  - and that  over the years on many of our meta sites . We got to the solution we have now by reviewing these many years' worth of questions and talking one-on-one with users about this feature.  Given past requests and common follow/unfollow patterns, we feel good about releasing this first iteration of question following later this month. Once the first release launches, we'll ask for your help in telling us where you think we should iterate on the functionality and experience.  For now, if you see something that is confusing, that could cause issues, or could impact user experience, let us know in an answer.

We are happy to announce that the  follow question and answer feature is now live across the Network, including Stack Overflow, all Stack Exchange sites, and all Meta sites. (International Stack Overflow sites will have it turned on in a day or two once we have translations all set.) You can follow any question or answer (that you did not author) by clicking on the [follow] button that is shown in the menu immediately below the post (alongside the [share] button):    After you have followed a post, you will get inbox notifications for all new answers (in the case where you followed a question), comments, edits, and notices. You will not receive notifications for any action that you performed. As was mentioned in the earlier post, we are not making changes at this point to the notifications received by a post owner, or due to @mentions. The initial release had been planned to only include question following. Thanks to many folks who chipped in over the past few weeks, we are happy to release both question and answer following at the same time. These are available in both the regular and mobile views. We are still planning on two more related releases:  Follows profile tab and question listing filter: A tab for follows will be added to your user profile activity page. Each user will be able to view this tab that will provide a listing of followed questions and answers, with standard sorts, and the ability to unfollow from the listing. Users (with the exception of moderators and authorized staff) will not be able to see this information about other users (nor will it be made public in the API, SEDE, or data dumps). We will be renaming the Favorites feature to Bookmarks. As we mentioned in the preview post, the feature will be the same as Favorites, with the name and icon updated to more accurately represent user expectations and usage. And you will be able to both "bookmark" and "follow" a question.  We hope that this new feature will allow you to have better access to the content that you care about and want to keep tabs on. Update (June 11, 2020): The user profile tab and the rename of Favorites to Bookmarks have been released.


What's the most unfavourable question ever asked? When I ask this, I mean the one with the most downvotes.  The answer can either be the the whole of Stack Exchange or just a Stack Overflow.

What are the most downvoted questions and answers on Stack Overflow, Server Fault, Meta, and Super User history to date?  Similarly, what are the most upvoted questions and answers on SO, SF, Meta, and SU to date?


I have checked many dictionaries but there is no one opposite of 'sin'.

I would like to know if there is an opposite word for sin in English.  I mean, how could I say the opposite of     I committed a sin   other than using a negation?


There are weird shadows on my model in cycles and I have no idea why. What is this and how to fix this? Thanks in advance

Using v2.73, cycles and a very simple scene: an array of cubes, no big deal.   If I set the shader's material to transparent, the cubes in the foreground do become transparent but those far away in the back do not disappear completely and this strange dark things appear (visible in rendered mode and in final renders)    I've played with the clipping distance on the viewport and camera, but I can't figure out how to make those ghosts go away...


Sorry i'm not too computer savy and i'm looking for some help, if someone would be so kind. My D drive is saying i only have 166mb free of 703GB. I have pretty much cleared off all my files from there but the space keeps getting lower and lower, the total file usage on the drive is 11.7GB, i have no idea what could be taking up all that space. Any ideas on how to fix this would be great!

How can I visualize which folders and files are taking up all of the space on my hard drive?  I'm getting some conflicting reports on the size of hard drive contents. Namely what is and isn't there and what folders are actually using the space.   I need to know which of the files or folders the culprits behind all this hidden bloat. Also there should be a print option to get it on paper.


As per title, what is a "lemma"? How is it different from "theorem"?  ASAIK, I have to prove a self-proposed theorem in my paper. Do I also have to provide the proof for a self-proposed lemma?

I've been using Spivak's book for a while now and I'd like to know what is the formal difference between a Theorem and a Lemma in mathematics, since he uses the names in his book. I'd like to know a little about the ethymology but mainly about why we choose Lemma for some findings, and Theorem for others (not personally, but mathematically, i.e. why should one classify a finding as lemma and not as theorem). It seems that Lemmas are rather minor findings that serve as a keystone to proving a Theorem, by that is as far as I can go.  NOTE: This  doesn't address my concern, so please avoid citing it as a duplicate.


I want to display different column header text and regarding this header different values as well in my table. The header text and the value depends on one Parameter value. This parameter is defined in the "Parameters" section of the report as String, I also see it on the "Preview" view and I also give it a value there.  My problem is, that it's not working (this column is always empty: no header text, no value in detail) :) How can I use properly any IF statement here? This is my code for the table header:  ($P{first_column} == "first_column") ? "First Column" : ($P{first_column} == "second_column" ? "Second Column" : ($P{first_column} == "third_column" ? "Third Column" : ""))   What am I doing wrong? Thank you!  EDIT.:  this is the TextField expresion copied from the "source" view:  <textField>                 <reportElement mode="Opaque" x="0" y="0" width="58" height="30" backcolor="#CFCFCF" uuid="96edf250-4a1c-4448-8995-3753c76f4a1e"/>                 <textElement verticalAlignment="Middle">                     <font size="9"/>                 </textElement>                 <textFieldExpression><![CDATA[($P{first_column}.equals("first_column") ? "First Column" : ($P{first_column}.equals("second_column") ? "Second Column" : ""))]]></textFieldExpression>             </textField>

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


I have created a parent div. Inside that div there are multiple child divs: the first one is holding a background image, the second one, the website name, and the third one, some text.  Using jQuery, when a user hovers on the second div, i.e. website name div, the third div i.e text div is visible.  Now what I want is, when the text div becomes visible, to also replace the image in the first div. Here is my HTML and jQuery code so far:  HTML:

{Div holding the image as a background}

                                      Website Name

text Div

            JS:    $(".contentBlock3").mouseenter(function () {         $('.contentText3').fadeIn(1500);         $('.contentImg').css("background-image", "images/gurus_bw.jpg)");         $('.contentImg').css("background-position", "top 30px)");     });   The CSS line is not working... What am I doing wrong ?

I am making an expand/collapse call rates table for the company I work for. I currently have a table with a button under it to expand it, the button says "Expand". It is functional except I need the button to change to "Collapse" when it is clicked and then of course back to "Expand" when it is clicked again. The writing on the button is a background image.  So basically all I need is to change the background image of a div when it is clicked, except sort of like a toggle.


I'd like to pick one of less used channels in a relatively Wifi-saturated area, when using tethering (built-in option, mobile hotspot). I never found an option for changing the default channel and only frustrated questions abound over the net bumping around on various fora.  Does anyone here know maybe, how to change the wifi channel for Android phone acting as mobile hotspot?  Rooted Xperia Mini Pro, Android 4.04

Is it possibe to change the channel my phone broadcasts its Wi-Fi hotspot on?   Right now it's using the same channel as my neighbour (6). My router is reporting several unused slots.


I am searching the internet for hours but I can't find a step by step guide on how to use the dota 2 courier. All guides begin without showing its usage for a newcomer to the game. Any ideas or links? Thank you.

I've noticed Dota 2 has a courier unit which I suppose is made for delivering items from the stash/backpack to the hero on the battlefield. How should they be used and in what situations?  Sometimes in the game I find that I often can take my hero back to the base since I also need to heal, so I hit two birds with one stone. Also, sometimes my hero has a better speed than the courier. Thus I don't understand when to use it exactly.  When and how should he be used?


The linker gives me an error that my function is undefined but the code has been defined and there's no difference  between my definition and usage or anything like that  In my Main  vector<char> path = pathfinder(arr)   arr is a 2D array that has been previously defined  in my header file for pathfinder  template<std::size_t rows, std::size_t cols> vector<char> pathfinder(char (&maze)[rows][cols]);   In my cpp file for pathfinder  template<std::size_t rows, std::size_t cols> vector<char> pathfinder(char (&maze)[rows][cols])   The error that the compiler is giving  me is   /tmp/ccJM5V9F.o: In function `main': pathMain.cpp:(.text+0x5b): undefined reference to `std::vector<char, std::allocator<char> > pathfinder<15ul, 20ul>(char (&) [15ul][20ul])' collect2: error: ld returned 1 exit status   Anybody have any ideas?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I was googling about proxy setting in terminal. Example answer:  For your apt-get to work, you should edit your apt config file: sudo gedit /etc/apt/apt.conf  And add Acquire::http::Proxy "http://username:password@proxyhost:port/"; The syntax shown above should be strictly followed. This configuration may fail if your username or password has an '@' in it. You can also add proxy configuration for other protocols such as FTP.  My problem is how when my password consist '@' character, but not change my password Thanks.

I want to update ubuntu 11.04 throught apt-get. So I added the following lines in apt.conf  export http_proxy=http://username:password@proxyserver.net:port/ export ftp_proxy=http://username:password@proxyserver.netport/  export http_proxy=http://deepak:Deepak@123@12.1.1.1:3128   My question is: how do I insert special characters to a username or password?  For instance: my password for proxy is Deepak@123 and it is getting an error.


I have some code with FluentPDO with UTF-8 encoding like this:  and result:  but when i run this, it is not working, my database using utf8_general_ci collation. I try to edit and search this problem on this page but it still does not working. Please help me

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


I'm using the dramatist package to typeset a drama script. Characters are created using the \GCharacter-command. I want to customize that command to have it execute \NewPerson for each new Character created.  To do so, I've looked up the installed dramatist.sty on my system and copied the definition of \GCharacter into my preamble like that:  \renewcommand\GCharacter[3]{     \stepcounter{g\Roman{character}}     \global\@namedef{#3}{{\namefont #2}\xspace}     \global\n@me@ppend@nddef{#3}{\@ppendname}{%         \if@drverse             {\speakstab\speaksfont #2\speaksdel\par\nobreak\addvspace{-\parskip}}         \else             \item[#2\speaksdel]         \fi}     \global\n@me@ppend@nddef{gpersona@\Roman{character}}{%         @\Roman{g\Roman{character}}}{\castfont #1} }   This is the exact definition from the dramatist.sty-file. However, LaTeX complains: ! You can't use \spacefactor in vertical mode. on the first line I use \GCharacter in. How could this be, as I've changed nothing in comparison to the original definition?  In the following MWE, the error occurs in line 19:  \documentclass[a4paper]{scrartcl} \usepackage{dramatist} \usepackage{lipsum}  \renewcommand\GCharacter[3]{     \stepcounter{g\Roman{character}}     \global\@namedef{#3}{{\namefont #2}\xspace}     \global\n@me@ppend@nddef{#3}{\@ppendname}{%         \if@drverse             {\speakstab\speaksfont #2\speaksdel\par\nobreak\addvspace{-\parskip}}         \else             \item[#2\speaksdel]         \fi}     \global\n@me@ppend@nddef{gpersona@\Roman{character}}{%         @\Roman{g\Roman{character}}}{\castfont #1}     %\NewPerson }  \begin{CharacterGroup}{TeX.SX} \GCharacter{A Character}{A Character}{character} \end{CharacterGroup}  \begin{document} \DramPer  \lipsum[1] % Compilation fails with only \DramPer in document \end{document}   Without the \renewcommand, everything works fine:   Any clues on how to fix that error?

Many LaTeX “hacks” begin with \makeatletter and end with \makeatother. What do these commands do?


Consider the following code:   IStorage has const and non-const get methods. The concrete implementation defines them, but the definition is just copy-paste.  I could not call one get method from another because of the const mechanics of C++.  Is there any way to avoid this copy-paste?

Let's say I have the following class X where I want to return access to an internal member:  class Z {     // details };  class X {     std::vector<Z> vecZ;  public:     Z& Z(size_t index)     {         // massive amounts of code for validating index          Z& ret = vecZ[index];          // even more code for determining that the Z instance         // at index is *exactly* the right sort of Z (a process         // which involves calculating leap years in which         // religious holidays fall on Tuesdays for         // the next thousand years or so)          return ret;     }     const Z& Z(size_t index) const     {         // identical to non-const X::Z(), except printed in         // a lighter shade of gray since         // we're running low on toner by this point     } };   The two member functions X::Z() and X::Z() const have identical code inside the braces.  This is duplicate code and can cause maintenance problems for long functions with complex logic.    Is there a way to avoid this code duplication?


What is the difference between these two initialization of List :  List<Integer> aa = new ArrayList<>(); ArrayList<Integer> aaa = new ArrayList<>();

would report a violation for:  ArrayList<Object> list = new ArrayList<Object>();   The violation was "Avoid using implementation types like 'ArrayList'; use the interface instead".  The following line would correct the violation:  List<Object> list = new ArrayList<Object>();   Why should the latter with List be used instead of ArrayList?


I'm looking to transport my bike a fair distance (500km) and I would like to spend $150 or less on the transport. I currently have a strap mounted trunk rack but I worry about it loosening over the trip. I do have a roof rack (stock) and a hitch (also stock.) Which would be the best option for securely transporting my bike?

I have been biking for a while now but mostly for my commute to work. Now, I am interested in doing longer rides and trails as summer is almost there :). I need a bike rack for my car, which is a sedan (Toyota Corolla). I have a road bike, and a mountain bike, so I might carry one or the other or both at times.   What should I consider when buying bike rack / carrier for my car?


The chat markdown parser fails to properly create a link when the link itself contains multiple "http://". Example  Markdown:  View older versions of [StackOverflow](https://web.archive.org/web/*/https://stackoverflow.com/)   Expected result:     View older versions of         View older versions of " rel="nofollow">StackOverflow   This bug only appears in the timeline, and when looking at the   Outside the visual oddities of this bug, this bug also generates invalid html as a side effect of it.

is an example of the bug. It looks like this in regular chat:  That link points to: http://web.archive.org/web/20080409050311/http://personalpages.manchester.ac.uk/staff/daryn.lehoux/Tropes.pdf  In the transcript, it looks like this:  That link points to: http://web.archive.org/web/20080409050311/%3Ca%20href=  ... which doesn't work so well! Could this be fixed? I'm not sure if this impacts links to elsewhere.


I want to implement a function into the $(document).ready(xx) block.  It should look like this but doesn't work:  $(document).ready(function () {     function navTo(target) {         if (target === 'into.html') {             window.location.href = 'into.html';         }         else if (target === 'index.html') {             window.location.href = 'index.html';         }     }      window.init = changeColor();      function changeColor() {         document.getElementById("url").style.color = "#000000";     } });   if I do like this, it works:  $(document).ready(function () {      window.init = changeColor();      function changeColor() {         document.getElementById("url").style.color = "#000000";     } });   function navTo(target) {     if (target === 'into.html') {         window.location.href = 'into.html';     }     else if (target === 'index.html') {         window.location.href = 'index.html';     } }   My relevant HTML code:  click

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I would like to have the chapter number at chapter title on the same line, so instead of:  "chapter 1  chapter name"  I would like  "1 Chapter name"  or   "1. chapter name"  i'm using \documentclass[a4paper, 11pt, oneside]{Thesis} and i would like to keep that, so that i do not have to change the rest of my document.  thank you in advance!  Edit: i see the change needs to happen in the Thesis.cls i use, so here is the part of the code concerning the chapter title:  %% %% This is file `Thesis.cls', based on 'ECSthesis.cls', by Steve R. Gunn %% generated with the docstrip utility. %%  %% Created by Steve R. Gunn, modified by Sunil Patel: www.sunilpatel.co.uk  \usepackage{fancyhdr}  \lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}  \rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}  \chead{}\lfoot{}\rfoot{}\cfoot{}  \pagestyle{fancy}  \renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}  \renewcommand{\sectionmark}[1]{}  \renewcommand{\subsectionmark}[1]{}  \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else  \hbox{}  \thispagestyle{empty}  \newpage

I want to set chapters to look like 'bigger' sections.  Now in the report class I have a style like:     Chapter 1      Introduction      1.1. Section   What I want to achieve is:        Introduction         1.1. Section   I don't want to change the document class.


I want to have one section of my work with whole Chinese with lualatex but the other sections are in English.  I found this question is very useful, .  However, when I use the first answer in that question (copy code from the answer). I get a lot of errors with this pattern  Font \JT3/mc/m/n/10=IPAExMincho:jfm=ujisv at 9.62219pt not loadable: metric da ta not found or bad.  The second answer is work but has the problem as Leo Liu mentioned. The line break is make no sense.  I also tried this solution from   \documentclass{article} \usepackage[UTF8]{ctex} ...   but I get font-not-fount, "SimHei" and "Kaiti"  Another solution I've tried is  \documentclass{article} \usepackage{CJK} \begin{document} \begin{CJK}{UTF8}{gbsn} 你好 \end{CJK} \end{document}   There is no problem with compilation but I get the empty pdf file. If I put some English characters, only English characters are shown.  How to solve this problem?  Thanks.  Edited: Many people suggested that this question might be the same as . As I mentioned in the context, I get some errors from the solution in that question and it didn't work for me. So, my question here is to find another solution for typing Chinese in latex with lualatex which leads to no errors. I hope that someone can give me new solutions or how to avoid those errors in the context.

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


I have a table that is wider than the \textwidth of my document. I don't want to change the \textwidth nor the width of the table. As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin. I'd like to center the table, so that it will exceed the \textwidth equally on both sides.  I'm searching for the simplest possible solution.

I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin too much. I'd like to center the figure, so that it will exceed the \textwidth equally on both sides.


I want to know what position a div has in an argument: by this I mean, that if I have several divs witht the same name, like so:

   I would like to detect onclick what position the div click takes: 1st, 2nd....

I want find the index of a given DOM node. It's like the inverse of doing   document.getElementById('id_of_element').childNodes[K]   I want to instead extract the value of K given that I already have the reference to the child node and the parent node. How do I do this?


I was teaching my son and I always get confused which verb I should use, as English is our second language, I asked my son to put the word 'said' in example and he come up with this:     what did you said?    but know there's something wrong so I come a cross this website, so if anyone is reading this can we say :  I know that we can say "what do you say", but i need to know if we can use "what do you said?"

What is the correct sentence :         What did you say?       or         What did you said?      The second sentence seems correct, but I am not certain.


I'm trying to create a list containing multiple lists filled with the same values this way:  l1 = [[False] * n] * m  There are no any errors and at first glance it looks like valid lists of lists (print(l1) for n=m=3 : [[False,False,False],[False,False,False],[False,False,False]])  But when I tried l1[0][0] = True I got a strange behaviour - list has turned into [[True,False,False],[True,False,False],[True,False,False]].  So, why did such list initialization results to it? And what should I do to create a list properly?

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


Find a set A of rational numbers such that (A, $\le_Q$) is isomorphic to sup{$\omega$, $\omega^\omega$, $\omega^{\omega^\omega}$, $\cdots$}.   This is a question that is listed in "Introduction to Set Theory" by Hrbacek and Jech on page 123. Here, $\omega$ represents for the ordinal corresponding to the set of natural numbers. The prior question was to find such a set that is isomorphic to $\omega^\omega$, and I've constructed A as {$\prod {{1} \over {p_i^{a_i}}} $} there, where $p_i$ represents for the $i$th prime number and $a_i$ being its exponents.   Honestly, I've tried my best but couldn't construct such a set corresponding to sup{$\omega$, $\omega^\omega$, $\omega^{\omega^\omega}$, $\cdots$}. And now I have another question: what is the biggest ordinal number that is isomorphic to (A, $\le_Q$) where $\le_Q$ denotes the usual ordering in rational number? According to Well Ordering Principle, we know that Q can be well-ordered, then (Q, $<_W$) is isomorphic to a unique ordinal, but clearly $\le_Q$ isn't a well ordering. Is there no limit in this procedure?

I don't know if this question is appropriated for this site. Anyway, I'm searching for an isomorphism of order $f:K \longrightarrow \epsilon_o $, such that $(K, \leq)$ is a subset(proper or not) of $(\mathbb{Q}, \leq)$ and $\epsilon_o = \sup\{\omega, \omega^{\omega}, \omega^{\omega^{\omega}}, ... \}$. Actually,  I'm not finding neither an isomorphism between $K$ and $\omega^{\omega}$.  Thanks in advanced.


/route/some pic name.jpg   I need to find all white spaces beetwen route/ and .jpg using RexExp.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


I am trying to autowire an object using component-scan in my restFul Webservice. But getting Nullpointer exception when userDao object is used.  I dont want to use Spring MVC or spring boot. Just want to simply inject the dependency using component-scan. Please help!!!  UserDao.java  @Component public class UserDao {  public List<User> getAllUsers(){      //return a list  }  }   UserService.java  @Component @Path("/UserService")  public class UserService {      @Autowired     private UserDao userDao;      @PostConstruct     public void initialize() {         System.out.println("userDao object: " + userDao);     }      @GET      @Path("/users")      @Produces(MediaType.APPLICATION_JSON)      public List<User> getUsers(){          return getUserDao().getAllUsers();      }        public UserDao getUserDao() {         return userDao;     }      public void setUserDao(UserDao userDao) {         this.userDao = userDao;     } }   applicationContext.xml  <?xml version = "1.0" encoding = "UTF-8"?>  <beans xmlns = "http://www.springframework.org/schema/beans"    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"    xmlns:context = "http://www.springframework.org/schema/context"    xmlns:aop = "http://www.springframework.org/schema/aop"    xsi:schemaLocation = "http://www.springframework.org/schema/beans    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd    http://www.springframework.org/schema/context    http://www.springframework.org/schema/context/spring-context-3.0.xsd    http://www.springframework.org/schema/aop     http://www.springframework.org/schema/aop/spring-aop-3.0.xsd ">     <context:annotation-config/>    <context:component-scan base-package="com.rest"/>    <aop:aspectj-autoproxy/>  </beans>   web.xml  <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"      xmlns = "http://java.sun.com/xml/ns/javaee"      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"      id = "WebApp_ID" version = "3.0">     <display-name>User Management</display-name>     <servlet>        <servlet-name>Jersey RESTful Application</servlet-name>        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>        <init-param>           <param-name>com.sun.jersey.config.property.packages</param-name>           <param-value>com.rest</param-value>        </init-param>        <init-param>             <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>             <param-value>true</param-value>         </init-param>          </servlet>     <servlet-mapping>        <servlet-name>Jersey RESTful Application</servlet-name>        <url-pattern>/rest/*</url-pattern>     </servlet-mapping>   </web-app>

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


I'm using the pattern:  var pattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;   So when I submit/send an email to myself from my contact form to test out a bunch of different email combinations, everything has worked except for:  whatever@yahoo.com && whatever@google.com   I'm not entirely sure why those two aren't being included, but I'd appreciate any assistance.

Is there a regular expression to validate an email address in JavaScript?


From the first episode of Naruto (season 1) until the last episode of Naruto Shippuuden, Naruto has a crush on Sakura, who in turn Sakura has crush on Sasuke (Ino also has crush on Sasuke). I've been wondering if who will be the wives of Naruto and Sasuke has already been revealed in the manga? Since both of them are already matured. There are some speculations  that Naruto will be the husband of Sakura (just saw it on FB- an image).

In the last chapter of Naruto, some characters got married, and some of them had kids. What is the entire husband-wife-kids set?


I do not want to loose any data. My data is very important. I have Ubuntu 16.04 installed on my Lenovo G50-70 laptop and all the partitions are formatted in ex4. Now I have to dual boot with Windows 10 alongside Ubuntu but the internet says that I have to format my ex4 partitions to NTFS and then only Windows will recognize my partitions. Can I solve this issue without loosing any data?

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


When I plugin a usb-drive or open dmg-archives they don't appear under the 'Devices' section in the sidebar of the Finder anymore.  The drives are there when I check with 'Disk Utility', they appear on the Desktop and I can browse the files if I go to /Volumes.  I have 'Hard disks' and 'External disks' checked in the Finder preferences -> Sidebar tab.  Any ideas on how to get them to show up in the sidebar?  I'm using MacOS Lion 10.7.5.

I've been dealing with an issue for a very long time, I feel like it used to be a problem randomly, but at least for the last few months it's persistent. The Finder no longer lists mounted Disk Images (.dmg files) in the sidebar. Not for DMGs, nor external hard drives / external media.  The volumes are listed in Disk Utility, and I have resorted to using that to gracefully unmount the disk image. When a volume is mounted, it is possible to access it by it's /Volumes/<Volume Name> path.    In this screenshot you see Finder's Sidebar preferences. You can see that I have a DMG for Clementine open, and Disk Utility confirms that. But the volume isn't showing up on the sidebar. You can also see that the Devices list is expanded, listing my built in volume.  I've done some light searching of options to see if it could be controlled by a plist defaults setting, but I haven't found anything yet.  Why aren't mounted volumes showing up on the sidebar? How can I restore them in the list?  This problem began under Mavericks, and has persisted in Yosemite.


How do I force the cp command to create subdirectories?  For example, if have this file: /home/test1/x/y/z.jpg and this folder /home/test2/temp/.  cd /home/test1 cp -r ./x/y/z.jpg /home/test2/temp   gives /home/test2/temp/z.jpg if /home/test2/temp/x/y doesn't exists. I want /home/test2/temp/x/y/z.jpg to be created.

I want to cp a file to another directory but that directory doesn't exist yet.  So I would do:  mkdir /new_place cp the_file /new_place   Can I do this in one? I imagine something like cp the_file -m /new_place if "m" stood for "make dir's that don't exist"  Would this be a chance to use scp, rsync or another copying utility?


For the numbers $1, \ldots, N$, how many ways can I arrange them such that either:   The number at $i$ is evenly divisible by $i$, or $i$ is evenly divisible by the number at $i$.   Example: for $N = 2$, we have:   $\{1, 2\}$   number at $i = 1$ is $1$ and is evenly divisible by $i = 1$. number at $i = 2$ is $2$ and $i = 2$ is evenly divisible by $2$.  $\{2, 1\}$   number at $i = 1$ is $2$ and is evenly divisible by $i = 1$. number at $i = 2$ is $1$ and $i = 1$ is evenly divisible by $1$.    so there are two such arrangements for $N = 2$.

Can you find the smallest positive number such that if you shuffle the digits of the number in a particular order, the shuffled number becomes twice the original number.  Source:   I understand the answer is $125874 => 251748$  $251748$ is twice the $125874$ and have same digits $1,2,4,5,7$ & $8$  but how to solve this non programmatic ?


Imagine that you, unfortunately, fell into a black hole. For external observers, you would slowly go closer and closer to the event horizon. Then, when you reach the event horizon, you would appear to be frozen there and get red-shifted for an external viewer.  Since it takes infinite amount of time to enter the event horizon, which will happen instantly for you. It is possible that by the time you enter, the black hole, or maybe even the universe, has ceased to exist. So, how would you enter it if it doesn't even exist anymore?

This question was prompted by . Notoriously, if you calculate the Schwarzschild coordinate time for anything, matter or light, to reach the event horizon the result is infinite. This implies that the universe ages by an infinite time before someone falling into the black hole reaches the event horizon, so could that person see the universe age by an infinite time?  To be more precise, suppose the observer starts falling from rest at time $t = 0$ and some initial distance $r > r_s$. If we wait for some time $T$ then shine a light ray at the falling observer. Will the light ray always reach the falling observer before they cross the event horizon? If not, what is the formula for the longest time $T$ that we can wait and still be sure the ray will catch the observer? If $T$ is not bounded it implies that observer could indeed see the end of the universe.  I can think of a qualitative argument for an upper limit on $T$, but I'm not sure how sound my argument is. The proper time for the observer to fall to the event horizon is finite - call this $\tau$. The proper time for the light ray to reach the horizon is zero, therefore the light ray will reach the observer before they cross the event horizon only if $T < \tau$. Hence $T$ is bounded and the observer won't see the end of the universe.  I think a more rigorous approach would be to determine the equations of motion (in the Schwarzschild coordinates) for the falling observer and the light ray, and then find the condition for the light to reach the falling observer at some distance $\epsilon$ from the event horizon. Then take the limit as $\epsilon \rightarrow 0$. In principle this seems straightforward, but in practice the algebra rapidly defeated me. Even for a light ray the radial distance:time equation isn't closed form (Wolfram claims it needs the $W$ function) and for the falling observer the calculation is even harder.


I want to know how to put 2 commands in the same command block, but I don't know how. I think I need to use /execute, but that might not work. If you have ideas, please tell me. That would be greatly appreciated for me and other people.

I am looking to try and set multiple commands in a single command block, but so far everything I have tried just returns "Unknown Command".  What is the format for writing multiple commands in a single command block in Minecraft 1.8?  Can I use either of the following:  Command:(command here) Command:(command here)     /command here; /command here;   Or is there another format?


Consider the following example:  class MyClass {     const int _id; public:     MyClass(auto id) : _id(id) {}  };  int main() {     MyClass(3);      return 0; }   It works fine.  Also  class MyClass {     const int _id; public:     MyClass(auto id); };  MyClass::MyClass(auto id) : _id(id) { }  int main() {     MyClass(3);      return 0; }   Works fine.  However,  #ifndef MYCLASS_H #define MYCLASS_H  class MyClass {     const int _id; public:     MyClass(auto id); };  #endif   and  #include "MyClass.h"  MyClass::MyClass(auto id) : _id(id) { }   and  #include "MyClass.h"  int main() {     MyClass(3);      return 0; }   Gives this linker error:  /tmp/ccJQ1HNz.o: In function `main': deduce.cpp:(.text+0x15): undefined reference to `MyClass::MyClass<int>(int)' collect2: error: ld returned 1 exit status   So it has to do something with templates .. But where do they come in?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I've been looking through various pages on this site and others looking for a way to execute a script on shutdown and restart, but none of them are working for me.   I've tried placing bash scripts in /etc/init.d/ and linking them to /etc/rc0.d/ and /etc/rc6.d/, but they won't run on shutdown or restart. I've also tried using the update-rc.d command to create new services, but    they don't work, and  they don't even create a new link in the rc?.d folders.

I have a machine running a couple of vagrant VM. The problem I have is that sometimes I forget to shutdown those VM before I shutdown or reboot my machine. Because of that my machine get stuck with this message: waiting for vboxnet0 to become free  I searched about solutions and I found this page :    I tried what they for shutdown, but it doesn't work.  I wrote an sh file for that command:  #!/bin/bash  cd ~/workspace/git/mediaservice vagrant halt   any suggestions?


In my external hard drive, there are about 1TB of data (PDFs, plain text docs, pictures, binary execuatables etc.). The data was created in Windows 10 and the hard-drive is formatted NTFS.  Starting from the root of the hard drive, I would like to recursively descend into each folder and replace the spaces in all files with underscore to make it easier to work with them from the terminal.  I saw the question : and thinking of using the top answer there   rename 'y/ /_/' *    from the root of my external hard drive.  However, that thread does not have a high view count and only 2 members have upvoted the answers. Being a novice, I am a little concerned if there might be any inherent issues in this. Is there a better way to handle this issue of cross-platform ease of working at the terminal ? (maybe advice like 'do this only for plain text files, or some other problems that I am not able to foresee')

How do you rename all files/subdirs in the current folder?  Lets say, I have many files and subdirs that are with spaces and I want to replace all the spaces with an underscore.  File 1 File 2 File 3 Dir 1 Dir 3   should be renamed to  File_1 File_2 File_3 Dir_1 Dir_3