Need help understanding what a natural log transformation is actually doing and why specific transformations are required for linear regression

I’m taking an online “Intro to AI” course for which I’m doing some azure machine learning labs.  This course is largely about how to apply azure ML solutions and, while there is an “essential math for ML module”, it doesn’t do any sort of deep dive into the math/statistics. But I want to understand what’s happening mathematically to a basic level. (I've taken an intro to statistics, that's it so far.)  Below are some details about some specific things I’d like to understand more, and my specific questions.  At a particular point in the “training a classification model” lab, there is this text: “The distribution of the Age column in the diabetes.csv dataset is skewed because most patients are in the youngest age bracket. Creating a version of this feature that uses a natural log transformation can help create a more linear relationship between Age and other features, and improve the ability to predict the Diabetic label. This kind of feature engineering as it’s called is common in machine learning data preparation.”  Then the instructions show you how to use Azure ML Studio to apply the natural log operation to the age column in the data set:   And after doing that, the data includes the original/raw age data and the transformed age data:   Question #1: What is that transformation actually doing? I don't mean the nitty gritty math, but what is it doing conceptually?    Question #2: The next general question is around why is a transformation necessary.  On that, I did some research and found this article () that describes which type of log transformations to use in a few scenarios.  Here’s a snip of text from the article: “The need for data transformation can depend on the modeling method that you plan to use. For linear and logistic regression, for example, you ideally want to make sure that the relationship between input variables and output variables is approximately linear, that the input variables are approximately normal in distribution, and that the output variable is constant variance (that is, the variance of the output variable is independent of the input variables). You may need to transform some of your input variables to better meet these assumptions.”  I don’t understand why any of that is necessary.  I’ve broken my question down:  For linear and logistic regression, for example, you ideally want to make sure that: the relationship between input variables and output variables is approximately linear – why? the input variables are approximately normal in distribution- why? the output variable is constant variance (that is, the variance of the output variable is independent of the input variables – why?  Could someone help with information for those whys, or point me to material that would help?


What's a text editor for Linux that can compile and run without the use of Terminal?

I'm looking for a text editor that can compile and run .java files directly, without having to use javac filename.java and java filename. Something similar would be Textpad for Windows, which uses ctrl+1 to compile and ctrl+2 to run.  I've been using gedit for a while, but I find that Textpad is so much easier. What is a program for Linux (preferably free) that offers this feature?  I also don't want an IDE, just a simple text editor with keyboard shortcuts. I have tried Eclipse and Netbeans and found them too unwieldy for my tastes.


Displaying of URIs (subset of original question)

Original question was resolved; I'd missed the backtick escapes.  However my second point remains: In comments, unescaped URIs have the scheme stripped off them as part of the process of converting them to links. Thus, a careless attempt to discuss http://foo.com in comments displays as foo.com.  I don't think stripping the prefix off actually serves any useful purpose. Browsers generally assume the http: scheme and automagically reintroduce it, but other tools generally don't, and not every discussion of URIs is in the context of a browser.   So, low-priority suggestion: Were it my system, I'd get rid of the stripping. It has the potential to cause confusion, and I don't think it has value to offset that.  Concrete suggestion: Rather than displaying as foo.com, display as   Up to you, of course.  EDIT: Yes, I saw the possible dupe. Like the backticks, the answer suggested there is a workaround for the rendering problem... but I still consider the default rendering a problem. It may make sense to combine this question into that one.


How to make sure one understands each and every detail while reading a textbook/research paper without leaving any gaps?

I am a physics Master's student.  I have good grades, with CGPA above 9(/10)(However, all courses in my university are graded on a curve so the actual marks are significantly lower than 90%). This has been my marks throughout my undergraduate and graduate courses and I was happy because this was above average. Also, my summer projects in UG were usually computational and any difficulty I had in theoretical aspects I attributed it to my inexperience in advanced Physics.   However, recently I have started to work on pure theoretical project and while reading for the project I realized that I consistently miss some details from each topic. I understand the general idea, can re-derive most of the equations(with some effort) however when I discuss things with my professor or when I read further topics I realize that I have missed certain key-details. This is exactly similar to the case of me missing a few key questions in my exams and getting that 9 grade point instead of 10(or at-least I think so). I was not worried about this before but now I realize that there is some flaw in the way I study (but I do not know what).   Since I want to apply for Physics PhD I realized that I will need to have solid concepts and it would be best to correct my mistakes but I do not know how or even what could be the reason for my imperfect understanding.  Any direct suggestion would help or even certain general guidelines on what I can do.    Things I've tried recently -   1) I've started to written down almost everything I read. This is slightly laborious but is certainly helping. It also helps me to gloss over the things I read previously when I come back the next day.  2) I completely avoid smartphone when I'm library/study room so that I won't get distracted. Not sure if it helps me solve the above problem but certainly helps me study better in general.  3) I've tried to read the topics from several sources. The books I am reading is somewhat like a collection of research papers and hence does not have a exercises. So I though reading from various sources might help get better ideas but it's not really helping because most other sources are too high level as an introductory text. But this will probably help me in cases where it's practical to do this.  4) Somewhat similar to point (1)- I am trying reread, whenever I can, what I've done until that point. But not sure how much this will help me in filling the gaps.


1) When we omit the intercept, aren't we forcing the regression line through the origin? Does that pose any problem because we assume that there is no variable that affects the outcome other than the independent variables we have in the model? 2) Is it okay for the intercept to be significant in a regression model with categorical/dummy variables?  the first question has been answered in another query as pointed out by a user.


What are objections to personality-theoretic identity branching?

I am currently watching the Yale open course "Philosophy of Death" with Shelly Kagan. So far he has made the case that there is not good enough reason to believe in the existence of an immaterial soul. Thus everything is now being argued mostly from a physicalist perspective.   He is now discussing personal identity, specifically the perspective of personality theory of identity which says  Your personality (beliefs, desires, memories etc etc) is what makes you you. Although your personality may change across space-time, the entire continuously connected space-time worm of beliefs, memories, desires, etc etc is your personality and forms your identity.  We are presented with roughly the following science-fiction thought-experiment:  Imagine I die and a scientist is able to copy the information from my brain that composes my personality and then is able to load (implement) my personality onto the brain of some other dead body, John Smith from Iowa. Certainly "I" would awake with my same (space-time worm of) desires, beliefs and memories but in the body John Smith. Based on the personality theory of identity, this person would be me. Now imagine the scientist loads my personality onto another dead body, Kris Kringle from Florida. Are the person in Iowa and the person Florida both me?   We only have three options:   Only one of the two are me. Both of them are me. Meaning the space-time worm that was just one me has now split into a two me's, one in Iowa and one in Florida. Neither is me.   As there is no reason to logically accept one as me and the other as not, option 1. cannot be the case.  Option 2. directly follows from the personality theory of identity as stated above. Kagan immediately dismisses this as absurd and therefore appeals to option 3. (requiring a revision of the personality theory by adding a no-splitting clause). However Kagan does not elaborate on this dismissal.  Why dismiss option 2?   Edit for further simplification:  1st premise (soundness aside)  Personality theory of personal identity:  You := your personality (whatever that is)  2nd Premise  Your personality is transferable and copiable to different objects in such a way that preserves it.  3rd Premise  Your personality has been copied to two different objects A and B.  Therefore  You are A and you are B. (Option 2 and not option 1 nor option 3)  What is wrong with this conclusion?   Furthermore, what is so repulsive about the idea in general?


How to extract the Most Significant bit of a binary number?

If I have a 16-bit number named n and another 16-bit number named n2, and I want to set the first 8 bits of n2 to n. Only the first 8 bits of n should be the same as n2, the remaining 8 should not change. What should I do in such a case? I tried shifting the numbers by 8 but I don't know how to extract the MSB of n and set it to the MSB of n2 and then shift. Can someone please help me out? Thanks!


Let $k$ be an arbitrary field and consider the corresponding one point field scheme $Spec(K)$.  Set $G:=\text{Gal}(K_s/K)$ the corresponding Galois group of separable closure.  Denote by $\mathbf{Sh}\big(\text{Spec }k)_{\text{et}}$ the category of etale sheaves over $Spec(k)$.   I often heard that known theorem that the exist a category equivalence between  $$ A: \mathbf{Sh}\big(\text{Spec }K)_{\text{et}} \cong\{\text{category of discrete G-modules}\} $$  given explicitely by   $$\mathcal F \mapsto \varinjlim_{K'/K\text{ finite separable extension}} \mathcal F(\text{Spec }K') $$  with inverse  $$\big(\text{Spec }k'\mapsto M^{\text{Gal}(\overline K/K')}\big) \leftarrow M $$  My question question is why this category equivalence also induces the identification of Etale cohomology with Galois cohomology?  In other words why  $H^i_{et}(X,\mathcal F)\cong H^i(G,A(\mathcal F))$ resp $H^i_{et}(X,A^{-1}(M))\cong H^i(G,M)$ always holds for etale sheaf $\mathcal F$ and $G$-module $M$?


I want to remove duplicate values from an array a and get the new arrary b as answer. But array b is containing all the values of array a

I want to remove duplicate values from array a and get a new array b without duplicate values. What  am doing wrong. HELP!!!  <?php  $a = array('pasta','vegetables','vegetables','salad','salad');  $b=array();     for ($i=0;$i<=count($a);$i++){       if(!in_array($b,$a[$i])){        array_push($b,$a[$i]);         }  }  print_r($b);  ?>


tcolorbox causes horizontal offset for marginnote

