How to recover files after deleted my Ubuntu partition?

I normally dual-boot with 12.04 and Win XP pro sp3 on a Thinkpad R60.  I needed to reinstall windows because of problems piling up, so I ran the computer's built-in hard-disk recovery software.  I told it not to mess with the other partitions, but somehow it deleted the Linux partition.  That's what I was using to backup all of my windows files, so now everything I have is gone.  I just ran the USB setup with linux, and the partition is deleted - it just shows it as empty space.    Is there ANY way to get all of my files back?


How many solutions are there to $x+y+z=n$? Need help understanding the answer.

I need some help. I do not understand how to get the answer (solution) to this question. I could not solve it, neither did it help when I saw the answer. This is a question from the chapter combinatorics from my textbook. Should be noted that my textbook has not be explaining anything that resembles this kinds of questions. So I am stuck. I would appreciate some insights. Thanks.  The question:  Let $n \in \mathbb{Z^+}$. How many solutions are there to the equation: $$x+y+z=n$$ such that $x,y,z \in \mathbb{N}$?   The answer:      $\frac{1}{2}(n^{2} + 3n + 2)$   How did they arrive at this answer?


Let $A,B$  be two $n \times n $ matrices with real entries and $\alpha \in \mathbb{R}, \alpha \neq 0$. It is given that $$A^2-B^2=\alpha(AB-BA)$$   Prove that $(AB-BA)^n=0$.   At first, I tried to prove that $A(AB-BA)=(AB-BA)A$, as it would imply that $(AB-BA)$ is  and the problem would be solved. But this didn't work.  Then, after writing $\det(A-B)(A+B)=\det(A+B)(A-B)$ and using the given relation I obtained $\det (AB-BA)=0$. But I got stuck and I tried to make a substitution: \begin{align*} X=\frac{1}{2}(A+B) \\ Y=\frac{1}{2}(A-B) \end{align*} The given relation then becomes $$(\alpha+1)XY=(\alpha-1)YX \quad (1)$$ so $XY$ and $YX$ commute. Since $(AB-BA)^n=2^n(YX-XY)^n$, we can expand the latter using the binomial theorem. Combined with $(1)$, I obtained $$(AB-BA)^n=\frac{4^n}{(\alpha-1)^n}(XY)^n=\frac{2^n(-2^n)}{(\alpha+1)^n}(YX)^n$$ and I don't see how to finish this.


create a div with height equal to remaining available space

I know this is an already asked question, but no solution found work on my pages.  I have a page:   header with fixed height: 60px sub-header div: height dinamic based on content search div: height dinamic based on content fullcalendar div: this div need to be equal to remaining space available to fit screen    LOGO + HORIZONTAL MENU
SOME CONTENT HERE...

SOME CONTENT HERE FOR SEARCH...

    I want to set fc-div to get height of remaining space to prevent scroll-y


Let $a, b$ integers such that $ab+2a+3b=93$. Find all solutions integers.  What I tried is $ab+2a+3b=b(a+3)+2a$ but i don't see how to proceed to related $a$ and $b$ such that see it multiplying and play with combinations of  $93=3*13$.


Trigonometric identity between sines of multiples of $\pi/70$

Prove that:  $$\left(\sin\frac {9\pi}{70}+ \sin\frac {29\pi}{70} - \sin\frac {31\pi}{70}\right) \left(\sin\frac {\pi}{70}-\sin\frac {11\pi}{70} - \sin\frac {19\pi}{70}\right) =\frac {\sqrt {5} -4}{4}$$  I Could not get any idea to solve. Please help


if I learned the “true meaning” of a word via etymology, would it help to get all its possible meaning in any context?


I have seen this definition of expectation of a nonnegative random variable in many places. I do not quite understand how it is gotten. $$E[X]=\int_0^{\infty}P(X>t) dt $$ I know $E[X]=\int_0^{\infty}x f(x) dx $ This is used to prove the basic version of markov inequality


How does automatic bouties work after deadline?

I read the guide for bounties and it is stated that after 24 hours of deadline to the bounty, if the answer is not selected, it will be awarded automatically. But there was no explanation of how it will be done.   I read other expired bounty questions but didn't find how it is taken care of?  So, how is it going to be given? Manual Check for best answer as per moderators or automatic assignment over most upvote, most recent?


Getting insufficient memory available in the buffer pool

I'm trying to trim out most data across a few dozen tables in a copy of a database.  This is an ad hoc need I'm performing on a local machine running SQL Server 2008R2 Standard SP1.  Tables are notable but not tremendously large, with the larger ones at tens of millions of records.    When running large DELETEs, I'm getting an "insufficient memory available in the buffer pool" error.  I can see physical memory continue growing without any indication of releasing memory.  I have set recovery to simple, and have tried chunking the deletes using rowcount to throttle.  At the end of each chunk I see no evidence of the memory being released.  Next attempt was to wrap in an explicit transaction, with no difference in the outcome.  I've also had no luck with   DBCC FREESYSTEMCACHE ('ALL')   Does anyone have suggestions around where else I might free up the memory mid process?  Because this is a rare, ad hoc need being done on a local machine, I'm okay with some choices that might otherwise be not a best practice for ongoing production scenarios.  I'd like to steer clear of rewriting all sorts of involved rewriting to a "perfect" solution, e.g. dropping constraints and indexes, then rebuilding after truncating and adding data.


What can be said about the integral part of $(a+\sqrt{b})^n $

If an irrational number of the form $a+\sqrt{b}$ is raised to the power $n$, with $a, b \in \mathbb{Z}$, and $n \in \mathbb{N}$, what can be said about the integral part of the resulting number? For instance, is it an even number? If yes what are the conditions on $n$? If odd, what are the conditions?  I think I should start from considering $(a+\sqrt{b})^n= p+q$ where p is an integer and q is a proper fraction. I don't know how to proceed further. Please help. And also suggest a website that can give more of such properties.


I just purchased a D5100 and I am  slowly learning the basics.  I mostly shoot landscape/scenery shots.    I have been trying to capture the full moon unsuccessfully.  It looks focused in the viewfinder and I've experimented with slow shutter speeds and large apertures but the resulting image always comes out as a bright glare.  I'm never able to see the details of the moon.  How can I improve my shots?


Mendeley Generated Bib Entry @article Not Citable

