I have a class that has around 30 string properties in .Net 4.0. I need all of them to be initialized as Empty String. Currently I am writing this logic in constructor. Is there any better way for doing this with lesser number of lines of code?  REFERENCES      CODE  public class MakeHoldDetail {     public string Supplier { get; set; }     public string Loc { get; set; }      //constructor     public MakeHoldDetail()     {         Supplier = String.Empty;         Loc = String.Empty;     } }

I'm used to writing classes like this:  public class foo {   private string mBar = "bar";   public string Bar {     get { return mBar; }     set { mBar = value; }   }   //... other methods, no constructor ... }   Converting Bar to an auto-property seems convenient and concise, but how can I retain the initialization without adding a constructor and putting the initialization in there?  public class foo2theRevengeOfFoo {   //private string mBar = "bar";   public string Bar { get; set; }   //... other methods, no constructor ...   //behavior has changed. }   You could see that adding a constructor isn't inline with the effort savings I'm supposed to be getting from auto-properties.  Something like this would make more sense to me:  public string Bar { get; set; } = "bar";


I am using the online editor ShareLatex  and texmaker in miktex. When I try to compile my source files from ShareLatex with texmaker it doesnt work. For example the nomenclature of symbols isnt working. Does anyone have experience with using the source code of ShareLatex with offline programs? My OS is Windows 10.  Here is some if my code: main.tex  \documentclass[diplomgeo,german,nomencl]{zihpub}   \usepackage{setspace}    \usepackage{subfiles}  \usepackage{nomencl}  \makenomenclature  \usepackage{color}  \usepackage{tabularx}  \usepackage{array}  \usepackage{listings}  \usepackage[scaled]{beramono}     \lstset{basicstyle={\small \ttfamily}}  \usepackage{natbib}   \bibliographystyle{dinat}  \usepackage{paralist}  \usepackage{multirow} \usepackage{siunitx} \usepackage{booktabs}  ...  \begin{document} \listoffigures \listoftables \setnomenclmargin{1cm}   The complete tex.main file:   And here is the *.cls stylesheet:  %Nomenclature \if@nomencl %  \if@german %    \addcontentsline{toc}{chapter}{Symbolverzeichnis} %  \else %    \addcontentsline{toc}{chapter}{Nomenclature} %  \fi %  \label{sec:Nomenclature}   \printnomenclature[\@nomenclmargin] \fi   The complete *.cls you can download as txt file from here:

I have used the package nomencl. In my code I have incorporated the \nomenclature as well. But when I compile, it is not showing me any results. My code is :  \documentclass[pdftex,12pt,a4paper]{report} \usepackage{nomencl} \makenomenclature \begin{document} ---page numbering and other things included----- \include{symbols} -----others--- \end{document}   symbols.tex  \chapter*{NOTATIONS} \addcontentsline{toc}{chapter}{Notations} \nomenclature{$G_e$}{Equivalent Shear Modulus} \printnomenclature   Shall I use \nomenclature while explaining the chapter. Will It give me the same results? like  \documentclass[pdftex,12pt,a4paper]{report} \usepackage{nomencl} \makenomenclature \begin{document} ---page numbering and other things included----- \include{symbols} \include{chap3-calculate_w} -----others--- \end{document}   symbols.tex  \chapter*{NOTATIONS} \addcontentsline{toc}{chapter}{Notations} \printnomenclature   chap3-calculate_w.tex  \chapter{SETTLEMENT RESPONSE OF GEOSYNTHETIC REINFORCED GRANULAR FILL SOFT SOIL} \label{chap:W} \section{INTRODUCTION} In this thesis, the methodology to determine an  Equivalent single layer shear modulus \nomenclature{$G_e$}{Equivalent Shear Modulus},$G_e$ value for a...etc   I am not getting the output in both these. Can someone help me with this?


I'm applying to graduate math programs and my subject test score was abysmal, but I'm very confident that I will have excellent letters of recommendation from my professors. Will these LOR offset the bad test scores? I know every situation is different, but in general what is your opinion?

I have a good GPA (over 3.5) from a top 5 CS school. I also have lots of research experience and a few publications. I also expect to have very good recommendations. The only problem is that I did badly on the GRE general exam (just under below average). The exam seems like a big scam, so studying for it felt like a waste of time.  One of JeffE's  mentions that schools filter applicants into three piles based on GPA and GRE: MAYBE, PROBABLY NOT, and NO. Will my GRE scores land me in the PROBABLY NOT pile, even though I have an otherwise excellent record?  Will my GRE hurt my chances of getting into CMU and Stanford? Should I try to retake them, even though it's getting late? Application deadlines are around December 13.  Edit: should I say something about my bad GRE scores in the statement of purpose, or do something else if I don't end up retaking them?


In Spider-Man: Far From Home, Peter Parker asks Nick Fury why he approached him of all heroes to help deal with the threat of the Elementals against Earth's very existence:  Peter: Sir, come on, there's gotta be someone else you can use. What about Thor? Fury: Off-world. Peter: Doctor Strange? Maria Hill: Unavailable. Peter: Captain Marvel? Fury: Don't invoke her name.  The "don't invoke her name" is probably a reverential nod to the insane, otherworldly, God-like power that Carol Danvers has, but for the extreme existential threat that Mysterio claims the Elementals are to Earth, it makes perfect sense to call in Captain Marvel for this task. Is there an in-universe reason for him not doing so?

After reading  question, I remember wondering about this while watching the movie:  In Spider-Man: Far From Home,     When Spider-Man tries to get a pass from helping fight the Elementals, he brings up names of people who can help instead of him. Fury has an answer for each name, but when Spider-Man suggested Captain Marvel, Fury's response was really strict and he was not willing to even consider hearing about it.   However, in Captain Marvel     I remember them being in good terms. Even somehow friendly.   When was that change of relations?


Let's say there is a lottery where ticket numbers 58,145,350, and 400 won. Is there a way to determine the most likely number of tickets sold? We are assuming non-replacement and fair draws.

Suppose that I observe $k=4$ tanks with serial numbers $2,6,7,14$.   What is the best estimate for the total number of tanks $n$?   I assume the observations are drawn from a discrete uniform distribution with the interval $[1,n]$. I know that for a $[0,1]$ interval the expected maximum draw $m$ for $k$ draws is  $1 - (1/(1+k))$. So I estimate $\frac {k}{k+1}$$(n-1)≈$ $m$, rearranged so $n≈$ $\frac {k+1 }{k}$$m+1$.  But the frequentist estimate from  is defined as:  $n ≈ m-1 + $$\frac {m}{k}$  I suspect there is some flaw in the way I have extrapolated from one interval to another, but I would welcome an explanation of why I have gone wrong!


I don't Know if this is possible, but can you use all of ubuntu and its derivitives (Xubuntu,Kubuntu, Ubuntu Gnome, Lubuntu, Ubuntu Mate, Ubuntu Budgie, Ubuntu Studio) Without dual booting your computer?  Can you change them at any time?

I am using Ubuntu 12.04. I want to try out KDE and other desktop environments.   But I'm not sure if I'll like them enough to switch permanently. I want to be safe and make a transition in a piecemeal fashion.  Is it possible to install KDE on Ubuntu and yet not do away with the default Unity shell?  Could I install multiple desktop environments and switch between them by tweaking some startup configuration and then rebooting?


The position entailed him/his being in Chicago most of the time.   The bonuses were based on him/his reaching the quota.   It had nothing to do with him/his being privy to the information.   His fondness for sports resulted in him/his assuming that position.     In the above sentences which one is grammatically correct, him or his, and why?

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


OS: Ubuntu 18.04 LTS Steps according to :  sudo dpkg --add-architecture i386 wget -nc  sudo apt-key add winehq.key Until here: everything is fine. sudo add-apt-repository 'deb  bionic main' Output:   sudo apt install --install-recommends winehq-stable [sudo] password for XXXX:          Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 6.0.0~focal-1) E: Unable to correct problems, you have held broken packages**  Suggested by other users: 1.Run Synaptic -> fix broken packages -> did not work 2.Run Synaptic -> find all wine dependencies -> delete all -> repeat installation process -> did not work Help!

I have followed all the instructions on .  In particular, I have run the following commands: sudo dpkg --add-architecture i386  wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'   The first three of the above seemed to work fine.  However, the last command gives me the following error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  winehq-stable : Depends: wine-stable (= 5.0.0~bionic) E: Unable to correct problems, you have held broken packages.  I'm running Lubuntu 18.04.3 on a USB live stick.  (However, if I remember correctly, a couple days ago I got the exact same error on a normal hard disk Lubuntu 18.04.3 installation.) I've read that a lot of people get similar errors.  Unfortunately I haven't found any solutions online that worked. Any help would be much appreciated.  Thanks! EDIT:  Thanks for the comments and suggestions everyone.  I'll try them out later today. In the mean time, here's something I don't understand.  Ubuntu 18.04 has been around for almost two years now.  In all that time, surely somebody has successfully installed wine, right?  What did they do to get it working?


Fibonacci numbers $f(n)$ are defined recursively:  $f(n) = f(n-1) +f(n-2)$ for $n > 2$ and $f(1) = 1$, $f(2) = 1$. They also admit a simple closed form: $$\sqrt 5 f( n ) = \left(\dfrac{1+ \sqrt 5}{2}\right)^n- \left(\dfrac{1 - \sqrt 5}{2}\right)^n \tag1$$  How to prove (1) using induction?  Remarks One could get (1) by the general method of solving recurrences: look for solutions of the form $f(n)=r^n$, then fit them to the initial values. But there should be a more concrete proof for this specific sequence, using the principle of mathematical induction.

This formula provides the $n$th term in the Fibonacci Sequence, and is defined using the recurrence formula: $u_n = u_{n − 1} + u_{n − 2}$, for $n > 1$,  where $u_0 = 0$ and $u_1 = 1$.   Show that     $$u_n = \frac{(1 + \sqrt{5})^n - (1 - \sqrt{5})^n}{2^n \sqrt{5}}.$$    Please help me with its proof. Thank you.