I'm using the  package to get some frames into my document output (the how-to about the partial frame was ). I'm also using  to output margin notes, both from the framed text and from the running text.  I noticed that if I specify a left offset, the margin note gets displaced horizontally by that offset (it also gets displaced by specifying a nonzero leftrule thickness, and probably by other measures as well, but I didn't experiment much more than that).  I haven't found a way to prevent this, other than saying \hskip-10pt in the margin note. Obviously this is not ideal, as the frame parameters may change over time.  I have tried fiddling with \marginnoteleftadjust and \marginnoterightadjust, but as the marginnote docs suggested this had no effect, as I'm using a current pdfLaTeX version.  I'd appreciate any ideas how to get the notes from within the tcolorbox at the correct horizontal position, probably it's (again) something I don't see ...  MWE:  \documentclass{scrartcl} \usepackage[most]{tcolorbox} \usepackage{marginnote} \newtcbox{\one}[1][]{%     enhanced,%     frame hidden,%     colback=white,%     boxsep=0pt,%     left=10pt,% <---marginnote displacement!     top=0pt,%     bottom=0pt,%     right=0pt,%     leftrule=0pt,%     rightrule=0pt,%     left skip=20pt,%     after skip=\baselineskip,%     overlay unbroken={%         \draw[thin,black,double] (interior.north west)--(interior.south west)--(interior.south east);         },#1} \parindent0pt \begin{document} regular text\marginnote{correct}.  \one{tcolorbox text\marginnote{wrong}}  \one{tcolorbox text\marginnote{\hskip-10pt manual}} \end{document}   Output:


Missing comma between author and year in the reference of the maintext

I'm new to LaTeX and am using the Harvard-style template on overleaf.  Following is my file:   \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{csquotes}  \usepackage{geometry} \geometry{a4paper,scale=0.8} \usepackage{graphicx} \usepackage[style=authoryear-ibid,backend=biber]{biblatex} \let\cite\parencite  \addbibresource{Ref.bib}% Syntax for version >= 1.2  \title{} ... \printbibliography \end{document}   My problem is when I use \cite{{pauling1960, repp2004}}, I got (Pauling 1960; Repp et al. 2004) rather than (Pauling, 1960; Repp et al., 2004). The comma is missing.   What's the problem?


Why does sed replace all occurrences instead of only the first occurrence?

I'm trying to replace the first occurrence in a file using sed:  sed -i s/he/He/ dummy.txt   Instead of replacing first occurrence, it replaces all the occurrences, even without /g.  According to the documentation it should replace the first only.   The sed version which is:  GNU sed version 4.1.5   Am I missing anything? Or does the behavior differ for different sed implementations?


I need a lightweight IDE for C coding, for Lubuntu

I have no clue about linux, i've used Windows all my life. I recently installed Lubuntu to a really old laptop i had no use of. I need to install a lightweigh IDE for C coding to use for my university needs. I've only worked with Dev C++ and Visual Studio in my main computer that is able to handle these software. But i need to get a working IDE on my laptop that just works for me to code on the way.  Some info about my laptop: Laptop : Acer extensa 5230 CPU : Intel Celeron 2Ghz Single Core 32bit RAM : 1GB ddr2 Storage : 160GB  Thanks for the help in advance.  PS : Any advice for starting on linux would be very helpful.


NS2 tracegraph installation in Ubuntu 16.04

When I want to run ./trgraph for ns2 tracegraph I get  ./trgraph: error while loading shared libraries: libmwsgl.so: cannot open shared object file: No such file or directory        How can I solve this problem?


How would you calculate the force of a hammer hitting an anvil?

If I were to hit an anvil with a hammer (let's say a 1 kg hammer at 1 m/s) how would the force of the impact be calculated?  So, where I'm at with this is that I know the deal with f = mv, so the force would be equal to 1N/s. My problem is with the time that it takes for the energy to be transferred from the hammer to the anvil. If you could see the time it takes for the collision to happen (say 0.1s) that would be easy (10N).  The hammer with the anvil is purely just an example. I've heard people mention of using a dirac delta function, but that just feels unrealistic since it's obviously not instant. Is there an inherent limit to the amount of time that it takes for the force to be applied (say the speed of sound?)  (also like to note that I have absolutely 0 idea how to use a dirac delta function. From the looks of it it's just an integral but I do not understand it)  EDIT: Thanks for the answers. I've been googling for about a week now, watching every video I could find on impulsive force, all of them say to measure it physically. You can understand why this is a very unsatisfying answer, and none of the posts answer this particular question.  Energy is not transmitted instantly. If I were to have a stick 2 lightyears long, put a button at the end of the stick, and push the stick from earth, the button would not be pressed instantly. I was curious if there's anything that determines the rate of energy transfer.


Windows 8.1 32bit version upgrade to Windows 10 64bit version

I have a windows 8.1 32bit installation with 4GB of RAM and a x64 capable CPU. I've upgraded the RAM to 8GB and want to do the Windows 10 upgrade... as far as I'm aware the upgrade will do a like for like (32bit to 32bit)... If I do this and let Windows 10 activate... then do a clean x64 Windows 10 installation... will this work and activate correctly or does the hardware id hash contain architecture information (32bit x64 etc) and not allow this?


Is there a formula to calculate $1^1 + 2^2 + 3^3 + ... + n^n$  I searched but didn't find a formula for increasing powers


Pair consecutive elements in a list while iterating

I have a list that will always contain an even number of elements and I want to iterate over this list to create a new list containing lists of each 2 consecutive numbers in the list.  For example:   first_list = [1,2,3,4,5,6,7,8] second_list = [[1,2], [3,4], [5,6], [7,8]]   When I iterate over the list I cannot figure out how to select consecutive pairs. I've tried a million variations, and this is the closest that I've come.   first_list = [1,2,3,4,5,6,7,8]     second_list = []  pairs = 1  for item in range(len(first_list) - pairs):      second_list.append([firs_list[item],first_list[item + pairs]]) print second list  [[1, 5], [5, 7], [7, 6], [6, 2], [2, 3], [3, 4], [4, 8]]   Is there some way that I have have the for loop iterate over every other item?


Is Dragonball's hero Son Goku unbeatable?

After seeing the Dragonball series in cartoons and in movies, I'm confused about the actual power of Goku.    Everytime he fights, he proves himself more powerful than previously.  What about his son Gohan?  Is he even more powerful than Goku? What is the Goku's power level?


I just recently started using LaTeX and chemfig and have a question in regard with making a new line in the text below or above the reaction arrow. I am trying to place MW, 160 °C, 5 min under Na₂CO₃, H₂O as a new line. I will greatly appreciate any help!


Is there a tool that converts "normally written" TeX source to one with a newline at the end of every sentence?

In many of the questions asked here, people recommend the use of control versioning for the write-up LaTeX documents, especially for documents that are large, such as theses.  The issue with doing that is that in order for the traditional control versioning diff to be of any use, sentences must be broken into lines. Otherwise, diff doesn't really provide any insight as to what changed in the document and things get messy really fast.  The plan is for all my new documents to follow the "each-sentence-in-a-new-line" format. But I would like to start using control versioning for some of my existing (and large) documents.  I was wondering whether there's a tool that takes a .tex file as input and spits out a new .tex file in which the sentences are separated by a newline character. I am mainly interested in a UNIX tool, but the more portable, the better.  Note: The problem is not as simple as inserting a newline after every period unfortunately. For example, when the tool finds "e.g." in the text, it needs to be smart enough to avoid inserting a newline there. Or, more of an annoyance instead of a big issue, since the last character in a paragraph is very likely to be a period, it needs to avoid inserting an extra newline there. Maybe a tool that utilises the LaTeX internals to identify when a sentence has actually ended?


How to enable Picture in Picture option on YouTube app for iPhone ? I have enabled picture in picture option in accessibility i can use it on Netflix app and prime videos so on but im not able to use on YouTube app please help me out.


How will I proceed for the question 63? Can anyone help me out?


Prove $\sqrt{2} \not \in \mathbb{Q}[\sqrt3]$

Pretty simple problem but I'm having trouble finding the proof. Numbers in $\mathbb{Q}[\sqrt3]$ are of the form $r+s\sqrt{3}$; $r,s \in \mathbb{Q}$. I tried proving by contradiction. That is, assume $\sqrt{2} \in \mathbb{Q}[\sqrt3]$ . Then, $\sqrt{2} = r+s\sqrt{3}$ $\rightarrow$ $2=r\sqrt{2}+s\sqrt{6}$. Then, since $\sqrt2$ and $\sqrt6$ are both irrational, while $2,r,s$ are all rational, there will be some sort of contradiction. However, I'm not sure if this is right, and if it is, how to formalize it.


For some reason, all of this has been fixed, somehow. Thank you @null (Science fiction & fantasy mod) for changing it to 'Alex' and letting me change my name on other sites.  I've found a bug where my profile name appears as my UUID instead of my name…        It happens for:   Movies and TV Physics Electrical Engineering Super user Puzzling  Programmers    Is this a bug or is this just me being inactive and having only 101 rep on those sites?  And for some sites, the default StackExchange icon is displayed (ex. Software Recommendations)


What does 50va mean on a 480v/24v transformer

What does 50va mean on a 24 volt transformer.


Do we have proof that the universe is finite?

I was just wondering if we have any proof at all whether the universe is finite or not. I have heard that it is indeed expanding - which could mean that it is possibly finite... is this true? or what is anyone's opinion?


When I try to install Ubuntu 18.04 I get "please update microcode to version 0x25"

I want to install dual boot windows 10 and ubuntu 18.04 from asus a455lf laptop, but there is a warning     please update microcode to version 0x25.    I've updated the BIOS but it's still the same.


Is there a way to view your own progress towards certain badges? For example:   Tumbleweed - What value constitutes low views for a week? Fanatic  – Is there a way to view how many days in a row you currently have? Beta – Is it even possible to get this badge anymore?


Inserting declared type table variable into another table?

I receive an error when trying to insert the declared variable Ids into another table. How would I correct this?  ALTER PROCEDURE [dbo].[tbl_Update]      @id int,     @description nvarchar(50),     @price decimal(12,7),     @statusId int, AS BEGIN     -- SET NOCOUNT ON added to prevent extra result sets from     -- interfering with SELECT statements.     SET NOCOUNT ON;      Update tbl     set     description=@description,     price=@price,     statusId=@statusId     where id = @id      --Once submitted values will map to adminEdm      if (@statusId = 1)      --Every subform will be created and their ids will be      Declare @generalId table (id int)     insert into tblGeneral      output inserted.id into @generalId(id)     default values      Declare @categoryId table (id int)     insert into tblCategory     output inserted.id into @categoryId(id)     default values      --ERROR when inserting     Insert into tblParent(generalId, categoryId)     values(Select id from @generalId, Select id from @categoryId)  END   Error message "Incorrect syntax near the keyword 'Select'"


RAW v. RAI concerning enumerated card names

Let’s say I have 2 Elvish Visionaries on the battlefield. I resolve a third EV with the other two alive.  The two other EVs have the card text, “When Elvish Visionary ETB, draw a card”. Will the third EV draw me 3 cards because the other elves see an Elvish visionary ETB, or will I get one trigger because only one is entering.   My question is, should it resolve with RAW, and get 3 triggers or RAI with it behaving like “When this creature . . . “? (I use RAI lightly, not actually knowing the intentions)  I ask because with the new Bolas, I don’t know how that interaction will work with cards like “Jace, Cunning Castaway” and “Dovin, Grand Arbiter”. Both cards enumerate their respective names, but people are piecing combos together with Bolas being able to copy other loyalty abilities.  RAW: Rules As Written RAI: Rules As Intended


grub error: you need to load kernel first

I'm installing Debian 9 on an HP ProLiant DL180. When I boot from a USB drive, it opens grub2 and when I type boot it gives an error : you need to load kernel first.


Is whether a set is closed or not a local property?

If I want to show a topological subspace is closed in an ambient space, does it suffice to know what happens on an open cover of the ambient space? More specifically,     Let $X$ is a topological space with a given open cover ${ U_i }$. Suppose that $Z \subset X$ is a set such that $Z \cap U_i$ is closed in $U_i$ for all $i$. Does it follow that $Z$ is closed in X?   This is clearly true if there are finitely many ${ U_i }$. At first thought, it seems unlikely to be true in the infinite case, but I'm having trouble coming up with a suitable counter-example.


Summing the even numbers in any row of pascal's triangle.

I'm looking for tips on how to prove the following identity for all $n \in \mathbb{N}$.  $$\sum^{\left \lfloor{\frac{n}{2}}\right \rfloor}_{k=0}\begin{pmatrix}n\\2k\end{pmatrix}=2^{n-1}$$  I know that from the binomial theorem I can show that $$2^n=(1+1)^n=\sum^n_{k=0}\begin{pmatrix}n\\k\end{pmatrix}1^k1^{n-k}=\sum^n_{k=0}\begin{pmatrix}n\\k\end{pmatrix}$$  So how can I make a connection between these two identities? Is it also possible to make a bijection between the sets representing the left and right or count in both directions?


Is there a launcher or some software which would ignore top 1 cm of the phone screen?

Our infant son threw me wife's phone. Since then the top 1 cm row of the screen is no longer responsive to touch. The display works perfectly, but touching it has no effect. Because of that she can no longer swipe down the notification tray in portrait mode. She has to open some app, rotate to landscape orientation, and swipe down.  Some apps which do not rotate or reorients the buttons in such a way that it is always in unresponsive zone are impossible to use. We can use split screen as the last workaround sometimes.  Anyway. I was wondering if there is any app for Android which force the whole OS to render in the responsive region only. I can manually select the responsive rectangular region. (Buying a new phone or changing the screen is not an option right now.)


I am trying to make sense of these. To me a is false because the set isn't empty. Is that correct? b is true because the empty set is an element of that set. c is false because the set the empty set isn't an element, it is a subset or proper subset. d is true because the set the empty set is a member of that set. e the set the empty set is false because it is not a proper subset I think f false for the same reason g false for the same  a) ∅ ∈ {∅} b) ∅ ∈ {∅, {∅}} c) {∅} ∈ {∅} d) {∅} ∈ {{∅}} e) {∅} ⊂ {∅, {∅}} f ) {{∅}} ⊂ {∅, {∅}} g) {{∅}} ⊂ {{∅}, {∅}}  I know not all these are correct, why is my logic wrong?