From  I get most of the following example references. With the third entry @article generated by Mendeley.  %File mb-bibtex.tex, then \jobname = mb-bibtex \RequirePackage{filecontents}        % loading package filecontents % writing file \jobname.bib, for example mb-bibtex.bib. \begin{filecontents*}{\jobname.bib} @Book{companion,   author    = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},   title     = {The LaTeX Companion},   edition   = {1},   publisher = {Addison-Wesley},   location  = {Reading, Mass.},   year       = {1994} } @Book{adams,   title     = {The Restaurant at the End of the Universe},   author    = {Douglas Adams},   series    = {The Hitchhiker's Guide to the Galaxy},   publisher = {Pan Macmillan},   year      = {1980} } @article{KESSLER2003d,     author = {KESSLER, BRETT},     doi = {10.1080/02702710390227228},     file = {:Z$\backslash$:/Mendeley Literature/KESSLER/Reading Psychology/KESSLER - 2003 - Is English Spelling Chaotic Misconceptions Concerning Its Irregularity.pdf:pdf},     issn = {0270-2711},     journal = {Reading Psychology},     number = {3-4},     pages = {267--289},     title = {{Is English Spelling Chaotic? Misconceptions Concerning Its Irregularity}},     url = {http://www.tandfonline.com/doi/abs/10.1080/02702710390227228},     volume = {24},     year = {2003} } \end{filecontents*}   \documentclass{article}  \usepackage[numbers]{natbib}         % bibliography style \usepackage[colorlinks]{hyperref}    % better urls in bibliography  \begin{document} Test of bibliography:  The \LaTeX{} companion~\cite{companion}, the funny book of Adams~\cite{adams}.   **The other citations work, but the Mendeley reference ~\cite{KESSLER2003d} does not. Perhaps it is a feature of the number of attributes generated?**  \bibliographystyle{plainnat}  % needs package natbib \bibliography{\jobname}       % uses \jobname.bib, according to \jobname.tex \end{document}   The first two show up as [2], the funny book of Adams [1] but the third shows up as [? ] at least on my system.  Thanks for any help you can provide.


If I do assign variable x = "189371971441827056" and then  I do,      parseInt(x)   189371971441827070   The value of parseInt(x) changes. I don't understand why?  Thanks in advance...!!


Is it possible to kill "yourself" without dying?

In the world you teleport to when you drink the X potion, is it possible to kill "yourself" without dying?  Put the answer under a spoiler.


Let $R$ be a ring with identity. If $I$ is a finitely generated ideal of R such that $I^2=I$, must $I$ be generated by an idempotent?   I've known that it holds for $R$ commutative. So I'm interesting with the case $R$ noncommutative. And by saying "$I$ be generated by an idempotent" I mean that the idempotent commutes with each element of $I$.


I run distributed computing projects, which typically want to use 100% of the CPU.  How do I limit the CPU usage in terms of temperature instead of percent usage?  Also, what is the maximum safe temperature to keep an Intel i5 running 24/7?  (With no CPU limit FahCore_a4 causes this machine to run at 82 degrees Celsius.)


Characterisation of $f$ knowing $|f_1(z)|+|f_2(z)|+...+|f_n(z)| = |f(z)|$

Let $\Omega \subset \Bbb C$ an open and connected subset. Let $f,f_i \in H(\Omega)$ for all $i \in  \{1,2,...,n\}$ For all $n \in \Bbb N$, characterise $f$ knowing that, $$|f_1(z)|+|f_2(z)|+...+|f_n(z)| = |f(z)|$$ for all $z \in \Bbb C$


How to see if a variable name has been defined in Javascript

In Javascript, I define global variables sld_label where label can be any string. These are initialised to objects that have a setval function. I need to check, within a function which is handed label in a string parameter called qq, whether sld_label has been defined. How do I do this without raising an error?  At the moment I have the following (which works but generates an error in Firebug) :-  function setclrques(qq,op) {   if (typeof(eval('sld_'+qq))=='object') eval('sld_'+qq+'.setval('+op+')'); }   Help!


Bash 4.2 on CentOS 6.5:  In my ~/.bash_profile I have a bunch of aliases, including:  alias grep='grep -n --color=always'   so that I can get color highlighting and print line numbers automatically when running grep. If I run the following, highlighting works as expected:  $ grep -Re 'regex_here' *.py   However, when I ran this recently:  $ find . -name '*.py' | xargs grep -E 'regex_here'   the results were not highlighted and line numbers weren't printed, forcing me to go back and explicitly add -n --color=always to the grep command.   Does xargs not read aliases in the environment? If not, is there a way to make it do that?


How to substitute two lines in same text files

I need to substitute backupconn1 with maniconn from connection text file, how can I make it specially from another script.  Below is connection.txt:  mainconn: 10.10.10.10 backupconn1:20.20.20.20 backupconn2:30.30.30.30


How to read letters such as $\mathbb A$, $\mathbb B$, etc., or $\mathfrak A$, $\mathfrak B$, etc.?

This is a soft question. We can read the letters $\bf A$, $\bf B$, etc. as bold A, bold B, etc. We can read the letters $\textit{A}$, $\textit{B}$, etc. as italic A, italic B, etc. We can read the letters $\mathcal A$, $\mathcal B$, etc. as calligraphic A, calligraphic B, etc. But how do we read letters such as $\mathbb A$, $\mathbb B$, etc., or $\mathfrak A$, $\mathfrak B$, etc.?


Shrinking file system taking a lot of time, is this normal?

I'm using GParted to shrink the partition on my 500 GB external hard drive to a 220 GB partition. It contains about 210 GB of data.   I'm shrinking it to convert FAT32 to EXT2. It has been almost an hour. My hard disk heats up so I have continuous ventilation to keep it cool.   Is this lengthy time taken by GParted normal? If not, then how do I safely disconnect it? I don't mind losing the data, but the hard disk is really important. Any suggestions? Also, will running the hard disk for such long hours be harmful?


How can I find the difference between a folder and a folder link in Ubuntu?

Earlier, I had created some links to another folder using the following command.  sudo ln -s path_name link_name    These links are looking similar to the folders. I am not able to differentiate between a folder and a link. Is there a way to find the difference between a folder and a link to another folder?


ASP.NET Web Site or ASP.NET Web Application?

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site.  What is the difference between ASP.NET Web Application and ASP.NET Web Site? Why would I choose one over other?  Is the answer different based on which version of Visual Studio I am using?


Add a custom body class to node edit/create page

In D8 how could I add a body class to a node create or edit page in a custom theme?  Am thinking there should be a way of doing this via the preprocess_html function in my theme file.  Please note that I'm trying to add a class to the body of a node create or edit page, not a normal node page. This is a very specific thing I'm trying to do which is not met by any previous answers.  I'm hoping that there is some variable within the preprocess_html function that can target these pages.


Find a length in a tetrahedron (Restated)

*For those of you who have seen me post this question, and especially if you have answered it, I apologize gravely for not stating all conditions clearly the first time around, I have flagged the original post for deletion.  The question involves a irregular tetrahedron, which appears as in the following image. I apologize for the poor quality and inconvenient rotation.    In this tetrahedron, the following variables are known:  α = angle ACB;   β = angle AOB;  AB, AO and BO  ...and the following are true:  AC=BC;   AO=BO;   OC is perpendicular to plane ABC  The question is: what is the length of OC in terms of the known variables?


"He alleges another £1m had gone on material purchases based on projections of Arcadia orders he was told were coming down the line."

He alleges another £1m had gone on material purchases based on projections of Arcadia orders he was told were coming down the line.  This sentence look like a simple sentence. But here uses, more than one finite verb without adding any linkers. How is this sentence made?


plural form or singular form after a subject clause

Which of the following is correct?  What matters are people. What matters is people. What matter are people.  Thank you.


What is the right approach to use AdSense with responsive web design?

Recently I was studying responsive design a lot and designed couple of sites. But I was wondering how would I use Google AdSense (which is pixel based) ads on my responsive design?  Very typical example is suppose I have a 728x90 ads on header. Or if I do a mobile first approach I would need different versions of ad sizes for different view posts but Google doesn't allow more than three ad unit per page (as far as I know).  So, Question: What is the right approach/best practice of using Google AdSense on a responsive site design?


Show decimal point digits on Dimensions tool

I'm trying to work with precise values in Blender and I found this weird thing where the Dimensions tool only shows the full decimal point value when selected.  Now I know I could change the unit scale on the scene properties, but what if I want to work in meters, but in a given object I want to be able to check dimensions more precisely (in millimeters for instance)     Why does it happen? Is there an option to change this?  Thanks.


Use is or are with the plural "statistics"?

I have the following sentence:     "Statistics is my passion and I am always eager to accept new   challenges"   I am not sure about the statistics and the is.  Is this correct? Because statistics is plural and so do I have to use are? Or should I use just      statistic is my passion   in this context, so singular version of statistics?


tmux: Cannot SSH from inside tmux, even though I have agent-forwarding (ssh -A) on

So I have keys to some servers stored locally on my MacBook, but I work from inside a Virtual Machine a considerable amount of time, so I SSH to the VM with ssh -A.  This allows me to SSH to servers from inside the VM.  I recently started using tmux to manage my terminal windows better, but I've discovered an odd problem.  While the initial window I open in tmux can use SSH, any additional opened windows cannot.  ssh-add shows that from inside this tmux window no connection can be opened to my SSH agent.  Any ideas how to make tmux play nicely with SSH agent-forwarding?


Unable to start XAMPP using sudo in Desktop Entry

I am using Ubuntu 18.04. I have installed XAMPP and created a .desktop file to run it.  [Desktop Entry] Type=Application Name=XAMPP Control Panel Version=7.3.0.0 Exec=sudo -i python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py Encoding=UTF-8 Terminal=false Comment=Start and Stop XAMPP Icon=/home/lee/.local/favicon.ico   But, for some reason it won't run. The "Exec" line runs fine on the CL. I have it set to execute. Any ideas?


Strapping yourself for grounding to do open case laptop work

I am going to be doing a complete disassemble of a laptop to move it into a new casing and I was worried about static electricity damaging any of the components.  I’ve read about grounding yourself and I will have an anti-static wrist strap and mat. However, I was confused on where to exactly connect them to when working on a laptop. For desktops, I read about connecting the straps to the casing of the desktop while it’s plugged in with the power off. I also read about some people advising to hook up to something like a radiator or water pipe or to touch them first, or to the screw in a three prong power outlet. However, I don’t have a radiator or water pipes nearby and the screw for my power outlets are painted.    Where would I connect my straps to when working on a laptop to ensure that I’m grounded? Does both me and the laptop have to be grounded when working on it? I thought I read something about how both you and the device have to be grounded, but I may have been mistaken or misunderstood.  Is there something I can just plug into the wall (like a lamp with a three prong connection) and connect the strap to a metal part of it?


What are Starkiller Base's capabilities?

Are there any technical specifications or the equivalent mentioned anywhere for the following?  With a single shot, how many "bolts" can it split up into? Does the number of bolts decrease individual power? Enough to reduce likelihood of successful planetary destruction?  How do the bolts travel to its target, does it go through hyperspace, how fast are the bolts and why are they visible in the sky?


Is there a bijective continuous function $f: \Bbb R \to \Bbb R$ whose inverse $f^{-1}$ is not continuous?

Looking at the definition of an homeomorphism, this question came to my mind.


I find double clicking and right clicking difficult. MacOS allows me to ctrl-click so I never have to right click. Is there a way to never have to double click? Like cmd-click, a gesture or a System Preferences setting?  Answers that work for both my Magic Mouse and my track pad will be upvoted more enthusiastically :-)


Passing Reference Data Type Arguments: Java

With reference to the Java tutorials at Oracle (), below is a copy of the part which confuses me totally. Can someone be kind enough to explain it in layman terms for me?  For example, consider a method in an arbitrary class that moves Circle objects:  public void moveCircle(Circle circle, int deltaX, int deltaY) {     // code to move origin of circle to x+deltaX, y+deltaY     circle.setX(circle.getX() + deltaX);     circle.setY(circle.getY() + deltaY);      // code to assign a new reference to circle     circle = new Circle(0, 0); }   Let the method be invoked with these arguments:  moveCircle(myCircle, 23, 56)   Inside the method, circle initially refers to myCircle. The method changes the x and y coordinates of the object that circle references (i.e., myCircle) by 23 and 56, respectively.  These changes will persist when the method returns. Then circle is assigned a reference to a new Circle object with x = y = 0. This reassignment has no permanence, however, because the reference was passed in by value and cannot change.  Within the method, the object pointed to by circle has changed, but, when the method returns, myCircle still references the same Circle object as before the method was called.


What is the difference between "grub" and "grub2" in Ubuntu 18.04?

I have been exploring this website for my queries and many times I find stuff mentioned as  update-grub2   and   update-grub   Surprisingly, many of the things to be updated for grub2, I update in grub and it works. Then what is the difference between them (in Ubuntu 18.04)?


Where is Stack Exchange/ Stack Overflow hosted now?  I found a few posts from a few years ago and am not sure if they are current.


Korean transit visa for Uzbekistan citizens

I am travelling to Japan from Uzbekistan through Incheon airport.    Do I need a Korean transit visa, if I only make transfer at Incheon and do not go outside of the airport?


Close and flag links do nothing on mobile site

This morning (it's about six AM here) I find that I can no longer submit close votes; the link just jumps to the beginning of the page.  I'm on iOS, using a third-party browser called Grazing, but a brief check with Mobile Safari shows the same problem there.   Here on Meta, where my score is much lower, I only get a "delete" link on my own question, and that works fine. (Oops :-))   Update: As per comments, this affects the "flag" link, too, which doesn't even scroll to the top of the page. Update 2: Latest comment suggests this affects Android, too. Update 3: This also affects desktop computers when viewing mobile (when you click "mobile" in the footer) Update 4:  mentions Windows 8, too; simply deleting platform-specific tags


If a box is carried 2 flights of stairs to an attic, is more work done than opposed to go straight up with a ladder?

The box has the same weight. I think that the stairs does more work because it travels a further distance as it is a less direct path opposed to going straight up.


Make MX records point to two servers (gmail and hostgator server)

My website is hosted on Hostgator and some of users use gmail mail service and some other use POP3 service, so I'm not sure if it's possible to make MX records to point to both these servers (gmail and POP3)? for example: making inf@example.com used by gmail while gm@example.com used by POP3


I am wondering if I can use extension method or other techniques to extend  static class like System.Net.Mime.MediaTypeNames.Image, it has fewer type than I need.


Any hint to prove   $$ \sqrt{x+y} \le \sqrt{x} + \sqrt{y}, \qquad \forall x,y \ge 0 $$


Should we write “allow” or ”allows” in “require that the class allow[s]”?

Can you explain to me whether I should or should not use ‑s at the end of the  verb allow in this sentence?     This function requires that the container class allow[s] random access   The sentence in the book I read wrote allow without ‑s. However, the container class is a third-person singular, so the ‑s must be required. Is that right?


How do I put text in the 'enumerate' list by the inserted text can not be numbered, and that the bulleted list is not interrupted?


How to relocate svn repository when using git-svn?

I am using git-svn to access a subversion repository that the sys admin has just relocated to another machine.  If I were using the normal subversion client, I would just do svn switch --relocate to fix the problem, but I can't figure out how to do the equivalent operation using git-svn.  Can this be done?    I have checked that svn switch --relocate does work when using the normal svn client (i.e., the UUID's are the same for the old and new repositories so the switch is possible).  The reason that I want to "switch" instead of just re-cloning the repository is that the repository is large and I have a lot of untracked files in the existing working copy that I want to hold onto.  Alternatively, if there is a way to "clone" over the existing working copy, keeping the untracked files, that would work also.


Do we have   $f:(E,\tau)\to(F,\sigma)$ continuous if and only if $\forall A\subset E, f(\overline{A})= \overline{f(A)}$  or just: $f:(E,\tau)\to(F,\sigma)$ continuous if and only if  $$\forall A\subset E, f(\overline{A})\subset \overline{f(A)}$$


My tex document has the following as the first two lines:  \documentclass[letterpaper,draft,12pt]{article}  \begin{document}   When I run: latex civil.tex I get the following output:    This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode (./civil.tex LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded.   ! LaTeX Error: Missing \begin{document}.   See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.1       ��\documentclass[letterpaper,draft,12pt]{article} ?   (/usr/share/texmf-texlive/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/size12.clo) Overfull \hbox (20.0pt too wide) in paragraph at lines 1--284 []| [1]) (./civil.aux) [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] (./civil.aux) ) Output written on civil.dvi (20 pages, 72800 bytes). Transcript written on civil.log.   I'm kind of new to this, I don't know what is wrong. The document generates but the first page is blank. The rest of the document generated seems right, except that it looks like it is using a book layout (on the letterpaper the text doesn't take up that much space).  Any suggestions?


Using Pigeonhole principle to prove a subset statement

I'm trying to solve the following question:  Prove: For every set of 2016 natural positive numbers there is a non-empty subset such that the sum of its elements is divisible by 2016.  It feels to me that this statement is valid for every natural number (other than 2016) and could be proven by the Pigeonhole Principle. I've tried to scale down the problem, but no luck.  Any suggestions?


I installed Ubuntu before when I was using Windows 8.1. Now I have installed windows 10 after a removing ubuntu. I did a clean install of windows but still have grub in my bios. When i boot into it it just opens grub like a terminal.What should I do to remove the grub from my boot loader?


Should I be buying workstations and servers from Dell/HP or build them myself? What exactly are we paying these companies extra for?


Allow page break for many aligned equations (ConTeXt)

When there are many aligned equations so that they cannot fit the rest of the current page, page break is not allowed, and they always start at a new page, giving a lot of blank lines. How to allow the page break?  I found  in the mailing list, but the question was not answered, and it is old.  \starttext  Is it possible to let aligned equations break, so that the following equations do not start at new pages? \placeformula \startformula \startalign    \dorecurse{50}    {\NC E =\NC m c^2 \NR} \stopalign \stopformula  \stoptext


Use arcpy.mapping to list broken data layers?

I want to list all the broken links in all mxds in a server drive. But whenever I try I get an error come up. Can someone use a specific example, say the drive is D drive, how would I put it into ESRIs script here:  import arcpy, os path = r"C:\Project" for fileName in os.listdir(path): fullPath = os.path.join(path, fileName) if os.path.isfile(fullPath):     basename, extension = os.path.splitext(fullPath)     if extension == ".mxd":         mxd = arcpy.mapping.MapDocument(fullPath)         print "MXD: " + fileName         brknList = arcpy.mapping.ListBrokenDataSources(mxd)         for brknItem in brknList:             print "\t" + brknItem.name del mxd   Also I'm not used to not having pythonwin, does anyone know where to d/l it? I googled it but it kept telling me to install it from the ArcMap cd (I'm just using a work computer).