I made my own .bashrc (part of code below) and in test by pressed arrows up/down: i found that  history of commands override static text of line or leaves last command and print new over it. How to fix that?  function parse_git_branch {   git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' }  RESTORE=$(echo -en '\033[0m') RKNAME=$(echo -en '\033[38;5;106m') RKPATH=$(echo -en '\033[38;5;229m') RKBRANCH=$(echo -en '\033[38;5;44m') RKGIT=$(echo -en '\033[38;5;250m')  pathToFolder=$PWD;  if [[ $pathToFolder =~ .*_GitRepo.* ]] then     PS1='${RKNAME}\u@\h${RESTORE} ${RKGIT}Git ${RKPATH}\W\ ${RKBRANCH}$(parse_git_branch) \n ${RKGIT}-- $ ${RESTORE} '     fi

I admit that I use a somewhat long-winded bash prompt:  --(username)-(Wed April 01|12:00:00)--(~ $  Recently, I got the bright idea to change it so that depending on the exit value from the previous command, if success, the interior elements of the ()'s would be green, and if failure, they would be red.  I got it working for the most part (some odd exit statuses will change the color to something else, but I'm ok with it), but when typing a command which is more than one line, and causes the terminal to scroll, the prompt disappears!  My prompt worked fine when there was no color, so I'm guessing it is related to my color escaping, and particularly my unclosed ['s, but I can't pin it down.  #.profile export PS1='--(\e[$((32-${?}))m\u\e[0m)-(\e[$((32-${?}))m\d\e[0m|\e[$((32-${?}))m\T\e[0m)--(\e[$((32-${?}))m\w\e[0m \$ '  Thanks in advance!


I am trying whit this but I lost css files and I cant login.     location /mail {     rewrite ^/mail(.*)$ /$1 break;      proxy_pass            https://10.0.0.2:8443;      proxy_redirect        off;     proxy_read_timeout    90;     proxy_connect_timeout 90;     proxy_set_header      X-Real-IP $remote_addr;     proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;    proxy_set_header      Host $host;      client_max_body_size      10m;     client_body_buffer_size   128k;     proxy_send_timeout        90;     proxy_buffer_size         16k;     proxy_buffers        32   16k;     proxy_busy_buffers_size   64k;  }

Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet.  My NGINX configuration follows the  and looks something like this:  server {     listen 80;     server_name example.net;     root /path/to/aaa;      location /bbb/ {         proxy_pass http://example.com/;         proxy_set_header Host $host;         proxy_set_header X-Real-IP $remote_addr;     }      location / {         try_files $uri $uri/ /index.html;     }     location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {         access_log off;         log_not_found off;         expires max;     } }   I can manage to render the root of example.com in example.net/bbb but:  ISSUE 1  example.net/bbb/some/path doesn't work as expected and the index.html of example.net is rendered.  ISSUE 2  Any asset in example.com/assets gives 404 because the browser look for example.net/assets. Be great if I could solve this without placing absolute paths everywhere.


I know this question might seem a bit ambiguous, but hear me out.  Suppose we have a table on which we exert a certain force $\vec{F}$. If $\vec{F}$ has a big enough magnitude, and is set in the right direction, the table will start to move. Let's suppose that the table is moving at constant velocity.   Conversely, if we consider that we are imposing a constant velocity $\vec{v}$ on one end of the table, a reactive force will be created.   It always seems to me, in textbooks and in lectures, that force is the cause of movement and not the other way around. Is this completely true? Or have I just stumbled upon some linguistic quirk that lead to a fallacy?  My knowledge of certain (fundamental) abstractions in pure physics is a bit limited, so I'd like to know the answer, in as much detail as possible. Keep in mind that I'm not asking for equations like Newton's second law, or for some mathematical derivation per se. I would like to understand both formally and intuitively why one phenomena causes the other.

We typically say that forces cause acceleration inversely proportionate to mass. Would it be any less correct to say that acceleration causes forces proportionate to mass? Why?  (Note that the underlying question in my mind - essentially, what distinguishes cause from effect - is far more general. But this seems like a good place to start.)


Is such phrase is correct?     A request was sent to somewhere.   Something is telling me that sentence below is correct one.     A request has been sent to somewhere.

When is the present perfect tense used instead of the past tense?    I know that the present perfect tense is used when some adverbs (e.g., never, ever) are present in the sentence; the same is true for sentences like the following one.     When you returned, I have been at home since 3:00 PM.   In which other cases should I use the present perfect? Do the following sentences require it?     I have walked downtown everyday for a year.        I have been at home since 3:00 PM.


I need to write a groovy script, that is executing a external program and print the output of that program to the console.  Here is the regarding code snippet:  def pmdCommand = "${scriptDir}/run.sh pmd -d ${filesToAnalyse}"  def sout = new StringBuffer() def serr = new StringBuffer()  def process = pmdCommand.execute() process.consumeProcessOutput(sout, serr) process.waitFor() if (process.exitValue() !=0 ) {     System.err << serr.toString()     System.exit(-1) }  else {     System.out << sout.toString()     System.exit(0) }   I did something similar in Java, but I can't translate it to groovy.  StringBuffer output = new StringBuffer(); String s = null;  try {     Process p = Runtime.getRuntime().exec(command);     p.waitFor();      BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));     BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));      while ((s = stdInput.readLine()) != null) {         System.out.println(s);     }      while ((s = stdError.readLine()) != null) {         System.err.println(s);     }      System.exit(0); } catch (Exception e) {     e.printStackTrace();     System.exit(-1); }   Update: I seems the waitFor() never returns and blocks the execution  Solution provided by Emmanuel Rosa:  def pmdCommand = "/usr/src/app/lib/pmd/bin/run.sh pmd -d ${filesToAnalyse} -f codeclimate -R ${ruleset} -l apex -v 35"  def sout = new StringBuffer() def serr = new StringBuffer()  def process = pmdCommand.execute() process.consumeProcessOutput(sout, serr) process.waitForProcessOutput()  System.out << sout.toString() System.exit(0)

Groovy adds the execute method to String to make executing shells fairly easy;  println "ls".execute().text   but if an error happens, then there is no resulting output.  Is there an easy way to get both the standard error and standard out?  (other than creating a bunch of code to; create two threads to read both inputstreams, then using a parent stream to wait for them to complete then convert the strings back to text?)  It would be nice to have something like;   def x = shellDo("ls /tmp/NoFile")  println "out: ${x.out} err:${x.err}"


I experienced some days ago in SO that whenever I'd like to tag in comment the answerer, or anyone who has already written a comment below the same answer, the tag disappears.  @name doesn't list out the person with "name" and when I send the comment itself, it's not visible in the final result.  What's the reason, if there's any?

How do the comment replies (aka "pinging users") work?  Who can I send an @reply to? How do I respond to a specific user when entering my comment? Will they be notified? What do people mean when they talk about "pinging" another user?  Related:


Is it true that one should generally scale each of the features before feeding them into common classification models such as Support Vector Machine, Logistic Regression, etc?  What about for regression models?

In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)?


How to fetch HTML Input Id in code behind ASP.Net MVC ? Either on Controller or on Model ?  view / .cshtml   <button type="submit" id="previewButton" >Preview</button>   JQuery : - This will not be in use.  $("button").click(function ()     {         var btn = this.id;           alert(btn);    }   In Controller :  [HttpPost]         public ActionResult New(MyViewModel viewModel, string clickedButton)         {              var vm = clickedButton;             return View(vm);         }    MyViewModel  public string clickedButton { get; set; }

Is there some easy way to handle multiple submit buttons from the same form? For example:  <% Html.BeginForm("MyAction", "MyController", FormMethod.Post); %> <input type="submit" value="Send" /> <input type="submit" value="Cancel" /> <% Html.EndForm(); %>   Any idea how to do this in ASP.NET Framework Beta? All examples I've googled for have single buttons in them.


How to  evaluate $$\int_0^1 \frac{\log\left(\frac{1+x}{1-x}\right)}{x\sqrt{1-x^2}} dx$$  I am clueless, I doubt if this  has a closed form  either.

How to prove the following   $$\int^1_0 \frac{\log\left(\frac{1+x}{1-x}\right)}{x\sqrt{1-x^2}}\,dx=\frac{\pi^2}{2}$$  I thought of separating the two integrals and use the beta or hypergeometric functions but I thought these are not best ideas to approach the problem.  Any other ideas ?


Recuva is a Windows application used to undelete files .  It has a nice GUI and is very dependable.  Is there anything similar for Ubuntu?

I was using recuva to find pictures and videos on a windows xp hard drive, but I keep getting an internal error message. Does anyone know of an alternative program for recovering broken and damaged files?  I know that with ubuntu it's sometimes better and I had some more success recovering data from windows computers with ubuntu, I tried find but are there any GUI programs that someone would recommend?


I am stuck at the following problem:     Let $\varphi$ be a sentence in a predicate calculus $T$ and $\Sigma$ a set of sentences in $T$. Show that $\Sigma \vdash\varphi$ if and only if $\Sigma\,\cup \{\neg\varphi\}$ is inconsistent.     My attempt:  $(\Leftarrow)$ Suppose $\Sigma\,\cup \{\neg\varphi\}$ is inconsistent, then there exists a formula $\psi$ such that  $\Sigma\,\cup \{\neg\varphi\}\vdash\psi$ and  $\Sigma\,\cup \{\neg\varphi\}\vdash\neg\psi$.   $(\Rightarrow)$ Suppose $\Sigma \vdash\varphi$. Then, since every theorem of predicate calculus is logically valid, $\varphi$ is  logically valid. Then $\neg\varphi$ is not satisfiable.  WTS: $\Sigma\,\cup \{\neg\varphi\}\vdash\psi$ and  $\Sigma\,\cup \{\neg\varphi\}\vdash\neg\psi$   $\Sigma\,\cup \{\neg\varphi\}$ is inconsistent

If $\Gamma \cup \{ \neg \varphi \}$ is inconsistent, then $\Gamma \vdash \varphi$   Here, a set of formulas is inconsistent means they syntactically imply some formula as well as its negation. Syntactic implication here consists of (1) given formulas, (2) all first-order logical axioms, (3) modus ponens.  I have tried to explicitly construct a syntactic proof for the conclusion but failed to come up with one.


In The Gathering Storm, Rand meets with his father. A part of their conversation includes Perrin's exploits:  Rand's mood darkened slightly. "Wait. Perrin has been using Two Rivers folk?" Tam nodded. "He needed us. That boy's put on a balancing act to impress any menagerie performer. What with the Seanchan and the Prophet's men, not to mention the Whiteclocks and the queen-" "The queen?" Rand said. "Aye," Tam said. "Though she says she's not queen anymore. Elayne's mother." The Gathering Storm, Chapter 47  It's undoubtedly clear he is referring to Morgase. In the following book Towers of Midnight, Perrin mentions that Gaebril was actually Rahvin in disguise. "Maighdin" hears this and drops her teacups.  Maighdin stood, looking stunned, arms at her sides. The fallen tray lay on the ground before her. Towers of Midnight, Chapter 21  This whole exchange shows that at least Perrin and Faile and most of the camp didn't know of Maighdin's true identity (and later on when she does reveal herself). But how would Tam al'Thor been able to figure out beforehand? Only a handful of people who had been travelling with Morgase knew who she was, and Tam definitely wasn't part of that handful. At first I thought that the timelines hadn't caught up as with previous books, but then I remembered that Rand had already undergone his ascension when he meets the farmer Alden in the prologue. Coupled with the fact that chapter 13 clearly shows Rand returning after his ascension. So how does Tam know Morgase?

In WoT 13, Towers of Midnight, Tam is with Perrin and Rand at the same time. He goes to Rand, talks with him. At the same time, it is told him speaking with Perrin and crew. No mention of him being taken from Perrin's side by Aes Sedai. Because then Perrin would know all about what was happening in Tear from the Aes Sedai. No mention of Tam coming back either. It says Rand sent Tam back to Two Rivers.  How was Tam in both places at the same time?


Take a look : (no bragging just focus on the part in red circle)    209 reputation on , right? Well, !    This is not the ordinary cache here, it's like that for long months now. This made me curious, then furious and finally vicious so I went bug hunting. Here is my story. Once upon a time,  has been put on the table. One of its  was:  if you’ve contributed something worthwhile to the site, you should keep the reputation for that even if it eventually gets deleted. “Worthwhile” here is defined as,  A score of 3 or greater Visible on the site for at least 60 days   Awesome! And indeed, on  I had a question which had score of more than 3 and was visible for more than 60 days before getting deleted. The reputation I gained from it is preserved in all places... except my network profile reputation graph. :( I thought to myself "209? Let's prove that's the reputation I have if using the old rules". So I had.  Start with 1 reputation point. Association bonus of 100 → 101 points total  with 11 upvotes and 2 downvotes → 110-4 = 106 net change → 207 points total One approved  → 2 rep → 209 points total ##Q.E.D  Can the network profile reputation graph follow the same rules as the rest of the reputation calculations?

My  shows this: . The header of the Movies and TV site shows this:  This difference has persisted for well over 6 months. I reported it back in August 2012 (where the numbers were 833 and 941, respectively. Consensus at that time was that it was a caching issue. I think the duration of the difference shows that there really is a mismatch somewhere. For me the rep (either way) is not an important issue, but if this reveals a bug somewhere it's at least good to know it exists, I guess. Edit Two day after rep recalculation as suggested by JoachimSauer below: no difference (other sites' statistics are updated).


Hello I have a silly question: How can I show that $\lim\limits_{x \to \infty} \dfrac{\log(x+1)}{\log{x}}=1$. Thank you.

I have to solve: $\lim\limits_{x\to \infty} \frac{\ln(x+1)}{\ln(x)}$. Can you give me any hints to go? Thanks a lot!


I'm looking for tips on how to solve this infinite series problem.  $\sum_{x=0}^{\infty}\frac{x}{4^x}$  I am pretty sure this series converges, but I don't know which method I should use to tackle this problem. At first I thought it was geometric, but the ratio isn't a constant: $r = \frac{a_{n+1}}{a_{n}} = \frac{x+1}{4x}$.  When this happens, how should I proceed?

How can I evaluate $$\sum_{n=1}^\infty\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.  In general, how can I evaluate $$\sum_{n=0}^\infty (n+1)x^n?$$


I'm using a parallax master script to move divs around based on mouse location. The problem is, sometimes one of the elements goes too far and browsers scrollbars show up. Is there a way to disable this with css or js? Thanks!

Is it possible to disable the browsers vertical and horizontal scrollbars using jQuery or javascript?


Show that for $\theta\in\mathbb{Z}[i]$, if $\theta=a+bi$ for $\mathrm{gcd}(a,b)=1$, we have $\mathbb{Z}[i] / (\theta)\cong\mathbb{Z}/{(N(\theta))}.$

I used this isomorphism today but now I'm having trouble justifying it. The norm function isn't additive so I can't come up with a ring isomorphism to prove the following:     For any $\,a+bi\in\Bbb Z[i],\,\gcd(a,b)=1$, we have a ring isomorphism   $$\Bbb Z[i]/\langle a+bi\rangle\,\cong\Bbb Z/(a^2+b^2)\Bbb Z=:\Bbb Z_{a^2+b^2}.$$   Could someone show me an isomorphism between these rings to prove this?


My iMac (Retina 5K, 27-inch, 2014) has a permanent internal 120GB drive on the main board and I just added a 2TB SSD internal drive as well. I'm essentially starting over with a clean system. I'm wondering what is the best setup for these two drives? By best I guess I mean 'safest'. I just went through having a dead fusion fusion drive and losing data so I'd like to be careful and smart about how I set this up. Any help would be greatly appreciated.

I was messing around with my iMac and got to a point where I had to reinstall the OS, but it turned out the Fusion Drive had split into a 1 TB hard drive and a 24 GB flash drive. After looking around I found that you can unsplit the Fusion Drive with a Terminal Command in Recovery Mode but that would involve reinstalling macOS afterwards. There doesn't seem to be a way to fix the split fusion drive without losing my data (or rather, having to restore it from a backup which in my experience is not only a tedious process but also doesn't restore everything...). So I was wondering if you guys think it would be worth it to fix the fusion drive and reinstall the OS or if a split fusion drive is not necessarily a problem. What are the drawbacks/benefits of having a split fusion drive? I have a 2017 iMac 27-inch currently running macOS 10.15.6 Beta.


I constantly hear that websites which are updated frequently do better in terms of SEO, so I was wondering: do blog comments count? I'm guessing they do, since they show that the website still has a 'lifeblood' to it - but I thought it'd be wise to check here first.

I read that sites have good reputation in google search index if it is fresh content.  what does fresh content means from google's point of view?  I have many pages. I have created articles and tutorials.  These page dosent change except the comments which are at the bottom.  I have made this page as static (.html) and never edit cause that is the information i wanted to be ever. cause the concept is not going to change?  with these parameters how to judge whether my page is fresh or not?


Just got a refurbished computer with Ubuntu as the OS.  Have never even heard of the OS and now I'm trying to learn.  When I boot the system, it starts up great.  But, if I try to navigate around, it requires a password.  Is there a trick to finding the initial password?  Please advise.

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


We all know the phenomenon that OPs repeat their question when they don't get answers on the first one. When I see this, , but then this text is tacked to the question:     This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.   Well, the problem is, the first question doesn't have an answer (that's exactly the OP's problem) and the last thing I want them to do is ask a new question!  Could we have the option when we mark as duplicate, to indicate that the question is a repetition? A repeated question should have a text that encourages the OP to edit the original question.

The new closed-as-duplicate banner says:     This question has been asked before and already has an answer. If those answers do not fully address your question, please .   I think it should instead say     This question has been asked before and already has an answer. If answers there do not fully address your question, please  or  to the pre-existing one.   — to discourage re-re-asking the same question. (I also changed "those answers", which has no plural , to "answers there", which doesn't need one.)    As of September 19, 2013, the original text quoted above has returned here.


I am simplifying administrative boundaries using a high simplify tolerance (which is my intention so as to get a minimalist appearance).  However, after simplification, the borders of the regions no longer fit together.  What would be the most effective way to solve this problem?

I have a big Shapefile with 200,000 polygons but the file is too big for the application that will use it. I would like to generalise these polygons and create much smaller file.  I have tried to do this in QGIS using "Simplify Geometries" tool. I have tried this on a very small portion of my Shapefile and I am happy with the results but have small problem which I do not know how to solve.  I have appended the image to show the problem.  WHITE boundaries are boundaries before simplification. RED boundaries are after simplification. The problem areas are circled with orange colour. As you can see "simplified boundaries" contain some areas that after simplification do not belong to any of the previous polygons.  How do I simplify this Shapefile and keep common boundaries between polygons as a single line and eliminate areas that have been created after simplification?    ADDITIONAL INFORMATION:  After following suggested instructions    Convert polygons to lines  Simplify lines Convert lines back to polygons    I get the following results. It is slightly better than before but still I get areas outside original polygons (see white areas in the picture below).  @Andrew suggested that I associate each line with adjacent polygon but I do not know how to do it in QGIS.      I am still trying to complete simplifying polygons process. I have followed instructions suggested in this post and when I thought I got acceptable results one more problem appeared. Below is the summary of what I did with images of results. All steps have been performed using PROCESSING toolbox in QGIS.   First, I converted polygons to lines Second, I cleaned lines using v.clean with break option. This resulted in CLEANED VECTOR LAYER and ERROR LAYER. Error Layer (green dots on the provided image) has green dot on every line intersection. I do not know what this means. Third, I simplified lines using "SIMPLIFY GEOMETRY" tool (result in red lines in the images). Comparing simplified red lines and original orange lines I am happy with the result. Fourth, I wanted to convert lines back to polygons using "Polygonize" tool in "PROCESSING" and got results that I did not expect (second image with a shaded dark olive colour polygons). It looks like polygonizer connected error layer intersections and created completely different set of polygons ignoring simplified lines.   Could someone explain what went wrong here?   Why red simplified lines were not converted properly to simplified polygons?   As you can see I am not an GIS expert but need to do this myself. I do not know if I am too far from the solution but it is frustrating that I can see simplified lines that I found acceptable for what I'd like to do but cannot convert them to polygons.  Here are two images with results of last two steps of the process:


I have the following command that I can run from any folder and it will start my (Angularjs) webapp by using the grunt task runner tool -  cd /root/dev/myapp && grunt serve   However when I put it in cron it doesn't work -  */1 * * * * cd /root/dev/myapp && grunt serve   Any ideas on why it is not working?

Often, crontab scripts are not executed on schedule or as expected. There are numerous reasons for that:   wrong crontab notation permissions problem environment variables   This community wiki aims to aggregate the top reasons for crontab scripts not being executed as expected. Write each reason in a separate answer.  Please include one reason per answer - details about why it's not executed - and fix(es) for that one reason.  Please write only cron-specific issues, e.g. commands that execute as expected from the shell but execute erroneously by cron.


What is the definition of raising a number to the zeroth power ($x^0$)? I know that many people say that "anything raised to the zeroth power is one" but this is clearly not true since $0^0$ is $undefined$. How then do mathematicians define $x^0$ such that for all real numbers not equal to $0$, $x^0=1$?

I have been a witness to many a discussion about numbers to the power of zero, but I have never really been sold on any claims or explanations.  This is a three part question, the parts are as follows...    1) Why does $n^{0}=1$ when $n\neq 0$?  How does that get defined?  2) What is $0^{0}$?  Is it undefined?  If so, why does it not equal 1?  3) What is the equation that defines exponents?  I can easily write a small program to do it (see below), but what about in equation format?    I just want a little discussion about numbers to the power of zero, for some clarification.    Code for Exponents: (pseudo-code/Ruby)  def int find_exp (int x, int n){     int total = 1;     n.times{total*=x}     return total; }


Since this method does not work:  How do you encrypt a Windows 10 Home drive without unplugging it (the disk) and encrypting it on a separate Windows 10 Pro machine? And without resorting to installing a 3rd-party drive encryption software which is the usual recommendation for Windows 10 home machines.

Here is what we usually do when getting a freshly installed windows 10:   Log in with a Microsoft account (as administrator) Set a password.   If we are using Pro version, we can then use BitLocker to encrypt data.  But what if we are using home edition? A  password can prevent entry into the OS, but if one could still connect the hard drive to another computer so that the files in it could be read without knowing the password, then the data were not really securely protected.   , however, seems to suggest that encryption will take place in any edition of windows 10, once you log in with a Microsoft account. I am referring to this part:     Sign in using a Microsoft account that has administrator rights on the device. That action removes the clear key, uploads a recovery key to the user's OneDrive account, and encrypts the data on the system drive. Note that this process happens automatically and works on any Windows 10 edition.   So, does the password set on windows 10 protect files? Could someone circumvent the password by connecting the hard drive to a different computer or installing another copy of windows? Is the situation different for windows 7? Is the situation different for C:/(system) and D:/?


Establish the Bernoulli Inequality if $1+a>0$, then $(1+a)^n\ge 1+na$ for $n\ge 1.$  So far I have  $$(1+a)^k+1 \ge 1+(k+1)a,$$  but I don't know what to do from here to make the left and right side equal. Step by step explanation please!

In an ordered field show that $x \geq 0 \implies (1+x)^{n} \geq 1+nx+ \frac{1}{2}n(n-1)x^2$ for every positive integer $n$.   I know that $(1+x)^{n} \geq 1+nx$ (Bernoulli's inequality). To get the stronger inequality you can probably use induction also. But is there an easier way? The extra term on the right seems to be an "error" term and looks like a Taylor series expansion.


I am an Indian passport holder studying currently in China with a valid student visa expiring in next year September and i want to visit UK for tourism and family visit purposes for 3 months approx.   So as a student I want to know What kind of documents will be appropriate to submit to the embassy ? Should i submit the copies of my tuition fee receipt ?  Since i do not have any kind of income my Chinese bank statements just show the proof of my regular monthly expenses provided by my father but not much of savings.So would this be any kind of problem for refusal?  PS : My course that i am studying finishes in 2020 in China so i have to come back to attend my graduation and finish the course.   My brother in law living in UK is going to sponsor my trip and also my parents who applied for UK visa from India also successfully got the UK Visa very recently.   and Now its my turn to apply the visa from China to meet them there in my university vacation time.  Any kind of help or suggestions would be most useful for me. Thank you

There seems to be a consistent pattern on TSE, with scores of questions about what documentation best accompanies a visa application, posed not just by those reapplying after a refusal, but by first-time applicants prior to submission (and a few with post-submission anxiety).  What is being overlooked, lost in translation, missed? Why is this question even being asked here, when the UK government publishes its own straightforward information?


How could we prove that any element of $GL_2(\mathbb{Z})$ of finite order has order 1, 2, 3, 4, or 6?  I am aware of the proof supplied here at this link: . But I am curious if there are any other proofs.

Let $A\in GL_2\left(\mathbb{Z}\right)$, the group of invertible matrices with integer coefficients, and denote by $\omega(A)$ the order of $A$.  How we prove that $$\left\{\omega(A);A\in GL_2\left(\mathbb{Z}\right)\right\}=\{1,2,3,4,6,\infty\}.$$


I don't need the city or address, just the state. And I don't want to make an API call if possible. The priority is a light-weight solution, ideally just Javascript.  I have a user-input zipcode, and I want to display a paragraph of text depending on the state that the zipcode is in. I know it's much more complicated to lookup City and State, and for that an API such as the one the USPS exposes is probably best. But to just match state, perhaps on just the first three numbers, the solution (I think) should be easy and lightweight.   Javascript ideally. PHP could also work.

Trying to find an XML file I can use in lieu of a look-up database table until we get our web hosting switched over to the right DB.  Can anyone refer me to an XML file with elements whose children have zipcodes, states, and cities? E.g.:  <zip code="98117">     <state>WA</state>     <city>Seattle</state> </zip>   Or  <entry>     <zip>98117</zip>     <state>WA</state>     <city>Seattle</city> </entry>   I'll be using LINQ in C# to query this data.


I opened an Excel file from Internet Explorer, worked on it for 2 hours and saved it. But now I can't find the file. The file was really important. Is there any way I can retrieve it? I'm using Windows 7 Ultimate.

I decided to open a file instead of saving it, made lots of changes saved many times, but when I closed it, I realised I couldn't find it anymore.  I'm hopping the file is still here, but can't find it anywhere. Is there any way I can recover this file?  PS: it seems the file should be still there somewhere, because if I re-open the original file from the page it puts the "[2]" in the end of it, which could mean it conflicted with some original file.


One of the reasons we want a theory of Quantum gravity is to understand black holes and string theory is the most popular approach, but so far I haven't seen any attempt of the theory to remove the black hole singularity the same way loop quantum gravity does. I don't know much about string theory so I would like to Know if string theory actually does remove the singularity from the Schwarzschild metric  and if yes how does it attempt this? If no, then how are black holes viewed in string theory, are they singularities in the mathematical sense?

The usual explanation for what's going on inside a black hole goes something like "General Relativity predicts a singularity with infinite curvature, but when matters gets so tightly compressed we should expect quantum effects to become important, so the singularity will probably be blurred". Authors then proceed to say that we need a quantum theory of gravity to answer such things, and quickly abandon the subject.  Well, while we don't have an experimentally confirmed quantum theory of gravity, we do have a speculative one, string theory. What does it say about singularities? Are they smeared out like the books say? Do they remain points (or rings for a rotating black hole) with infinite curvature and density? Do we not know?


My question was migrated from the English Stack Exchange to the History of Science and Math Stack Exchange.  My question is, does the reputation I gained while it was on the English S.E stay on my English S.E and also goes onto the History of Science and Math SE, or does it remove itself and migrate itself to the History of Science and Math SE, or something else?  (To shorten the sentence up, what happens to the reputation gained on a migrated question? Where does it go?)  I am curious about this because I just joined the History of Science and Math SE for my migrated question, but I gained more than 100 reputation (the associated bonus).  I'd like to know where the extra 119 reputation came from.  EDIT: My question is different because I'm wondering where the 119 extra reputation (other than the 100 rep from the associated bonus) came from.

When a question is migrated, is the reputation earned by its author on the original site subtracted from the author's total? What about votes? Badges? Do the same rules apply to the question's answers?


I've learnt that the square root of a number squared is equal to the absolute value of that number, but I haven't really understood why. I have looked through other questions on MSE but didn't really find a good answer.  As an example: for me there are two ways to arrive at a solution for $\sqrt{(-5)^2}$  First: $\sqrt{(-5)^2}= $ $\sqrt{25}=5$  Second: $\sqrt{(-5)^2}= $ $\ (-5)^{\frac{2}{2}}$$\ =(-5)^1=-5$  but according to the $\sqrt{x^2} = | x | $  rule 5 is the only solution. What is the flaw in my logic in getting -5 as a solution. I would really appreciate a comprehensive explanation that clears this up. Thanks in advance.

There is a formula given in my module:  $$ \sqrt[n]{a^n} = \begin{cases}  \, a  &\text{ if $n$ is odd } \\  |a| &\text{ if $n$ is even } \end{cases} $$  I don't really understand the differences between them, kindly explain with an example.


I'm applying for fall 2019, and I would really appreciate any feedback on my chances of getting into the programs I specified.  Program: Statistics PhD  Schools Applying To:  Virginia Tech, Penn State, Johns Hopkins, UGA, Purdue, NC State, Rice, Missouri at Columbia, VCU  Interests: Design of experiments, response surface methodology, stochastic processes  Undergrad Institution: US State School  Undergraduate GPA: 3.81 (cumulative) 3.89 (major)  Undergraduate Major: Statistics  GRE: 154 V, 163 Q, 4.0 AW  Quantitative Courses: Intro Stat (A), Calculus I (A), Discrete Math (A), Calculus II (A), Intermediate Stat (A), Mathematical Reasoning (A), Linear Algebra (A), Combinatorics (A), Mathematical Computing (A), Statistical Computing (A), Differential Equations (B), Advanced Calculus (B), Multivariate Calculus (B), Probability Theory (B), Statistical Inference (A), Mathematical Modeling (A), Nonparametric Statistics (A), Regression (A), Mathematical Statistics I (B), Complex Analysis (A), Time Series (A), Applied Computing w/ R (A), Numerical Methods (A), Multivariate Statistics (A), Industrial Statistics (A)  Work Experience: 1 semester working on a research project in Biostatistics, 1 summer doing research at a national lab (which results in 1 published paper and multiple projects), 1 summer with statistical internship doing Bayesian work, Multiple semesters being a math tutor/TA  Demographics: Domestic White Female  LORs:  1 from my research advisor at national lab, 2 from professors I know very well and have promised outstanding letters  SOPs: Will most likely try to tell the story of my research and how it connects to the research I want to pursue and how that could fit into their department  Concerns:    My low-ish GRE score  The 5 B's I received, even though they were not received in recent coursework   Thank you for any advice!

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


Using methods like  (and with more details ) can be useful when one tries to draw "free" curves. However, once a free curve is obtained it can be very useful to access arbitrary points on it. Unfortunately, the following naive approach is useless:  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}   \draw[->] (-2,0) -- (2,0);   \draw[->] (0,-2) -- (0,2);    \draw[thick,mark=ball] plot [smooth,tension=1.5] coordinates{(1,1) (1.4,0.5) (0.4,-0.2) (0.6,-0.2) (0.2,-1.4) (-0.5,-1.1) (-1,-1.6) (-1.4,0.4)}   node[pos=0.5]{A} node[pos=0.9]{B}; \end{tikzpicture} \end{document}   since it yields the following:    So what is the right way to specify points on a curve generated as above?

Why doesn't the pos = x option work when the node is used in the plot command?  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}   \draw plot[domain = 0:2, samples = 100] ({\x}, {(\x)^2}) node[pos = 1.1]    {\(y = x^2\)}; \end{tikzpicture} \end{document}   In this picture, f_{quad} is my node that should be at pos = 1.1.    Additionally, it doesn't matter what I make pos equal to.  It is always at the origin.


I have inputs in my html:  <input type="text" id="1" value="1" name="1"> <input type="text" id="2" value="2" name="2">   And than i use ajax and load put  another one input:  <input type="text" id="3" value="3" name="3">   There is javascript file with code:  $('input[type=text]').focusin(function() {     var Id = this.id;     someActionWithId(Id); }).focusout(function(){     var Id = this.id;     someActionWithId(Id); });   Can some one tell me why i cant pick input that is loaded by AJAX. Maybe some one can suggest some solution? Thanks.

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


Here's my code:  \documentclass[]{article} \usepackage{titlesec}  \begin{document}  \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}]  \section*{29th March 2014} \textit{A little subtitle}  Here starts my first paragraph. \end{document}   Here's a screencap of the resulting document:   I'd like the 'little subtitle', being part of the section title, to be situated above the horizontal line.  I assume the easiest way to implement this is to create a section format with two inputs: a "Date" and a "Little subtitle". In this case, my code would then be:  \section*{29th March 2014}{A little subtitle}   How would I go about doing that?

I'd like to do this for some of my sections but not all. I'd also like to maintain the current spacing; for example, if the vspacing is 1cm from section title to body text (at 100% zoom), then I'd like it to be 1cm from the subtitle to body text.  Thanks.


Is each particle associated with an unique string and where exactly is the string located, if it's vibration produces the appearance of a particle? What I mean is if I see an electron, does it have an unique string corresponding to it and where is this string physically (inside the electron or somewhere else)?

I understand that the vibration modes of an elementary string determines the identity of its particle. When I first heard this, I visualized a stiff circular steel band-like entity vibrating with 2, 3, 4, 5,... nodes or antinodes, the number determining the particle. This was further supported when I asked a well-known physicist how one gets from equations to physical strings, and he said he recognized the harmonic nature of the solutions.  Bu then I noticed that physicists seem to accept the image of a soft spaghetti-like string flopping about with no well-defined vibrational modes. I asked another physicist about this, and his answer was simply that a string has multiple modes, not necessarily in a harmonic progression.  So my questions are 1) How do you visualize the vibrations of a string, and 2) how are they related to particle identity?


A closed flask contains water in all its three states solid, liquid   and vapour at 0 degree Celsius. In this situation, the average kinetic   energy of water molecules will be         a) the greatest in all the three states   b) the greatest in vapour state   c) the greatest in the liquid state   d) the greatest in the solid state      My opinion: temperature is a measure of average kinetic energy. since they all have same temperature, they all should have same average kinetic energy.  But the answer given is option b) with the explanation "In the three states of matter, the maximum kinetic energy is possessed by the gaseous molecules, so water vapour state has maximum kinetic energy in this situation."  So how is option b) correct?

In a closed flask at zero degrees Celsius, all three forms of water exist. Which form of water will have the maximum average kinetic energy?   The  answer is that all forms of water will have same energy. Why?


"Year-over-year revenue growth of 63 per cent brought total subscription revenues to more than $4bn for the first time, making it by far the biggest format of recorded music in the United States, comprising 47 per cent of the total market."  This appeared in an article and someone promptly suggested it be corrected to composing instead.  My claim, basically that the usage was correctd, was from      Make up; constitute.   ‘this single breed comprises 50 percent of the Swiss cattle population’   ‘documents are comprised of words’   Counter-claim, from the person with the original correction:     Garner's Modern English Usage:   Comprise.  A. And compose.  Correct use of these words is simple, but increasingly rare. The parts compose the whole; the whole comprises the parts. The whole is composed of the parts, the parts are comprised in the whole. Comprise, the more troublesome word in this pair, means "to contain; to consist of"...  C. Comprise for make up or constitute. If the whole comprises the parts, the reverse can't be true - e.g.:  "Of the 50 stocks that comprise [read make up] the index, 40 had gains....  D. Comprise for are. This is an odd error based on a misunderstanding of the meaning of comprise. E.g.: "They comprise [read are] three of the top four names in the batting order of...   Who's right?

Is this sentence grammatically correct?  "The application site comprises an existing care home which has 59 bedrooms and 85 registered bed spaces"  I was under the impression that 'comprise' would indicate plural, eg  "the playground comprises a slide, a climbing frame, and a swing"  and that using it singularly is incorrect, eg  "the playground comprises a slide"


While adding 2 numbers I am getting a lengthy decimal part   Pasting the code below.  Number(200.59) + Number(100) =  300.59000000000003 //Expected result 300.59

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I would like to post part or all of a Terminal result (i.e. Sudo apt get update). How does one capture some or all of the data in the Terminal and paste it into Ask Ubuntu? Also, if there is a way, will it have the same appearance as the Terminal text (font, line returns etc)?

I recently asked a question on Ask Ubuntu (or somewhere else), and a comment or answer asks me to paste the contents of some file or the output of a command to troubleshoot my problem.  How do I do that?


I have a Sony Z5 Compact running Nougat.  I am unable to install Facebook Messenger. When I try I get the Error Code -505.  I have tried installing using ADB with the following command:  adb install com.facebook.orca_108.0.0.10.70-51197341_minAPI21\(armeabi-v7a\)\(280,360,400,420,480,560,640dpi\)_apkmirror.com.apk   Which seems to be the latest stable version from apkmirror.com.  I get the error message:     Failed to install com.facebook.orca_108.0.0.10.70-51197341_minAPI21(armeabi-v7a)(280,360,400,420,480,560,640dpi)_apkmirror.com.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.facebook.orca attempting to redeclare permission com.facebook.receiver.permission.ACCESS already owned by com.facebook.appmanager]   Is this something I have done? The phone is not rooted, nor have I unlocked the boot loader.  Apart from wiping the phone is there anything I can do to get the app installed? (I'm aware of all the 3rd clients, but I would really like to solve this problem.)  The app was installed before the upgrade to Android 7, but an update would not install.  I have done the usual steps like restarting, empty cache and data of Play Services, etc.  This is not a duplicate of , which was supposed to be solved with an upgrade to Android 5.0.2. I am running Android 7.

I have a Nexus 7 and it has just been updated to Android 5.    Two apps give me trouble after the system upgrade, games that my kids play. Dumb Ways to Die and VVVVVV. Both of these had icons after the upgrade but when clicked a popup appeared saying "App not installed". I attempt to install them. The download is fine. The install begins. And then an error message:      Unknown error code during application installation: "-505"   The exact same error for both apps. I've restarted the device to no avail.   I have no idea what to do next. Please could some kind soul give me advice on how I might remedy this problem.


How 1+2+3+ ... = - 1/12 ? Why? Shouldn't the result be infinite?

$\displaystyle\sum_{n=1}^\infty \frac{1}{n^s}$ only converges to $\zeta(s)$ if $\text{Re}(s) > 1$.  Why should analytically continuing to $\zeta(-1)$ give the right answer?


I have an Excel table with two columns: id and picture. id is a string and picture contains a single jpeg picture. This table contains almost 1,000 rows.    Is it possible to export the images as jpeg files to the hard disc using the id as file name?

I have an Excel sheet with images which are stored as objects in one column and product names in another. I was trying to extract all the images to JPEG files. I was able to achieve this by saving the Excel sheet as an HTML document.   This gave me the following files   A HTML file A folder with all the images together with a XML file filelist.xml with a list of all image files   Now I need to create a new Excel sheet which has the product names in one column and image file names in the other. I was able to achieve this using the created XML file filelist.xml.    However, this has introduced a new problem  My original Excel sheet had certain variants of products for e.g. (Product1 white, Product1 green,  Product1 red,  Product1 blue)  While the products are a little different in color, the associated image object was repeated. Basically all four had the same corresponding image. Now while saving this file as an HTML I found only one image file instead of four.   Also the XML file had only one entry instead of four and so the new Excel sheet I'm creating from the XML also has one entry instead of four.  Though the same object is used four times for similar products, they seem to be stored with different names. (Clicking on the 1st showed "picture1", the second "picture2" etc). This has given me hope that maybe there is a way to save images individually so I receive four JPEGs instead of one.


According to , if you are using shamir's secret sharing scheme with a field of order $p$, "High values of $p$ are risky because Eve knows that the chance for $f(x)\pmod{p}=f(x)$ increases with a higher $p$". Is this true? It seems wrong.

The Wikipedia article on Shamir's Secret Sharing says to that to have information theoretical security the splitting algorithm should be evaluated using finite field arithmetic on the field $\rm{GF}(p)$ such that $p>n,p>S$ where $n$ is the number of shares and $S$ is the information to be shared. It suggests that on the one hand $p$ should be large because an attacker knows that $S\in\mathbb{Z}/p\mathbb{Z}$. It also suggests that $p$ should not be too large because an attacker knows that as $p\uparrow$ $\rm{p}\{f(x)\bmod p = f(x)\}\uparrow$. How should one choose the best value of $p$ and be confident about choice?   implementation splits $S$ into $i$ pieces such that $\forall \,i,\,S_i\in\rm{GF}(257)$. I do not understand a specific reason to use $p=257$ over any other prime number. For instance the elements $S_i$ could be stored in in an 8 bit value if $p=251$ was chosen.


It's simple to prove with Hopital that  $$ \lim_{x \to 0} \frac{x-\sin(x)}{x^3} = \frac{1}{6}$$  Is it possible to solve this limit without Hopital or Taylor (without derivatives)?

How can I prove that $$\lim_{x \to 0}{\frac{x-\sin{x}}{x^3}}=\frac{1}{6}$$  without using L'Hospital or Taylor series?   thanks :)


I'm a college student doing some part time work (for my school), and my dad very generously said that he would match my contributions to my Roth IRA if I maxed it out - ie. I pay in 3000 and he pays in 3000. However, a quick google search says that you can't contribute more than you earned, which is a problem because in 2019 I only made 4500 dollars. I was wondering if:  a. The IRS would actually notice- since both 4500 and 6000 dollars are less than the minimum filing requirement I don't think my income would even end up on any tax returns either way.  or   b. Can my dad just decide to 'pay' me 1500 dollars for the work I do around the house (the usual babysitting, yardwork etc.) so that I reach the required income.

I own an LLC, of which I am currently the sole member. It's my main source of income.  I am wondering if there is a reason why I could not do the following:   Hire my child as a part-time employee of the LLC, for an annual salary of $5500. Start a Roth IRA for the kid and put the $5500 into it. Deduct the $5500 as a payroll expense for my LLC, thereby reducing my amount of taxable income.   To me, this seems attractive because I'd lower my LLC's tax liability. Meanwhile, my kid would not have to pay any taxes on the $5500 because it is lower than the standard deduction. And by putting the money in a Roth IRA, he'd get an investment that would grow tax-free. It would essentially be like getting the pre-tax benefits of a traditional IRA with the post-tax benefits of a Roth.  The way I see it, I'd win, my kid would win and the IRS would lose, for once.  Is there any reason this wouldn't work? There is no minimum age or income for contributing to a Roth IRA. So as long as I could legally hire my kid, I don't see any obstacles.


I have upgraded from Ubuntu 16.04 to Ubuntu 16.10 (Linux 4.8). After the upgrade, my screen turns and stays black on booting.  I tried the advanced option to run Ubuntu 16.10 on Linux kernel 4.4 and it works.  I know that fglrx is no longer supported since Ubuntu 16.04, so Ubuntu has been using the open source version (xserver-xorg-video-radeon).  My question is that how can it work in Linux 4.4 but not 4.8 (both are Ubuntu 16.10)? and how to solve the issues to make it work on Linux 4.8?  Thank you  Edit 1:  This question is not duplicate as indicated by many. In my case, I can boot on Linux kernel 4.4, but not 4.8.

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


I am unable to add code to my question I want to ask. How do I add code to a question so that people can see the code?

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


Can't find the Privileges link any more.   is no longer valid.  Can someone please tell me where it's hiding now?

The new top bar looks like a good improvement, but I think that at least the log out button and also the chat could return to a more prevalent place. Another thing that bothers me is that the quick link to privileges seems to have been removed. I kind of liked clicking on myself in the bar to see my recent reputation and such, although the new reputation looks cool. It does however get confusing with other sites being mixed in.  I'm sure we will all adapt to it pretty quickly, but please consider changing the position of some links, like moving chat, blog, and log out back to the bar itself. Thanks!


I am currently implementing a simple neural network and the backprop algorithm in Python with numpy. I have already tested my backprop method using central differences and the resulting gradient is equal.  However, the network fails to approximate a simple sine curve. The network has one hidden layer (100 neurons) with $\tanh$ activation functions and a output layer with a linear activation function. Each unit also has a bias input. The training is done by simple gradient descent with a learning rate of 0.2.  The problem arises from the gradient, which gets larger with every epoch, but I don't know why. Further, the problem is unchanged if I decrease the learning rate.  EDIT: I have uploaded the code to pastebin:

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


I noticed that there are squatters on stackexhange.com. Is there a formal place to submit this or is this meta forum the best place? It seemed to redirect me to Amazon, so I'm guessing they are squatting on the affiliate stuff stackexchange does with Amazon.

Someone recommended that I post my question on quant.stachexchange.com. Whenever I try to go to that site (I am not sure if the Stack Exchange site exists) I get redirected to something asking if I am a robot, then www.clickvalidator.net. Does this seem right? It seems like something weird is going on with DNS.  I was typing quant.stackexhange.com. Different URL, same problem.


From the title, I imagine the obvious reaction would be "No, posting someone else's answer as your own is stealing," at least to me. But  at is interesting: someone left an answer as a comment, and then the OP posted that as an answer. It was clearly attributed, but even so I would have asked the person who left the comment before posting an answer, even if it was my own post. What is the etiquette here?

I came across  and at the time there were no suggested answers. After reading Mark Hubbart's comment (at the time with four upvotes), which was the correct answer, and seeing that it had been over 30 minutes since his comment, I figured I would provide that answer in my own words, which I did. My answer is longer, and I think more rounded and more useful, but the core of the answer came from the comment. I have no idea if I'd have thought up the answer on my own--a definite maybe to that.  Now had I tried to be "honorable" or something, such as instead of answering, suggesting to the commenter that he make his comment an answer, I would only have accomplished giving away easy rep to some other user not as into gratuitous self-denial.  The commenter had merely to enter his comment into an answer box instead of a comment box! It was his choice! Whether he was too lazy or didn't think his answer worthwhile or some other reason is not my responsibility. Must I bend over backward to help him earn points that he so carelessly left lying around for another person to take? It just took a tiny bit of non-laziness on my part to get my text typed into the box that would reward me instead of the box that wouldn't.  If my perspective is incorrect and the community would rather see such answers-as-comments rewarded and supported, I will gladly accept that. In the meantime, I just want to shake off the tiny bit of guilt my overly-nice and overly-concerned-with-propriety self is feeling. :)


Sometimes on my site, that have few lines of text or very less content.  In such cases, the footer displays below the content somewhere between the page. That does not give a nice look to the page.  Like this:    When I add a css:  .ar-footer{    position:absolute;    bottom:0px;    left:0px;    right:0px;    width:100%;  }   The footer content is changed. Like this:    how to fix it? I want to fix the footer section into bottom of the pages if the content is less or more.

I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.


Given is prime $p$ and a generator value $g$ with $1 < g < p$. How can we efficiently compute the order of the subgroup that is created by   $g^k \mod p$  I've looked into Eulers Totient function, but can not seem to find an efficient way to compute this with no additional knowledge apart from $p, g$. Am I missing something or can this not be calculated efficiently?

Lets say $g \in G$ where G is a group. Also $\operatorname{ord}(g)=n$. Then we have to prove that:  a) $\operatorname{ord}(g^k)=l $, where $l$ is the least number bigger than (or equal to)  $1$, such that $n\mid k*l$.  b) $\operatorname{ord}(g^k)=n \Leftrightarrow \gcd(k,n)=1$  With a) I tried to go like:   $(g^k)^l=g^{k*l}=g^k=g^n*g^k=g^{n+k}$ and then from second and last equality: $k*l=n+k$ from what I have that $k(l-1)=n$, and I am stuck. It may be simple or maybe I've gone a wrong path.  With b) I have no idea how to start, but it seems like a conclusion from a).  I would appreciate any help or hint. Thanks in advance!


I've managed to enter this 'view only selected area' thing in the viewport and I have no idea how to get out of it.

When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects.   Can anyone help me turn this off and explain what it is please.  Screenshots attached.


What I am trying to do is add a commenting feature to my web application. Ideally here is the setup:
     Comment 1

     Comment 2

   $(".comment-add").click(function() {     var c = ""     var b = "" + c + ""     var a = "
" + b + "
"     $(this).parent().after(a); });   The plus symbol will be a glyphicon that when clicked turns into an editable comment. I already have that working so for now just ignore that. The issue I'm having is that when the (+) symbol is clicked, I would like it to generate a new (+) after it that can also be click to generate another (+).  In the fiddle, you can see that the first (+) can be repetitively click to generate more (+)'s but those generated cannot be clicked.  Here is the fiddle, I feel like I'm close I am just having trouble figuring it out.

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


Let's say an English fleet has orders to attack Denmark from Skagarac, with plenty of support to take it. However, a Russian fleet attacks the English fleet from the Baltic Sea, with plenty of support to take Skagarac.  Would the Russian fleet's attack take priority, preventing the English fleet from taking Denmark? Or would both moves be successful, putting Denmark in English control and Skagarac in Russian control?

If I convince Turkey, to move Army Bul to Gre, would I be able to send Army Ser to Bul and take the area?


I'm trying post base64 code to save as an image but I can't post the value of textbox when I try submit my base64 code.  Is there limit send to codes via posting form?  I get an error due to can't get the value of textbox below:     ADODB.Stream error '800a0bb9'      Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.   My HTML code  <form method="POST" action="?X=1" id="myForm">     <input type="text" name="img_val" id="img_val" value="" />     <input type="submit" value="Submit Largest Code" /> </form>   My ASP codes:  <%  IF LEN(Request("X"))>0 THEN  base64String = Trim(Request.Form("img_val")) Set tmpDoc = Server.CreateObject("MSXML2.DomDocument") Set nodeB64 = tmpDoc.CreateElement("b64") nodeB64.DataType = "bin.base64" nodeB64.Text = Mid(base64String, InStr(base64String, ",") + 1) set bStream = server.CreateObject("ADODB.stream") bStream.type = 1 call bStream.Open() call bStream.Write(nodeB64.NodeTypedValue) caminho=Server.MapPath("/SS/imagem.png") call bStream.SaveToFile(caminho, 2) call bStream.close() set bStream = nothing  END IF %>   Sample Base64:  data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQFCAYAAABQN9UwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAP+6SURBVHhe7L0HoCRHde5/Js/Nd6M2Squ8KAsJBUBCIBAYMBgsG3jYgE3yA4PfMzwH3t/P2NgkGz+DbWwwBh4GG7AQYKJkogRCQhIogHJYabU53jh38v98p7pm6vbOzJ2bdu8u30/UdnV1dYVT1bNLf32qEu++Z19dCCGEEEIIIYQQQgghhBBCCCGEHPUkoyMhhBBCCCGEEEIIIYQQQgghhJCjHArAhBBCCCGEEEIIIYQQQgghhBByjEABmBBCCCGEEEIIIYQQQgghhBBCjhEoABNCCCGEEEIIIYQQQgghhBBCyDECBWBCCCGEEEIIIYQQQgghhBBCCDlGoABMCCGEEEIIIYQQQgghhBBCCCHHCBSACSGEEEIIIYQQQgghhBBCCCHkGIECMCGEEEIIIYQQQgghhBBCCCGEHCNQACaEEEIIIYQQQgghhBBCCCGEkGMECsCEEEIIIYQQQgghhBBCCCGEEHKMQAGYEEIIIYQQQgghhBBCCCGEEEKOESgAE0IIIYQQQgghhBBCCCGEEELIMQIFYEIIIYQQQgghhBBCCCGEEEIIOUagAEwIIYQQQgghhBBCCCGEEEIIIccIiXffs68exY841VpNRkcKsnffhBw4MCFjY1MyOVmSYqki1UpNarW6JJMJSaeTkstlpLc3K4ODeVm+vE9WruiXgYG8JBKJqLTDC9q5f/+E7Ns3LiOjBZmYKMpUsSLlUlWq1Zq2SySVSkg2m5GenrT09+dlaKhXVq0akKHBHu1POirp8DFney/rlxUr+ix+uO1dr9etnXvVzrD36GjU5mJZKkGbU2hzNm1txrxYtgxzRNs81COpJL97IIQQQgghhBBCCCGEEEIIIccmS0IA3rV7VLZs2Ss7d47KwZFJqZSrUtNWJRJ1SSaSGrH/IQEKoKDBdc1g/9UTmkckm03LsmW9sm7tsGzatEKWL+/HHYvK+HhRtm7dJ088ccAEyUKhLLVaza5BGE1ow8J2AxwgYvr+pVIp6e/PyepVA3LCCStk3bplks2kLO9iAXs/9tg+2bFjZM72zsDew2rvdcNy4mGw9/794zpH9sn2HQflwIFJKZUqjTbDynFbo834o1avNdqcVrsOD/XKmjWDOkdWynGrB5GLEEIIIYQQQgghhBBCCCGEkGOGIyYAVypVeXTLPnnggZ2ye8+YVPU8mUxKMp

I have a web service load driver that's a Windows Script File (WSF), that includes some VBScript and JavaScript files. My web service requires that the incoming message is base64 encoded. I currently have a VBScript function that does this, but it's very inefficient (memory intensive, mostly due to VBScripts awful string concatenation)  [Aside; Yes, I've seen . The concatenation is happening in a loop across messages that are 1,000's to 10,000's bytes in size.]  I've tried using some custom string concatenation routines; one using an array and one using ADODB.Stream. These help, a little, but I think it would help more if I had some other way of encoding the message rather than via my own VBS function.  Is there some other way of encoding my message, preferebly using native Windows methods?


I'm running Xubuntu 14.04.3 on a Lenovo G50-70 updated earlier today, but I don't think any updates to the Kernel.  I shut the laptop down, and had to leave for a wile.    When I turned the unit back on when I came back, I noticed that there were no network connectivity, either wired or wireless.  If I try to add a connection through network manager, I can't since all is grayed out.      If I try to do sudo service network-manager restart I get    Even the network indicator has disappeared.  How can this be fixed.  I tried the fix , and it fixed it.

While upgrading today, something caused my wireless network manager to disappear. Not even connecting via wired connection.  This error is being shown by files:  **(nm-applet:2716): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files   (nm-applet:2716): nm-applet-WARNING **: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch daemon, file not found or permissions invalid   (nm-applet:2716): nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries   (nm-applet:2716): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files    Is there a patch I can download through windows and send through to my ubuntu, or is it a case of having to reload everything? I tried running two versions back but still no internet access.


I was thinking of writing: $$\prod_{i=k}^1 A_i$$ But I'm not sure if it is the correct way to do it. As in: $$\left(A_1{\times}A_2{\times}A_3{\times} ... A_k\right)^{-1} = A_k^{-1}{\times}A^{-1}_{k-1}{\times}A^{-1}_{k-2}{\times} ... {\times}A^{-1}_1$$ I intended to write it more succinctly as: $$ \left(\prod_{i=1}^k A_i \right)^{-1} = \, \prod_{i=k}^1 A_i^{-1}$$ But I'm not sure if it's the correct way of representing it.                   EDIT The $A_i$ are matrices.

Is there a standard notation for multiplication in reverse order? For example consider the problem  $$x_{k+1} = A_k x_k$$  where $x_i \in \mathbb{R}^n$ and $A_i \in M_n(\mathbb{R})$, ($i=0,1,2,\dots$) without any further assumptions on $A_i$. The solution to this problem is  $$x_k = A_{k-1} \dots A_1 A_0 x_0$$  Obviously, writing  $$x_k = \prod_{i=0}^{k-1} A_i x_0$$  is wrong because of the multiplication order. But I'm also unconfortable to use  $$x_k = \prod_{i=k-1}^{0} A_i x_0$$  as the notation suggests that we need to increment $i$, not decrement it. Also, one may need to write $\prod_{i=k}^{m} A_i$. Then, we need to explicitly state $m < k$ to imply ordering.  I can always write the open form but as similar products frequently occur in calculations in my work I want to express them in a more compact way. The question is, is there a standard and nice notation to do so? There are some suggestions in , but I think none of them are "nice enough" to work with.  I came up with the notation  $$x_k = \coprod_{i=k-1}^{0} A_i x_0$$  to imply decrementing $i$ rather than increment it, but I don't know if it is used in somewhere else or there is a standard notation.


I have a laptop with Windows 7. I installed ubuntu through USB. After restarting,, however, nothing happens. 7 automatically loads without showing the OS selection screen. But when I insert the live USB, the screen that lets me select Ubuntu shows up and I can access the Ubuntu OS installed on the hard drive. I'm new to this, but is this an instance where I should use ? And are there any specific instructions for it that I should be aware of? Thanks!

I had Ubuntu 12.04 Beta installed on my computer. When 12.04 was finally released, I made a bootable USB Flash Drive using Startup Disk Creator.  Then I decided to check if this drive works properly and to reinstall the system on my desktop. I must add, my desktop behaves a bit strange when it comes to bootable USB's, it recognizes them as HDD.  In BIOS I changed priority of boot so USB Flash Drive (recognized as HDD) was first. Successfully booted, I installed Ubuntu. Everything worked fine, but...  Now I cannot boot from my real HDD. Every time I want to boot, I put the USB Flash Drive into my computer, boot, safely remove it and everything works.  What do I need to do to repair boot?


This is exercise $2.13$ in Rudin.  Can't we simply define such set as $[a, b]$, with all members being rational? It is bounded, and closed (proof is straightforward), and the limit points are all members of the set since $\mathbb{Q}$ is dense on an interval; and since rational numbers are countable then all the limit points are. Am I missing something? Thanks in advance.

I searched and found out that the below is a compact set of real numbers whose limit points form a countable set. I know the set in real number is compact if and only if it is bounded and closed. It's obvious it is bounded since $\,d(1/4, q) < 1\,$ for all $\,q \in E.$  However, I'm not sure how this is closed.  Is there any simpler set that satisfies the above condition?  Thank you!  $$E = \left\{\frac 1{2^m}\left(1 - \frac 1n\right) \mid m,n \in \mathbb N\right\}.$$


Sorry for the beginner question. In the below code, the output I'm getting is "Original" and not "Function". Doesn't the value of name change after passing through the function? Thanks global name name = "Original"  def test():     name = "Function"  test() print(name)

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


Bought Windows server 2008 Standard R2 which came with a 5 CAL pack, the server has since died and been hit with a hammer. AS the OEM server license died with the hardware, what does that mean for the CALs, have they expired as well or can i continue to count them as my overall CAL figure?

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


Hi everyone i am new to Java and started this project to learn java/jsp/servlets. I have a Oracle table (named giris) that contains user's name(kullanici) and password (sifre).  English is not my first or second language so look at my codes you will understand my struggle.  i have girisDTO.java for get set methods and constructor:  package tr.gov.ptt.rehberwebprj.dto;   public class GirisDTO {  private String kullanici; private String sifre;  public GirisDTO() {  }   public String getKullanici() {     return kullanici; }  public void setKullanici(String kullanici) {     this.kullanici = kullanici; }  public String getSifre() {     return sifre; }  public void setSifre(String sifre) {     this.sifre = sifre; }     }   I have VTBaglanti.java for database connection:  package tr.gov.ptt.rehberwebprj.util;  import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;   public class VTBaglanti {  public static Connection baglantiGetir() throws ClassNotFoundException,      SQLException {   Class.forName("oracle.jdbc.driver.OracleDriver");   Connection conn=   DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "kurs1", "ptt");   return null;  } public static void baglantiKapat(Connection p_conn) throws SQLException {     p_conn.close();  }  }   I have GirisDAO.java  for database operations other than connection:  package tr.gov.ptt.rehberwebprj.dao;  import java.sql.*; import tr.gov.ptt.rehberwebprj.dto.GirisDTO; import tr.gov.ptt.rehberwebprj.util.VTBaglanti;  public class GirisDAO {  public static boolean giriseYetkilimi(GirisDTO p_giris)          throws ClassNotFoundException, SQLException {     String vtSifre=null;     Connection conn= VTBaglanti.baglantiGetir();     PreparedStatement ps = conn.prepareStatement("select sifre from giris where kullanici=?");         ps.setString(1, p_giris.getKullanici());         ResultSet rs = ps.executeQuery();             while(rs.next())             {                 vtSifre=rs.getString("sifre");             }             rs.close();              if (vtSifre != null && vtSifre.equals(p_giris.getSifre()))             {             return true;             }                else             {             return false;             }  } }   I wrote a GirisDAOTest.java class to test if GirisDAO is working or but but it gives me an error.  package tr.gov.ptt.rehberwebprj.test;  import java.sql.*; import java.util.logging.Level; import java.util.logging.Logger; import tr.gov.ptt.rehberwebprj.dao.GirisDAO; import tr.gov.ptt.rehberwebprj.dto.GirisDTO;   public class GirisDAOTest {  public static void girisKontrolTest() {      try {         GirisDTO giris= new GirisDTO();         giris.setKullanici("eda");         giris.setSifre("1234");          boolean sonuc = GirisDAO.giriseYetkilimi(giris);      } catch (ClassNotFoundException ex) {         ex.printStackTrace();     } catch (SQLException ex) {         ex.printStackTrace();     }      if (true)     {         System.out.println("Giriş başarılı.");     } else      {         System.out.println("Kullanıcı adı  ya da şifre yanlıs");     }  }   public static void main(String[] args) {      girisKontrolTest();  } }   My error is:  Exception in thread "main" java.lang.NullPointerException at tr.gov.ptt.rehberwebprj.dao.GirisDAO.giriseYetkilimi(GirisDAO.java:15) at tr.gov.ptt.rehberwebprj.test.GirisDAOTest.girisKontrolTest(GirisDAOTest.java:20) at tr.gov.ptt.rehberwebprj.test.GirisDAOTest.main(GirisDAOTest.java:41) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)

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


I started the game a while back, played for 60h or so then took a break (to finish other games :) ).  Anyway... at launch there were a ton of posts saying AVP is limited to 20. After I started again (last week, so there were a few patches) I hit 20... then 21... then 22. And it all worked well. So I just guessed they raised the cap.  Now I did the Meridian mission and got 2 more levels (24). But... immediately after I checked screen they went back to 22 (press esc, see 24, then press esc see 22 again). So... I did what any other normal person would do and loaded back the game, ran to AVP console and allocated all pods. Then pressed esc and seen 22 points again, but the pods were already allocated (and they remained like that). This is obviously a bug.  My question is... did they raise the cap (and the bug is that the points disappeared), or they didn't raise the cap and the bug is that I got those points in the first place?  All threads I find saying the cap is 20 are old. Does anyone know any new post regarding that? Or any change log?

I finished one playthrough on normal and the max I attained were 19/28 cryo pod perks. The completionist in me would like to see 28/28 cryo pod perks.  Would higher difficulties have unlocked more cryo pod perks for me? Could NG+ help attain 28/28 cryo pod perks?   What are the maximum cryo pod perks that can be attained in one playthrough?


Consider this as an example: The flight below which is two days from now is half empty. However, the price has risen considerably during last week. Why did this happen? If the plane is half empty why the price should rise?   Edit I should mention that in the example above the seat selection is included in the ticket price, that is, even if someone does not want to select a seat then they still pay for it.

Based on the question , I got curious. Is there a guide or resource that describes how the price of a ticket is determined?  When you search you often see curious effects like cheaper tickets for a flight from A to B with a layover compared to a direct flight. This seems counter-intuitive from an outsider's perspective since you fly twice. Also one way tickets more expensive than 2 ways.  It can be a short set of rules. Something that helps someone to get started with finding good prices. I know these can be very complex and they probably change over time and over airline interests but there is probably a simplified set of rules that can be enunciated.


A blend file I am working on has developed two quirks, but I'll deal with just the camera issue here. Basically, the 4 sided 'cone' of the camera is invisible. The 'lens' area is visible as is the origin point, the cone with the triangle on top is gone. I can move the camera, but when doing so the lens square and origin point vanish, so the only way to navigate is through camera view. Note that this is file specific, and resetting prefs to default won't work. This is not occurring in any other blend file. The image below is what I see in the .blend in question;  and this is a different .blend showing the camera properly visible.  I am sort of assuming I have just hit some weird key combination by mistake, but I can't seem to recover it. Any thoughts? Oh, and it IS visible in the collections stack or the lens frame would also be gone. Cheers

I am new to Blender. The camera widget in my viewport only displays as a dot and yellow rectangle, while in the tutorials it has a pyramid shaped bounding box and arrow indicating which way is up. How do I correct this?


Welcome to My Homepage

         To see Carnaval history:  http://carnaval.amazon.com/v1/viewHistory.do?type=monitor&amp;name=PyOP.EU.MPQS...          To see Carnaval snapshot: http://carnaval.amazon.com/v1/viewSnapshot.do?timestamp=2018-05-17+22%3A40%...
     I can access the href of this page using   var oLink = document.getElementById('details_readonly').getElementsByTagName("a"); var i, len = oLink.length;  for( i = 0; i < len; i++ ) {     var li= oLink[i].getAttribute('href');                   if(oLink[i].innerHTML.indexOf("viewSnapshot.do") != -1 ) {         //...get document of the link    } }   However, now I want to access the document(and its hrefs subsequently) of the link identified at "//...get document of the link"?  Is it possible using javascript, if yes how?

I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget.


I have been trying to get to 10 thousand reputation for a while on Science Fiction & Fantasy (taking a while :P) but learned something weird a few weeks ago: users with 10,000 reputation can't search for others' deleted posts.  What is the point of this? If those users are able to see the questions, why make it hard to find the questions to see?  That's like giving someone in the government a lot of security clearance, but not letting them into DC except if they find a link to there (weird analogy).

I recently reached 10k reputation on Stack Overflow, and noticed that I now have the ability to view deleted posts with deleted:1 via the search bar. I'd like clarification as to why the restriction exists that prevents me from searching through all deleted posts?  I feel like this would be beneficial for several reasons:   , a bot that was designed to detect spam,  to help fight spam. Having deleted:1 as an option could offer a second link to show the amount of true positives, to determine if it's worth adding to a blacklist. In , the domain v-play.net was deemed as "Too many FP's". Having a check to see how many TP's there may be, may outweigh the number of false-positives, and would give a better view. Bots are currently unable to view deleted posts through the API (Even if the linked user account/API user has >10k reputation). I think that this is partially because of this restriction. I had brought it up , because I thought that having SmokeDetector log a (non-caught) rude/abuse or spam posts would be beneficial, so that we could adapt our methods to catch these types of posts in the future.  was posted earlier today. I remembered it was similar to another post I came across, but was unable to find it because . Being able to search deleted posts would have allowed me to catch this behavior, and bring it up to the mods (I was lucky that someone else had a link for it, and we were able to advise the user what to do in the future). As a member of , I come across a lot of posts that are borderline spammy (via ) which I have a vague recollection of seeing before. Instead of flagging as spam, I usually vote NAA as to not nuke a user, but by being able to search deleted posts for that user, I can see if he is habitually continuing to post links to his product/service, and flag for custom moderation attention in case.   Overall, I think it would add a lot more visibility that could be helpful in bringing problematic issues to dimaond moderator attention, something that was specifically mentioned in :     Make sure what is being deleted should have been deleted, and bring unnecessary or harmful deletions to the attention of the community and/or moderator team.   Additionally, I think that deleted:1 is almost useless in the current state it's in. If the restriction exists that I can already view my own deleted posts, why shouldn't it be available to all users (If it's limited to one's self), as I can already view my own deleted posts?


Would it be possible that someone from Ilvermorny comes to study at Hogwarts or vice versa? Like an exchange program?

In the Harry Potter universe, is there any mention of an exchange student at Hogwarts or one of the Hogwarts students going on exchange at another school?  This happens all the time in the "muggle" school systems I'm sure it would happen in the wizarding schools as well.


Let $A$ be a local ring, $M$ and $N$ finitely generated $A$-modules. Show that if $M \otimes_A N = 0$ then $M=0$ or $N=0$   I read one proof from my book and it goes as follow: First, show that $(A/I)\otimes M \simeq M/IM$ by tensor the exact sequence $0\to I \to A \to A/I \to 0 $ with $M$. Then, let $m$ be the maximal ideal, $k=A/m$ the residue field. Let $M_k := k\otimes_A M \simeq M/mM$. By Nakayama's lemma, $M_k = 0 \Rightarrow M=0$. But $M\otimes_A N = 0 \Rightarrow (M\otimes_A N)_k = 0 \Rightarrow M_k \otimes_k N_k =0 \Rightarrow M_k = 0$ or $N_k =0$.  I could not understand 2 parts of above proof. First, how could we deduce $(A/I)\otimes M \simeq M/IM$ by tensor the exact sequence $0\to I \to A \to A/I \to 0 $ with $M$? Is there another easy argument to show $(A/I)\otimes M \simeq M/IM$ ? Secondly, how is it possible that $(M\otimes_A N)_k = 0 \Rightarrow M_k \otimes_k N_k = 0$?   Can anyone give me a clarification? Thank you in advance!

If $R$ is a local ring and $M$ and $N$ are finitely generated $R$-modules such that $M\otimes N=0$ then how does it follow from Nakayama's lemma that either $M=0$ or $N=0$?    This is an exercise in Atiyah and Macdonald. The part I could not show in the hints is $({M{\otimes}_R N)}_{k}=0$ implies $M_{k}{\otimes }_{k} N_{k}=0$, where $k=R/\mathfrak m$ and $\mathfrak m$ is the maximal ideal of $R$.


Q. Let $f$ be a twice differential function on the open interval $(-1,1)$ such that $f(0) = 1$. Suppose $f$ also satisfies $f(x) ≥ 0$, $f'(x) ≤ 0$ and $f″(x) ≤ f(x)$, for all $x ≥ 0$. Show that $f'(0) ≥ -\sqrt{2}$.  My attempt: Since, $f'(x) ≤ 0$ and $f″(x) ≤ f(x)$. So, $f(x)$ is a decreasing and a concave down function. Now, if we draw a tangent to the function at $x=0$, it will always be above the function. Checking the value of ordinate for the tangent and the function at $x=1$, we get: $f'(0) > -1$. But, I am not able to prove $f'(0) ≥ -\sqrt{2}$. Please help me out..

Let $f:(-1,1)\to \mathbb{R}$ be a twice differentiable function such that, $f(0)=1$, $f'(x)≤0$, $f(x)≥0$ and $f''(x)≤f(x)$ for all $x≥0$. Prove that, $f'(0)≥-\sqrt2$   Progress: I was able to prove $f'(0)≥-2$. For this I have applied Cauchy MVT for $f'$ and $g$ on $[0,x]$ for any $x\in (0,1)$ where $g: [0,x]\to\mathbb{R}$ is defined by, $g(x)=\sqrt{x+1}$. But, couldn't find another approach to get $-\sqrt{2}$.


I need to run the following command at startup or upon login to make my samba share accessible to my file system. How can I make this command run when I start my computer?  sudo smbnetfs ~/Shared -o allow_other   Note that this command requires sudo and must be run from a terminal. Putting it in startup applications does not work.

I had a script that automatically enables my wifi without using networkmanager, but I don't know how to run the script as root while the system is booting. How do I make the script run automatically during boot?