From Stewart 7e pg 614 # 9  "One model for the spread of a rumor is that the rate of spread is proportional to the product of the fraction y of the population who have heard th eremor and the fraction who have not hear the rumor. a) Write a differential equation that is satisfied by y. b) Solve the differential equation c) A small town has 1000 inhabitants. At 8 am 80 people have heard a rumor. By noon half the town has heard it. At what will 90 percent of the population have heard the rumor? "  The wording of this is very ambiguous to me and I can't really make sense of it.  They mention a product, so I know that something is being multiplied and that y is a fraction which belongs to the population who have seen it so I think that "have not" heard is a constant, and that y is a fraction taht represents who have. I tried to set this up and it is the wrong answer. I am not sure what they want from that, the English usage is too ambiguous to make sense of it. The complete lack of punctuation is what really does it.


Can not format my USB drive through diskpart

Recently I am having problems with my USB drive which can't be formatted, Even though I tried disk part and it recognized and showed my 14 GB flash drive on the list still I get: DISKPART> list disk    Disk ### Status         Size     Free     Dyn  Gpt   --------  -------------  -------  -------  ---  ---   Disk 0    Online          111 GB  1024 KB    Disk 1    Online           14 GB      0 B  DISKPART> select disk 1  Disk 1 is now the selected disk.  DISKPART> clean  DiskPart has encountered an error: The system cannot find the file specified. See the System Event Log for more information.  DISKPART>


Using continuous color band for raster legend in QGIS composer legend?

I'm looking for a way to insert continuous colour legend for a raster layer.  I managed to create discrete symbols with values along the bar, but I would like to have a continuous bar with some values on the bar, similar to the old plugin "One-Band Raster", that it doesn't work with the QGIS version higher than 1.7  I tried to set in properties->style, where I selected the  Render Type "Singleband pseudocolor" and see the "generate new color ramp" box.  I tried both "Continuous" or "Equal interval". However, in the Composer the legend always is displayed with discrete symbols.  Is there any way that can make QGIS Composer to display a nice continuous band for a raster layer?


I'm trying to display a shaded 3D ellipsoid with axis labels with PGFplots. So far I achieved this.   \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots,tikz-3dplot} \begin{document} \begin{tikzpicture}     \begin{axis}[%         width=0.8\textwidth,         axis equal,         axis lines = center,         y label style={at={(axis cs:0,2,0)},anchor=west},         xlabel = {$\lambda_1,\ \vec{e}_1$},         ylabel = {$\lambda_2,\ \vec{e}_2$},         zlabel = {$\lambda_3,\ \vec{e}_3$},         ticks=none,     ]     \addplot3[%         shader=interp,         opacity = 0.3,         fill opacity=0.3,         surf,         colormap/blackwhite,         variable = \u,         variable y = \v,         domain = 0:180,         y domain = 0:360,     ]     ({2*cos(u)*sin(v)}, {2*sin(u)*sin(v)}, {0.5*cos(v)});     \end{axis} \end{tikzpicture} \end{document}   The result looks like this:  This shading does not give a 3D impression, I would like to have somethin like this:    Is it possible to define a new 3d shading in this coordinate system? I could not find such a command in the pgfplot documentation. All predefined shadings are not suitable. Glad for any help!


The relationship between mass and incline on an object's speed

I took my daughter and son for a ride in there Red Rider Wagon on the weekend. We went down a small incline on one block in our neighborhood. My daughter, who is 5 years old, asked me in her own way, what effect does the mass of the kids in the wagon and the incline of the hill have on their speed?


What's word means someone who VOLUNTARILY isolates themself from society?

I know there are words like , , , , etc. to describe someone who is shunned by society. I’m looking for a word to describe someone who rejects society and lives detached from society.  Furthermore, I thought of  but there are religious connotations to the word and while I am aware that it can be used to describe what I said I would prefer a word with a more neutral connotation. Also, I don’t want to limit myself to just a noun for this. Adjectives or verbs that can be used to describe voluntary detachment from society work as well.


CPA attack means the attacker can send in his own plaintext to the oracle and receives some sort of ciphertext back.  CCA attack means the attacker can send in his own ciphertext to the oracle and return some sort of plaintext back.  When we talk about CPA and CCA secure, what exactly are we referring? All this time I just think of it as " if it's CPA secure, then the attacker cannot perform a CPA, which means when the attacker sends in his own plaintext he will not receive some sort of ciphertext back"  That makes logical sense to me, but I really don't feel like I am understanding CPA/CCA secure correctly.   I thought the whole point is so that the attacker can send in whatever ciphertext / plaintext he desires, the attacker will get something back, and the system will not leak information. Does that mean that I can also think of it as " the attacker can send in whatever cipher/plaintext he wants, but he will not receive informative outputs" ?


Is it possible to visualize the output of Principal Component Analysis in ways that give more insight than just summary tables? Is it possible to do it when the number of observations is large, say ~1e4? And is it possible to do it in R [other environments welcome]?