Newly added button after ajax request doesn't run event that he should

I have jQuery even on button click:  $('button.btn').on('click', function(form)   Sample Exising button after page load:  <button id="5" class="yellow-button btn">Odpublicznij</button>  Works perfectly to all buttons with class btn  But then onclick after ajax request it adds new button to html  content += '<button id="' + comments[i].id + '" class="green-button btn">Upublicznij</button>';  It adds new button like:  <button id="11" class="yellow-button btn">Odpublicznij</button>  And this new button doesn't run this even $('button.btn').on('click', function(form).  And I need it to have this event, not to just be here as a button that doesn't do anything


Error: Extra }, or forgotten \right in split

Can someone tell me what's wrong with this? because i can't figure out where the missing \right( is.  \begin{equation}  \begin{split} Μ=&-\pi \rho \frac{c^{2}}{4}    \left[c\left(\frac{α}{c}-\frac{1}{2}\right)\ddot{h}+Uc\left(\frac{3}{4}-     \frac{α}{c}\right)\dot{\alpha} +\frac{c^{2}}{4}\left(\frac{9}{8}+      \frac{4α^{2}}{c^{2}}-\frac{4α}{c}\right)\ddot{\alpha} \\  &-\left(\frac{4α}{c}-1\right)U C(k) \left(-\dot{h} +U\alpha + c \left(\frac{3}{4}-\frac{α}{c}\right)\dot{\alpha}\right)\right]  \end{split} \end{equation}


How to retrieve Image from a link inside a data extension field in an email?

I have a data extension which has field names "links" and "Interest". Filed Links  contains HTML links to certain images which are hosted on our internal server.  I would like to create an email which will show the image for subscriber with interest A and show another image for subscriber with interest B.  Please let me know how can I achieve this (to show images in an email from data extension  links )


What is the point of Sauron making the One Ring?

Why would Sauron make himself a ring that he invested most of his power in? Wouldn't it be better to keep the power in his physical form and not risk leaving his power in a physical form that could be stolen (which did happen when Isildur took it). Because of its being in the form of a ring, its power could be abused by someone else to attack him.


Combinatorics question: maximal number of subdivisions

There is a company with $n$ workers. The company is making subdivisions, and distributes the workers among those subdivisions. Workers can work in more than one subdivision. In each subdivision, there must be an odd number of workers. The intersection of workers from two subdivisions must be even, and it can be 0 (so there can be disjoint subdivisions). What's the maximal number of subdivisions possible?  My original answer was $n$ subdivisions, each worker in a subdivision of his/her own. I'm not sure if that's correct anymore.  Thanks in advance!


Spacing of relation and operation symbols with propositions

LaTeX follows typographic standards and does an elegant job of correctly spacing relation symbols like "=" or "∈" and operation symbols like "+" or "∧". For example, in  $a + b  =  x + y$  LaTeX adds more space around "=" than around "+", so that the expression is correctly interpreted as "(a+b)=(x+y)" and not as "a+(b=x)+y" – which is meaningless. See § 3.1 of Downes's .  Consider, though, relations and operations between propositions that involve equalities. For example, we want to say that the equality of a and b implies the equality of x and y. Writing directly   $a  =  b \Rightarrow x  =  y$  or   $a  =  b \mathop{\Rightarrow} x  =  y$  would yield the wrong spacing, suggesting "a=(b⇒x)=y". A way to fix this could be by somehow adding quotation marks around the propositions, to obtain something like  "a = b" ⇒ "x = y"  but this expression looks cluttered. Of course one can also add/remove spacing by hand – but how much?  An even more complex situation appears with probability formulae, for example if we want to say that the equality of a and b is as likely as that of x and y, or consider the sum of the two:  $P(a = b)  =  P(x = y)$  $P(a = b)  +  P(x = y)$  My question is twofold:  – What are the typesetting rules in cases like these?  – How do LaTeX users (who care about correct spacing) approach this problem?  I'd be happy to know about consistent and elegant solutions.  Cheers!


Determining distance between two point locations specified in degrees, minutes and decimal seconds?

Without using GIS software, how can I determine how far it is from 20°01'12.07" N -75°47'53.57" W to 20°01'15.28" N -75°47'46.02" W, which are two point locations (historical battles) specified in degrees, minutes and decimal seconds?    Point A: 20:01:12.07N; 75:47:53.57W Point B: 20:01:15.28N; 75:47:46.02W


What is the most efficient way to gain fame?

With all the bonuses that Realm of the Mad God offers, in what order should I gain each achievement?  What is the most efficient way to gain the most fame in a lifetime?


How to create a Wi-Fi Hotspot (in Access Point mode)?

How to setup an Access Point (AP) mode Wi-Fi Hotspot?  Point to be noted: Wireless access points aren't the same as ad hoc networks. They differ significantly. In short, ad hoc networks aren't supported on newer devices and most Android, Windows Phone and Blackberry devices (and maybe iOS devices too), whereas AP mode Wi-Fi hotspots are. To get an idea about AP mode hotspots, ad hoc networks and their difference, refer to .


Question about translating English to first order logic?

Which of the following are possible (semantically and syntactically correct) first-order-logic translation of "Salma loves any class which is harder than every Algorithms class". Is the following translation correct ? and Why ? $\forall x \forall y[[Class(x) \land AlClass(y) \land Harder(x,y)] \to Loves(Salma,x)]$ My prof considered it as a wrong translation.


If $A \ne \varnothing$, then $\varnothing^A=\varnothing$

Prove that if $A\ne\varnothing$, then $\varnothing^A=\varnothing$. Here, $\varnothing^A=\{f\in \mathcal P(A\times \varnothing): f:A \to \varnothing\}$ is the set of functions from $A$ to $\varnothing$. What if $A = \varnothing$?  Proof: Assume $f \in \varnothing^A$ Then $f \subseteq A \times \varnothing = \varnothing$ Thus $f = \varnothing$ Now we are trying to show that $\varnothing \in \varnothing^A$ $\varnothing \subseteq A \times \varnothing$. Thus $\varnothing \in \mathcal P(A \times \varnothing)$. and $\operatorname{dom}(\varnothing)=\varnothing=A\times \varnothing$ And $\varnothing$ is a function, since if not then there exist $x,y,z$ such that $(x,y), (x,z)\in \varnothing$ and $y\ne z$. But this contradicts that $\varnothing$ has no elements. Thus $\varnothing$ is a function.  $\varnothing^\varnothing=\{\varnothing\}$ Am I doing it right?


Why does the definition of the Euler's number not violate the rule against division by zero?

e= appears to be defined as the sum of the series 1/n! as n goes from zero to infinity.  But this implies that the first term is 1/0! which appears to violate the rule against division by zero


I am conducting a correlation study and have developed a logit model. I would like some help interpreting the interaction variable's coefficient.  The coefficient of the interaction term smoking*female, where female =1, is 0.16   How can I interpret this?


Several programs can't access files on NTFS volume (VLC, Discord)

I recently set up a new dual-boot system with Ubuntu and Windows 10. The computer has an internal 256gb SSD, which contains the operating system partitions, and a 2tb HDD, formatted NTFS, which contains files that are shared between the two systems. The NTFS volume is mounted in fstab as /DATA/, and this folder appears in the Ubuntu file explorer:      Text and image files on the volume can be edited without issue, and some programs can access it just fine -- for example, Firefox will save files to /home/[user]/Download, which is a symlink to /DATA/Downloads.  I have several video files of different types on this volume, and none of them are able to play with VLC, nor are they able to play with the pre-installed Videos application. This error message appears when attempting to open the video files in VLC:    I tried to find the log file, but despite turning on the log-to-file option (With debug verbosity) in preferences and supplying a non-read-only path for the file, no log file appeared.   If I move the video files out of /DATA/ and onto the ext4 volume, they play without issue.  It may also be worth noting that video files on the Windows system partition, which is also NTFS but is NOT mounted in fstab and is accessed through "Other Locations," play without issue.  Upon further investigation, multiple applications that have the option to open files using a "Browse" feature are unable to access the /DATA/ folder. Here is a screenshot of the file explorer interface when attempting to open a video file through an already-open VLC window:    As you can see, /DATA/ is absent. This screenshot is of the file browser in Discord, which is also unable to access the /DATA/ folder:    The drag-and-drop functionality in Discord also does not work.  The entry for this drive in /etc/fstab is the following:  UUID=[redacted] /DATA ntfs defaults,uid=1000,gid=1000 0 0   I also tried using this alternative line, following an online tutorial, but it didn't seem to change anything.  UUID=[redacted] /DATA ntfs-3g defaults,nls=utf8,uid=1000,gid=1000,umask=022 0 0   Thanks in advance for any help! I'd like to use Ubuntu more, but this pesky issue is unfortunately causing me to stay on the Windows side of my machine more than I'd like.  EDIT: It has been suggested that this issue is a duplicate of an issue relating to snaps accessing removable media. The fix for this other issue is changing a setting within Ubuntu Software; however, I found this setting to be set to the "correct" value by default. Curiously, even with the setting enabled, the snap version of VLC is still unable to access actual removable media (in addition to the non-removable drive mounted to /DATA/), so it appears that this option does not function properly for VLC at all. The apt-get version, however, can access everything.


Does the Big Bang have the absolute lowest amount of entropy?

We know that the event of the Big Bang has low entropy (and we don't know why), but... do we know for certain (or through convincing mathematical evidence) that the event of the Big Bang indeed has the lowest amount of entropy possible? To me, it seems that if that's true, then there is only one way the Big Bang could be ordered, and thus, only one version of the Big Bang could occur.


Is there a way to conveniently define a C-like structure in Python? I'm tired of writing stuff like:  class MyStruct():     def __init__(self, field1, field2, field3):         self.field1 = field1         self.field2 = field2         self.field3 = field3


As a standard for my file/dir naming I use something like putting date and tags string into the file name separated by underscore, eg:  2015_03_10_usa_nyc_vacations_album_pictures   For a long time I have used software's like Recoll, but usually it gives much more records than I need. Since my naming is pretty consistent I think there should be a way to scriptsize it using find command.  Although I know how to perform find searches for single conditions I am not sure how to  find multiple criteria/conditions. That is, how do I find all the files whose names satisfy certain conditions. Let consider the following examples that contain    {2015} AND {  {album} OR {picture}  }  {album} AND {vacations} AND NOT {2015}


None of the threads in stack exchange related to this error helped me to resolve this issue. Hence I am posting it.  I have installed postgres 9.3 and PostGIS 2.1  Now I have done the following  su postgres createuser -U postgres gis createdb -U postgres -E UTF8 -O gis gis createlang -U postgres plpgsql gis  psql -U postgres -d gis -f /usr/pgsql-9.3/share/contrib/postgis-2.1/postgis.sql psql -U postgres -d gis -f /usr/pgsql-9.3/share/contrib/postgis-2.1/spatial_ref_sys.sql   Now when I try to create extension for postgis with the following   psql --username=postgres --dbname=gis -c "CREATE EXTENSION postgis;"   I get this:  ERROR:  PostGIS is already installed in schema 'public', uninstall it first   gis=# \dt               List of relations  Schema |      Name       | Type  |  Owner --------+-----------------+-------+----------  public | spatial_ref_sys | table | postgres (1 row)  gis=#   This is the table  I tried altering the db with search path as well but no luck  ALTER DATABASE gis SET search_path = postgis;  This is the list of my dbs  gis=# \l                                   List of databases    Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges -----------+----------+----------+-------------+-------------+-----------------------  gis       | gis      | UTF8     | en_US.UTF-8 | en_US.UTF-8 |  postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |  template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +            |          |          |             |             | postgres=CTc/postgres  template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +            |          |          |             |             | postgres=CTc/postgres (4 rows)  gis=#


How to unallocate a partition in Ubuntu using GPARTED?

I want to unallocate a partition so that I can merge it with another partition using GParted. How can I achieve this?


Hello I am using MikTex in TexStudios and I have this document:  \documentclass[paper=letter,fontsize=11pt]{scrartcl} % KOMA-article class  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage[protrusion=true,expansion=true]{microtype} \usepackage{amsmath,amsfonts,amsthm}     % Math packages \usepackage{graphicx}                    % Enable pdflatex \usepackage[svgnames]{xcolor}            % Colors by their 'svgnames' \usepackage{geometry} \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{float} \usepackage{etaremune} \usepackage{wrapfig}  \frenchspacing              % Better looking spacings after periods \pagestyle{empty}           % No pagenumbers/headers/footers  %\addtolength{\voffset}{-40pt} %\addtolength{\textheight}{20pt}  \setlength\topmargin{0pt} \addtolength\topmargin{-\headheight} \addtolength\topmargin{-\headsep} \setlength\oddsidemargin{0pt} \setlength\textwidth{\paperwidth} \addtolength\textwidth{-2in} \setlength\textheight{\paperheight} %\addtolength\textheight{-3in} \addtolength\textheight{-2in} \usepackage{layout} \usepackage{multicol}  %%% Custom sectioning}{sectsty package) %%% ------------------------------------------------------------ \usepackage{sectsty}  \sectionfont{%                      % Change font of \section command     \usefont{OT1}{phv}{b}{n}%       % bch-b-n: CharterBT-Bold font     \sectionrule{0pt}{0pt}{-5pt}{3pt}}  %%% Macros %%% ------------------------------------------------------------ \newlength{\spacebox} \settowidth{\spacebox}{8888888888}          % Box to align text \newcommand{\sepspace}{\vspace*{1em}}       % Vertical space macro  \newcommand{\NewPart}[2]{\section*{\uppercase{#1} #2}}    %%% Begin Document %%% ------------------------------------------------------------ \begin{document}     {\Huge\usefont{OT1}{phv}{b}{n}{Bruce Dickinson}}\\     Address     \href{mailto:mymail@somewhere.com}{mymail@somewhere.com}\\     07575349875437     \end{document}   and I don't understand why there is space left before Bruce, does anyone know why this is happening?  The result is in the picture:


I use French notation for intervals, like ]x,y[. But the brackets behave funny --- they try to surround wrong thing, like   ] x,y [∪] a,b [   Writing \left]x,y\right[\cup\left]a,b\right[ solves the problem in most cases. But I want these brackets to have the same size, but they become larger on something like ]a,B^c[.  P.S. My question is closely related  to , but not the same.


PCA Correlation or Covariance? A follow-up question

I've already read the answers to this , but they were written so long ago that I wonder if some progress has been made on the subject since then.  I would like to know if there's some more objective way to choose the correlation or covariance matrix to do PCA than «careful thought and some experience» or «similar scales»?  Any help would be appreciated.  Edit: I asked this because there could be maybe some measure, and a respective scale of interpretation for when to use a covariance or correlation matrix. In statistics, we can observe some examples of this like for bayes factors, p-values, or at least an interpretative comparison like what happens with AIC or BIC, albeit these measures are for different objectives than the one I'm searching.


SciFi book in English translated from French circa 1970-1980

Can anyone help, please? in the 80's I read a SciFi in English, translated from French about a 'current' discovery of a 'perfect couple' in a spherical ship found buried in ice. The girl was revived and talked of an earlier Earth where man lived with nature and took 'energy' pills for food. Eventually the girl takes poison and is hurriedly returned to the ship and 'refrozen.' The ship is abandoned with the hope that some future generation can save them. It was a well-written full-length book that I would love to re-discover. Thank you in anticipation that one of you special people know the book.


Why did the late answer queue spike on Sep 29, 2015?

The late answer queue just went to 1.2k on Mathematics. On other sites the same happened (EL&U 850, SO 1.5k, TeX-LaTeX 500).   Why did this happen?  According to a comment on , there are no old late answers left over since begin 2013:     No, the "minimum creation date" is being automatically gradually shifted back in time. In ~2 months, the Late Answers queue will cover all of Stack Overflow (first post on 2008-07-31!). –  Emmett Dec 26 '12 at 23:30   Did the definition of late answer somehow change?


I bought a soldering station a while back and was practicing on a kit and had the website on assembly up while I was soldering using 60/40 tin-lead solder. Should I worry about splatter on the surfaces causing contamination? Or from using my keyboard/mouse while I was soldering? I occasionally snack in there and was wondering if I was slowly poisoning myself.  Edit: is there any way to clean it the contamination from the room?  Edit 2: Possible duplicate doesn't quite answer my concern on surface contamination and transfer of contamination I feel. For example when I touched a door knob after soldering but before washing my hands, would I have transferred any amount of lead contamination to the door knob in which case I could be unknowingly ingesting lead by touching the door knob and eating/drinking in another room?  Edit 3: question was not properly answered I feel, does lead transfer to surfaces after my hand touched the solder because if so wouldn't door knobs and light switches in my house be contaminated


Is there any way to thank editors of my questions?

I recently asked a handful of questions. Since my native language isn't English some of my text isn't on par with what some users are used to reading. While I always try to learn from other users' edits I never found an option/way to thank them. Even though this might seem irrelevant I somehow feel the need to do so. Is there any option to do so?


Determine the convergence of the recursion $x_n=\sin(x_{n-1})$

I want to determine the convergence of $$\begin{cases}x_0=1 &  \\ x_n=\sin(x_{n-1})  \end{cases}$$ I can see that $x_n=\sin(x_{n-1}) \geq -1$. Which means the sequence is bounded. However, it isn't strictly decreasing in $[-1,1]$, so I can't prove that it is convergent. Is there a way to get a better bound and show that it goes to $0$?


DXB (Dubai International Airport) Shuttle between Terminal 1 and Terminal 2

I am arriving on Terminal 1 at DXB. From where exactly I can get shuttle to Terminal 2?


I had a problem creating a new environment that would let me put a lstlisting inside a minipage. I could create a new environment that sets up the minipage, then in the document put a lstlisting inside that minipage, but I couldn't create environment that did both together. \documentclass{article}     \usepackage{listings}     \lstset{language=SQL,keywordstyle=\underbar,numbers=none} \newenvironment{egdlisting}%   {\hfill\begin{minipage}{\dimexpr\textwidth-2em}}%   {\end{minipage}}  \begin{document}  \begin{egdlisting} \begin{lstlisting} select *   from foo  where bar = 4; \end{lstlisting} \end{egdlisting}  \end{document}  Works. The obvious next step, putting the lstlisting inside the environment, does not. \documentclass{article} \usepackage{listings} \lstset{language=SQL,keywordstyle=\underbar,numbers=none} \newenvironment{egdlisting}%   {\hfill\begin{minipage}{\dimexpr\textwidth-2em}\begin{lstlisting}}%   {\end{lstlisting}\end{minipage}}  \begin{document}  \begin{egdlisting} select *   from foo  where bar = 4; \end{egdlisting}  \end{document}  The error message (shown for recognition purposes) is below. $ lualatex tex/sm.tex >& build.log  gave me This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/Cygwin)  restricted system commands enabled. (./tex/sm.tex LaTeX2e <2020-02-02> patch level 5  L3 programming layer <2020-03-06> (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size10.clo)) (/usr/share/texmf-dist/tex/latex/listings/listings.sty (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texmf-dist/tex/latex/listings/lstmisc.sty) (/usr/share/texmf-dist/tex/latex/listings/listings.cfg)) (/usr/share/texmf-dist/tex/latex/listings/lstlang1.sty) (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def) (./WORK/sm/sm.aux) (/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)) *  Update Section 4.5 of the listings package documentation, specifically \lstnewenvironment, solves this... but you have to use a different syntax for the minipage. \documentclass{article} \usepackage{listings} \usepackage{lipsum} % provide text around listings, to show indent \lstset{numbers=none} \lstnewenvironment{newlisting}{\hfill\minipage{\dimexpr\textwidth-1cm}}{\endminipage}  \begin{document} \lipsum[1]  \begin{newlisting} select *   from foo  where bar = 4; \end{newlisting}  \lstset{numbers=left}  \begin{newlisting} select *   from foo  where bar = 4; \end{newlisting}  \lipsum[2] \end{document}  gives me the output I'm looking for. The critical bit, besides using the correct command (\lstnewenvironment) is to not use \begin{minipage}{width} ... \end{minipage}, but to use \minipage{width} ... \endminipage.


Calling a base class constructor in derived class after some code block in derived constructor

public class bar {    public bar(list<int> id, String x, int size, byte[] bytes)    {      ...    } }  public class Foo: Bar {     public Foo(list<int> id, String x, someEnumType y):      base(id, x, sizeof(someEnumType), y)     {         //some functionality     } }   As you see in the above code I need to convert someEnumType to byte array type before calling base class constructor. Is there a way to do it? Something like:  public class Foo: Bar {     public Foo(list<int> id, String x, someEnumType y)     {         //someEnumType to byte array         base(...)      } }


If a,b,c are sides of a triangle, prove: $ \sqrt{a+b-c} + \sqrt{b+c-a} + \sqrt{c+a-b} \le \sqrt{a} + \sqrt{b} + \sqrt{c} $

I did substitute $a=x+y, b=x+z, c=y+z$ and I arrived at $\sqrt{2x} + \sqrt{2y} + \sqrt{2z} \le \sqrt{x+y} + \sqrt{x+z} + \sqrt{y+z}$. However, after this, I tried various methods like AM-GM and Cauchy-Schwarz inequality for hours and I still can't prove it. Can someone help please? Thanks.


I was reading Wikipedia, and it was given that "all primes are of the form 6k ± 1"  (other than 2 and 3), where k = 1,2,3,4,...  Is this statement correct? If yes, can we use this to test if a given number is a prime number? For instance, we can say that 41 is a prime number, since there exists an integer K (K >= 1), such that 6k - 1 = 41 ==> k = 7.  I am confused why this test cannot be used to test if a number is prime?  Thanks, Sekhar


Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7.   What is a simple solution? What is an effective solution to reduce memory usage or run on a slower CPU?


Horned Mohawk looking insect. What is it?

Any ideas? I didn't know any other way to explain it.  I live in Indiana, USA if that helps.   Someone said it might be a "stink bug" but I'm not sure and not willing to find out!


If $f$ is integrable in $[a-1,b+1]$, then prove that $\lim \limits_{h\to 0} \ \int_{a}^{b}|f(x+h)-f(x)| ~ dx=0$

I'd really appreciate your help with the following problem:      Let $f$ be a integrable  function in $[a-1,b+1]$. I need to prove that:   $$\lim_{h\to 0} \int_{a}^{b} |f(x+h)-f(x)|dx=0 .$$   Basically I need to show that $\forall  \varepsilon  \exists  \delta .|h|< \delta \to \left|\int_{a}^{b}|f(x+h)-f(x)|dx\right| < \varepsilon $.  In addition, I know that because of $f$ being integrable I can write that $\sum \limits_{i=0}^{n-1}(\sup f-\inf f) \Lambda x_{i} < \varepsilon$ for a division of $[a,b]$.  I tried to define $g=|f(x+h)-f(x)|$ and work with that, but it didn't lead me to any smart conclusion. Also I tried to put the limit inside of the integral and to use the derivative, but I'm not sure when I can do that.  Thank you for the help!


WordPress site displaying 404 for any page apart from index

My WordPress site is returning a 404 not found error on any page apart from the homepage and /wp-admin. I have no absolutely no idea why this is. My Permalinks are set up to use /year/month/date/post-title/ (e.g www.domain.com/2014/04/28/sample-post/). When I change the permalinks to the default (?p=123) it works fine, but not on any of the other ones.  Here is the contents of the .htaccess file:  <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>   I have also installed the plugin 'Debug This', which provides details on the Rewrite Rules. However because it's a pretty big list and unformatted it would look quite bad, I've put it in a jsfiddle, here:   I think that's all the details I have, I've disabled all plugins and stuff like that. Thanks for any help.  EDIT: ok so I've since discovered a bit more info. I also forgot to say that the host for the site is Heroku (I'm building for a client and for some reason he's insisting I use Heroku, which is bad choice for WP I know but I can't persuade him otherwise so that's life). I recently installed , which also installed Nginx. So I'm assuming that's whats broken my Permalinks. I then found , which seems to be about the issue I'm having, which links to this page on the Nginx Documentation. Problem is I've never used Nginx before so I don't know where to put all the code it's got in the first section entitled Abridged Basic Setup. Can someone help me out? Thank you :)


please help me identify this bike, it is a haro bmx frame and i have the serial number

The serial number on my haro frame is RVW1K00270. it is a bmx frame, i wanted to try find out which model and year is it please?


alignment issues with systems of eqns and list

I can't find the way to align equations this way  And I can't align the list the way below  For the list I tried this   \begin{flalign*}     %\begin{equation*}     %\begin{aligned}     &x \tab &- \text{координата вдоль провода,}\\     &i \tab &- \text{время,}\\     &i(x, t) &- \text{распределение тока вдоль провода,}\\     &v(x, t) &- \text{распределение потенциала вдоль провода,}\\     &C \tab &- \text{ёмкость провода на единицу длины,}\\     &G \tab &- \text{утечка на единицу длины,}\\     &R \tab &- \text{сопротивление на единицу длины,}\\     &L \tab &- \text{индуктивность провода на единицу длины}.     %\end{aligned}     %\end{equation*}     \end{flalign*}   but get this Can anyone help me with pointing to some references or help to resolve it?


How to undelete photos in a Samsung galaxy S4 active? I have deleted a folder on the phone with pictures in it and I would really like get them back. Not on SD card but in the phones memory.


Change of variable problems in probability

If $X$ is a continuous random variable with positive values,find it's Cumulative distribution function (CDF) and it's probability density function (PDF) for $$Y = \sqrt{X}$$  This was a detable question on another topic so I made it a seperate one.  Can someone explain how do we solve this problem to it's end? (putting some theory/ explanations in between would be appreciated. My goal is to understand the concepts that are behind this and be prepared for problems of equal difficulty). Thank you.       Added by A.F. This was originally the "third pattern" of .  Possible solutions may exist on the linked question.


<?php     $data = array("appVersion" => "2.9.8",'channel' => array("ChannelName" => "dMe", "Password" => "ig3yh") , "dialNumber" => "2815874070", "isAndroid" => "true", "password" => "2815874070");    $data_string = json_encode($data);    $url="https://services.orange.eg/SignIn.svc/SignInUser";      $ch = curl_init();       curl_setopt($ch,CURLOPT_URL,$url);     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);     curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);     curl_setopt($ch, CURLOPT_HEADER, false);      curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);     curl_setopt($ch, CURLOPT_POST, count ($data_string));     curl_setopt($ch, CURLOPT_POSTFIELDS, ($data_string));      curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                             'Content-type: application/json',                                             'Accept: application/json',                                             'User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; Redmi Note 6 Pro MIUI/V10.3.6.0.PEKMIXM)',                                             'Host: services.orange.eg',                                             'Accept-Encoding: gzip'                                              ));      $result=curl_exec($ch);     curl_close($ch);     var_dump(json_decode($result, true)); ?>   it should gives {'SignInUserResult':{'ErrorCode':2,'ErrorDescription':'invalid channel info','UserData':null}}


Python program to calculate harmonic series

Does anyone know how to write a program in Python that will calculate the addition of the harmonic series. i.e. 1 + 1/2 +1/3 +1/4...


Do any wizards carry a backup wand in case it gets disarmed or they want that wand's special benefits?

Every wizard has a wand, but do any carry a backup in case the first one gets broken or disarmed? I could see that being handy for the element of surprise.  Auror: Expelliarmus! Hah! Now you are harmless without your wand. Looks like it'll be a one-way ticket to Azkaban for y– Death Eater: Avada Kedavra! Whew, that was close! Good thing there's no rule that says I can't have two wands!  I also imagine that a wizard might want multiple wands to use their specialities, like owning both an aspen wand for charms and an ebony wand for transfiguration, since each excel in those types of magic. Do any wizards carry around a backup wand like this? Let's assume that they aren't just temporarily holding on to their enemy's wands or using them for subterfuge, they own the wands and intend to use they both indefinitely. And the Elder Wand doesn't count either.


Are (computer science) workshops less prestigious than conferences in general?

I am a PhD student in computer science and I have noticed that my advisor tries to avoid having me submit to workshops in my field when I bring workshops to his attention that we could submit to. He, instead, prefers to publish in a conference, journal, or IEEE/ACM magazine instead. I almost feel like he treats workshops as not prestigious enough.  The workshops I bring to his attention are all good workshops in my opinion. These workshops are IEEE and ACM workshops demanding original research papers that are about 6 pages long (conference papers in my field are usually 8 to 10 pages long). The program committees for these workshop are known people in my field and previous year's workshop papers have a 5 or 6 citations (for example), so they do get attention (but I don't know how this compares to the attention that this same paper could have gotten if it was published at a conference).  My questions are: are workshops viewed as less prestigious in general than conferences? Is there an unspoken understanding that only new, inexperienced students present their papers at workshops? Would having workshop papers in my resume somehow lower the credibility of my work?  (Apologies if the questions sound naive. I have always been unable to understand the 'prestige' of a 'co-located' workshop when juxtaposed against the conference.)


