Brace-or-equal-initializers default value in child doesn't seem work

I try understand what's going on here, why bar doesn't have default value for name property  #include <string>  struct Foo {     std::string name = "foo default value";     std::size_t number = 23; };  struct Bar : public Foo {       std::string name = "here i want other value"; };  int main(int argc, char * argv[]) {     Foo foo;     std::cout<<"name="<< foo.name << " number=" << foo.number << std::endl;     Foo * bar = &Bar();     std::cout<<"name="<< bar->name << " number=" << bar->number << std::endl;     return 0; }   output:  name=foo default value number=23 name= number=23 // why name is empty string?   I assume that's default generated constructos are involed in final result. But can't get it right in my mind. Can someone explain what sorcery compiler does here?


Screen size problem with Ubuntu 14.04 x86_64 in virtualbox

I am running Ubuntu 14.04 from Windows, using virtualbox 5.0. I tried several options to make size of Ubuntu in virtual box larger, but none helped so far.   I am using latest virtual box with latest guest add on installed. sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 I went to Ubuntu 'software and Updates' and made sure that under 'Additional Drivers' tab, 'using x86 visualization solution...' is active. In virtualbox window, under view->virtual screen 1, all 'resize to' options are disabled.   None of these options helped. This is frustrating. Any comments or help? Can the problem be I am using 64 bit system? Does this problem occurs in earlier/later versions? If not, please suggest a 'good' version of Ubuntu for virtualbox.


How to run two Thread Group in a loop - JMeter

I'm facing problem here, There are 2 Thread Groups  and both are correlated ( run thread group consecutively is ticked in test plan ).  1st is user thread group and 2nd is Driver thread group. So thread group running concurrently but it is not happening in twice. I've put loop count for 2 they will run each independently after completion of first cycle. I want run this flow such a way that after completion of driver group request next do second iteration (start from user) thread group. So how to do this stuff ?  Loop will be :   User thread group Driver Thread group   After completing this once again start with :   User thread group Driver thread group   like this it should(loop) happen for multiple times


What's the efficient way to split a List to several list in python

I want to split a List to several List according to some expression.   For example:  for elem in elemList:      if elem>0 and elem<=3   add element to Partition1      if elem>3 and elem<=6   add element to Partition2      else                    add element to Partition3   How to do it efficiently? Is there something like erase and push_back in list in C++ whose complexity is O(1)?  Or are there some other collections that can do it?


How to convert MBR disk to GPT disk on Windows XP?

My new harddrive is larger than 2TB, and for some reasons I have to convert it to GPT disk so I can use all the space.  How can I convert my WD Red 3TB into GPT disk so I can use all its capacity?  I tried the commandline feature (diskpart), but it said it cannot convert it to GPT format.  I am using Windows XP SP3 32bit.


How to output in html if a record from php mysql has 'ñ'?

I have a list of records but let's take this for example  John Kenneth Lorenz Minnie Niño  When i process a Select query to give me all names, it does but the last record shows Ni�o instead of Niño. How should i do it?


How to create a directory named '-p' under Linux with Bash?

In Bash, how could I create a directory named -p?  mkdir -p failed. mkdir "-p" failed. mkdir "\-p" failed. mkdir \-p failed.


When should I apply feature scaling for my data

I had a discussion with a colleague and we started to wonder, when should one apply feature normalization / scaling to the data? Let's say we have a set of features with some of the features having a very broad range of values and some features having not so broad range of values.   If I'd be doing principal component analysis I would need to normalize the data, this is clear, but let's say we are trying to classify the data by using plain and simple k-nearest neighbour / linear regression method.   Under what conditions should or shouldn't I normalize the data and why? A short and simple example highlighting the point added to the answer would be perfect.


I have a problem with freezing/lagging system and I suspect kworker is to blame. Yesterday everything was fine and I did not install any updates but today the system is slow, as I am writing right now the letters are popping with a delay and when I top my system it shows ~30 % CPU on kworker.    I am using Xubuntu 18.04 with kernel 5.3.0-53-generic. I updated it today thinking that this could help but it didn't. I also tried to follow this topic:    but I don't understand the answer - for example, I don't know how to find the problem in perf report.  Also, now, when I restart my computer, it prompts the message that there is a problem with my system and asks permission to send a notification, but it doesn't show any report of that problem or number of an error, anything.   I would appreciate any help!  Ok, partial solution:    This helped with the kworker eating up the CPU, however, I still have a problem with the message prompted at entering the system - it still says that there is a problem but it does not say of what nature so I worry these two things are related and the solution is temporary.


I have an Nginx with a number of enabled server blocks. Each server answers to 1 canonical domain and may forward 1 or more to that canonical URL. I have at least one server (haven't checked all of them yet) where, if I type in a non-existent domain that points to this box, Nginx displays a site of its choosing (always the same site, but not one that I'm after).  I've poked around the config file for the site I always land on, but don't see anything obvious that would identify it as any kind of default site and yet there it is, always showing up when I fat finger a URL.  Any thoughts on what I should be looking for to track this down?


Proof verification that $\gcd(a,b)=\gcd(a, b- k \cdot a )$

We wish to prove that $\gcd(a,b)=\gcd(a, b- k \cdot a )$, where $a,b, k$ are integers.   For any divisor $d|a$ and $d|b$ then we also have that for all integers $x,y$ we have $$d|(ax+by)$$ now let $x=-k$ and $y=1$ then $d|(b-ka)$. I still have to make the step to the gcd now, since I prove this for general divisors, is my proof also valid for the gcd? this only would mean that $d$ is the greatest such integer.


Is it possible to interrupt spellcasting?

As  suggests, there seems to be a hole in the D&D Basic rules.  Maybe.  The rules for readying an action state:     When the trigger occurs, you can either take your reaction right after the trigger finishes or ignore the trigger.   This seems to imply that it is impossible to interrupt a spell in 5e.  If you set your trigger to be "I attack the Wizard when he casts a spell", then you make the attack after the spell has been cast.  Does this mean that spells can no longer be interrupted in combat like they could be in previous editions?


Pressure at base of 3 different dam designs

The question asks, For which design will the water pressure at the base of the dam wall be the greatest?  The answer is all are equal.    This doesn't make sense to me.  Using the formula: P (pressure) = p (atmospheric pressure) + rho (density) * g (gravity) * y (depth below water surface)    What is confusing me is the y value, the depth below the surface. Yes both red points are the same depth below the water surface. But doesn't the red point in dam III only "see" a smaller column of water above it and so shouldn't it have less pressure on it than the red point in dam II?    Also, I know the formula would give the points at the base of dam I and dam II equal. But why doesn't the extra water in dam II (shaded in black) cause it to have a higher pressure at the base?


Least $n \in \mathbb{N}$ such that $2^{|n|} = \aleph_0$?

It is well known that $2^{\aleph_0}>\aleph_0$. This seems to imply that there is an $n \in \mathbb{N}$ such that $2^{|n|} = \aleph_0$. If so, what is known about the least permitted value of $n$ such that this statement is true?


Why are IF and ELSE colored in PHP, but ELSEIF is not?

I just wrote an . I was describing a if-elseif-else algorithm in PHP and noticed, that the if and else expressions are in blue color, whereas the elseif term stays black. Is this the wanted behaviour or is this a bug?


I have just started up with few tutorials on PHP, the problem I often get with is " & '  following is the code where the issue is,  $query = 'INSERT INTO `users` (`email`, `password`) VALUES("'.mysqli_real_escape_string($link, $_POST["email"]).'", "'.md5(md5($_POST["email"]).$_POST["password"])'")';   This query simply takes inputs from the form fields, namely Email & Password & inserts into the database.  Can someone please help me where I am going wrong & any tips so that in future I dont commit any such mistakes?  Thanks...


I have read at some very good forums with impeccable liguistic records - using politics with a plural verb

Office politics are real, and dangerous. Just as there is likely merit to the judgements of those who judge colleagues harshly — so is it true that power politics in organizations can cause organizational drag, dumb down decisions, and damage careers. My point is that it is your response to both perceived and real machinations that either amplifies or moderates these dysfunctions.


Installing 32-bit libraries on Ubuntu 14.04 LTS 64-bit

Basically simple question: is it possible to install 32-bit libraries on my 64-bit Ubuntu 14.04 LTS box? I need to run an app which requires 32-bit support.  The information found on this forum is all about older versions, and I as not able to filter out all static.  If those libraries are still supported, how do I then get those installed on my box? So far what I tried only led to errors like "Package 'ia32-libs' has no installation candidate" or "Failed to fetch".


How do i make prototyped class functions without creating publicly accessible Javascript variables using this

I write javascript all day, but I have a different style than others.  I was curious as to what are the differences in javascript in the 2 different implementations.  var ClassA = function(){     var _value = 0;     this.getValue = function(){ return _value; } }   vs  var ClassB = function(){     this._value = 0; } ClassB.prototype.getValue = function(){ return this._value; }   I see why based on javascript, prototypes would be used in inheritance.  I like it, but i dont like values being publicly available.      For example, when i instantiate ClassB, you can investigate and see _value inside it.  This makes it possible to be modified.  So, how would i go about making a prototype typed function like ClassB but hiding the properties of the object so they cant be changed, or logged, similar to ClassA  Edit  I did try to create ClassB without using this, but _value was not recognized in getValue