Let $f\in C^2\{[0,1],\mathbb{R})$ and $m\{x\in [0,1]:f(x)=0\}>0$. Prove that $$m\{x\in [0,1]:f'(x)=0\}>0,$$ where $m$ denotes Lebesgue measure.  I don't have any clue to solve this exercise..


Regarding usage of "doesn't " and "don't"

I have heard sentences like  "He don't like this ." Or "He don't know this ."  Shouldn't it be  "He doesn't like this." And "He doesn't know this."  Why with singular person we use "don't" and not "doesn't" ?


how to calculate ((13)^15)^17 mod 17 using fermat's little theorem?

How to calculate   ((13)^15)^17 (mod 17)   using fermat's little theorem?


most flexible way to implement a buff /debuff system for a RPG game

I'm making an RGP board game where I have different heros, each one of them belongs to some types  for example ("Aatrox" is a Dragon and a Ninja hence he belong to these two types),and each player has a  list of champion with fixed attirubtes like basicAttackDamage,criticalstrike/chance/ability..etc  and i have what are called as buffs, a buff gets activated to player when his some of his heros  belong to certain types  eg: if a player gets two Dragons or more , then every hero whose type is Dragon gets double Damage  Attack, TrueDamage(Ignore magic resist and armor), Attack..etc  so i was wondering what would be the most flexible way to implement these sort of buffs considering the  fact that each champion could only use his attack/ability once in each round and there are buffs that  gets added with a certain chance "this buffs gives the hero 40% chance to stun the enemy with basic  attack, and buffs which add health to heros ("this buffs give the hero 250 extra health") etc..  my current approach is to add tags on buffs and apply these buffs when attacking or defending an attack  so this would look something like  enum BuffsType{ OnHit,OnAttack }   but this approach kinda fails at complex buffs like "a chance to hit extra  attack/extra enemy/". I have seen some discussions about this but none of the answers seemed to be REALLY flexible, most of them failed at complex buffs  design-patterns software-design


In Firefox, when you type java.util.Scanner into the address bar, Firefox will attempt to connect to http://java.util.Scanner, which is not what I intended.   I have tried disabling browser.fixup.alternate.enabled to no avail.   I'm looking for a way for Firefox to perform a search using my default search engine when given anything that isn't a valid URL. Specifically in this example, I would like the address bar string java.util.Scanner end up at https://www.google.com/search?q=java.util.scanner (or whatever my default search is).


What is the derivation of the speed of light $c$ that is not based on electromagnetism?

The "speed of light" is not just the speed of electromagnetic radiation, but of any massless particle. Therefore must not there be an expression for $c$ that is not in terms of $\mu_0$ and $\epsilon_0$ (and more generally not in terms of electromagnetic quantities such as charge and the fine structure constant)? If not, then what prevents some massless $U(1)^\prime$ field from having $\mu_0^\prime$ and $\epsilon_0^\prime$ that result in a $c^\prime\neq c$?


(This must be a duplicate, but I cant find this asked anywhere so...)  I am trying to make a bibliography in a LaTeX document. Currently I am successfully using a back-end of Bibtex in Biblatex. In the header I have  \usepackage[backend=bibtex,style=numeric,citestyle=numeric]{biblatex}  \addbibresource{Bibliography.bib}   in my document I cite using  \cite{bk:soulsby:1997:dynamics_sands} \cite{ppr:pyle:1989:tephra_fall}   and at the end I output  \printbibliography   The bib file is  @book{bk:soulsby:1997:dynamics_sands,     author  ="Richard Soulsby",     title   ="Dynamics of Marine Sands",     year    ="1997"     }  @article{ppr:pyle:1989:tephra_fall,     author  ="David M Pyle",     title   ="The thickness, volume and grainsize of tephra fall deposits",     journal ="Bulletin of Volcanology",     year    ="1989"     }   I would like to use the biber backend, but changing the line in the preamble to  \usepackage[backend=biber,style=numeric,citestyle=numeric]{biblatex}   results in all citations displaying [tag_name]. How do I fix this?


How do I check if an array includes a value in JavaScript?

What is the most concise and efficient way to find out if a JavaScript array contains a value? This is the only way I know to do it: function contains(a, obj) {     for (var i = 0; i < a.length; i++) {         if (a[i] === obj) {             return true;         }     }     return false; }  Is there a better and more concise way to accomplish this?


The series of reciprocals of the integers that do not contain 9 in their decimal representation

Does the following series converge or diverge?  $\sum_{n=1}^{\infty} a_n$ where  $a_n = \frac 1 b_n$, and $(b_n)_n$ is the subsequence of $(n)_n$ whose terms do not have a $9$ in their decimal notation.  I have no idea how the sequence $b_n$ even looks like. If I have an idea of how to prove that a series converges or not with criteria but I don't if I don't know what $b_n$ is.


What was Interstellar's post-climax scene all about?

I'm confused about the scene where Matthew McConaughey wakes up in this new habitat of the humans. I presume that it's not earth, he's on another planet. And why does the land look like a tunnel there? Is it the black hole where all are residing now?


I have a string like like:  Hello +++this--- is a funny +++string--- with words inside   I need to look for words surrounded by +++ and --- and replace the +++ and --- signs with html tags like word.  So that the text above becomes:  Hello this is a funny string with words inside   I'm currently using the following regex with a sub instruction:  rgx = re.compile(r'(?:\+\+\+)(?P<word>.+)(?:\-\-\-)') output = rgx.sub('\\g<word>')   And the output I get is:  Hello this--- is a funny +++string with words inside   As you can see, only the first and last +++/--- are taken into account. The ones in the middle seems to be ignored. Obviously the big string between first and last +++/--- match my regex.  How can I get re to match all groups one by one, and not consider the big overlapping match?  Note: I've tried with ^\+ and ^\- in the capturing group, but it doesn't work because a + or - could be in any word and should be kept as is, as long as it's not +++ or ---.


Is it true that $n^r(X_n-X)\xrightarrow{d}Z$ implies $X_n\xrightarrow{d}X$?

I see that without this last requirement $n^r(X_n-X)$ would blow up in probability, how to prove this formally? By contradiction maybe? Like assuming it doesn't converge in probability and hence finding a subsequence such that $\mathbb{P}(|X_n-X|>\varepsilon)>\Delta$ for all $k$, and then showing that this implies $n^r(X_n-X)$ to go to infinity in probability?


Eigenvectors of symmetric matrices are real???

I am studying about symmetric matrices. I find out a lot of books state the theorem of existence of real eigenvector of symmetric matrices but didn't provide any solution. I am wander this problem. Prove that all the eigenvectors of symmetric matrices are real.


How to randomly sample a subset of a file

Is there any Linux command one can use to sample subset of a file? For instance, a file contains one million lines, and we want to randomly sample only one thousand lines from that file.   For random I mean that every line gets the same probability to be chosen and none of the lines chosen are repetitive.  head and tail can pick a subset of the file but not randomly. I know I can always write a python script to do so but just wondering is there a command for this usage.


Below is a string variable and my regular expression, it's partially working but it's deleting everything after and I would like to just remove that one property for example...    tString='#a5af3c17e39f06875fbe9153d2d66d552{animation-delay: 0s; animation-direction: normal; animation-duration: 0s; animation-fill-mode: none; animation-iteration-count: 1; animation-name: none; animation-play-state: running; animation-timing-function: ease; background-attachment: scroll; background-blend-mode: normal; background-clip: border-box; background-color: rgba(0, 0, 0, 0.498039); background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(39, 48, 57); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-bottom-width: 0px; border-collapse: separate; border-image-outset: 0px; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: rgb(39, 48, 57); border-left-style: none; border-left-width: 0px; border-right-color: rgb(39, 48, 57); border-right-style: none; border-right-width: 0px; border-top-color: rgb(39, 48, 57); border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-top-width: 0px; bottom: 0px; box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 20px 0px; box-sizing: border-box; break-after: auto; break-before: auto; break-inside: auto; caption-side: top; clear: none; clip: auto; color: rgb(39, 48, 57); content: ; cursor: auto; direction: ltr; display: block; empty-cells: show; float: none; font-family: Roboto, sans-serif; font-kerning: auto; font-size: 18px; font-stretch: normal; font-style: normal; font-variant: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: normal; font-weight: normal; height: 1110px; image-rendering: auto; isolation: auto; left: 0px; letter-spacing: normal; line-height: 32.4px; list-style-image: none; list-style-position: outside; list-style-type: disc; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: none; max-width: none; min-height: 0px; min-width: 0px; mix-blend-mode: normal; object-fit: fill; object-position: 50% 50%; offset-distance: 0px; offset-path: none; offset-rotation: auto 0deg; opacity: 1; orphans: 2;}'  regStr=/animation-direction:.* ;/gm  result=tString.replace(regStr,'')  console.log(result);


How to change the following class to a class that uses ArrayList and LinkedList? I have to change all of the code in this class.  I am confused about ArrayList and LinkedList  import java.util.ArrayList;  public class ArrayStack {     private int maxsize;     private int top;     private int[] items;      public ArrayStack(int maxsize) {         if (maxsize <= 0)             throw new ArrayStackException("Stack size must be positive");         items = new int[maxsize];         this.maxsize = maxsize;         top = 0;     }      public void push(int item) {         if (top == items.length)             throw new ArrayStackException("Overflow Error");         items[top]=item;         top++;     }      public int pop() {         if (isEmpty())              throw new ArrayStackException("Underflow Error");         return items[--top];     }      public boolean isEmpty() {         return (top==0);      }      public static class ArrayStackException extends RuntimeException {         /**          *           */         private static final long serialVersionUID = 1L;          public ArrayStackException(String message) {             super(message);         }     }      public static void main (String[] a) {         ArrayStack stack = new ArrayStack(3);         stack.push(1);         stack.push(2);         stack.push(3);          // srtack.push(4); //over flow error          System.out.println(stack.pop());         System.out.println(stack.pop());         System.out.println(stack.pop());     } }   give me some explanations on this problems.


Retrieve distinct element value from a List

I have a List<Animal> , which contains 100s of objects. There'll be a field which is AnimalType that will be common. I need to fetch  this value.              List<Animal> foundAnimal = db.Animals                 .Where(a => a.Name == "Elephant"                     )).ToList();   The foundAnimal object has a element called AnimalType (Which is an int) which is the same for all "Elephants". I need to retrieve this value from the above List.   How can I do that ?  Animal object  private string Name {get;set} private int Age{get;set} private int AnimalType{get;set}   What I tried:  var ani = foundAnimal.Distinct();   But the above gives me a list of Distinct Animal objects. What I need to know is the value that is common in the Animal Object (for the name Elephant)  which is a int value.  UPDATE  new Animal {Name = "Elephant" , Age 12 , AnimalType = 1 }  new Animal {Name = "Elephant" , Age 12 , AnimalType = 1 }  new Animal {Name = "Elephant" , Age 12 , AnimalType = 1 }  new Animal {Name = "Ant" , Age 12 , AnimalType = 2 }  new Animal {Name = "Ant" , Age 12 , AnimalType = 2 }  new Animal {Name = "Elephant" , Age 12 , AnimalType = 1 }  new Animal {Name = "Elephant" , Age 12 , AnimalType = 1 }  new Animal {Name = "Elephant" , Age 12 , AnimalType = 1 }    The list will give me Animals where Name is Elephant  List<Animal> foundAnimal = db.Animals             .Where(a => a.Name == "Elephant"                 )).ToList();   The above Will return Only Objects where the Name is equal to Elephant.  All what I need is to get the AnimalType which is 1 when Name == Elephant.   Hope I was able to explain this clearly.


What is the recommended way to handle questions that are duplicates of questions in a different SE site?

If you have an SO question A that is a duplicate of question B on SO, it should be closed as such. However, what if question B lives not on SO but on, say, vi.SE?  As far as I know there is no option to close as duplicate in such a case, but is there a common way how this is or should be handled?


Guys when I attended a C quiz online, I came across a statement while(s++,6); where s is initialized to zero. I don't know what the while loop will exactly do when there is a comma operator in between. When I ran it on my gcc compiler it ran with no output. But when I changed the while condition as while(1,s++) it returned s value as 1. Can anyone tell me what is happening at that while.


system settings not showing all settings

This is a weird problem I am having after installing ubuntu 14.04. When I click on system settings, it shows only 7 fields:           Personal:  Language Support  Security & Privacy  Ubuntu One  Ubuntu Tweak Hardware:  Printers System:  Landscape Service  Software & Updates   Even when I click on sound settings or date and time settings the same thing happens. I was having some problems with pulseaudio due to which I had tried changing its configuration files (Didn't make backups. Lesson Learnt). This led to even worse crashes. So I purged pulseaudio and reinstalled it in the hope that everything will be as it was. But now my sound is not working and there is no way to change any setting.


Does Leveling Up Heal Unconscious Characters?

A character in my group ran into a funny situation where his character fell unconscious but the other characters eliminated monsters, which caused them to level up. When a character levels up, they gain the new hit points added to their max. My question is would the unconscious character gain these new hit points and gain consciousness?


Collage of six photos, not Facebook Lookback movie

I didn't get a Facebook look back movie. I've been on Facebook since it was “thefacebook” in 2005 and I've shared my little heart out.   Anybody know if the automated video is linked to security settings or other things that might be locking me out?   I get the lame collage of 6 pictures that were all posted in the last week. No, thanks. I'd rather have a movie.


I only recently discovered the different JVM's on the  page and thought I'd start tinkering. Its been difficult to find documentation on how to configure Java on Ubuntu though.  Lets say I wanted to change the JRE or JDK that I'm using, I could crack open a terminal and say  sudo update-alternatives --config java   And then pick from one of the installed versions.  If I'm understanding JVM's right (which I may very well be not), You can configure the openJDK to use alternative JVM's (Eg JAMVM) and run it as such  jamvm -jar foo.jar   2 questions,  1: Do i have the concept of a JVM right? As in, is this possible?  2: If so how do i configure the JVM and switch the default to a JVM of my choosing?


$\Bbb F_p$ where $p$ is an odd prime has exactly half the non-zero elements as a square

I want to show that in $\Bbb F_p$ where $p$ is an odd prime, that half the non-zero elements are squares.  Now I know that all fields $\Bbb F_p$ where $p$ is prime are isomorphic to $\Bbb Z / \Bbb p Z$, and I have tested a few examples and I can see that it holds for them, so I don't doubt it is true, but I am unsure how to prove it.    Can I please have a hint, but not a full solution. If you give me a full solution I won't get to have the eureka moment and I won't remember it!


Hensen inequality in trigonometry: $\sin A + \sin B + \sin C \leq \frac{3}{2} \cdot \sqrt[2]{3} $

Can anyone help me how to prove $\sin A + \sin B + \sin C \leq \frac{3}{2} \cdot \sqrt[2]{3} $  I have idea use Jensen but how to use it here?


Asymptotic of a sum involving binomial coefficients

Could you help me to find an asymptotic for this sum? $$ \sum_{k=0}^{n - 1} (-1)^k {n \choose k} {3n - k - 1 \choose 2n - k}  = {n \choose 0} {3n - 1 \choose 2n} - {n \choose 1} {3n - 2 \choose 2n - 1}  + ... + (-1)^{n-1} {n \choose n-1} {2n \choose n + 1}  $$  I have tried to write binomials through factorials and work with it, but it seems like not right way to evaluate an asymptotic.  Thank you for your help:)


Substitute with `...` multiline output of find command

I need to substitute output of find command to another command to process every found file, e.g.:  mdls `find ~/target_dir/ -iname '*some*' -depth 1`   (mdls is a command in OS X which get metadata attributes of the specified file. It doesn't support piping thus find ... | mdls fails.)  The command above works fine, but expectedly fails on files with spaces in name. I thought that adding quotes via sed helps with it:  $ find ~/target_dir/ -iname '*some*' -depth 1 | sed 's/\(.*\)/"\1"/' "/Users/shau-kote/target_dir//secondsomefile" "/Users/shau-kote/target_dir//some file with spaces in name" "/Users/shau-kote/target_dir//somefile"   Alack, now my mdls command fails on all files:  $ mdls `find ~/target_dir/ -iname '*some*' -depth 1 | sed 's/\(.*\)/"\1"/'` "/Users/shau-kote/target_dir//secondsomefile": could not find "/Users/shau-kote/target_dir//secondsomefile".   How can I fix it so as mdls do correctly process all file names from find?  Thank you.  P.S. I'm not sure is it important or self-evident, but   mdls "/Users/shau-kote/target_dir//secondsomefile"   works properly.


Could someone please suggest a good way to check for continuity (using the epsilon-delta definition or maybe using some other method.  An example is to show that $f(x)=\sqrt x$ i.e. $f(x)=x^{1/2}$ is uniformly continuous on the positive real numbers.   Thank you! Your help will be greatly appreciated.


Windows: Execute program as admin with current environment and with elevation

This question is different from  and I wrote why: I want to run a program a) as a different user b) get elevated privileges (which is additionally required to executing as admin as per UAC) and c) pass the original environment. The linkes article only covers a+b.  I just saw that "runas /user:admin /env cmd.exe" which used to work in WinXP does not work in Vista+ any more due to UAC: An additional elevation is required.  What is the best/shortest (in the sense that I do not need to install a program; copying small auxiliary exes would be OK) to achieve:   Starting an exe as admin (i.e., a different user in the admin group) Additionally, with elevated privileges Keep the environment of the current users Permits to supply parameters to the executed program   I found the "Elevation PowerToys for Windows Vista" and tried:  runas /user:admin /env "%USR%\bin\Elevate.cmd \"%COMMANDER_EXE%\""   but this has one show-stopper and some shortcomings:   Even though I use "/env" the executed program does not inherit the environment The 3-fold nested parameters makes it difficult to supply more complicated parameters to %COMMANDER_EXE% I would prefer a normal/graphical window to enter the password rather than a cmd window After the runas, the UAC dialog additionally pops up (would be good to have this together)


When can we use 'much' in affirmative clauses?

I found the below in  web-site:     We use much in questions and negative clauses to talk about degrees of something.      We don’t use much in affirmative clauses.   Also, it the same web-site, I found the following:     She runs much faster than he does.    also I noticed that some web-sites use much with affirmative clauses:     May we all be having this much fun and getting this much exercise when we're his age!    Is it Okey to use much in affirmative clauses? If yes, when can we use it? and what is the rules?  Update:  Here is another example on how often the word "much" is used  in informal style:     After much consideration I will NOT be performing at the Inauguration with my improv group Capitol Hill-arious


A proof of a criterion of vanishing of a function.

Let $f\in C^{\infty}[-1,1]$, and there exists a constant $M>0$ s.t  $$|f^{(j)}(x)|\le M \forall j \in \mathbb{Z}\forall x\in [-1,1]$$ Prove that if $f(1/k)=0$ for each $k\in \mathbb{N}$ then $f=0$.  I am thinking of using a Taylor expansion, I need somehow to show that all the coefficients vanish.  So if I take $f(1/k)=0$ I take $k\to \infty$ then $f(0)=0$ but how to do the rest of the coefficients get to vanish?  I don't see it.


In Srednicki QFT page 37. In the derivation of LSZ reduction formula, he introduces the time-order operator $T$, so no time-dependent creation/annihilation operators are left in the transition amplitude. How can this be justified mathematically? And if I understand this correctly, if time ordering is not used, then a term like  $$\langle 0\mid a_{1}\left ( -\infty  \right )a_{2}\left ( -\infty  \right )a_{1^{\tilde{}}}^{\dagger}\left ( \infty  \right )a_{2^{\tilde{}}}^{\dagger}\left ( \infty  \right )\mid 0\rangle $$ this mean that there's a contribution that depend on the amplitude of transition from the final momenta to the initial momenta but quantum mechanically the final momenta are not known in advance so such a term can't contribute to the process. Does this explain the use of time-ordering physically?


Identify a short story wherein a time-travel uses classified ads to search for other time-travelers

In the story, the time traveler travels to the sixties, I believe, and posts an ad somewhere along the lines of:  "Remember Reaganomics? VCRs? Perestroika? Call me at KL-123."  Obviously, only another time traveler who'd experienced the eighties would recognize those terms ('VCRs' may be misremembered, but you get the point). I'm pretty sure about the "Reaganomics" term, which will date its writing to most likely in the eighties, certainly no earlier than 1981.


How does the sum of the series “1 + 2 + 3 + 4 + 5 + 6…” to infinity = “-1/12”?

How does the sum of the series “1 + 2 + 3 + 4 + 5 + 6…” to infinity = “-1/12”, in the context of physics?  I heard Lawrence Krauss say this once during a debate with Hamza Tzortzis (). I found a transcript of another debate between Krauss and William Lane Craig which has the same sum. Here is the paragraph in full:     Let’s go to some of the things Dr. Craig talked about. In fact, the   existence of infinity, which he talked about which is   self-contradictory, is not self-contradictory at all. Mathematicians   know precisely how to deal with infinity; so do physicists. We rely on   infinities. In fact, there’s a field of mathematics called “Complex   Variables” which is the basis of much of modern physics, from   electro-magnetism to quantum mechanics and beyond, where in fact we   learn to deal with infinity; without the infinities we couldn’t do the   physics. We know how to sum infinite series because we can do complex   analysis. Mathematicians have taught us how. It’s strange and very   unappetizing, and in fact you can sum things that look ridiculous. For   example, if you sum the series, “1 + 2 + 3 + 4 + 5 + 6…” to infinity,   what’s the answer? “-1/12.” You don’t like it? Too bad! The   mathematics is consistent if we assign that. The world is the way it   is whether we like it or not.   -- Lawrence Krauss, debating William Lane Craig, March 30, 2011  Source:   CROSS POST: I'm not sure if I should post this in mathematics or physics, so I posted it in both. Cross post:   EDIT: I did not mean to begin a debate on why Krauss said this. I only wished to understand this interesting math. He was likely trying to showcase Craig's lack of understanding of mathematics or logic or physics or something. Whatever his purpose can be determined from the context of the full script that I linked to above. Anyone who is interested, please do. Please do not judge him out of context. Since I have watched one of these debates, I understand the context and do not hold the lack of a full breakdown as being ignorant. Keep in mind the debate I heard this in was different from the debate above.


I get the strangest result when I multiply 1.09 and 12. Actually 13.080000000000002 instead 13.08!!! What causes this? nd what is the solution  console.log(1.09*12);  Regards.


Can' t delete own answers in Android app

It looks as if the browser-based fix mentioned  to users being unable to delete their own answers wasn't applied to the Android app. In the app, the delete link is never there.


Improve "Protected Question" message with regard to rep gained through Association Bonus

I recently started an account on , and went to add an answer to a question which was protected. I have enough rep on other sites that I have the "Association Bonus", so I was confused as to why I wasn't being allowed to answer the question.     This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.   After re-reading the message and reviewing , I realized that the bonus didn't count as points earned toward that site.  This is a really minor issue, but I think it's worth fixing (not sure if bug or feature).  I believe that users who have enough rep to receive the association bonus should generally already know not to post "thanks!" and "me too!" style answers, so if the message is accurate, users who receive the association bonus should be able to answer protected questions.  If there's another reason to keep users from answering protected questions, such as  claim that:     For protected questions, you are expected to have experience on the target site itself. Experience at other sites is not enough.   then the message should be updated to reflect this.  Option 1:  make protected questions open to anyone who has >10 rep on that site and update the message to read:     This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have at least 10 reputation on this site.   Option 2:  leave protected questions the way they are, but update the message to read:     This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site to show that you have experience on this topic; experience on other StackExchange sites is not enough.   Option 3:  Answer with your own suggestions/improvements to these ideas.


Find the limit. (If an answer does not exist, enter DNE.) $lim_{x \to \infty} {\sqrt{9x^2 + x}− 3x}$

Is my process is correct?   Also, why is one to allowed to divide the variable in the radical by its highest power?  $$ \lim_ {x-> \infty} \sqrt { 9 x^2 +x} - 3 x $$


Recursive function defining basic addition

EDIT: There is another question, just like this one, by "Bert van den Bosch", if you wish to see another thread with some detailed answers to this question. They may have some better explanations to the given problem.  I assume everyone here is familiar with the fact that if you take two numbers: a, and b, and multiply them, you have essentially repeated adding $a+a+a+…+a$, such that b describes the mumber of a's added together.  Most of us are also familiar with $a*a*a*…*a=a^b$ defining exponentiation.  Is there a function f(x,y) such that:  $$f(a,f(a,f(a,…f(a,a)…)))=a+b$$  or,  $$f(f(f(…f(a,a)…,a),a),a)=a+b$$  with b describing the number of a's in the equation?


Slds-scrollable not working on IOS devices with Lightning Web Component

HTML template   <div class="DataCollection">      //content..................................  </div>   CSS  .DataCollection{     height: 100vh;     width:100%;     padding: 15px;     position: absolute;     overflow: auto !important;     -webkit-overflow-scrolling: touch; }   how can i do this?


Counterexample to show that the interior of union may be larger than the union of interiors

I know the identity $\operatorname{int}(C \cup D) \supset \operatorname{int}(C) \cup \operatorname{int}(D) $.  I need to find a counterexample showing that equality does not hold in general.   Could you please give me any hint?


Use PC broadband connection and distribute the bandwidth with wifi lan card

I am using win 8. My PC is connected to the internet through broadband using a PPPOE connection system. I have a USB LAN card. Now I am wondering if there is any way to make my USB LAN as USB router and share my PC Broadband PPPOE connection with other device like my mobile phone etc over wifi.  I know this can be done easily with a wifi router but I am just curious if there is any way do do this like above mentioned way.  So is there any Idea??


Why are we still living if matter and anti-matter annihilate each other?

Everyone knows matter and anti-matter annihilate each other . But still do we are alive . How? Is the statement wrong?? I am a layman and a novice to QM but will appreciate a math-free intuitive explanation.  If the antimatters are not around us, where are they???


Today I tried several times to install Ubuntu but I have some GPU problems.  I have a bootable stick. When I boot in UEFI mode all its normal but the installer isn't able to install the boot loader.  When I boot in leagacy mode I'm able to install Ubuntu but only when I unplug my GPU GTX 1070.  When I don't do that, I get an this initialization error from the installer:  3.021954] nouveau 0000:01:00.0: unknown chipset (134000a1)   I installed Ubuntu normally without the GPU. I installed the drivers, rebooted, shut down, pluggeed in the GPU and tried to boot but it got stuck at:  /dev/mapper/isw_bdifbbjbai_Raid0p3: clean, 191449/8855552 files, 1677252/34500448 blocks   What should I do? When I unplug the GPU I can boot easily, but I need my GPU! :D  My PC has a GTX 1070 GPU, i7 4790K CPU, and two hard drives:   250 GB M.2 SSD, which contains Windows 10 and its boot loader. 2 TB RAID-0 WD, with 1,85 TB for Windows 10 files and 150GB where I installed Ubuntu and its boot loader.


Friend can't load into certain paper minecraft server on his main WiFi

My friend and I made a minecraft server, and he can connect to many other servers like hypixel and manacube. But for some reason this is the only server he cant connect to. When he tries to join, this error pops up: z: IO.NETTY.CHANNEL.ABSTRACTCHANNEL$ANNOTATEDCONNECTEXCEPTION : CONNECTION REFUSED: NO FURTHER INFORMATION:  He has tried:  Restarting Minecraft Restarting the computer Uninstalling and reinstalling Minecraft Uninstalling and reinstalling Java Altering firewall Restarting Internet  I've messed with my port, made a second Windows account, reset netsh winsock, and checked hosts. Any recommendations? Also, he can join the server on other WiFi networks.


Let us consider the following example :      \documentclass[a4paper,10pt]{book} \usepackage{multicol} \begin{document} \begin{multicols}{2} \begin{enumerate} \item Text \item Text \item Text \item Text \item Text \item Text \end{enumerate} \end{multicols} \end{document}   This produces :    I want to get the following list environment using the same package 'multicol  '    Is there any way  to do this ?


Word for someone who pities, insults or complaints about their situation or life just to make the other person flatter them

I want to know a word or a phrase that would describe a person who "intentionally" (because some people hate themselves even when they don't want to, or some people are insecure - making some generalizations, forgive me if I miss out something.) insults themselves to make others try to make them feel better by complimenting them. Here is an example of a conversation :  A: Hello B, how is it going?  B: Nice. I just wish my purple dress didn't make me look even uglier.  A: That isn't the case babe, I think you are amazing. You are really soo beautiful.  B: NO I am HIDEOUS, and I know it, don't lie to me.  A: No, I promise. I won't lie you're my BFF. You Rock girl.


where is the package installed by "pip install" located?

I installed a package by "pip inatall " and I want to find where the package is located on my disk.   I found these post:   and , but they didn't answer my question.   My terminal doesn't know the commands 'lsvirtualenv' or 'workon'. The function site.getsitepackages() returned:      ['/usr/local/lib/python2.7/dist-packages',   '/usr/lib/python2.7/dist-packages']   None of these directories included 'okcupyd'.


Difference between the results of the top command and System-Monitor,Why?

Why is there a huge difference between the outputs' of top command and the system monitor when both programs were run at the same time. Please find attached is the screen shot showing the huge difference:-    Is this a bug?


$S$ is a $3\times 3$ real matrices. Then $S$ contains which matrices

Let , $S$ be the set of $3\times 3$ real matrices $A$ with $$AA^T=\left(\begin{matrix}1&0&0\\0&0&0\\0&0&0\end{matrix}\right).$$Then the set $S$ contains :   (A) a nilpotent matrix.  (B) a matrix of rank $1$.  (C) a matrix of rank $2$.  (D) a non-zero skew-symmetric matrix.  Attempt :  Clearly , $\left(\begin{matrix}1&0&0\\0&0&0\\0&0&0\end{matrix}\right)\in S$. So, (B) is TRUE.   Again $rank(AA^T)=rank(A)$. As , $rank(AA^T)=1$ , so $S$ does not contain a matrix of rank $2$. So (C) is FALSE.  Again we know the rank of a non-zero skew-symmetric matrix can never be $1$. So , $S$ does not contain a non-zero skew-symmetric matrix. So (D) is FALSE.  But I am unable to understand the option (A) whether it is correct or NOT ? Any hint ?


On the invertibility of $3\times 3$ matrix $A$ with $A^3 −A^2 + 2A−3I = 0$

Prove that $A$ is invertible whenever $A$ is a $3\times3$ matrix with    $$A^3 −A^2 + 2A−3I = 0.$$   This is another past exam paper question I'm stuck on.


My interface looks like this only in Chrome on my Mac, looks ok everywhere else. Is there some setting I've messed up here?


Error in section title formatting after including color package

I am using TeXnicCenter to write my latex document. I am formatting my section heading using following command:   \titleformat{\section}{\normalfont\fontsize{14pt}{14pt}\selectfont\bfseries\MakeUppercase}{\thesection}{1em}{}   This command is working fine, but when I include package "color" it starts giving me error. Please let me know, how to correct it.  Following is the error:   Missing number treated as zero Color stack action is missing   It also display "POP" in the section heading in pdf file.  Following is the sample code:    \documentclass[12pt]{report}   \usepackage{url}   \usepackage{color}    \usepackage{graphicx}    \usepackage{amsmath}     \usepackage{epstopdf}      \usepackage{cite}      \usepackage[T1]{fontenc}      \usepackage[a4paper]{geometry}     \geometry{verbose,tmargin=3cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}      \usepackage{titlesec}        \titleformat{\section}{\normalfont\fontsize{14pt}{14pt}\selectfont\bfseries\MakeUppercase}{\thesection}{1em}{}        \begin{document}       \chapter{NewChap}      \section{Hello}      \end{document}


What's the best way to calculate the size of a directory in .NET?

I've written the following routine to manually traverse through a directory and calculate its size in C#/.NET:    protected static float CalculateFolderSize(string folder) {     float folderSize = 0.0f;     try     {         //Checks if the path is valid or not         if (!Directory.Exists(folder))             return folderSize;         else         {             try             {                 foreach (string file in Directory.GetFiles(folder))                 {                     if (File.Exists(file))                     {                         FileInfo finfo = new FileInfo(file);                         folderSize += finfo.Length;                     }                 }                  foreach (string dir in Directory.GetDirectories(folder))                     folderSize += CalculateFolderSize(dir);             }             catch (NotSupportedException e)             {                 Console.WriteLine("Unable to calculate folder size: {0}", e.Message);             }         }     }     catch (UnauthorizedAccessException e)     {         Console.WriteLine("Unable to calculate folder size: {0}", e.Message);     }     return folderSize; }    I have an application which is running this routine repeatedly for a large number of folders.  I'm wondering if there's a more efficient way to calculate the size of a folder with .NET?  I didn't see anything specific in the framework.  Should I be using P/Invoke and a Win32 API?  What's the most efficient way of calculating the size of a folder in .NET?


How do I calculate paths for objects with limited acceleration?

For example, say I have a car and a car has a specific minimum turning radius and I want to drive that car from point a to point b, but the car isn't facing point b.   How do I compute a path to point b?  Being able to specify the orientation at the point b would also be good (say you want to drive to your driveway and then pull in to your garage -- it doesn't do much good if you got to your driveway by driving over your lawn and are facing sideways :)  A pointer to documentation (or even just a name) would be perfectly fine -- I'm having trouble finding anything at all.  In my attempts, they work in simple cases, but fail miserably in situations such as when point b is closer to a than the minimum turning radius.   For example, how would you determine a path similar to this (the bold path):      edit: In my actual problem, there are some simple pathing constraints, but I already have an A* algorithm in place that works, but it allows things to make instantaneous heading changes, so it looks silly seeing a car suddenly make a 90˚ turn on a dime when they get to a turn point.


git showing version 1.9.1 when installing from apt-get and source

I tried install git via apt-get install git, and from source using these instructions:  Either way, if I type in git --version, it says I have 1.9.1, instead of 2.7, which is the latest version. I tried to purge git, but on re-install, it is still version 1.9.1 Any ideas on what I did wrong?


Elementary derivation of certian identites related to the Riemannian Zeta function and the Euler-Mascheroni Constant

Is the proof of these identities possible, only using elementary differential and integral calculus? If it is, can anyone direct me to the proofs? ( or give a hint for the solution )  1)$$\int_0^\infty { e^{-x^2} \ln x }\,dx = -\tfrac14(\gamma+2 \ln 2) \sqrt{\pi} $$  2)$$\int_0^\infty { e^{-x} \ln^2 x }\,dx = \gamma^2 + \frac{\pi^2}{6} $$  3) $$\gamma = \int_0^1 \frac{1}{1+x} \sum_{n=1}^\infty x^{2^n-1} \, dx$$  and lastly,  4) $$\zeta(s) = \frac{e^{(\log(2\pi)-1-\gamma/2)s}}{2(s-1)\Gamma(1+s/2)} \prod_\rho \left(1 - \frac{s}{\rho} \right) e^{s/\rho}\!$$  I personally think the last is obtained from a simple use of the Weierstrass factorization theorem. I'm unsure as to what substitution is used.  $\gamma$ is the Euler-Mascheroni constant and $\zeta(s)$ is the Riemannian Zeta function.  Thanks in advance.