Why do the $n \times n$ non-singular matrices form an "open" set?

Why is the set of $n\times n$ real, non-singular matrices an  open subset of the set of all $n\times n$ real matrices? I don't quite understand what "open" means in this context.  Thank you.


I have recently started using a new device and I am discovering   Just how immensely helpful the various browser caches are on my earlier device for locating duplicates  just how erm, poor the Closing->Duplicate search facility is.    For example On Server Fault we have a close target for licensing questions, it's title is 'Can You help me with my software licensing issue?', there are lots of questions closed as a duplicate of it.    When I enter the full title of the question into the search box it appears 13th on the list. Most of the other questions presented as possible duplicates are in fact already closed duplicates of the one I want to find. This is really not helpful.  It seems to me that improving the sorting such that    If there is a exact match for a title then this Q&A should be presented first.   Questions that are already closed duplicates should be presented after open questions (or not at all).   would be very helpful.


Getting actual value from PHP SimpleXML node

$value = $simpleXmlDoc->SomeNode->InnerNode;   actually assigns a simplexml object to $value instead of the actual value of InnerNode.  If I do:  $value = $simpleXmlDoc->SomeNode->InnerNode . "\n";   I get the value. Anyway of getting the actual value without the clumsy looking . "\n"?


Difference between the following two ways of initializing a matrix in Python