I just ran across the following error (and found the solution online, but it's not present in Stack Overflow):     (.gnu.linkonce.[stuff]): undefined   reference to [method] [object   file]:(.gnu.linkonce.[stuff]):   undefined reference to `typeinfo for   [classname]'   Why might one get one of these "undefined reference to typeinfo" linker errors?  (Bonus points if you can explain what's going on behind the scenes.)


IS this what we could expect best for 200 samples?

I wonder if I'm going to land into the right part of the forum for this thread, appologies if I didn't.  This scene is meant for an eventual animations. I tweaked some parameters to reduce the noise as much as I could and render this view with 200 samples. It took 3:12min. This is the best so far I came up with 5 months of experience with modeling and blender.  I know it's not a regular question for this type of forum but I hope I can count onto your experience to get your point of view. (no pun)  -The main Light is coming though the windows. These are configured in order to avoid caustics.  -I used portals in front of these areas  -Currently using 2 Max bounces  -The exterior light comes from a HDRI with a ''sun'' area cranked up and a Sun lamp that definitely need some tweaks yet.   Question 1:At this point, I'm only wondering if I just have to crank up the samples or if I'm missing something important before boosting render times?  Question 2: Should I consider getting a better HDRI texture or tweaking something about the exterior light to help reducing noises?  Thanks for your input!  Charles


Replacing proper noun "-y" suffix to match plural case

For a proper noun, in this case let's say Morty, would one replace the "-y" suffix when using the plural case with "-ies" or keep it as an unaltered "-ys"?


Uniform convergence of $\sum_{n=1}^{\infty}\frac{1}{n(1+(x-n)^2)}$

Is $$\sum_{n=1}^{\infty}\frac{1}{n(1+(x-n)^2)}$$ uniformly convergent on $(0,+\infty)$? Sadly, Weierstrass' criterion nor Cauchy's condition don't seem to work here and I just ran out of ideas.


Lost USB BlueTooth Dongle for Keyboard and Mouse

I lost my USB bluetooth dongle (from HP) which I used for a wireless keyboard and mouse. They came together in a set when I bought my last HP computer.  Are the keyboard and mouse useless now? or will any bluetooth dongle allow them to work? If I can just buy a new one - any recommendations on a replacement (good price, and perhaps works with Windows and Ubuntu out-of-the-box?   Forgive me if this is an easy question. I'm just not that familiar with wireless mice/keyboards.


The result set has no current row while using JDBC

I am using the following code in selenium, but I am not able to retrieve data from database. I am getting the errors "The result set has no current row"  My code is   public class Auto {      public static void main(String[] args) throws InterruptedException, SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException     {           Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");         System.out.println("Driver loaded");           Connection con=DriverManager.getConnection("jdbc:sqlserver://192.168.*****\\SQLEXPRESS/*****_DW/EPS:****;user=******;password=******; ");          System.out.println("Driver loadedd");       java.sql.Statement stmt= con.createStatement();     ResultSet rs=stmt.executeQuery("select * from [*****_DW].[dbo].dim_grantee ");      System.out.println("Query executed");      while (rs.next());     {         String Name=rs.getString("NAME");          System.out.println("Name is");     }   }


Dock settings missing in gnome-control-center after upgrade to Ubuntu 17.10

I've just upgraded to Ubuntu 17.10 and am missing the Ubuntu Dock settings, i.e. in gnome-control-center the dock settings are blank:    I think I might be missing the "ubuntu-dock" package, but can't find this anywhere in the software centre.  Also the gnome-control-center was completely missing after the update, and I had to install this separately - not sure if this is related.  I think this is different from  because changing the type of GNOME session doesn't fix the problem. If I go for GNOME* I get no Dock settings section at all, and if I got for Ubuntu* I get the blank Dock settings section described above.  Output of apt-cache policy gnome-shell-extension-ubuntu-dock:  rob@rob-pc:~$ apt-cache policy gnome-shell-extension-ubuntu-dock gnome-shell-extension-ubuntu-dock:   Installed: (none)   Candidate: 0.7   Version table:      0.7 500         500 http://gb.archive.ubuntu.com/ubuntu artful/main amd64 Packages         500 http://gb.archive.ubuntu.com/ubuntu artful/main i386 Packages


How to transfer space from SWAP partition to Ubuntu Filesystem partition?

@heynnema I have created a 127GB Swap partition instead of Filesystem partition while installing Ubuntu. How can I transfer the Swap partition space to the filesystem?


Why session_start() would try to open a file?

I've got an warning message with my site saying "session_start(): open(/home/content/55/5307955/tmp/sess_qphb8rav2kmt5kavptqh1mik06, O_RDWR) failed: No such file or directory (2) ". I've been reading basics about PHP session and seesion_start(), so far I understand that when session_start it either starts a new session or resume the existing session. What does it have to do with opening a file?


$a_{n+1}-a_{n}\ge\frac{1}{n}$. Prove: $\lim\limits_{n \to \infty} a_n= \infty$

$\{a_n\}$ a sequence such that for all $n$:   $a_{n+1}-a_{n}\ge\frac{1}{n}$  Prove:    $\lim\limits_{n \to \infty} a_n= \infty$  I have figured already that $a_{n+1}-a_{1}\ge\sum_{k=1}^n \frac{1}{k}$. Am I on the right track?


Documents to help me get a Schengen visa to Germany

I want to know if my girlfriend, who is in Germany, can provide me with an invitation letter and her bank statements, showing she's the one funding my trip and everything. Will it help me get the visa, even though she is studying and working at the same time?


Let me View Markdown of a question/answer

As I do not have enough reputation I can not edit questions and answers.  However I sometime wish to view the Markdown so I can see how someone has done some formatting etc.  So there is a hard (hack) way of doing this, should there be a direct link.  E.g. "view marked" link instead of an "edit link" when no edit rights?


Does a geodesic always extremize its path length?

I've learned that a geodesic maximizes its proper time in Minkowski spacetime. Is this still true in general curved spacetime?  In other words, does the geodesic equation give the globally extremal path from one point in spacetime to another. Assuming the points are time-like separated.  I would think that by the local equivalence theorem, the geodesic equation gives a locally extremal path. Can it proven to be globally extremal?


Avoid explicit instantiation in templated functions

I mean to write a templated function, which should be available for a somewhat large number of typenames. So, I mean to avoid needing explicit instantiation.  In this case, is it mandatory to write the definition of the function in the header?  Is there any other way? (It would be used in several places, so the definition cannot be written in any single source file).  PS:   refers to templated classes. Even though it may be reasonable to think that the same applies to functions, perhaps sometimes, it may not be the case. Thus, the link does not answer this specific question.


After Insert Trigger on Email Message to Update a field on Case

I have one custom checkbox field on Case named Check__c and I want it to be checked if the From Address of the incoming email message linked to that case is equal to the Case Owner's email. there is one custom field case_owner_email__c which holds the case owner email. How can I check the condition for checking if the from address is equal to the case owner's email? I guess it will be handled as an after insert trigger only. My idea is that i create a map of case id and case owner email and do something after that but i am not getting a clear picture. Please advise. Thanks in Advance, Alex


How to cite a source that has vanished due to link rot?

My colleague is writing a manuscript about a subject that is rarely reported in the mainstream literature (predation events). A few years ago on a fishing forum she found a photograph that demonstrated this phenomenon pretty well and saved it to her computer, but unfortunately between then and now the original source has vanished: Google Reverse Image Search can't locate it, the website is no longer running and is also unavailable in the Internet Archive. The original URL to the photo was also not retained.  What's the proper way to cite this source? It's not critical to include but it would definitely improve the final manuscript.


Do I need a 64 bit version of Windows 10 to run Blender 2.90.1?

I have a 64 bit processor but a 32 bit version of Windows 10 and none of the downloaded versions of 2.90.1 will install.  Minimum requirements are listed as 'x64 architecture' but I'm not clear if that is x64 processor or x64 OS or both.  Thanks.


Using a model with domain/image constraints

I would like to fit a model and the smallest predicted value must be zero. This is what I have done:  xx = c(.001,1,seq(5,50,5))*1e3 yy = c(0.0001,0.0378,0.1778,0.5422,1.2304,2.1918,3.575,5.1964,        7.2778,9.6814,12.4536,15.5136) dat = data.frame(x=xx,y=yy)  # see: http://stats.stackexchange.com/a/160575/86260 c.0 = min(yy) * .5  model.0 = lm(log(y - c.0) ~ x, data = dat) start = list(a=coef(model.0)[1], b=coef(model.0)[2], c=c.0) mod = nls(y ~ a * exp(b*x) + c, data = dat, start = start)  zero = predict(mod, list(x = 0)) print(paste('zero:', zero))  # Plot empirical vs. predict plot(dat$x/1e3,dat$y, xlab = 'Parameter (in thousands)',       ylab = 'Execution time (in seconds)', main = 'Service performance',      col = 'steelblue', type = 'o', pch = 19, lwd = 3) lines(dat$x/1e3, predict(mod, list(x = dat$x)), col = 'red',        lty = 2, lwd = 2) grid() legend('topleft', legend = c('Empirical data',         'Predicted from the model'), col = c('steelblue', 'red'),         lwd = 3, lty = c(1,2), pch = c(19,32), bty = 'n')   Which will outputs:  [1] "zero: -0.326332998543469"     As it can be seen, the predicted value for the parameter .001 must be zero (or as close as it is possible of).   How could I fit a model with such a constraints?    EDIT: an algebraic manipulation can be used to overcome this issue. (thank you @whuber)  The code now become:   xx = c(.001,1,seq(5,50,5))*1e3 yy = c(0.0001,0.0378,0.1778,0.5422,1.2304,2.1918,3.575,5.1964,        7.2778,9.6814,12.4536,15.5136) dat = data.frame(x=xx,y=yy)  # see: http://stats.stackexchange.com/a/160575/86260 a.0 = 0 model.0 = lm(log(y - a.0) ~ x, data = dat) start = list(a=coef(model.0)[1], b=coef(model.0)[2]) mod = nls(y ~ a * exp(b*x) - a, data = dat, start = start)  zero = predict(mod, list(x = 0)) print(paste('zero:', zero))  # Plot empirical vs. predict plot(dat$x/1e3,dat$y, xlab = 'Parameter (in thousands)',       ylab = 'Execution time (in seconds)', main = 'Service performance',      col = 'steelblue', type = 'o', pch = 19, lwd = 3) lines(dat$x/1e3, predict(mod, list(x = dat$x)), col = 'red',        lty = 2, lwd = 2) grid() legend('topleft', legend = c('Empirical data',         'Predicted from the model'), col = c('steelblue', 'red'),         lwd = 3, lty = c(1,2), pch = c(19,32), bty = 'n')   Which will outputs:  [1] "zero: 0"


Package to test whether a string is in a list

Is there a package that provides a command for testing whether a string is in a list?  I saw several answers that define their own commands to perform this or similar tasks, but I prefer a "self-evolving", and well-documented solution for this kind of tasks.  More precisely, the command should be something like this  \IfStringInList{string}{list}{DoThisIfTrue}{DoThisIfFalse}   For instance  \IfStringInList{Paul}{George,John,Paul,Ringo}{Beat it}{Roll it}   EDIT:  I'm not against defining commands.  I expected thas this natural functionality was present in a ready-to-use package, that can be accessed in a very simple way.


Continuous mapping $f: [0,1]\rightarrow (0,1)$ CSIR December $2013$

Question is :  Suppose  $f: [0,1]\rightarrow (0,1)$ is Continuous then which of the following is NOT true..   $F\subseteq[0,1]$ is closed set implies $f(F)$ is closed in $\mathbb{R}$ If $f(0)<f(1)$ then $f([0,1])$ must be equal to $[f(0),f(1)]$ There must exist $x\in(0,1)$ such that $f(x)=x$ $f([0,1])\neq (0,1)$   Continuous map need not map closed sets to closed sets..  So, first option is not true...  Continuous maps takes connected sets to connected sets ...  So $f([0,1])$ must be connected and it is equal to  $[f(0),f(1)]$.. So, Second option is true..  Continuous maps takes compact sets to compact sets...  So, $f([0,1])\neq (0,1)$ and so fourth option is true...  I guess third option is also false though I can not think of any example..  Continuous map from compact set to itself has a fixed point.  But how do i conclude that this would imply third option is true/false.  Please help me to clear this...  Thank you.


Spacing problem on last column using longtable

I am developing some tables on LaTeX environment and I am having some troubles with the spacing. Originally, I was able to generate the tables using the standard \begin{table}, but then I tried to add some features, as the capability to break the table if it is too long (using longtable) the issue appears. I also want to align numbers by decimal point and center, reason why I use siunitx package. The problem is on the last column, which had a width almost the double than the others. If I specify the column width, the problem "disappear", but I'm really interested in the possibility of automatically generate the width of the table.  The code is the following:  \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[english]{babel} \usepackage{siunitx} \usepackage{longtable} \usepackage{booktabs}  \begin{document} \begin{longtable}{l*{4}{S}} % no problem specifying the column width\begin{longtable}{l*{4}{S[table-column-width=1.25cm]}} \caption{Univariate Item Descriptives}\\ \toprule \multicolumn{1}{l}{\textbf{Item}} & \multicolumn{1}{c}{\textbf{Mean}} &    \multicolumn{1}{c}{\textbf{Variance}} & \multicolumn{1}{c}{\textbf{Skewness}} & \multicolumn{1}{c}{\textbf{Kurtosis}} \\ \midrule \endfirsthead \multicolumn{5}{c}% {\tablename\ \thetable\ -- \textit{Univariate Item Descriptives (Continued from previous page)}} \\ \toprule \textbf{Item} & \textbf{Mean} & \textbf{Variance} & \textbf{Skewness} & \textbf{Kurtosis} \\ \midrule \endhead \hline \multicolumn{5}{r}{\textit{Continued on next page}} \\ \endfoot \bottomrule \endlastfoot 2. EX +         & 2.788   &    1.060 &        -0.120   &   -0.368\\ 3. DS +         & 4.080   &    0.853 &        -1.141   &    1.379\\ 4. AM +         & 3.684   &    0.705 &        -0.541   &    0.744\\ 5. EX +         & 3.653   &    1.043 &        -0.709   &    0.149\\ 6. DS -         & 2.240   &    1.665 &         0.725   &   -0.603\\ 7. AM +         & 4.292   &    0.876 &        -1.627   &    2.705\\ 8. EX -         & 2.419   &    1.588 &         0.449   &   -0.897\\ 9. AM +         & 3.255   &    0.923 &        -0.234   &   -0.037\\ 10. DS -        & 3.449   &    1.408 &        -0.453   &   -0.599\\ 11. EX +        & 3.678   &    1.232 &        -0.669   &   -0.219\\ 12. AM -        & 2.830   &    1.162 &         0.029   &   -0.565\\ 13. EX -        & 3.452   &    1.205 &        -0.410   &   -0.336\\ 14. DS -        & 2.442   &    1.374 &         0.310   &   -0.893\\ 15. AM -        & 2.114   &    1.168 &         0.729   &   -0.176\\ 16. EX -        & 3.070   &    1.085 &        -0.176   &   -0.347\\ 17. AM +        & 3.893   &    1.116 &        -0.954   &    0.544\\ 18. EX +        & 3.311   &    0.964 &        -0.238   &   -0.066\\ 19. AM -        & 2.674   &    1.404 &         0.245   &   -0.780\\ \end{longtable} \end{document}


Solve the functional equation $f(xy) = f(x)f(y) - f(x + y) + 1$ and $f(1) = 2$

I'm working on this problem already, the domain and co-domain are the set of Rational Numbers. we see that setting $x = 1$ and $y = n$, we obtain $f(n + 1) = f(n) + 1$  But I'm trying to prove that $f(n) = n + 1$ for all $n$, the case when $n = 1, 2$ is obviously true, how do I approach this via induction?


I have tried to search similar posts to this, but unfortunately I may not have enough keywords for it. I'm looking for some help so check the following: Given a prime number $p$, let $k, m \in\mathbb N \backslash\{0\}$ such that $k \equiv m(\bmod (p-1))$. Now given $ u, v \in\mathbb Z$ such that $u \equiv v\pmod p$, check that $u^k \equiv v^m\pmod p$. Any tips to show this or where should I start? Thank you!


How does the attack proficiency bonus stack with multiple sets of weapons training?

I am creating a drow ranger. They're at 3rd level, and it's my first time playing.  Their attack score is proficiency + ability + other bonuses.  They have Drow weapon training which includes shortswords, rapiers, and hand crossbows. My ranger class gives me simple & martial weapons training.  Does that mean their attack score is (2+2) + ability + other bonuses?


In Harry Potter, the portraits of people move and behave as though they are actual people.  It's even possible to converse with them.  So what's the deal with them?  Are they simply extensions of the person(s) they're renderings of?  Do they have the same memories of the actual person?  Can they learn like people do?  As seen in the answer to this question    and this one    Rowling basically says that they repeat catch phrases and then goes on to explain that if Harry had a picture of his parent's that they wouldn't have been able to help him.  Yet Harry actually converses with the portrait of Dumbledore.  Aberforth, actually gives instructions to the portrait of his sister.  Gryffindor's fat lady actually interacts with the students.  So, are the portraits 'sentient' beings that are capable of emotion, memories, and with learning potential?


NullPointerException when onResume() is called

This crash is happening when I click on the button to change the details. I was able to catch the exception with a try and catch but I don't want to mask the issue since it is a NullPointerException. Here is my onResume() activity. The exception is happening at setText().      @Override     protected void onResume() {         super.onResume();         if (getAirlineProfile().isStocksEnabled()) {             stockDao = new StockDao(CouchManager.OPERATIONAL_DB, MIUtils.getOperationalDatabaseIndexMap());             if (getAirlineProfile().isStocksEnabled()) {                 flightKeys = MIUtils.getFlightKeyList(stockDao, getAirlineIataCode());             }         }         this.continueWithSelectedDate = false;         this.flightDataValid = false;         if (getMiApplication().getBuildDate() != null) {             // setup required dates             today = Calendar.getInstance();             apkDate = Calendar.getInstance();             apkDate.setTime(getMiApplication().getBuildDate());         } else {             this.dateValidationsEnabled = false;         }         isFlightDateValid();         @SuppressWarnings("unchecked")         Optional<FlightLegIdentifier> flightLegIdentifier =                 (Optional<FlightLegIdentifier>) getIntent().getExtras().get(FLIGHT_LEG_IDENTIFIER);          flightPrefix.setText(getAirlineProfile().getAirlineIataCode());          if (flightLegIdentifier.isPresent()) {            FlightLegIdentifier fli = flightLegIdentifier.get();             flightOrigin.setText(fli.getOrigin());             flightDestination.setText(fli.getDestination());             flightOriginCityName.setText(getCityNameByAirportCode(fli.getOrigin()));             flightDestinationCityName.setText(getCityNameByAirportCode(fli.getDestination()));             flightNumber.setText("" + fli.getFlightNumberDigits());             LocalDate date = fli.getDate();             flightDate.set(date.getYear(), date.getMonthOfYear() - 1, date.getDayOfMonth());             flightDateButton.setText(DateFormat.format(DATE_FORMAT, flightDate.getTime()));                         passengerInput.setText(getFlsIfAvailable(fli).getNumberOfPassengers());          } }   Here is the LOG:  Fatal Exception: java.lang.RuntimeException: Unable to resume activity {com.miairline/com.miairline.chooseflight.FlightDataActivity}: java.lang.NullPointerException        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3196)        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3225)        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2612)        at android.app.ActivityThread.access$900(ActivityThread.java:174)        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1325)        at android.os.Handler.dispatchMessage(Handler.java:102)        at android.os.Looper.loop(Looper.java:146)        at android.app.ActivityThread.main(ActivityThread.java:5756)        at java.lang.reflect.Method.invokeNative(Method.java)        at java.lang.reflect.Method.invoke(Method.java:515)        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)        at dalvik.system.NativeStart.main(NativeStart.java) Caused by java.lang.NullPointerException        at com.miairline.chooseflight.FlightDataActivity.onResume(FlightDataActivity.java:551)


How do I show the GRUB menu in GRUB 2 during boot up?


How to make Menu Company Profile Website in google search ? how to edit sitemap.xml to setting it?

How to make Menu Company Profile Website in google search like this


Adding words to Hiragana input's dictionary

I am trying to figure out how to add new words to the Japanese dictionary.   Specifically, my problem is, name of one of my friends is Manaka, spelled  愛可 (yes, that's 可愛い in reverse).  Problem is, if I type in まなか and try find an appropriate kanji substitute, the only one that I find is 愛花 (and yes, I've tried looking at the general kanji selection, by the reading, by radical,  names, etc).  Currently I type her name in by typing in あいか, which is annoying.  Is there a way to teach the hiragana input, that when I type in まなか I want to see 愛可 as one of the options presented to me?  MacOS X 10.7, MBP 13", English UI with Hiragana input added.


Is it possible to print a variable's type in standard C++?

For example:  int a = 12; cout << typeof(a) << endl;   Expected output:  int


What is the best definition for the imaginary unit?

I want to know what is the best way to define the imaginary unit $i$. In many books we see $$i^2 = -1$$ But sometimes there is a $$i = \sqrt{-1}$$ there.  Isn't the first definition a little problematic? Because if $i^2 = -1$ then $|i| = \sqrt{-1}$implying that $i$ could be both $-\sqrt{-1}$or $\sqrt{-1}$ which honestly i don't know if its true) So,     It is better to define $i$ directly as $\sqrt{-1}$?


In Game of Thrones S08E03 ("The Long Night"), the Night King's dragon tore at the one Jon Snow rides (Rhaegal). He falls off of it and we don't see the dragon anymore, is it dead?


How do you set a Background image in blender 2.8?


How to take mysqldump with Generated column?

I am getting below error while importing the dump,     ERROR 3105 (HY000) at line 82: The value specified for generated   column 'column_name' in table 'table_name' is not allowed.   When I describe the table with error, there are some generated columns in it.     option_type         | varchar(45)  | YES  | MUL | NULL    | VIRTUAL   GENERATED   What is the correct command to use when taking mysql dump for the database contains generated column?  MySQL server source and destination version:     mysqld Ver 5.7.26 for Linux on x86_64 (MySQL Community Server (GPL))   MariaDB mysqldump CLI version:     mysqldump Ver 10.17 Distrib 10.3.12-MariaDB, for Linux (x86_64)


How can I mirror my iPad display wirelessly?

I am looking to display my iPad screen wirelessly to an external display to demo applications.  I found  showing exactly what I want to do with an iPhone but no explanation as to what the hardware dongle used was.  The main thing is that there isn't a wire tethering the user to the external display.


How should we address stuttering in a toddler?

My 2.5 year old has recently developed what can be best described as a stutter.  It only seems to occur with us, and mostly when asking a question ("Wh, wh, wh, wh, what's that Daddy?). It's especially pronounced if he is tired.  It doesn't concern us greatly yet, he's happy and sociable. In fact it doesn't tend to occur around strangers.  Update: He's started to garble whole sentences recently, again mostly when he's tired, but he's also started getting noticeably frustrated.  His vocabulary is very wide and still growing quickly - if anything, it feels like his mouth can't keep up with this brain!  Is this similar to others experiences - how did you approach it? Should we ignore it (for now) and make no special effort, or would simple speech therapies help?  Update - 2.5 years later: It was just a phase, passed in a few months. He's near top of his class for reading, writing and spelling (phonetically or not).  As suggested in the great answers (and common with so many aspects of kids growing up), keep an eye on it to make sure it's not an early warning - but don't panic :)


Who were the hooded people in The Rise of Skywalker?

Near the end of Star Wars Episode IX: The Rise of Skywalker there are several hooded figures that are shown chanting stuff (in Sith?) and just hanging out with Palpatine. Who were these people?


What is the purpose of "Full name" field in my profile on the Stack Exchange network outside of Stack Overflow?

On Stack Exchange sites, the field has no explanation for what it is used, other than it is "not shown publicly":        On Stack Overflow there is a hint text "Shown to employers only if opt-in":        Seems like this field is mainly used to reveal your real name to potential employers (or rather recruiters looking for potential hires on their behalf) via Stack Overflow job searching services.  What other purposes does this field have? What is it used for on the other 174  Stack Exchange sites?


How to proof the the derivative of $x^2$ is $2x$?

I need your help, my question is how to proof that the derivative of $x^2$ is $2x$?  Please I need a clear explanation.


Keyboard macro to change default audio device

Windows 7, Logitech G110 keyboard  2 audio devices (headphones and speakers)  I am hoping to find a quick way to macro a key to switch to headphones, and a key to switch to speakers.  Anyone have a good program or anything of that nature?  EDIT:  Using AHK to try and get this task working as hoped is sadly not doing the trick.  I have included a screenshot of my audio set, as well as a screenshot of my script as it sits now.    I have also tried to uncheck "show disabled devices" and modified the script to be Down 1, and Up 1 respectively.  It will work for one device, but it refuses to switch to the secondary.


If $\zeta_n$ is a primitive $n$th root of unity, why is $\text{dim}_{\Bbb Q}\Bbb Q[\zeta_n]=\phi(n)$?

I have no idea what cyclotomic polynomials are and how we can get the result using that. Is there another way to prove it? Any hint is appreciated.


how to allocate space from windows to ubuntu?

I had 2 os on my computer Windows and Ubuntu, I wanted to remove windows and did this with OS uninstaller,but all the space from windows left there and I cant move that space to my ubuntu using Gparted The ext3 is deleted Windows and i need to move that space to ubuntu(ext4). Thanks for Help.


Possible (but not serious) glitch in close/reopen

I just had one of my questions closed. (Hey - it happens to everyone) When I clicked on reopen - lo and behold - it worked. I cast a reopen vote!  Is this a glitch? I know we need 4 more votes anyway but still...  And no  tag please :)


My html code is as follows.     <!DOCTYPE html>                           w3schools             google             some text             span text                              But outcome looks as shown below                              w3schools         google         some text         span text         enter code here         Is this really allowed to nest like this.


Getting a black screen when installing or Live booting Ubuntu (any version) in my laptop

I have an ACER Aspire laptop. Model number is E5-573G-56RG. I bought it only 15 days back. There is no DVD drive in it. I have tried various versions of Ubuntu- 14.04.2, 14.04.3, 15.10, 12.04.5. Tried disabling secure boot, fast startup. I current have Windows 10 Home and Windows 10 PRO (not-activated) installed with GPT partition in UEFI bios. I actually want only the Home edition and Ubuntu 14.04.3 (preferably because of LTS) or 15.10. In case more information is required, kindly ask me..  I tried installing through Wubi, when booting if I choose Ubuntu it automatically restarts and goes into Windows 10 Home! (I didn't have Windows 10 PRO at that time)  NONE OF THE SOLUTIONS I REFERRED HELPED ME.  I have spent 5 days (literally at least 20 hours reading all of them and trying out all kinds of editing in the grub command line, like removing quiet splash, adding and replacing with nomodeset, no splash, acpi_osi=off, acpi_osi=Linux, acpi_backlight=vendor,  acpi_backlight=legacy, noveau.modeset=0, i915.i915_enable_rc6=1 and such things! But I was not able to succeed installing which is why I doubt if there is some more thing to be done or know exactly what has to be done.


"Constant thrust" engine vs "constant power" engine

I read that a piston engine, under maximum fuel intake, provides constant power, while the thrust depends on velocity, while a jet engine is the opposite - provides constant thrust, with the power depending on velocity. I'm trying to wrap my head around this. I understand that with the piston engine, what gets created is rotational momentum which is then converted to thrust by the propeller, and I guess I sort of see, very vaguely, how the speed of air rushing by makes the propeller more/less efficient at generating thrust (though I don't think I really understand this). But somehow it still seems strange. After all, in both engines there's a chemical reaction that makes gas rapidly expand and push at things, right? If that's the case, why isn't it fundamentally about thrust - the momentum of the rushing gas - in both cases? I think my understanding of thrust/power and their grounding in momentum/energy is not solid enough. Would appreciate some physics-minded explanation that breaks this down to the underlying movement of particles/bodies and their momenta/energies as much as possible.


Rerendering lightning:recordViewForm OR single component

I have a lightning component similar to:  <aura:component>     <aura:handler name="myevent" action="{!c.myRerender}" />      <lightning:recordViewForm recordId="{!v.recordId}" objectApiName="MyObj__c" /> </aura:component>   How can I get my <lightning:recordViewform> to reload? Usinge.force:refreshView` is not a viable answer as it reloads other things as well.


i have watched many tutorials on how to reduce noise in cycles. however, no matter what i do its still grossly overflowing with fireflies. i must be missing something basic but i dont know what it is. i was watching a tutorial where he put the emitter plane in a hallway and changed its location and size and it made it crystal clear. i tried this and it just makes it worse. i have no idea what i am doing wrong.   Here is the tutorial i was watching.i was just trying to recreate the first example.


What's a word for an instance in which one has an opinion about something without having tried it?

What do you call it when someone has a strong opinion about something without having any experience with that thing? For example, if someone writes an entire newspaper article about how disgusting pie is without having ever eaten pie.  The word lodged in my brain is "hypocritical", but I know that's not correct.


Radeon HD 7500M/7600M Series drivers for ubuntu

Where can I find and how can I install the latest graphic drivers for Dell Inspiron 5520?I`m using 16.04 LTS Ubuntu Gnome.  When I use  sudo apt-get install fglrx this appears


What is the difference between software and firmware?

I've started learning about embedded coding. The words 'firmware' and 'software' are a bit ambiguous to me still. My understanding is that software is high level language tailored for user interaction, loaded into the CPU and modified frequently; whereas firmware is low level language, modified infrequently and loaded into a microcontroller for direct hardware control? What are the differences in terms of speed, timers, memory, peripherals, compiler, debugging etc.?


Run a GUI application in background and reconnect later

Is there a way to run a Gui application (X11) in background so that if I disconnect, I can resume the running app again?  I am using SmarTTY on windows to connect to remote CentOS. When I run a Gui application (e.g. gnome-help) it starts Xming server and displays its window.   I want to keep it running even if I disconnect, crash or close ssh connection. So that I can get back to running applicaition later.  I have tried 'screen' and '&' and combination of both but neither works. I can not connect again to the GUI application when SSH connection is closed.  --EDIT--    As answered by Anthon   Install both the VNC Server and VNC Viewer on the remote system (e.g. CentOS).   Start VNC Server on remote Xvnc -localhost :13  Start VNC Viewer so that it displays locally via X (e.g. on your Windows) Set display export DISPLAY=:13 Start a GUI application and it will be displayed in the VNC Viewer


I understand the difference between  #include "xyz"   and  #include <xyz>   in terms of what location is searched in each case.  I would like to know whether there is an ordering according to which searching and linking is done. Are files using  #include "xyz" //as this is done in current working directory   linked before linking of files using  #include <xyz>


How do I hide a 3rd party App completely?

Is there a terminal command or solution to allow me to visually remove the app icon from the Dock and from the shortcut viewer ( tab + option )?   Ideally, the app should be 100% invisible and running in the background.  i tried ghostviewer and it didnt work. thanks


Install Ubuntu 17.04 on external usb drive without modifying the internal hard drive

I currently have a laptop w. a 2tb internal hard drive & Windows 10 installed on it.  For coding reasons, I would like to run Ubuntu from a USB drive if I needed to but still retain my Windows hard disk and not modify it in any way.  I already made a USB stick with an ISO Ubuntu 17.04 image, but anything I do on it is not retained once I shut down the PC; therefore, I suspect I need to fully install it to a storage device, but I don't want to run the risk of accidentally wiping my internal HDD... how would I go about doing this?  Any help is appreciated; thanks, in advance.


Blank Macbook pro with no operating system. Trying to fix

I'm trying to fix a 2010 MacBook Pro. It had Yosemite 10.10. It was running slow, so I performed a factory reset. Unfortunately, when I tried to re-install Yosemite 10.10, it prompted me with an Apple sign in. I used my mum's Apple ID (it's her MacBook), and that didn't work. So I'm trying to find a way to install an earlier version of mac os, but I have to try and do it in a way where I don't have to use an email address (We don't know the original Apple ID used with this laptop).


Is there an equivalent of GNU Screen's "log" command in tmux?

I make heavy use of screen's "log" command to log the output of a session to a file, when I am making changes in a given environment. I searched through tmux's man page, but couldn't find an equivalent. Is anyone aware of a similar feature in tmux, or do I have to write my own wrapper scripts to do this?  EDIT: I'm aware of 'script' and other utilities that allow me to log a session. The reason that screen's functionality is so useful is the ability to define a logfile variable which uses string escapes to uniquely identify each session.  e.g. I have a shell function which, given a hostname, will SSH to that host in a new screen window and set the window title to the hostname. When I start a log of that session, it is prefixed with the window title.  If this functionality doesn't exist in tmux, I'll have to create a new set of shell functions to set up 'scripts' of sessions I want to log. This isn't hugely difficult, but it may not be worth the effort given that screen does exactly what I need already.


I understand that $i = \sqrt{-1}$, but it seems as if $i^2$ would be:   $$\sqrt{-1}\sqrt{-1} = \sqrt{1} = \pm 1$$  Why is this not the case?


90s (or earlier) Japanese anime movie: two planets at war, young man is in love with princess from the other planet, and floods his own village

I would like to find out the title of a Japanese anime feature film (not a series) that I saw on Romanian TV in the early 90s.   It was about a feud between the peoples of two planets (one very technologically advanced, the other not). The two planets go to war against each other, and a young man from one of the planets falls in love with a princess from the other planet.  I recall a scene where the army of the second planet take off in hot air balloons when they go to war.  The only other thing I recall is that there is a dam next to the village where the young man lives, and for some reason he opens the dam gates and floods his own village.   I do not recall there being robots in the movie, however I remember very vaguely that the technology level was probably at the level of late 19th century Europe on one planet and pre-industrial on the other one.  What it's not:   Nobunaga the Fool Aldnoah Zero Queen Millennia Uchuu Senkan Yamato (movie)


"If you know what X is" or "if you know what is X"

Recently I encountered the phrase "If you know what is QQ then(...)". The writer wasn't a native English speaker(neither me).  First, I thought it should be "If you know what QQ is ...". But then, I thought about the phrase: "If you know what is right..." I think the latter implies that you already know what "true" is and you should find/select an object. Or is it related to the fact that "true" is an adjective? Or is it just wrong?  So, I'm very confused. Can you help me?  I tried to search for it, however searching for "what is" in search engines is really difficult! The nearest questions are  and , but I don't think it's a duplicate.  Thank you in advance.


How everything will act in a universe of two time dimensions?

As far as we know, we live in a universe with one and single dimension of time, we know that some events happens BEFORE or AFTER other events, we know that some events happens slower or faster then others, but that is with a single dimension of time, what about another universe of two time dimensions, how will events be synchronized... I don't think there will be the terms before and after anymore in that universe, because as an analogy, we can order real numbers but we can't do the same with complex numbers ( two axes ) but the terms slower and faster are probably still valid, because length is measurable in any number of dimensions, ( duration is length in time dimension ). Note here that many strange phenomenon will be introduced, like time rotation! also, events around event in time => events in distance R around it  in a circle, also time projection seems very strange, and linear functions in time plan. Can any of you imagine such universe? and how particle will interact...? UPDATE 1 : We can't answer this question , we still dont even understand our one time demension universe , we can only only guess , improve , relate , note , motivate , add refrences  ... Motivation : Maybe quantum physics is probabilistic becuase there are more than one time dimensions making the computation  maybe those two or more axes are synchronized enough on the macroscopic level but not so exact to reach the precision of the microscopic level


Some websites display incorrectly (multiple browsers)

I have noticed recently that a few websites display incorrectly: www.dropbox.com and www.mediafire.com. They appear to only be loading a very minimal version of there websites (see attachments). All other websites appear to load and function as expected.  This issue happens with both Firefox and Chromium. I also have the same issue with both Internet Explorer and Firefox when run in in Virtual Box with Windows Xp as guest.  These websites display as expected on my other pc which has windows as the OS.  This leads me to believe it is more than an Internet browser issue, but I have tried the standard troubleshooting steps anyways: clearing cache, cookies, ect...  I thought it could be an user agent issue, but it seems fine to me.  Any ideas?    OS Version: Ubuntu 13.10.2 64 bit  User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0  Firefox 25.0.1 Chromium 30.0.1599.114  No Proxy, No Software Firewall installed, Have disabled all browser add-ons     on Firefox:       on Chromium:


Nicomachus theorem proof - what did I do wrong?


How can I join Yahoo without giving a phone number?

The last question that was asked about this was in 2013. While looking at the question the site I found that it was pretty outdated. Yahoo has recently made some changes where I cannot go to Yahoo without a phone number. I would like to know is there any way that I can pass this or join Yahoo without one? I want to make a new more professional account.


Can the gravitational attraction from a particle ever decrease to zero if it goes far enough away from us?

As a particle moves away from us, its apparent size keeps decreasing. Is there a minimum apparent size that a particle needs to be before it becomes unobservable, and therefore is not in our observable universe, and therefore exerts no gravitational attraction?  Would general relativity and quantum physics agree on the answer?


Can a druid use a focus to cast beast spells while in wild shape?

As a level 18+ druid I may use a Druidic Focus, may assume a Wild Shape, and may cast Beast Spells. May I do all three at the same time? Can a druid use a focus to cast beast spells?  Druidic Focus: A druidic focus might be... a totem object incorporating feathers, fur, bones, and teeth from sacred animals. A druid can use such an object as a spellcasting focus. (PHB p.151) Components, Material Casting some spells requires particular objects, specified in parentheses in the component entry. A character can use... a spellcasting focus in place of the components specified for a spell. [But not costly or consumed components] (PHB p.203) Wild Shape ... You choose whether your equipment falls to the ground in your space, merges into your new form, or is worn by it.... (PHB p.67) Beast Spells Beginning at 18th level, you can cast many of your druid spells in and shape you assume using Wild Shape. You can perform the somatic and verbal components of a druid spell while in a beast shape, but you aren't able to provide material components. (PHB p.67)  Assume my wild shape has a hand--an ape, for instance--that can hold the focus and is free. My focus is something's decorated leg-bone which fell to the ground when wild shaping, and I picked back up. I'm not able to provide material components (a la Beast Spells), but can I use the focus in their place?


What is the proper format for an htaccess redirect relating to https and subdomains

I'm not sure if my syntax is correct here. I'm specifically looking to do this:   Redirect all traffic to the root domain (mydomain.com) to a www version (www.mydomain.com). Redirect all http traffic to https on specific subdomains (or root domain to https:/www)   So if someone goes to the root domain (any page) they will go to the  version of that page.  If they go to two specific subdomains (www and clients) using http, they'll be redirected to the https version (either . or . respectively).  If they go to any subdomain other than www or clients, then do not force https.  Here's what I came up with:  # FORCE ROOT TO WWW RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] # END FORCE ROOT TO WWW  # FORCE SSL RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(www|clients)\. [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] # END FORCE SSL   This doesn't seem optimal. Is there a better way?  Also, this is a WordPress site and there are other rules in htaccess. Should this go at the very top of the htaccess file.  Thanks much.


I have a problem where json is encoded as base64 and I have to read that base64 and decode it and use the values of json. My Json Structure: {   "name" : "myname",   "id" : "1234568",   "class" : "science" }  My Base64: ewogICJuYW1lIiA6ICJteW5hbWUiLAogICJpZCIgOiAiMTIzNDU2OCIsCiAgImNsYXNzIiA6ICJzY2llbmNlIgp9  How can I decode this and get the values of the class?


Interpretation of the Dirac-measure property

First and foremost, apologies in advance for using an abuse of notation by placing the Dirac measure inside an integral. But given the circumstances, I have no choice.   This is essentially a word by word copy of an interpretation given on page 1 of these :      The important property of the delta function is the following relation   $$\displaystyle\int f(t) \delta(t) \, \mathrm{d}t = f(0)$$  for any   function $f(t)$. This is easy to see. First of all, $\delta(t)$   vanishes everywhere except when $t = 0$. Therefore, it does not matter   what values the function $f(t)$ takes except at $t = 0$. You can then   say $f(t)\delta(t) = f(0)\delta(t)$. Then $f(0)$ can be pulled outside   the integral because it does not depend on $t$, and you obtain the   r.h.s.   Here's the problem, it was my understanding that $$\delta(t) = \begin{cases} 0 & \space \mathrm{for} \space t \ne 0 \\\infty&\ \mathrm{for} \space t = 0 \end{cases} $$ So by my logic this means that $\delta(0)=\infty$ and therefore undefined; which implies that when $t=0$ $$\displaystyle\int f(0) \delta(0) \, \mathrm{d}t = \displaystyle\int f(0) ~\infty \, \mathrm{d}t$$ which is manifestly not true and certainly not equal to $f(0)$.    Clearly I am missing the point of this argument, so if someone would be kind enough to explain it to me I would be most grateful.


Long range Trilateration from 3 lat, long, range

I've been looking at the following solution to a similar problem  However with my problem the 3 points are spread over a large distance and the distance is a distance-over-ground (ignoring altitude). So the curvature of the earth comes into play.  Example of one of the data points is...[lat,long,km]  51.505348978413,-0.11270052661132,75.639168 51.4845086249581,-3.16947466601561,173.809152 55.9568033803799,-3.20266968478392,465.100416  This can be visualised at  by pasting it into the section "CSV Upload - [latitude,longitude,radius(km)] per line"  Using the solution in  I get the result..  51.8247121391 -0.802763718095  which isn't bad but it's about 14 miles out. I'm really wanting this down to ~5 miles of error.  I changed the ECEF calculation to one from here  and used an altitude of 0.  However, this is way way off the mark with...  56.2518456429 -0.813853131422  Intermediate results for xA,yA,zA...etc. are  lla2ecef  xA = [3978.79751502] yA = [-7.82628596545] zA = [5342.89431232]  xB = [3974.53105834] yB = [-220.086727248] zB = [5342.88794881]  xC = [3573.7981748] yC = [-199.973379186] zC = [5344.22411569]  original method  xA = [3965.56758195] yA = [-7.8002627162] zA = [4986.36680448]  xB = [3961.32002974] yB = [-219.355176278] zB = [4984.92406448]  xC = [3561.02859617] yC = [-199.258852046] zC = [5279.1109334]  So... the Z values for lla2ecef method are quite different. I'm guessing this is what's causing the issue, something to do with fixing the altitude to 0 and the fact my distances are distance-over-ground.  Am I going to need to do some projections instead?  My brain is about melted for today, can anyone shed light on ways to tackle this problem?


The correct forms of verbs when the time is 'all something.'

A fill in the blank from a school's worksheet. What bothers me is the word 'all.' Does it matter in deciding the verbs in this blank?     I ______ (work) on the project all night.    The confusion:  Without any context, it could be had been, have been, or simple past tense. Say:      I had been working on the project all night. I have been working on the project all night.  I worked on the project all night.   Who knows which night? Last night, the night last week, or the night last year? So with almost all the blanks there!   Does the answer lie in the word 'all'?  What am I missing? What could be the answer?


Alignment issue in Stack Exchange Data Explorer (SEDE) main page

In the , the list of Stack Exchange sites and its meta site details are displaying.   For the Software Recommendations Meta Stack Exchange site the details are displaying in the next line.   Screenshot for reference:


True/false question Regarding closed subsets

Is  the following statement is True/false   For any closed subset $A ⊂ \mathbb{R}$, there exists a continuous function $f$ on $\mathbb{R}$ which vanishes exactly on $A$.


The set of all finite subsets of $\mathbb{N}$ is countable

Can someone explain this in the most straightforward manner possible? I've looked at one other thread on here, but the mathematics was unfortunately too confusing for me. Is there some way I can understand why this is true without getting too much into mathematical bijections?


I have 1230 urls that have been submitted to google by previous webmaster that should have never submitted all these pages are is just a image and should not show in search, these pages are relevant to the site and need to stay in place but i need google to not crawl them.   what is the best plan in removing these pages from searches, would the best option be to remove from site map and wait for the site to eventually crawl?


Communities accepted topic information availability

To decide whether to join a community or not, one could expect the definition of the accepted topics of the community to be easily available. But besides the one-sentence-long description found in the communities menu, the only way to get the information is to go: Click help > help center Then find and click the link 'What topics can I ask about here?`  So I'm asking for the following changes to be made to the site's template:    1) Make the link to the "accepted topic" page of a community, directly accessible from it's welcome page    2) Include more informations about the accepted topics on the welcome page.  Either that or explaining me why I'm wrong.


Java: How to differentiate when to declare an Object instance of itself or its parent?

I am beginner in Java. I am confused if the followings are correct or not.  The first condition is understood and is used frequently. What are the usages of others? When and how can I utilize them?  /* 1) */ Car car = new Car(); /* 2) */ Car car = new Vehicle(); /* 3) */ Vehicle car = new Car(); /* 4) */ Vehicle vehicle = new Vehicle();   Perhaps you could include examples in your answer.


NetworkManager not populating resolv.conf

I recently upgraded from 11.10 to 12.04, and now NetworkManager isn't populating /etc/resolv.conf when connecting to wireless networks, when it had been working perfectly in 11.10. I'm not seeing any explicit errors in either the NetworkManager, UI or in syslog. How do I diagnose what's wrong?  Edit: If I try to run resolvconf, I get the error      resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.   What should it be, a symlink to and/or how do I get NetworkManager to populate it?  says the symlink should point to /run/resolvconf/resolv.conf, but that file does not exist on my system.


Wasn't the Gray's Sports Almanac supposed to be thicker?

If there was really such a book that contained all sports results (football, baseball, races etc.) within 50 years, wouldn't it be a little bit thicker than just a magazine size?  Maybe something like this:


How bad is it really to install Linux on one big partition?

We will be running CentOS 7 on our new server. We have 6 x 300GB drives in raid6 internal to the server. (Storage is largely external in the form of a 40TB raid box.) The internal volume comes to about 1.3TB if formatted as a single volume. Our sysadmin thinks it is a really bad idea to install the OS on one big 1.3TB partition.  I am a biologist. We constantly install new software to run and test, most of which lands in /usr/local. However, because we have about 12 non-computer savvy biologists using the system, we also collect a lot cruft in /home as well. Our last server had a 200GB partition for /, and after 2.5 years it was 90% full. I don't want that to happen again, but I also don't want to go against expert advice!  How can we best use the 1.3TB available to make sure that space is available when and where it's needed but not create a maintenance nightmare for the sysadmin??


We all use deodorant and they always feel cold, why is that?  Is it because it is liquid inside the bottle and a gas when it is released?


Dynamically change element CSS properties after adding it on button click Javascript

After the user creates a div with a button click I'd like to be able to click on that div and change its color. I'm wondering why this is not possible. It works if the div is hard coded in but not after it is dynamically created. Also, how do I make it work?  $("#addDiv").click(function() {     var div = '

';     $("#container").html(div); });  $("#clickMe").click(function() {     $(this).css("background", "red");    });


When does it make sense to log-transform input variables in multi-variable logistic regression? The transformation improves model metrics a little bit, but I'm not sure how to justify it and whether it is considered as an additional degree of freedom.   EDIT  There are several questions  here about interpretation of models that are based on log-transformed data (, ). I'm interested in the question "when do we need to log-transform data?"


What is the difference between partial likelihood and maximum likelihood?

I don't understand these terms. They both have "likelihood". How are they different? Can someone provide an intuitive explanation of them?


How to configure the 3d Cube compiz plug-in in Ubuntu 16.04?

I run Ubuntu 16.04, Unity, 64 bit and just installed compizconfig-settings-manager.   When I launch ccsm, I miss settings to configure the "3D cube" plug-in though. Where are they? Do I have to install any further packages to get them?


I have a 500GB drive and 20.0GB drive and i want to do a little experiment and see if i can make them be 1  : HOW I  DO THAT ON Gparted ?


Websites or advice for Northern Lights Photography (super beginner here)

I am brand new to the DSLR scene; I just purchased a Nikon d3400. I'm going to Alaska next month to hopefully catch my first glimpse of the Northern Lights. I understand that the d3400 may not be the best for night photography but it was the only one in my price range. I have an 18-55 mm lens and a 70-300mm lens and am still figuring out aperture, shutter speed, and all that jazz. I have extra batteries for the cold weather and a tripod.  I've seen a ton of photography sites out there, are there any that are better for beginners to get tips? Or do any of you have tips for a beginner hoping to get some decent shots of the aurora borealis? Some of the sites I've seen have been pretty technical and I'm not quite there yet.


samba how to display files with colon in their names?

Samba does not display files correctly when they contain a colon.  Original file name: test:file.txt  Display name under Windows: T8S6CH~R.TXT  How can I fix it?  Info:  Linux: SLES 11 SP 3  Samba: Version 3.6.3-0.33.39.1-3128-SUSE-CODE11-x86_64


Problem 24. Introduction to Hilbert spaces. Stein

Let $(e_k)_{k=1}^{\infty}$ denote an orthonormal set in a Hilbert space $H$. If $(c_k)_{k=1}^{\infty}$ is a sequence of positive real numbers such that $\sum c_k^2<\infty$, then the set   $A=\left\{ \sum_{k=1}^{\infty} a_ke_k: |a_k|\leq  c_k\right\}$ is compact in $H$.  Some hint? Thanks in advance.


Regex to extract the ip address from URL

Can anyone guide me on writing regularexp that I would use in my java code for extracting just the ip from  http://10.22.14.152/something/api   expected result: 10.22.14.152


Getting NullPointerException while consuming data from IBM MQ using binding file in java

I need to create a producer and consumer of IBM MQ using the binding file. The producer is working fine, but I am facing issues with the consumer. I am getting NullPointerException while consuming data from IBM MQ using binding file in java. Below is my code:     try {               String MYCF_LOOKUP_NAME = "file:C:/IBM MQ/JDA-client-jars/JDA-client-jars/JDA_TEST";              Hashtable hashtableEnvironment = new Hashtable();              hashtableEnvironment.put(Context.INITIAL_CONTEXT_FACTORY,                     "com.sun.jndi.fscontext.RefFSContextFactory");              hashtableEnvironment                     .put(                             Context.PROVIDER_URL,                             "file:C:/IBM MQ/JDA-client-jars/JDA-client-jars");              InitialContext initialContext = new InitialContext(hashtableEnvironment);              MQQueueConnectionFactory cf = (MQQueueConnectionFactory) initialContext                     .lookup(MYCF_LOOKUP_NAME);                    MQConnection connection = (MQConnection) cf.createConnection("SVCtestmq2","***********");              Session session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE);              MQQueue queue = (MQQueue) initialContext.lookup("TESTQ.FOR.JDA");                    MQMessageConsumer consumer = (MQMessageConsumer) session.createConsumer(queue);             Message str = consumer.receive(10000);                      connection.close();             initialContext.close();          } catch (NamingException namingexception) {             namingexception.printStackTrace();         }   Below is the exception I am getting:  java.lang.NullPointerException     at com.sams.logistics.jndi.jndiContext.HelloWorldMessageJNDI(jndiContext.java:79)     at com.sams.logistics.jndi.jndiContext.main(jndiContext.java:25)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)


Sorting in finder giving unexpected results when using numbers and letters

I have a folder with the following files, and when the setting is to sort by name I would expect them to be in the following order:  01-a.txt 01-b.txt 01-c.txt 02-a.txt 02-b.txt ... 09-b.txt 09-c.txt 0A-a.txt 0A-b.txt Etc   However, what I get is  0A-a.txt 0A-b.txt 01-a.txt 01-b.txt Etc   If I leave of the leading zeros it sorts as expected.  What is the reason for this, and is there a way to make it work as expected?


What order should the Babylon 5 movies and series be watched in?

Can someone tell me what order should the Babylon 5 movies be watched, so as to get the best out of them as a whole while watching the series?  I know that release date isn't the best way to do this as they sometimes have to release movies earlier than they'd like to fit in with channel scheduling etc.


For each natural number $n\in\mathbb{N_0}$ list all the sets with at most $n$ elements and with maximal element as and including $n$, in numerical order. Now all the elements of $P(N)$ will be listed as n gets larger. Label each set of natural numbers with another natural number. Why is the above not a 1:1 correlation between N and P(N)? The sequence starts with the empty set, then $\{1\}, \{2\}, \{1,2\}, \{3\}, \{1,3\}, \{2,3\}, \{1,2,3\}, \{4\}, \{1,4\}, \{2,4\}, \{3,4\}, \{1,2,4\}, \{1,3,4\}, \{2,3,4\}, \{1,2,3,4\}$ …


How to get elements from a list, by groups of 10? (or 5, or 3, etc)

What is the Pythonic way of getting elements from the list in groups? I.e., I want the first 10 elements of a list, then the next 10 elements, then the next 10 elements, etc.


The conditions are right. Where's my Mega Stone?

I have gotten the Mega Ring upgraded in my Y version, I've battled my rival after 2 rounds in the battle mansion, talked to Professor Sycamore, and waited near the Gyaradosite location between 8:00-9:00. My Mega Stone isn't showing up. Is there anything I'm doing wrong?


"rsync: failed to set permissions on ..." error with rsync -a or -p option

When I use the -a option as is asked and answered in , I got a lot of "rsync: failed to set permissions on" errors.  rsync: failed to set permissions on "/ata/text/RCS/jvlc,v": Operation not permitted (1) rsync: failed to set permissions on "/ata/text/RCS/jvm,v": Operation not permitted (1) rsync: failed to set permissions on ...   Why is this? The files are normal files with permission of 0664.


Would you say both are correct? I have a doubt about "open-source", but I've seen it quite a lot.  Thank you.


The question is based on my theory from the recent manga chapter (Naruto 661):     Sasuke, when stabbed by Madara is the effect of Tsukuyomi from Sasuke.   Now, to prove my theory, is there an episode in manga/anime that Sasuke used Tsukuyomi?


Why does the order of '-l' option in gcc matter?

I am trying to compile a program which uses  library. Actually I am using an example program given in the  of the library. But while compiling, it gives error. The errors I get are:   example.c:(.text+0x7): undefined reference to 'ud_init' example.c:(.text+0x7): undefined reference to 'ud_set_input_file' . . example.c:(.text+0x7): undefined reference to 'ud_insn_asm'   The command I am using is:  $ gcc -ludis86 example.c -o example    as instructed in the user-manual.  Clearly, linker is not able to link libudis library. But if I change my command to:  $ gcc example.c -ludis86 -o example    It starts working. So can please someone explain what is the problem with the first command?


There are often questions marked as "unanswered" that have already many answers. Does this feature not work, or do "answered" questions have to have an accepted answer?


How can I generate PDF metadata from LaTeX?

I am writing a document using LaTeX and generating PDF.  Can anybody tell me how I can generate the PDF metadata, e.g. author or title, from LaTeX?  On Windows XP, I am using MikTex's texify to generate the PDF.  On linux, I am using pdflatex to generate the PDF.  Any answers for either platform would be much appreciated!


Substantial changes to manuscript in the revision process

Is this acceptable to revise a manuscript more than what reviewers suggested? In fact, due to some issue, the authors may find out that there are some issues even reviewers could not address, so they decided to extend the revision border.  P.s. What about imposing changes so that affect the title, abstract and a large portion of  manuscript. In an advise to a friend of mine, I warned him of doing so because it results in a new paper not a standard revised version. Nonetheless, I told him that is the case of such comprehensive revision he should carefully explain reasons behind that decision. Can such rational explanation convince the reviewers to consider another round of review?


How to obtain optimal hyperparameters after nested cross validation?

In general, if we have a large dataset, we can split it into (1) training, (2) validation, and (3) test. We use validation to identify the best hyperparameters in cross validation (e.g., C in SVM) and then we train the model using the best hyperparameters with the training set and apply the trained model to the test to get the performance.  If we have a small dataset, we cannot create training and test set (not enough samples). Therefore, we will do cross validation (k-fold, leave-one-out, etc) to evaluate the model performance.  I have seen nested cross validation (whether repeated or stratified) has been used in the setting of small dataset, i.e., to generate generalized model performance while optimizing parameters selection. My question is, how can I obtain the best hyperparameters in nested cross validation (repeated/no repeated)?  I am interested in doing this in scikit-learn, if possible. I am a bit confused about how to do it.  I have read several resources but none gave me the definitive answer for this question:


How can I tell if sheet a exists in a workbook?

I have the following code that's not working as expected:  If Sheets("a") <> "" Then MsgBox ("sheet a exists")   How can I tell if sheet a exists in the workbook?


Tried but can't write or read Chinese input to MySQL database?

I've tried inserting and reading from my MySQL database, but it doesn't seem to work. Here's what I've read, and tried:  Other SO posts:  http://stackoverflow.com/questions/742205/mysql-alter-table-collation/5468980#5468980  http://stackoverflow.com/questions/5906585/change-database-collation   Tried changing collation to utf-unicode-ci and character set to UTF-8, didn't work  http://stackoverflow.com/questions/9401567/php-chinese-characters-cant-insert-to-mysql   This is more for insertion, but reading is equally as problematic.   Here are screenshots of what happened:  Insertion error  http://i.stack.imgur.com/2ot0L.png   Display error  http://i.stack.imgur.com/Bndz1.png   Table structure  http://i.stack.imgur.com/XO3K5.png   Code snippets for writing Chinese to database (registering a new user):  registration.js  var postData = {     full_name   :   $("#full-name").val(),     email       :   $("#email").val(),     password    :   $("#password").val(),     username    :   $("#username").val() };  $.ajax({     type        :   'POST',     url         :   '../php/register.php',      data        :   postData,     dataType    :   'JSON',     success     :   function(data) {         if (data.result == -1)             alert('Registration unsuccessful!');         else if (data.result == 0) {                // redirect to page             alert('Registration successful!');             window.location = '../home.php';         }     } });   registration.php  $query = "  INSERT INTO `users`(`Username`, `Display_name`, `Password`, `Email`, `Date created`)              VALUES ('{$username}', '{$display_name}', '{$password}', '{$email}', '{$date}')";  if ( ($result = mysqli_query($link, $query)) == false )      return -1; else     return 0;   Code for reading Chinese from database (displaying user name):  functions.php  $query = "SELECT display_name, followers FROM users ORDER BY followers DESC LIMIT 10"; $result = mysqli_query($link, $query);  while ($row = mysqli_fetch_array($result)) {     $html = "
{$row['display_name']}{$row['followers']}
";     echo $html; }   Would appreciate any advice on how to proceed, I'm not entirely familiar with databases yet. Thanks!


I would like to install your OS into my laptop (gaming x64bits ) that currently uses Windows 8.1 Pro And I would like to know if this will remove Windows or have both OS and if this will keep any of my files/programs Windows Office,Games and Docs/Images  Thank You for your time.


Will metering from a DSLR apply to a film SLR?

I still like to shoot with film (I use a Nikon F3) but I like the immediate feedback of digital.  I'm thinking of buying a used DSLR to help me get the framing and lighting right when I shoot static subjects.  Then I'd take the final shot with my F3. But would the metering be transferable?  If the shot looks perfect at 1/125 with f/2 on a DSLR, will the same settings work on a film camera?


Why is it bad practice to test for item names?

I've heard that testing for item names and lores in Minecraft JE is bad practice. For example, the following commands are not good: execute if entity @e[nbt={Inventory:[{tag:{display:{Name:'[{"text":"Test Thing"}]'}}}]}] clear @p minecraft:diamond{display:{Name:'{"text":"Shiny…"}'}} 0 clear @p minecraft:netherite_sword{display:{Lore:['{"text":"A Mysterious Sword"}']}} 0  Why are these commands considered bad practice? Are they prone to failure and may not work? And what can I do to fix them? Note that this only applies to reading item names, not setting them. The following are not considered bad practice and in fact are the only ways to accomplish these tasks: give @p minecraft:diamond{display:{Name:'{"text":"Shiny…"}'}} replaceitem @p weapon.mainhand minecraft:netherite_sword{display:{Lore:['{"text":"A Mysterious Sword"}']}}


How to print only defined variables (shell and/or environment variables) in bash

The bash builtin command set, if invoked without arguments, will print all shell and environment variables, but also all defined functions. This makes the output unusable for humans and difficult to grep.  How can I make the bash builtin command set print only the variables and not the functions?  Are there other commands which prints only the shell variables, without the functions?  Note: bash differentiates between shell variables and environment variables. see here


Hiding reputation and encouraging thinking time would improve the quality of answers on SO

I've only been a member of SO for a couple of months but I must say that the site can be a bit daunting even for an experienced developer.  Part of this is because when users with very high reputations answer questions then it seems that everyone assumes that they have the right answer.  I don't want to go into the self-fulfilling nature of reputation increase for high reputation people.  But I think it is clear that people with high reputation scores get more upvotes () because people assume (usually accurately) that they are correct.    But if reputation was hidden on SO, at least for, say, the first hour after a question is asked then the probability of the best answer being upvoted the most would surely increase.  This might also require the hiding of the names of the answerers if they have very high reps!  As a second method of getting improved answers I would correlate the value of an answer (in terms of reputation gained) with the difficulty of the question.  And the simplest way to do that would be based on the time required for the question to be answered.  So if a question is answered within a minute then it is a 20% question (2 points per upvote), within 2 minutes a 40% question, within 5 minutes a 60% question and so on, on to say a 200% answer (20 points per upvote) on questions that have been hanging around for months.  This would encourage considered answers to new questions and tempt people into reducing the backlog - rather than encouraging people to sit on the 'newest questions' hoping for a gimme.  These two measures would incentivise people to answer the questions that no-one likes the look of and reduce the relative value of answering easy questions.


What strategy should I use when I am profiting?

Let's say I buy stocks of a company at $1000, and 6 months later, stock is trading at $1500. What should my strategy be at this point. Should I hold the stock? or should I sell the stock to book my $500 profit or, should I sell and rebuy at $1500?


Why could Isildur retain the ring? (from a "legal" point of view)

In , we've learned about the difficulty for Elrond and/or Círdan to do anything amounting to taking the ring from Isildur, once the latter decided it was his loot. It seems they tried to convince Isildur to destroy the ring, acknowledging him to be the de jure owner of the object.  But how was it established that it was legal or natural for Isildur to become the new owner of the ring? Did not Elendil and Gil-Galad jointly incapacitate Sauron in duel? Did not Isildur simply step forth to an unconscious Sauron and cut the ring from his finger. Perhaps Isildur was just lucky to stand closer to the spot of the duel than Elrond & Círdan, thus allowing him to make that cut.  In his written account, Isildur seems to 'blow up' the importance of his cutting the ring from Sauron's hand (" Was it not I that dealt the Enemy his death-blow?") and he adds that he lost his father and his brothers in the war and would keep the ring as a 'weregild'.  Of course, the elvish party in the war also suffered many casualties (although Gil-Galad, Oropher,... were not directly related to either Elrond or Círdan, the latter may have loved Gil-Galad or other deceased members of the last alliance in the same way as Isildur loved his kin). If Elrond and Círdan had such a high stake in getting the ring destroyed: why did they not challenge Isildur's legal right to own the ring?    2 side-notes:   1) I don't think that Isildur's claim and decision to keep the ring was  a heat-of-the-moment event or decision. It is said in various places that the armies of the last alliance stayed in Mordor for some longer time to attempt to dismantle Barad-Dûr and Sauron's realm at large. I can imagine the Númenorean and elvish parties therefore remained in contact for some time after Sauron's fall and Isildur had plenty opportunity to reconsider/repent and there must have been sufficient time to raise questions of legality (and the elves may have urged him to?)   2) The "Disaster of the Gladden Fields" chapter of the Unfinished Tales suggests that, if Isildur would not have been ambushed in the Gladden fields, he would have gone to Rivendell to surrender the ring to "the Keepers of the three":     "It needs one greater than I now know myself to be. My pride has fallen. It should go to the Keepers of the Three." (Isildur to Elendur)   (He attributes his change of mind not to any legal matters though. He rather states that "...I cannot use it. I dread the pain of touching it"). That chapter is however conceived by Tolkien as Gondorian in-universe-lore originating from eye-witness accounts of the Gladden fields disaster. One can imagine that the story was modified over the course of the Third and Fourth age to give an account where Isildur's conduct and thought is whitewashed.


I was recently proofreading an ESL textbook and came across a photo of a woman.  She had a surprised look on her face.  Underneath were four options that the student was to pick.  One of them was: "The woman is looking surprised." The other options were not possible choices.  I can't cite a general rule why this option is incorrect other than I have never seen or heard "look" used in this way.  I asked someone else, and they said it sounded weird but didn't violate any rules of grammar.  I feel it should be "The woman looks surprised." in the same way that we say "I know something," and not "I am knowing something."  Is the option "The woman is looking surprised." incorrect?


Minutes used from time difference even fraction of a minute in php

I have 2 outputs from following code:  $start_time = $dt->format('Y-m-d H:i:s');  $end_time = $dt->format('Y-m-d H:i:s');    start_time  - 2018-09-27 17:42:01 end_time - 2018-09-27 17:42:16   How can i get the difference in minutes, even if the time diff is below 1 minute, like example 0.5 minutes (30 seconds).   I require only minutes value, even if it is part of a minute. How is it possible in php using time functions?  Thanks in advance.


Today, I updated my Ubuntu 18.04 machine to 20.04. My laptop has both an SSD (where the OS is located) and a larger HDD (where most of my data is). Since the update, an icon for the hard drive appears permanently in the dock. This was not the case before I updated.  It does not have any open instances (indeed, it can't have any 'opened instances' of its own - clicking it just opens the HDD's root directory in the file explorer), so that's not its excuse for appearing in the dock. Ordinarily, if I don't want a particular icon in the dock, I can easily remove it:  However, this does not seem to be possible with the HDD icon:  Of course, I could get rid of the icon by unmounting the HDD, but that is not an option - this is not some external drive I only use occasionally; it is a built-in hard drive containing nearly all my data and needs to be mounted during my routine use of the system.


How do I do a ls and then sort the results by date created?

In what order are the dated ordered by? Certainly not alphanumeric order.  ls -lt sorts by modification time. But I need creation time.


Let $y_1(x),y_2(x)$ be the solutions of $y''+p(x)y'+q(x)y=0$ and satisfy that $y_1(x_0)=y_2(x_0)=0$，$y_1(x) \neq 0$ where $p(x),q(x)$ are continuous over $(-\infty,+\infty)$ and $x_0$ be some real number. Prove there exists a constant $C$ such that $y_2(x)=Cy_1(x)$.  Since at $x_0$ we have $y_1(x_0)=y_2(x_0)=0$ Then $W(y_1,y_2) = 0 \Rightarrow y_1 $ and $y_2$ are linearly depedendent $\Rightarrow$ $y_2(x)=Cy_1(x)$. This will work?


What is arXiv.org for? Should I upload my unpublished, but submitted manuscripts there?

I know arXiv.org for several years (3 to 4 years), and have used it to access extended versions of conference papers, corrected versions of published papers in a peer-reviewed journal and also search it to find whether my idea about a topic is new or not.  However, I have written several manuscript in the last two years and today, one of my friends offered me to upload my manuscripts to arXiv.org before publication, so others won't spend their time reinventing what I've done.  I have asked my supervisor, but he prohibited me from doing so, because of possible abuses might be caused by cheaters, e.g. using my work to publish somewhere else or stealing my ideas without citation. Also, he told me about the copyright forms we have signed which transfers the right of publication to the journals.  To this end, I have googled for an hour, however as time passed I found less and now I am totally confused! What should I do? What is arXiv.org for? Is it legal to upload a published paper there? Is it illegal or does it have a bad impact on the referee and the editors to see a submitted manuscript online at arXiv?  Sorry for the long text. Regards,


I encountered this question when I took the Mathematics Aptitude Test yesterday and I had no clue how to approach it.  The question goes quite simply, "Is $3^{2015}-2^{2015}$ a prime? Show it very carefully."  I had knowledge about the fact that $x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+\cdots+xy^{n-2}+y^{n-1})$. It gives  $3^{2015}-2^{2015}=(3-2)(3^{2014}+3^{2013}\times 2+\cdots+3\times 2^{2013}+2^{2014})=3^{2014}+3^{2013}\times 2+\cdots+3\times 2^{2013}+2^{2014}$.  I hope some kind souls can give me some thoughts how to proceed on. Thank you!


Prove that for any fixed non-negative random variable $X$, $\lim\limits_{n→∞}\frac1nE\left(\frac1X I_{\{X>1/n\}}\right) =0$

Show $$\lim_{n\to\infty} \frac{1}{n}E\left(\frac{1}{X} I_{\{X>1/n\}}\right) = 0.$$  I am totally lost on this problem. Any hint or reference to study will be greatly appreciated.


Often we have adjoint pairs $(A, B)$ (meaning $A$ is left adjoint to $B$). Sometimes we have adjoint triplets $(A,B,C)$ (meaning $A$ is left adjoint to $B$ and $B$ is left adjoint to $C$. No adjoint relation between $A$ and $C$ obviously, since they have the same source and target).  So the first question is: can we have quadruplets $(A,B,C,D)$ ? (meaning that $C$ is also left adjoint to $D$).  Second question: It would be then possible that we have $(A,D)$ besides $(A,B)$. But I think not, because I think that it is not possible to have a functor $A$ with two different right adjoints, $B$ and $D$. Is this correct?


Can I ask questions regarding the quality of my own design here?

I have just designed a system which aids the interaction of AI agents with an environment. However, I am not sure whether my design is efficient, so I would like people here to point out my mistakes.  I don't plan only to ask "is my design a good one?", but put it in the context of the well-defined OOP paradigm, which most of you probably understand much better than me and could help me point out concrete problems.  Is Stack Overflow the right place to ask such a question?


How to check which TLS protocol is using the FUEL-SDK for java

Salesforce Marketing cloud recently announced the retirement of the TLS 1.0 based connections effective early August this year, and they published a  with useful information and some guidelines for the matter, but in that article they talk about integrations with the API (REST/SOAP) but not with the SDKs (even though, that's just a wrapper of the afore mentioned).  I'm using the  to integrate my backend with Salesforce Marketing Cloud and i would like to check which TLS protocol it is using to connect with.  How/where can I check that?


If i link page B from page A internally Does the page rank decrease?

Does linking from one page(A) to another page(B) [Internal link] reduce the rank of the (A) page? Assume that page A in search engine ranks 2nd, If I link to page B internally Does it affect the rank of page A?


Call private fields by passing Function in java8

Help me with problem at the comment, please. I'm newbie with java8. It would be great too if you give me some keyword for searching.  public class aClass{     public Function<String,String> f;     private void doSomething(){         System.out.println("done");     }     public void addF(Function<String,String> f){         this.f = f;     } }  public class bClass{     public String func(String str){         System.out.println(str);         //Call doSomething();         //Can I do that?      }      public static void main(String[] args){         aClass a = new aClass();         a.addF(this::func);     } }


So, I have to fill this black soul gem for Falion, so I killed a few Draugr and used Soul Trap on them within the 60 seconds but it didn't fill it?  I emptied out all of my other empty soul gems and still nothing happened? Does it have to be a human that I have to kill? I don't think I have long until I'm a 'Stage 4' Vampire?


I have a Pygame game, and I was wondering if there was any way to embed it into a webpage to make it easily playable, or if there is a games website that accepts Pygame games.  EDIT: I am now using Unity and am not after the answer anymore, but please answer if you want as it could help others.


Anyone know how to fix grainy bokeh in the background?

I keep getting grainy renders. I used denoising and my samples are at 500. Any idea on how to fix this?


How to use possessive apostrophe with words in quotation marks?

How to us possessive apostrophe with words in quotes? For example,   ...a few days later I discovered that those five little boys were not that well-behaved (as I firstly thought). In fact they were quite mischievous and conniving. The broken tree next to my house and the cat with its legs tied were all their "inventions". And Lilly, as it later turned out, was able to get to Denver so fast not without those "little inventors'" help.


Temporary file with the contents of all the included headers

I need to track an error related with the inclusion of header files, I'm suspecting that one or more files have unmatched curly brackets and/or parentheses and I think that would be useful to take a look to the file that pre-processor brings to the compiler; that is the file with all the macro substitution done and all the contents of the headers pasted altogether.  I know that there's a compiler option to save this temporary files to disk, but after googling around I'm not able to found the search string that brings me that information, so I'm asking for help:  What compiler option enables saving into disk the output of the pre-processor?  I'm interested in this option for the following compilers:   gcc clang msvc


Was Harry Potter a direct descendant of Godric Gryffindor?

I know that he was related to      Ignotus Peverell   From CoS we know he was a "spiritual" heir of Gryffindor (aka True Gryffindor) - but so was Neville from DH events.  And he was born in Godric's Hollow.  But is there any information to confirm or deny whether Harry Potter was literally descended from Godric Gryffindor?


How can I call a function with a string?

I have used the following code: from time import time import datetime  now = datetime.datetime.now() Report = now.strftime("%Y%m%d_%H%M%S") + "Prueba llamada de funciones" + ".txt" modo=0    def llamar_funciones():     if (modo==1):         Alimentaciones_1(Report)         Alimentaciones_2(Report)     else:         print("¿Que ensayos de alimentaciones quieres hacer?")         Ensayo=input()         Nombre_Ensayo= "Alimentaciones_" + Ensayo         print(Nombre_Ensayo)         Nombre_Ensayo(Report) def Alimentaciones_1(Report):     f = open(Report,"a")     f.write("1.funtzioa")     f.close() def Alimentaciones_2(Report):     f = open(Report,"a")     f.write("\n2.funtzioa")     f.close()      llamar_funciones()   I get the following error: TypeError: 'str' object is not callable How can I call the function 1 or 2 depending on the value of the variable "modo"??


how to package my git repo and publish to my launchpad ppa

I have GitHub repo named logger. Its a C++ library. What I am doing to package and publish to my launchpad ppa is  cd rm -Rf Packages2 mkdir Packages2 cp -R workspace/logger/ Packages2/logger-1.0 cd Packages2/logger-1.0 rm -R build/ rm -R debian/ rm -R dist/ rm -R nbproject/ rm -R QtBuild/ rm -Rf .git rm Makefile.old  rm CMakeLists.txt.user  cd ~/Packages2/logger-1.0/ make clean cd .. rm -Rf logger-1.0.tar.gz logger_* logger logger-dev_* liblogger1_* logger1_* build-area/logger-1.0 build-area/logger_* build-area liblogger1_* build-area/logger-dev_* build-area/logger1*  tar -czf logger-1.0.tar.gz logger-1.0 bzr dh-make logger 1.0 logger-1.0.tar.gz ly cd logger/debian/ rm *ex *EX cp ~/workspace/logger/debian/control ./ cp ~/workspace/logger/debian/changelog ./ cp ~/workspace/logger/debian/copyright ./ cp ~/workspace/logger/debian/rules ./ cp ~/workspace/logger/debian/README.Debian ./ cp ~/workspace/logger/debian/README.source ./ bzr commit -m "Initial commit of Debian packaging." bzr builddeb -- -us -uc # -sd bzr builddeb -S -- # -sd bzr tag release-1.1 cd ../../build-area pbuilder-dist xenial build logger_1.0-0ubuntu1.dsc cd ../logger bzr push lp:~satyagowtham-k-gmail/+junk/logger-package cd ../build-area dput ppa:satyagowtham-k-gmail/ferryfair.ppa logger_1.0-0ubuntu1_source.changes   Now I came to know that we can use git instead of bzr. I found very sparse documentation regarding packaging and publishing to launchpad ppa. How can I accomplish it?


How do I search files using grep for multiple strings (intersection search)

How do I use grep to search a nested directory structure for files containing all words in my search pattern?  I want to grep for files that contain multiple words - let’s use foo bar and bah. I can do grep -rl foo |xargs grep -rl bah| ...etc, but is there an easier way to do this? I know I can use -F for a file of strings to search for, but I believe this still searches for the strings using an OR operator (union), and I need to use the AND operator (intersection).