How to formally greet someone in an email that I am pleased to getting to know?

When you greet someone new for the first time, you can say:     Hello John, it's nice to meet you!   But what if you cannot greet somebody in person, when the first contact happens? For example, some other person introduces you via email and then you respond via email and want to say that you are pleased getting to know him. A formal greeting is required in this case. Is something like the following appropriate or are there better ways for saying that?     Dear John, I am pleased getting to know you!   Is this appropriate English anyway?    My question is different to , because I specifically ask whether a given sentence is ok. Additionally, the referenced question discusses more the case when saying goodbye, so when the conversation is finished, where there might have been time getting to know each other.


How do I avoid airlock foam overflow? Does it affect the fermentation process?

During my last small batch brew, , I came home to find that the foam in the 1 gallon carboy had overflowed the three-piece air lock (which was a mess to clean out). I have read that if it looks like it may bubble over, one can use a hose to create an airlock using a bowl of water. However, it overflowed while I was away, and I did not see it coming. I changed out the airlock for another one that I had, and let it proceed.  1) Is there a way to avoid this? Was there possibly too much wort in the carboy?  2) What are the possible effects on fermentation process, if any?


Are there other books about the history of Middle-Earth?

I've read these books about the history of Middle-Earth.   The Shaping of Middle-earth The Return of the Shadow The Treason of Isengard The War of the Ring Sauron Defeated   and really liked them.   What other books by Tolkien (father or son) detail the history of Middle-Earth?