Say I have a 2D array of 4 rows and 5 cols. I want to assign only the  first row elements with their respective indices to get the below 2D array.  0 1 2 3 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0    I first tried this:   array1 = [[0]*cols]*rows print(array1)  for i in range(cols):     array1[0][i] = i print(array1)   Result:  [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] [[0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]]   Which is not what I intended to do.  Every row is being updated instead of just the first one.  But the following code gives the result I'm looking for.  array2 = [[0 for x in range(cols)] for y in range(rows)] print(array2) for i in range(cols):     array2[0][i] = i print(array2)   Result :  [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]  [[0, 1, 2, 3, 4], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]   The only difference between both the snippets is the way array1 and array2 have been initialized. I'm curious to know why both of them work differently. Would appreciate any help.   -Thank You


Is chat only in Meta, or are there chat spaces particular to each site?

I want to chat with a user in a beta site () where I have over 100 reputation at the moment.  I recently lost some reputation by starting a discussion in the form of a question which was downvoted 3x; I want to avoid that in the future, but unfortunately now that I have identified a particular  with whom I want to chat, I cannot figure out how to even begin communicating with that person.


Could close get requests removed if user making request does not read subsequent edits?

I have a very important question that could use a helpful answer.  It was put on hold (I see and agree with the reasoning for the hold), but have long since fixed the issues and complaints raised with my question and would really like it to be opened for a real response.  I feel that unresponsible users who make issue close requests but do not check up on edits made to the original question should have their requests withdrawn after an arbitrary amount of time.  If this is already a feature, please excuse my ignorance, but I did read through a great deal of rules when registering for S.O. and cannot recall such a rule.  Why?  If the question truly is horse excrement, then the question will likely get enough close requests to be killed anyways, even if the requests were automatically removed after a set number of hours.  If the aforementioned feature truly doesn't exist, then why the heck not?  ( that made me feel this way)


22/GB written on disk / day without much activity

By the end of 2017 I purchased a new computer with a Samsung 960 Pro 512GB ssd. It runs Windows 10 Pro. about 14 months have passed and Samsung magician reports 9.3TB written on the SSD. This sounds terribly too much for me as it translates to ~22GB day (9300 GB/420 days)  The computer is powered on ~8 hours day and most of the time (96%+) has 5 firefox windows (instances) open. I have never downloaded any movies or torrents. I have routinely (less than 30 times in total) used VS 2017 and ~10 times Android Studio.  No antivirus is running - except microsoft's own windows defender.   Now, I think that 22GB written per day is way too much for such a use. Does someone have a similar experience? Does this sound problematic to you and if so, how can I pinpoint the problem ?  I am thinking that most of the data gets written to disk by Firefox (those 5 instances are on pages with rapidly changing/updating text content and some charts - also frequently updating). Task Manager on the Details Tab reports many GB of I/O bytes written for an uptime of ~18,5 days, as you can see in the screenshot.  Or could it be that windows defender also does write a lot of stuff to disk (though it theoretically it should mostly read) ?    If the culprit is firefox, is it normal? Can I somehow make firefox write less bytes to the disk ?  Thank you in advance


Why Did Dumbledore Let Harry Give the Remains of the Diary Horcrux to Dobby?

J.K. Rowling confirms that Dumbledore knew the destroyed diary was the remains of a Horcrux;     JKR: "In essence divided," exactly, the "essence" being the soul. So Dumbledore knew all along that he must have- well, he suspected until Chamber of Secrets, and then at the point where he saw what was clearly the remains of a Horcrux, in other words, the diary, he thinks, "Okay. There you go. And not only has he definitely done it, but he's got to have more than one, because he's treated this one very casually."      Yet Dumbledore allows Harry to take this very dark magical artifact and return it to Lucius Malfoy (in order to free Dobby):     ‘Professor Dumbledore,’ he said hurriedly, ‘can I give that diary back to Mr Malfoy, please?’   ‘Certainly, Harry,’ said Dumbledore calmly. ‘But hurry. The feast, remember.’   Harry grabbed the diary and dashed out of the office.   Chamber of Secrets - page 248 - Bloomsbury - chapter 18, Dobby's Reward   Why did Dumbledore allow Harry to take the Horcrux before he had fully examined it, especially as Dumbledore knew it was a Horcrux? The Peverell ring had a lethal curse placed on it for anyone who tried to put the ring on. Why didn't Dumbledore check the diary for additional curses or Dark Magic before giving it to Harry? I would have thought Dumbledore would have wanted to keep whatever Horcrux relics he found.   Also, do we know what happened to the diary after Harry gave it back to Lucius Malfoy and Lucius threw it aside? Are there any instances in canon that place the diary back in Dumbledore's hands?


Persistent column formatting in Google Sheets

I have a Google Sheet with an input form.  I click the top of a column to highlight the entire column and set format to Currency with two decimal places.  This puts the dollar sign in front of all the previous currency values.  But when I add new lines to the sheet via the form, the new cells do not show the dollar sign.  Is this just a limitation of the Sheets platform, or can I persistently set the Currency format on a column?


java swing - button action performed doesn't work

My window is a login form which has 2 text fields (for user name and password) and 1 button (login button).  I used NetBeans to help me designing the window and this is the actionPerformed method for the login button:  private void loginButtonActionPerformed(ActionEvent evt)  {        String password = new String(this.passwordField.getPassword());      if (this.userNameTextField.getText() == "system" && password == "admin")     {         JOptionPane.showMessageDialog(null, "good");     }  }     I debugged the application because the login button did nothing and I found out that the if sentence was not even read. But if I remove the if sentence and press the login button, the message will appear.  What am I doing wrong ?


How to watch DVDs in Ubuntu 13.10 64-bit

I have Ubuntu 13.10 64-bit and I am new to Ubuntu, I noticed if I put a DVD into my DVD drive it will not play. Is there something I can download that can let me watch DVDs.


Is there a non-decreasing function that is discontinuous at every rational point?

A well-known theorem is that if $f:[a,b]\to\mathbb{R}$ is non-decreasing, then $f$ as at most countably many discontinuities. This led me think of the following question.     Question: Is there a non-decreasing function $f:[0,1]\to\mathbb{R}$ such that $f$ is discontinuous at every rational point?   Such a function would definitively be geometrically counter-intuitive. Intuitively, I would think that if it is discontinues at every rational point, then it will be discontinues everywhere, and hence would not exist by the aforementioned theorem. But I cannot think of any proof or disproof of these claims.


I am not able to mount my Windows 8 partition. Trying to do so leads to the message:  Error mounting /dev/sdb2 at /media/josh/Windows 8: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb2" "/media/josh/Windows 8"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sdb2': Operation not permitted The NTFS partition is hibernated. Please resume and shutdown Windows properly, or mount the volume read-only with the 'ro' mount option, or mount the volume read-write with the 'remove_hiberfile' mount option.  For example type on the command line:  mount -t ntfs-3g -o remove_hiberfile /dev/sdb2 /media/josh/Windows 8   I know that the issue has been discussed several times on this platform (the best thread would be this one: ).  The problem in my case it that turning off the Windows 8 fast startup option leads to simply nothing. I get this message if I shut down normally as well as if I restart Windows 8. Therefore I am unable to use (=read & write) my partition without deleting the hiberfile everytime.


How do I check if an element is hidden in jQuery?

Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()?  How would you test if an element is visible or hidden?


I just upgraded a cloud server to 14.04 and grub2 going to a grub rescue prompt on boot.  I have attempted to follow the instructions here:   But the system will not boot.  I can do a ls / and it displays the /boot directory.  The root partition appears to be set to the correct drive.  When I do a insmod normal it gives me error: file not found  I am not even seeing a linux.mod or normal.mod files in my grub directory.  I am thinking that the grub install may have failed.  What steps would be recommended to rescue this server?  Again this is on a vmware esx system so booting from a cd is going to be quite complicated.  What files should I have in the grub and boot folder?  What insmod command should I be running to set the kernel and boot commands?