With a sequence $a_n$ that satisfies $\lim\limits_{n\to\infty}(a_{n} - a_{n-2})=0$, prove or disprove this statement

I am stuck finding a way to prove/disprove this limit of a sequence.  Assuming that $\lim\limits_{n\to\infty}(a_{n} - a_{n-2})=0$ for the sequence $a_n$, prove or disprove that  $$\lim\limits_{n\to\infty}\frac{a_{n} - a_{n-1}}{n}=0.$$  An explanation on how to work this through would be very appreciated.


A question I already asked myself a few times is why I can't delete the current working directory using rm -r .  The shell does not have a problem with a non-existing directory as working directory, so I just created an alias for rm -r "../$(basename "$(pwd)")".  Why is there a difference between these two rms, while the output of realpath . and realpath "../$(basename "$(pwd)")" does not differ and the cwd of the rm is also the same?


Is there a vector space that cannot be an inner product space?

Quick question: Can I define some inner product on any arbitrary vector space such that it becomes an inner product space? If yes, how can I prove this? If no, what would be a counter example? Thanks a lot in advance.


I run a CentOS Server with VNC enabled and some services require a microphone to work properly, but it doesn't have to be used for recording, just a microphone device available. So I was wondering if I can create a virtual recording device that can be used as a microphone, but it doesn't have to input any sound. I run alsa tools but doing modprobe sound-aloop says that the operation is not permitted.