I purchased a laptop which was pre installed with Ubuntu 13.10. With whole drive of 350 GB as a one partition (there is an extended swap partition of 2GB)  I want to install windows 7 with dual boot as well as make one partition for data.  How can I do this.??   Gparted can not unmount the drive so I can repartition it. Live CD not booting so that I used Gparted through it. Why it is not booting? (By the way I'm trying ubuntu 12.04 CD as a live CD)


Find all polynomials $ P(x)$ with real coefficients such that $$P(x)P(x + 1) = P(x^2) ∀x ∈R.$$


How can I store an array of objects in a class property in java?

I have a class called Tile which represents a tile in a game.  In my main screen, I have a loop that draws the tiles on the user's screen.  I want to turn each of these tiles into their own objects.  I need to store the data for each tile(coordinates, etc) in an array so that I can access them later.  I also need to store this array in a class property so I can access them in any method of the main screen class.  My code throws an exception on the line boardTiles[totalTiles] = new Tile(...);  I assume it's because I am improperly assigning the objects to the array somehow.  How do I fix this?  The main screen java code:  public class MyGame extends JPanel {      public Tile[] boardTiles;      private void drawHexGridLoop(Graphics g, Point origin, int size, int radius, int padding) {         double ang30 = Math.toRadians(30);         double xOff = Math.cos(ang30) * (radius + padding);         double yOff = Math.sin(ang30) * (radius + padding);         int half = size / 2;          int[] diceSpaces = {2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12};         diceSpaces = shuffleInts(diceSpaces);          String[] resourcesDefault = new String[]{              "Lumber", "Lumber", "Lumber", "Lumber",             "Whool", "Whool", "Whool", "Whool",             "Stone", "Stone", "Stone",             "Wheat", "Wheat", "Wheat", "Wheat",             "Brick", "Brick", "Brick",             "Wasteland"};          String[] resources = shuffleStrs(resourcesDefault);          int totalTiles = 0;         for (int row = 0; row < size; row++) {             int cols;             cols = size - java.lang.Math.abs(row - half);             for (int col = 0; col < cols; col++) {                                 int xLbl = row < half ? col - row : col - half;                 int yLbl = row - half;                 int x = (int) (origin.x + xOff * (col * 2 + 1 - cols));                 int y = (int) (origin.y + yOff * (row - half) * 3);                 String resource;                 resource = resources[totalTiles];                 int assignedDice;                 if(resource.equals("Wasteland")){                     assignedDice = 0;                 } else {                     assignedDice = diceSpaces[totalTiles];                 }                 drawHex(g, x, y, radius, resource, assignedDice);                 boardTiles[totalTiles] = new Tile(totalTiles, xLbl, yLbl, resource, diceSpaces[totalTiles]);                   totalTiles++;             }         }     } }   Tile.java:  import java.awt.*; import javax.swing.*; public class Tile {      public int xCoord;     public int yCoord;     public int xPoly;     public int yPoly;     public String resource;     public int diceNumber;     //Starts in top left, goes clockwise.  Indicates what occupies a corner(settlement or city and player that owns it.     public String Corner1;     public String Corner2;     public String Corner3;     public String Corner4;     public String Corner5;     public String Corner6;     //Starts on top, goes clockwise.  Indicates if a player's road occupies a certain side of the tile.     public String Side1;     public String Side2;     public String Side3;     public String Side4;     public String Side5;     public String Side6;     public boolean hasRobber;     private PolygonObject hexagon;      Tile(int ID, int posX, int posY, String resource, int diceNumber){           this.diceNumber = diceNumber;        this.resource = resource;      } }


How do you execute a dynamically loaded JavaScript block?

I'm working on a web page where I'm making an AJAX call that returns a chunk of HTML like:   <div>   <!-- some html -->   <script type="text/javascript">     /** some javascript */   </script> </div>   I'm inserting the whole thing into the DOM, but the JavaScript isn't being run.  Is there a way to run it?    Some details: I can't control what's in the script block (so I can't change it to a function that could be called), I just need the whole block to be executed.  I can't call eval on the response because the JavaScript is within a larger block of HTML.  I could do some kind of regex to separate out the JavaScript and then call eval on it, but that's pretty yucky.  Anyone know a better way?


Why should I or shouldn't I use dirty reads:  set transaction isolation level read uncommitted   in SQL Server?


I want to test the memory of my video card because there are vertical lines on my screen. I have done some basic troubleshooting and it seems that the problem is in the video card. I want to validate that the issue is the video card by testing its memrory. I have found software that is used for Nvidia cards with CUDA support, but my card is the Nvidia GeForce 7600, which has no CUDA support.


How do I recover my accidentally lost Windows partitions after installing Ubuntu?

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


(I don't think that this is a good fit on cstheory, since I figure that this question already has a known answer.  However, if you think that this would be a better fit there, please feel free to migrate it)  It can easily be shown that REGULAR (the class of regular languages) is contained in DTIME(O(n)), because for any regular language L we can decide membership in that language in O(n) time by converting a DFA that decides L into a TM that decides L in a single pass over the input.  However, is it also true that DTIME(O(n)) is contained in REGULAR; that is, that any language that can be decided in O(n) time by a single-tape TM is necessarily regular?  I have no idea how to approach this problem, and every language I can think of in DTIME(O(n)) seems to be regular.  Intuitively, this would make sense, since if you're only allowed to make finitely many passes over the input, you could only remember finitely many things about it, which it seems like you could simulate with a sufficiently large DFA.  However, the fact that you can write to the input tape seems like it might complicate things.  And no, this isn't a homework problem.  I'm actually teaching a course that covers computability and complexity theory and thought it would be interesting to present the answer to this question in lecture. :-)  Thanks!


I updated to ubuntu 14.04 but now it does not show any files in home and also terminal

I updated to ubuntu version 14.04  first it was showing blank screen but after running some codes now it opens but does not show any files in home folder it does not even fetch terminal


How to create a Dynamic chart in Numbers to change dates based on cell

I would like to create a chart in Numbers that can dynamically change date ranges depending on different start and end dates set in start and end cells (or drop downs). This is for the purpose of charting stock prices 1 month, 3 Month, YTD etc. Excel allows for this - does Numbers?


The code is to shorten names.  When am executing in Hackerrank there is NullPointerException on temp.length() , temp.toUpperCase() , temp.substring().   The First Line contains an integer N, which denotes the number of testcases.  Sample Input  3  Mohandas Karamchand Gandhi  Mervin R Sundharam  Muthu  Sample Output  M K Gandhi  M R Sundharam  Muthu  import java.io.*; import java.util.*;  public class Solution {      public static void main(String[] args) throws IOException {         Scanner sc= new Scanner(System.in);         int size= sc.nextInt();         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));          String ar[] =new String[size];         for (int i= 0; i < size; i++) {            ar[i]=br.readLine();        }          for(int i= 0;i<size;i++){             String temp=" ";             temp=ar[i];             int pos=0;             for (int j= 0; j < temp.length(); j++)                 if(temp.charAt(j)==' '){                     System.out.print(temp.toUpperCase().charAt(pos)+ " ");                     pos=j+1;                 }             }             System.out.println(temp.toUpperCase().charAt(pos)+temp.substring(pos+1));         }     } }


How can I tell what RAM will fit my computer?

If I want to add more RAM to my computer, how can I buy something compatible? What kinds are there? How do I determine which kind my computer will accept and how much I can add?


How to validate k-fold cross validation results for classifiers?

I've applied 6 classifiers on my data set using 5-fold CV to calculate average AUC for each model. What method do you suggest me to determine which model has the highest AUC? I've heard of t-test and Mann Whitney test. But I don't know if using these tests are useful or should I select the best model simply by considering the model with the highest AUC by looking at them?


What version of ubuntu do i need for a Intel Core 2 duo laptop with 6gb ram?

I have a laptop with Windows 7 Pro and a Core 2 duo processor. (Lenovo SL510 Laptop) My Lpatop has 6Gb ram. What version of ubuntu do i need? And will it work at all?


to-infinitive as a direct object(noun phrase)? (as in 'I promised to buy her a pizza tomorrow')

I think this 'to' is some kind of connecting word. I think it connects a verb and what the verb intends. I think in this usage, the originally transitive verb becomes an intransitive verb needing a complement. I think some Americans could consider the to-infinitive as a adverbial complement that describe what the before verb intends, and 'to' as a connecting word. Do Americans or some Americans not regard it as a noun phrase, but as what I think of?


Below is the part of code from my jsp page, when I am printing the rs.getString(1)is printing perfectly but as soon as i put the rs.getString(1) in if  block it shows the null pointer exception. Please help  String nam=request.getParameter("n"); String query = "select name from ques where username='"+userid+"'";  Statement st=con.prepareStatement(query);  ResultSet rs = st.executeQuery(query);   while(rs.next()){      out.println(rs.getString(1));      if(rs.getString(1).equals(nam)){          out.print("hello");      }  }


In a clause like this one:  the success of the book resides in the clear explanations of complex subjects  is "in" the right preposition? Or is it better to use "on", like in:  the success of the book resides on the clear explanations of complex subjects  Thanks!


Is there any neural network whose output can be probabilistic, just like multi-class logistic regression?

I want to add nonlinear character into multi-class logistic regression. I know kernel logistic regression can do it. Is there any kind of neural network which has similar characteristic?


How can I coerce TikZ trees to have directed edges?

Consider the following  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}   \node{A} [grow=east]   child {node{B}     child {node{C}}}; \end{tikzpicture} \end{document}   which gives    How can I coerce each edge to have arrow heads so that I can have something like A->B->C? (Let's assume the style [->,>=stealth].)


$\gcd( x+y, x^2 - xy + y^2) $ is 1 or 3 for coprime $x$, $y$

How does one show that: if $\gcd( x, y) = 1$, then $\gcd( x+y, x^2 - xy + y^2) = 1\,{\rm or }\,3$.


Multiple reference lists using biblatex: how to remove duplicated entries?

I'd like to have two lists of references in my document.  However, I want each reference to appear only once in the entire document.  \documentclass{article} \usepackage[backend=biber,defernumbers=true]{biblatex} \bibliography{foo} \begin{document} \begin{refsection}  \section{Previous Track Record} I am an acknowledged authority on aardvarks \cite{mynature}. \printbibliography[prefixnumbers=A,heading=subbibliography] \end{refsection}  \section{Research}  \begin{refsection} I will use the methods developed in \cite{mynature} to address the questions raised in \cite{other}. \printbibliography[heading=subbibliography] \end{refsection}     \end{document}   Here are the contents of foo.bib:  @article{mynature, author={Ego Sum}, journal={Nature Soundbites}, title={Aardvarks are artistic}, year={2013} }  @article{other, author={Tu Es}, journal={Gnu Letters}, title={Gnus gnaw gnomes}, year={2014} }   In the two bibliographies, I only want the paper in Nature Soundbites to appear once, and be cited in both places as [A1].  Any suggestions welcome!


Why did Daenerys do this even after the bells were rung?

In S8E5, we saw that the Lannister forces on the inside gate had surrendered (and so had the city when the bells were rung). Despite this, Daenerys decided to incinerate the city. Why? Was it that the "Targaryen Madness" finally took her, or is she still the old Dany but felt a tremendous urge to avenge?


List of permission set's field permissions with labels instead of API name

I want to create a spreadsheet that documents a permission set's field permissions, but I want to show the labels as well as the API names for both the object and the fields themselves. The SObjectType and Field fields in FieldPermissions are both picklists(!?) rather than something useful, so it appears to me that I can't get the information directly via an SOQL query. Is there some trick I'm not aware of? (For SOQL, not Apex.)  Assuming not, I can write some Apex to get the Fields from FieldPermissions and then do what's needed to get the labels for both the fields and objects. At that point is the best option to use Batch Apex to bulk insert the data into a custom object and then just do a report on that object? That seems like a lot of duplication, but I can't think of an easier way to do it.  I've searched around on the web and GitHub, and can't find anything (other than a for-fee AppExchange package) that will do what I'm looking for. (The "free" version of the packages only does PDF export, not spreadsheet/CSV).


How do I hide the "App permission management is running" notification?

I have a vernee Apollo Lite which runs Android 6.0.   There's a permanent notification called "App permission management is runn..." The App name seems to be Permission Control.  It's always there and clicking on it brings me to the permission management dialog.   I would prefer if it wouldn't always clog up space in the notifications. Is there a way to hide it without changing to automatically allowing all permissions?


How to compare objects by multiple fields

Assume you have some objects which have several fields they can be compared by:  public class Person {      private String firstName;     private String lastName;     private String age;      /* Constructors */      /* Methods */  }   So in this example, when you ask if:  a.compareTo(b) > 0   you might be asking if a's last name comes before b's, or if a is older than b, etc...  What is the cleanest way to enable multiple comparison between these kinds of objects without adding unnecessary clutter or overhead?   java.lang.Comparable interface allows comparison by one field only Adding numerous compare methods (i.e. compareByFirstName(), compareByAge(), etc...) is cluttered in my opinion.   So what is the best way to go about this?


I'm trying to safely update the home directory as specified in /etc/passwd, but the standard Linux utils - usermod and vipw - for doing so aren't provided by Cygwin.  Could anyone tell me how they changed this in Cygwin?


My girlfriend is vegan.  How can I replace eggs in a recipe?   Maybe with banana or soy? How much?  The egg is the key ingredient to keep everything from falling apart.


How to get fields of a generic type in C#

Say I have a generic class  class Foo<T> {    T fooVal;    public T FooVal { get { return fooVal; } } }   and I want to get the FieldInfo for fooVal from an instantiated type:  Foo<int> fooInt = new foo<int>(); FieldInfo fooValField = fooInt.GetType().GetField("fooVal");   The problem is, fooValField is then null.  Even if I call GetFields() it returns an empty array.  I know the Type is correct because reflection tells me it is Foo'1.  I just can't figure out why it doesn't see the fooVal field.  Is there something I'm missing here?  I can see the FooVal property if I call GetProperties, so I would expect the fooVal field to also show up?


How to prove ? How did Kepler proved it? Is it possible to prove the third law without applying Newton's universal law of gravitation?


Return table values as a comma separated list within a GROUP BY

I want select data from a table (SQL Server 2012) -- grouping one field and returning all the duplicates within that group as a comma separated list.   All the solutions I have seen so far do not allow for a group and return a single comma separated list for the whole table as a variable, which doesn't work for me.  What SQL do I need?  This is the data I have:   BankingSlipID   CashSheetSessionID  BankingSlipNumber 1               10                  abcabc 2               10                  xyzxyz 3               10                  123465789 4               11                  9999999 5               11                  55555 6               12                  88888   This is what I want to get:   CashSheetSessionID  BankingSlipNumber 10                  abcabc, xyzxyz, 123465789 11                  9999999, 55555 12                  88888   SQL to create the source table (with data):  CREATE TABLE [dbo].[BankingSlips]( [BankingSlipID] [int] IDENTITY(1,1) NOT NULL, [CashSheetSessionID] [int] NOT NULL, [BankingSlipNumber] [varchar](50) NOT NULL ) ON [PRIMARY] GO SET IDENTITY_INSERT [dbo].[BankingSlips] ON GO INSERT [dbo].[BankingSlips] ([BankingSlipID], [CashSheetSessionID], [BankingSlipNumber]) VALUES (1, 10, N'abcabc') INSERT [dbo].[BankingSlips] ([BankingSlipID], [CashSheetSessionID], [BankingSlipNumber]) VALUES (2, 10, N'xyzxyz') INSERT [dbo].[BankingSlips] ([BankingSlipID], [CashSheetSessionID], [BankingSlipNumber]) VALUES (3, 10, N'123465789') INSERT [dbo].[BankingSlips] ([BankingSlipID], [CashSheetSessionID], [BankingSlipNumber]) VALUES (4, 11, N'9999999') INSERT [dbo].[BankingSlips] ([BankingSlipID], [CashSheetSessionID], [BankingSlipNumber]) VALUES (5, 11, N'55555') INSERT [dbo].[BankingSlips] ([BankingSlipID], [CashSheetSessionID], [BankingSlipNumber]) VALUES (6, 12, N'88888') SET IDENTITY_INSERT [dbo].[BankingSlips] OFF GO   What SQL do I need to write to get that?


Why is data.SX going out of resources for my no-Joins query?

I'm trying to run the following query on data.SX.com:  select     OwnerUserId as [User Link],     sum(case when up > 0 and down = 0 then 1 else 0 end) as socratism from (   select     OwnerUserId,     max(case when score > 0 then 1 else 0 end) as up,     max(case when score < 1 then 1 else 0 end) as down   from Posts   where PostTypeId = 1 -- a question   group by CONVERT(VARCHAR(10), creationDate, 111), OwnerUserId ) question_days group by question_days.OwnerUserId order by socratism desc;   This query involves no joining, so the table is not even that large. So what's the problem? What can I do to make the query more palatable?


Finding a conditional probabilty by conditioning on geometric rv

Let $X_1,...$ be indepedent rv with common distribution $F(x)$ and $N$ geometric random variable with parameter $p$. $N$ is indepedent from all the $X_i$ . let $M = \max(X_1,X_2,...,X_N)$. Find $P(M \leq x \mid N > 1 ) $ solution sketch We have $$ P(M \leq x \mid N > 1 ) = \frac{P( X_1 \leq x, X_2 \leq x, ..., X_N \leq x, N > 1 ) }{P(N > 1) }$$ $$ = \frac{P(X_1 \leq x )P( X_2 \leq x, X_3 \leq x, ..., X_N \leq x, N > 1 ) }{P(N > 1) } $$ $$ = P(X_1 \leq x ) P( \max( X_2,X_3,...,X_N \leq x  \mid N > 1 ) $$ $$ = P(X_1 \leq x ) P( \max( X_1,X_2,...,X_{N-1} \leq x  \mid N > 1 ) $$ $$ = F(x) P( M \leq x ) $$ My question is: Why can we pull out $P(X_1 \leq x)$?? I mean by this reasoning, we can also do the following $$ P(M \leq x \mid N > 1 ) = \frac{ P(X_1 \leq x) P(X_2 \leq x) ... P(X_N \leq x ) P(N > 1) }{P(N>1) } = F^n(x) $$ Also, in the equality before last one, why is it that $$ P( \max(X_2,...,X_N) \leq x \mid N > 1) = P( \max(X_1,...,X_{N-1} ) \leq x \mid N > 1 )$$ Why can we do this ?


What is the point of stars in Mario Kart 8?

Not that stars that you get at the end of the races. But you can get up to 6 stars (I believe) and they show up in the upper left portion of the screen. What do those do?


Solve for $x$ the following congruence system

I will first let you know the problem, then I will tell you what I tried : I have to solve the congruence system, $20x \equiv{9} \mod{30}$ $9x \equiv{12} \mod{33}$ $36x \equiv{49} \mod{60}$ With the Chinese remainder theorem, I tried to replace the equations because $30$, $33$ and $60$ have commons factors. I found prime decomposition for all modulo $30$, $33$ and $60$ and replaced those prime factor as new modulars. By simplifying I found : $2x \equiv{0} \mod{4}$ $x \equiv{3} \mod{5}$ $9x \equiv{1} \mod{11}$ I found $x=1728$ for the new system but it does not match with the first system. Maybe there is no solution?


Please help me to view the results of this bmi calculations to two decimal points.  here is my code...  @Override public void onClick(View v) {      double weight;     double height;     double bmi;     String msg = "";       if (field_height.getText().toString().equals("") || field_weight.getText().toString().equals("")){          Toast.makeText(getApplicationContext(), "No Valid Values!", Toast.LENGTH_LONG);      }else {          weight = Double.parseDouble(field_weight.getText().toString());         height = Double.parseDouble(field_height.getText().toString());          bmi = height * height;         bmi = (weight / bmi);     } }


Proving that the equation $f(z) =z^n $ has exactly n solutions in |z|<1

This question was asked in my analysis assignment and I am unable to solve it. i ahev no option except to post here.  Suppose that f(z) is analytic for $|f(z)|\leq 1$ such that |f(z)|<1 for |z|=1 . Show that $f(z)=z^n$ has exactly n solutions in |z|<1.  I am really sorry but I will not be able to provide anything as attempt because I am completely cluless which result I should use. So, I am asking you to just give hints. I would be working on details by myself. Thanks!


error trying to put a command in minecraft

Hi (im spanish sorry for my english) im try to put this command in minecraft but not works, i need place a lever in chiseled stone bricks. /give @p lever 1 0 {CanPlaceOn:["minecraft:stonebrick 3"]}  im in 1.8.9


I'm using an HP-15BS542TU laptop. I have been using it for the past 4 years with Windows 10. I recently installed Ubuntu about 2 months ago. While on windows, my laptop lasted 10 hours on a full battery, Ubuntu lasts hardly an hour. I'm am running an i3-6006u processor with 4 GB ram and integrated graphics. I read up on the power management guides by other users which direct you to use tlp. But I already tried that and there has been no improvement! I would like your help in fixing this problem. Please help me!!


There is no way to find the square root of a negative number. It just doesn't work. So the answer to the impossible question, "What number squared equals a negative number?" is just said to be $i$, an imaginary number.   So now let's look at a different problem. What is one divided by zero? Of course, you can't answer that question. It doesn't make any sense. Splitting up a chocolate bar to a group of 0 friends isn't possible. It's like being told to walk north when standing on the north pole. So, what if just like $i$, we just say $1/0$ is an imaginary number, referenced by the letter $o$?  What applications would this have? Does it even work? The number $i$ has real life applications, but it can also be used to create abstract designs like the Mandelbrot Set. Could $o$ even be used for an abstract purpose?


Is it possible to fire a button's ClientClick event from another button's Click Event?

I need to display a YesNo messagebox, in case of a server side code execution failure. As far as I can tell, you can't show a messagebox from the server side. Is a walk around of sorts, where I fire a hidden button's OnClientClick Event programmatically in order to display a messagebox is possible? If so, how do I trigger it? If not, Is there any other way to display a YesNo messagebox from the server side?  As far as I can tell, unless I misunderstood, the solutions I was given or was refered to, handled cases where client side script fires the second button's event, but that's not what I'm looking for. I need the server side script to trigger the client side script/event.