What is the maximum damage you can do per missile with the Magic Missile spell?

I’m currently working on a Magic Missile-centered build and want to make sure I’m not missing anything.  As far as I can tell, using Hexblade’s Curse (XGtE 53) and Empower Evocation (PHB 117) are the only ways to increase my Magic Missile damage outside of upcasting.  So assuming I have 20 Int and a proficiency bonus of +6, is 1d4+12 the maximum damage I can do per missile by RAW?


Let $I = \{a +ib \in \Bbb Z[i] : a$ and $b$ are both multiple of $5\}$. Show that $I$ is an ideal of $\Bbb Z[i]$. Is $I$ a maximal ideal? And to find the numbers of elements of the quotient ring $\Bbb Z[i]/ I$.  I have shown that $I$ is an ideal of $\Bbb Z[i]$. But how to verify that $I$ a maximal ideal or not?   And to find the numbers of elements of the quotient ring $\Bbb Z[i]/ I$.   Is there any general way to verify when  $I = \{a +ib \in \Bbb Z[i] : a$ and $b$ are both multiple of $n\}$ will be maximal or not?


Sorry for this basic question, but I haven't found a solution anywhere: I have a set of x-y-z points that represent the surface of a property. I would like to import these points and have blender create a (triangular) mesh. How can I do this? And if it is possible, how can I then export the edges or faces?


How do I create midpoints for a set of polylines in QGIS?

I am trying to create midpoints for a set of polylines in QGIS. My python knowledge is poor and was wondering if there was a plugin that did if for me.  I have tried using the Mean Coordinates function suggested in  but this returns a centroid which is sometimes off the line (especially when lines are not straight). I am essentially looking for a point that is on the line half way along.


== tests for reference equality.  .equals() tests for value equality.  I saw this post  . And I still don't get why you get false when you compare   // ... but they are not the same object   new String("test") == "test"  // --> false   or   String str1 = new String("JAVA"); String str2 = new String("JAVA"); System.out.println(str1==str2);   Does this happen because they have different name or what is the reason ?


I'm really sorry if this has been answered before, but here is my problem I have this:   array (size=256)       0 =>             array (size=2)<br>                 0 => string 'name_a'                 1 => string '2175'       1 =>             array (size=2)                 0 => string 'name_d'                 1 => string '1'       2 =><             array (size=2)                 0 => string 'name_c'                 1 => string '715'       3 =>             array (size=2)                 0 => string 'name_b'                 1 => string '5'   And I want to be able to sort it by the number from most to least or/and name and if I add more info for each name such as time value. Its a huge array(over 400 I think) and I need to display it one by one, from top to bottom. If anyone have any ideas, I'd love to hear them!


I have a lot of nodes that need to get their input format changed - I could do that by hand, but then I won't be done before Christmas 2014.   Where is Drupal storing that information? How can I change the input format in a split second, with an SQL query?


Can I update an early Airport Time Capsule?

I have an Apple Time Capsule model A1254. It has a 1Tb drive. Is it possible to replace the drive with a larger capacity unit? It seems a shame to replace the whole unit. Thanks


Physical location of stack and heap memory in computer memory

I search for hours and get thousands of dicussions but get confused. I'm fresher and I want to simply ask my questions. Where is the location of heap memory and stack memory in RAM? Is it like that, when a certain part of the memory is used as a stack data structure, it is called stack memory? And if the same memory is used as a heap, it is called heap memory? I mean, Are they using same memory location in different times? Or are there separate space for stack and heap in memory? I mean RAM is split into portions for performing stack and heap operations.


How do I read a XML File into a class in C#?

I've been trying to read in this XML file ( in the link below) into my class that I've created. but had no luck. Anyone got any ideas ?  I have this xml file that is consist of food items each food item is consist of country, id, name, and description, category, and price. I've also created a class called data the is a parent to items to hold the data once I read in the data from the xml file. I am not very experienced in xml. If you guys could help me out. i would be very thankful    // Here is my XML  //http://i62.tinypic.com/2r4mwzb.jpg public class Items{ //The class I've created to hold the data from xml       public string country {get;set;}     public int id { get; set; }     public string name { get; set; }     public string description { get; set; }     public string category { get; set; }     public float price { get; set; }       public void print(){         Console.WriteLine("Country: " + country);         Console.WriteLine("id: "+ id);         Console.WriteLine("description: "+ description);         Console.WriteLine("category: " + category);         Console.WriteLine("Price: " + price);     } } public class Data{ // Items is a child class of Data      public Items [] FoodItemData; }   public class Program {     static void Main(string[] args)     {          XmlTextReader reader = new XmlTextReader("FoodItemData.xml");          Console.ReadLine();     } }


Why did R.A.B. put the locket back in the basin?

led me to asking this one. R.A.B. takes the "real" locket out and asks Kreacher to destroy it, then puts the "fake" locket back in the basin. Why would he feel the need to do this? He knows already that Voldemort has used someone else to drink the potion (Kreacher). In fact Kreacher's story to him about his mistreatment on the island seems to push him over the edge to act.   Instead of assuring that someone else (most likely innocent like Kreacher) would have to drink from the basin, why not just leave the note outside the basin for someone to find? If Voldemort finds it then so be it, at least then no presumably innocent person would have to drink again.


Why difference between Google Earth and QGIS distance measurement?

I am quite new to QGIS.   I wanted to test if Google Earth and QGIS distance measurement tools are actually getting the same results. Turns out, they don't -at least not in my case.  I'm pretty sure the project CRS (Stockholm, Sweden) is the right one - and I guess Google is always right (!)?  The CRS is SWEREF99 18 00, EPSG::3011 (OTF).  Method:   DRAWING LINE: new layer -> draw line MEASURING in QGIS: attribute table -> field calc -> $Length/1000* EXPORT TO GOOGLE EARTH: save layer as.. -> KML-file (aware of correct CRS) MEASURING in GOOGLE EARTH: import KML-file -> measure manually w/ GEarth measurement tool   (please look at the picture to see how different they measure 3 different lines, *= I've seen this in several tutorials)  So, my question is either;  1) Which measurement should I trust - QGIS or Google EArth?  and/or  2) How do I get QGIS to measure correctly?


I'm currently carrying out a differential attack on the FEAL-4 algorithm, however I have hit a bit of a wall.   Basically I attacked the final round first ($K3$) using the differential characteristic of 0x80800000 which yields a differential of 0x02000000 with a probability of $1$.  I have found four possibilities for the round 4 subkey. To advance the attack to the next round (round 3) and verify which key is the correct one, I need to choose a new differential characteristic (other than 0x80800000) to attack round 3.   I know the difference in the input to round 2 should be 0x02000000, so I can begin my attack on round 3 — but how do I go about finding my differential characteristic so I can generate my plaintext/ciphertext pairs?


Phpmailer script sends mails to junkfolder for outlook and hotmail (SPF did not work)

I have a problem with sending emails via my domain. I have created a homepage with a input field and when you enter a valid email, my domain mail should send an email to the entered mail address.  I'm using phpmailer to do this, but for some reason these mails ending up as junk for outlook and hotmails. (It works fine with Gmail)  Have read alot stack posts about this problem, but haven't solved it yet. Have tried edit the From, Sender, ApplyTo, AddApplyTo and you name it. None seemed to work yet.  Script:  try {     $mail = new PHPMailer(true);      $mail->IsSMTP();     $mail->Host       = "smtp.unoeuro.com";      $mail->From       = "from_mail@domain.com";     $mail->Sender = 'no-reply@domain.com';      $mail->setFrom('from_mail@domain.com', 'Name');     $mail->addReplyTo($_POST['email'], 'Name');      $mail->SMTPAuth   = true;                       $mail->SMTPSecure = "tls";                      $mail->Port       = 25;                        $mail->Username   = "no-reply@domain.com";       $mail->Password   = "password removed";            $mail->Subject    = "Thanks for your interest!";      $mail->IsHTML(true);      $mail->Body='Thanks for your interest';      $address = $_POST['email'];     $mail->AddAddress($address, "Express");      $mail->Send();      }catch (phpmailerException $e) {         echo $e->errorMessage();     } catch (Exception $e) {         echo $e->getMessage(); }   Is there something wrong here in this script that can cause the problem?


Any tips on fitting pagination into my loop below and I owe you a beer or two. I've worked out how to pull the top rated articles by vote from a custom plugin, and lay it out with a count, but pagination has me stumped. I'm a self-taught learner here so any help would be greatly appreciated.  I was aiming for 6 posts shown per page then use pagination if needed.  Two posts are shown and after that a new code section is inserted with a count, the count works, everything works except pagination.  Not sure how this fits in  '$wp_query->query('showposts=6'.'&paged='.$paged);    when I already use  DESC LIMIT 6 OFFSET 0   in my query...  <?php global $wpdb; $query_sql = "SELECT like_pid FROM " . $wpdb->prefix ."likes_count ORDER BY like_count DESC LIMIT 6 OFFSET 0"; $query_result = $wpdb->get_col( $wpdb->prepare ($query_sql, OBJECT)); if ($query_result) { foreach ($query_result as $post_id) { $post = &get_post( $post_id ); setup_postdata($post); ?>  <?php $count++; if ($count%2== 0) : ?>  <-- do the loop, count out two articles -->  <?php else : ?>  <-- do something after every two articles -->  <?php endif;?>  <?php } ?> <?php } ?> //ugly but works
 <?php next_posts_link('&raquo;' ,0); ?>

 <?php previous_posts_link('&laquo;' ,0); ?>


Is it a good practice to show a sign-up or registration form as seperate parts rather than in one go?

I am designing a registration form for a site with multiple sets of information required from the user. I have categorized the data fields into relevant groups. Now should I present the form sections in one go or follow a wizard-like approach? What things should I keep in mind while deciding on this?


Since I've left Chrome as my main browser, every time I use it as secondary browser, Chrome enters in an eternal loop requesting my password to access each keychain bundle of my system. No matter how many times I click "cancel" it just keeps asking access to my passwords.  Is it possible to just make Google Chrome stop asking for my keychain? Once this start, browsing is not possible. The whole window is blocked with the repeated pop ups.


Cell standby use about 35-50% of total battery?

I have Micromax canvas 2.2 a114. I am in strong network zone and use 2g internet all time and time without network is 0%. So why it is consuming more battery. I also never in weak signal.??


Booked an Entire Airbnb Apartment, got a private room only in shared ap

I booked and payed 41$/night for an Entire Home/Apartment through , a total of 205$, plus 31$ Airbnb service fee (15% of the total).  I arrived and the guy told me without any realistic/emergency reason that he will be staying in the apartment too, but only during (some?) nights. Guess what? My girlfriend and I will be here only during nights too, since we are tourists, and some privacy would be nice (she doesn't feel comfortable already).  What are my options of getting a refund from him? I don't wish to nuke the entire thing and leave the apartment, and ruin my vacations.  He is willing to pay some money back (after me having to tell him to!), I just wonder how much money are "justified" to be payed back. The new entry in Airbnb is 27$/night, but if it wasn't for an entire apartment, I wouldn't have booked the room at all in the first place (it was our major criterion), which is something important.


How can I know, precisely, when to differentiate the sounds of the letter a, like in: apple and vault?


How to show that every Boolean ring is commutative?

A ring $R$ is a Boolean ring provided that $a^2=a$ for every $a \in R$. How can we show that every Boolean ring is commutative?


Why is the next scheduled run date for my SQL Server job NULL?

I've been dealing with the Microsoft SQL Server Agent with regards to scheduling jobs.  I'm trying to find out what the next scheduled run date for a bunch of jobs that were created where the job ids from the msdb sysjobs table(s) joins back to my specific system tables.   We store the job ids that get created in sql server agent in our own system table in order to join back.  I've now discovered the sysjobsactivity table. It depends on a session. I may have a job that had a next scheduled run date in an earlier session, but a NULL value for that field in the latest session.  Restarting sql agent is at least one way to create a new session id. It looks like all existing jobs get an entry associated to the new session but the next scheduled run date doesn't necessarily move forward.  I'm pretty sure if I update a job with criteria that places all occurrences in the past, the next run date will be NULL, which makes sense.  But I do see cases where I have a recurring schedule with no end date, and the next scheduled run is NULL which seems wrong.  It's also strange that some of the values in msdb.dbo.sysjobschedules.next_run_date and  msdb.dbo.sysjobschedules.next_run_time differ from the value stored in msdb.dbo.sysjobactivity.next_scheduled_run_date.  The sysjobschedules tables is saying the next run date is the occurrence after the value claimed as the next run date in the sysjobactivity table.  You'd think those would get calculated the same way and would be equal.  How do I correct this?


Speed of heat / quantification of heat and other magnitudes

Is the speed of heat infinite? When solving the heat equation in a semi-infinite bar, we can see that a pulse in the finite end draws an immediate change in every point of the bar. So, at any given point of the originally constant heated bar the temperature changes. That could send information at a higher speed than light rate to a distant point of the bar.  A deeper question is: Does the mathematical concept of the Real Line can model any magnitude? I mean, if every magnitude is quantified, the Real Line is "behind" reality but never gets real (sorry for the pun).  What do we know about these subjects? Are they paradoxes?


My wife and I are recently married, both of us are working hard. At the moment we currently have the same system as prior to our marriage. Which simply put is that both of have our own bank accounts and we split the costs between us.  We will soon be taking out a mortgage for a house. Any recommendations how to arrange our bank accounts in an intelligent system so that we can put our money together?


Consider: $324\cdot x\equiv y\pmod {360}$, for x,y>0 Is it true that for every y of the form $2^j\cdot 3^k$, with j,k some integers (that is for y 3-smooth), there is always a integer $x$ satisfying the modular equation? Are there solutions for which y is not a 3-smooth number?


My facebook is grabbing the wrong image.  I try to adding this open graph image in my head.  <meta property="og:image" content="<?= $_GET['image'] ?>" />   and  <meta property="og:image" content="<?php echo $image; ?>"/>   but the content image path is not shown.  It became this   <meta property="og:image" content="" />   I want it to be like this. If the article A have image a_name.jpg, the meta will be <meta property="og:image" content="/images/a_name.jpg"/>  If the article B have image b_name.jpg, the meta will be <meta property="og:image" content="/images/b_name.jpg"/>


Can there be a valid argument which has a tautology as a conclusion?

Given this definition:     A deduction is valid if and only if its conclusion is true whenever all of its hypotheses are true.   Can an argument be valid if it has a tautology as a conclusion?  An example I can think of is:        A proposition is either a tautology or not a tautology   (1) is a proposition   (1) is either a tautology or not a tautology      That seems strange/wrong to me, even though it appears to meet the definition. Are there other conditions for an argument to be valid?


how to calculate maximum allowable current density for a PCB trace?

How to calculate maximum current density(J) for a copper pcb trace.


What is the difference between public, protected, package-private and private in Java?

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


How to submit a form in javascript when form is also comes from a javascript

I have created a form in a JavaScript and display it in a element. But when I have to submit on that form it doesn't works.  Here's my code:    // This is my javascript for submit.   $('#EncodeGradesForm').submit(function() {   $.ajax({     url: '<?php echo base_url('     grade / encode ') ?>',     type: 'POST',     data: $(this).serialize(),     success: function() {       alert('Submitted!');     }   }); });   var encoding; encoding = '
Encoding Grades...
'; encoding = '<form id="EncodeGradesForm">'; encoding += '<input type="hidden" name="subject_id" value="<?php echo $subjectData['id'] ?>">'; encoding += '<input type="hidden" name="section_id" value="<?php echo $section_id ?>">'; encoding += '<input type="hidden" name="grading_id" value="' + grades_id + '">'; encoding += '<input type="hidden" name="grade_id" value="' + content_id + '">'; encoding += '
'; encoding += '
'; encoding += '
'; encoding += 'Student	'; encoding += 'Grade	'; encoding += '
'; encoding += '
'; encoding += '
';  for (var i = 0; i < data.length; i++) {   encoding += '
' +     '' + data[i].firstname + ' ' + data[i].lastname + '	' +     '<input type="hidden" name="student[]" value="' + data[i].id + '" /><input type="number" name="score[' + data[i].id + ']" class="form-control" style="width: 100px; margib: auto;" />	' +     '
'; }  encoding += '
'; encoding += '
'; encoding += '<button type="submit" class="btn btn-primary btn-block">Submit Grade/s</button>'; encoding += '</form>';  $('#collapseContent' + content_id).html(encoding);


Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04

I am not able to install LanguageTool extension for LibreOffice. Getting exception when I try to install it.   p.s. Somebody says that the solution is installing openoffice.org-java-common package but Ubuntu 14.04 does not have this package in its repository.  System details:  OS: Ubuntu 14.04 LTS  LibreOffice: 4.2 (4.2.3.3)  LanguageTool: 2.5  Java: Oracle JDK 1.8.0_05     Exception message:


How to recover a removed file under Linux?

By accident, I used rm on a file I didn't want to delete. Is there a way that I can get it back under Linux?


I have table (2139868 rows):  COLUMN1 NUMBER(20,0) COLUMN2 XMLTYPE COLUMN3 XMLTYPE COLUMN4 VARCHAR2(50 BYTE) COLUMN5 VARCHAR2(50 BYTE) COLUMN6 VARCHAR2(50 BYTE) COLUMN7 VARCHAR2(50 BYTE) COLUMN8 VARCHAR2(50 BYTE) COLUMN9 VARCHAR2(500 BYTE) COLUMN10 VARCHAR2(100 BYTE) COLUMN11 VARCHAR2(50 BYTE) COLUMN12 VARCHAR2(20 BYTE) COLUMN13 VARCHAR2(20 BYTE) COLUMN14 TIMESTAMP(6) COLUMN15 VARCHAR2(50 BYTE) COLUMN16 PROPERTIES_ARRAY_TYPE COLUMN17 TIMESTAMP(6) COLUMN18 TIMESTAMP(6)   In a database  Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production   I'm trying to select all the distinct values of COLUMN4; unfortunately this takes roughly 18 seconds despite the COLUMN4 being indexed.  There are only 5 unique items.  How can I speed up my query?  (Work doesn't let me upload images so I'll type out the execution plan, use your imagination)  Operation             OBJECT_NAME CARDINALITY   COST ---------------------- ----------- ----------- ------ SELECT STATEMENT       NIL                    4 65463 + HASH(UNIQUE)         NIL                    4 65463 ++ TABLE ACCESS (FULL) TABLE1           2010857 65334