HDD & bad sectors, how are they handled?

Currently, I have 2 Seagate HDDs that are bad and I want to know how the Seatools, or another application, deal with these bad sectors. As far as I know, bad sectors are some tiny sectors of the disk itself that are not possible to be accessed anymore. But when I "fix" these sectors, what really happens? The tool "says" to the Windows (or another system) that these sectors could not be used anymore and skip them? Or this information about the sectors to be skipped is stored in the firmware/HDD itself? If I format an HDD with bad sectors and then run the application that "fix" bad sectors and after I format again, this information about sectors to skip will be lost? A full format with 0/1 erases this information? If I "fix" an HDD and then move it to another OS, or even to a PS3/PS4, this new OS will try to use these sectors?


How to use manual partitioning during installation?

I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no pictures).  I'd like to cover such situations:     If your disk contains other systems:


If we move in the universe with about 1500 km/s (earth with 30 km/s + sun with 230 km/s in the milky way + milky way....) why there is no Doppler effect on my WiFi when i change the position in the direction and opposite direction of earth direction of travel? And also does the signal arrives faster or respectively slower with 1500 km/s when i change the position in the direction and opposite direction of earth direction of travel?


Split a rod of unit length into two at a random position to get two pieces length x and y. Then split both pieces into two again at random positions.

Suppose y>x.   What is the probability that the smaller segment of the piece initially split into length y is bigger than the bigger segment initially split into length x?  I ran a simulation and got roughly 47.7% chance but cannot show this analytically.


In a salesforce application we have a requirement to invoke the visual force pages based on the user is logged in from mobile or desktop.  How can I identify if a user is logged in from mobile or desktop?


I have a personal username/password on a unix machine with limited privileges. Whenever I need  to execute some commands I have to substitute user using the su command, then I execute it normally.   Now, I need to add a cronjob that uses such privileged commands so I added the cronjob on the crontab of the user I substituted to in order to have access to these commands.   Strangely, it turned out to me that these commands fail to run for some reason as a cronjob although when I execute them directly from shell (after su) they work seamlessly.   Why does this happen? Why do these commands not work as part of cronjobs?


In version 5.2 of Apple's Pages app for OS X (Mavericks), how do I change the page layout?

I'm trying to adjust a simple template in Pages version 5.2 but can't for the life of my figure out how to change the existing layout such that the text spans the full width of the page.  I've turned on Show Layout and tried adjusting the left Document Margin to 0 but it's still indented by about 4.5cm and that throws the footer and header too far to the left.  The Ruler won't allow me to drag the slider any further left than the edge of the layout.  Changing the Column settings doesn't do it either. My Indents settings are all set to 0. I'm completely at a loss as to how to do this.  I've had no issue changing the top, bottom and right margins, but the left margin seems to have this welded in inset.  The following screen snap of the standard Business Letterhead template (with markup in red) indicates what I am trying to achieve.    My thinking is there is some weird margin applied, but I don't know where it is set. I can not move the blue tip (see image below)    How can the tip to the left be moved? Right now it is 'blocked'.


Show that $\dfrac{b}{a} = -(A+B+C)$ and $\dfrac{c}{a} = (AB+AC + BC)$

Let´s assume we have the polynomial: $ax^3+bx^2+cx+d$  This polynomial has three zero points: $A$, $B$ and $C$.   How can I show that $$\dfrac{b}{a} = -(A+B+C)$$   and   $$\dfrac{c}{a} = (AB + AC + BC)$$?  Thanks for your help!


I have two Linux servers, one which has several RAR files and another empty one. I would like to extract the archives and move the content to Server 2.  The problem is: I do not have enough storage to extract the files at Server 1. Also I cannot use SSHFS, as no FUSE modules can be loaded on Server 1.  I have seen that unrar has the p option which sends the output to STDOUT. Is it somehow possible to use this to solve the problem?


How can I emit a redstone signal when a player eats a golden apple?

I need it so that when a player eats an golden apple, the command block sends a redstone signal. Is there a command for that?


How to ask or claim or talk to a moderator?

I just want know if there is some way to talk or to claim something to a moderator/moderators if there is something I am not satisfied with. For example, a special room for moderators, an mailing system, a ask-a-moderator button or something like that?  This is just to enable communications between users for they which will be satisfied and will know the usability of the site and solve their problems.   Actually, I have someone who voted me up and I got the voting up reversed, and I don't know if it's a Stack Exchange spider, or not, and if it's a Stack Exchange spider, why is it considered as reverse voting up again?  It feels like a spider, because I got nine upvotes in one minute. So why then is it considered as serial upvoting from the system itself if it's the system who is doing this spidering?  I wish I'm not wrong :)


How to solve inhomogeneous quadratic forms in integers?

If I have a quadratic form like $y^2 - x^2 - x = k$ none of the techniques I know work because of the nasty $x$. Note that homogenizing doesn't work because a solution of $Y^2 - X^2 - X Z = k Z^{(2)}$ does not lead to a solution of the original equation in integers, at least as far as I have been able to determine.  How does one understand the solution set of these equation? How can I solve them?


After upgrading then rebooting my Ubuntu 16.04 server it's now impossible to connect with ssh anymore.  This is what I get whenever I try to connect:     ssh: connect to host xxx.xxx.xx.xx port 22: Connection refused   Note: I didn't modify the ssh settings or whatever during the upgrade.  What can I do ?


increasing area of circle,square &rectangle

Recently our teacher asked us to arrange a circle, a square, a rectangle in the order of their increasing areas(perimeters are equal).  I found that circle has much area then a square.  But I was unable to find relation of third one.  Please help me to arrange them (with proof).


Our son is about to turn 3 months but he is yet to sleep on his own (as in we put him to sleep, put him down on the crib then he sleeps for few hours). He only sleeps when he is carried during the day, the moment we put him down he wakes up crying. At night, he sleeps with us on the bed where he is right next to his mommy. We blame ourselves for letting this happen but now my wife can't do anything during the day but carry him.  What can we do to break him out of this habit? Any pointers would be great appreciated.


Ubuntu 18.04 updates blocked by Nvidia 340 driver problems "trying to overwrite file which is also in package"

My problem is caused by a registered bug in the Nvidia 340 drivers which installs clashing libraries, that's all known but the result is as below. Sadly, the root cause is now lost in the noise as I failed to notice the problem developing and tried to fix it!  Any attempt at update or fixing brings up something like below:  (Reading database ... 295094 files and directories currently installed.) Preparing to unpack .../libgles1_1.0.0-2ubuntu2.2_i386.deb ... Unpacking libgles1:i386 (1.0.0-2ubuntu2.2) ... dpkg: error processing archive /var/cache/apt/archives/libgles1_1.0.0-2ubuntu2.2_i386.deb (--unpack):  trying to overwrite '/usr/lib/i386-linux-gnu/libGLESv1_CM.so.1', which is also in package nvidia-340 340.106-0ubuntu3 Preparing to unpack .../libglvnd-dev_1.0.0-2ubuntu2.2_i386.deb ... Unpacking libglvnd-dev:i386 (1.0.0-2ubuntu2.2) ...  dpkg: error processing archive /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.2_i386.deb (--unpack):  trying to overwrite '/usr/lib/i386-linux-gnu/libGLESv1_CM.so', which is also in package nvidia-340 340.106-0ubuntu3 Errors were encountered while processing:  /var/cache/apt/archives/libgles1_1.0.0-2ubuntu2.2_i386.deb  /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.2_i386.deb   How do I break this bottleneck and get my system updating again?  I have tried:  sudo apt --fix-broken install sudo apt-get purge nvidia*   Can I safely remove the something to free up the process? The packages below or the archives above, for instance, which seem to be causing the immediate problem. If I can remove them how do I do it?  The following packages have unmet dependencies.   libegl1-mesa-dev : Depends: libglvnd-dev but it is not going to be installed  libgl1-mesa-dev : Depends: libglvnd-dev but it is not going to be installed  libgles2-mesa-dev : Depends: libglvnd-dev but it is not going to be installed   I have found other answers that force the overwriting of the troublesome libraries but they are fraught with potential troubles and do not directly address the root of the problem, the released update fixes the problem not the symptoms and the answer below fulfils that update.


I need to solve the following problem.  Let $X_{1},X_{2},\dots$   be random variables on $(\Omega, \mathcal{F}, P)$. Show that the set $A = \{\omega \in \Omega :X_n(\omega) \hspace{1mm}converges\}$ is in F and that there exists a F-measurable random variable X such that $X_{n}(\omega) \to X(\omega)$ for $\omega \in A$.  Thanks in advance.


Prove that $\mathrm E\left({\max}\left\{X^2 , Y^2\right\} \right) \leq 1 + \sqrt{1 - \rho^2}$ where $\rho$ is their correlation.

I have 2 random variables $X,Y$ with mean 0 and variance 1, their correlation is $\rho$. I need to prove this inequality  $$\mathrm E\left({\max}\left\{X^2 , Y^2\right\} \right) \leq 1 + \sqrt{1 - \rho^2}$$ I need some pointers as to how to solve this problem. Thanks!


How to uninstall the default Desktop environment of Ubuntu12.04?

I have installed Ubuntu 12.04 but I really don't like the default desktop environment. I want to uninstall it and install Gnome. But I don't know which package should I remove. Can somebody help me?


Why can we ignore the upper layer when computing gravity inside solid sphere?

Given a solid ball with density $\rho$ and radius $R$, we dig a "thin tunnel" through its center and place an object with mass $m$ at distance $r$ from the center.  Computing the gravitational force, how come can we ignore all the mass further away than $r$? All answers I found rely on Gauss' Law for gravity, which although I know I don't want to use. My main problem is setting up the explicit integral we need to calculate.


Say I am extending The blockBase class to create a custom block, and I am implementing the blockBuild method to create some markup for my block. Something like this:   class YourModuleBlock extends BlockBase {     /**      * Implements \Drupal\block\BlockBase::blockBuild().      */      public function build() {       return array(         '#markup' => 'This is a block!',       );      }    }   If I wanted to provide a link in this markup, in D7 I would have used the l function, but this is no longer available (). So, I need to make available the new D8 method for generating links. I could just use an <a> tag, but this was never best practice in D7.  So, what is the right method to use for creating links and how do I make it available to my function?


How do you find SQL Server version/edition without SSMS installed?

How do find out which edition is installed without having the management studio installed?  I have a server that functions as a license manager for another software.  Upon investigation of a high RAM usage alert, I found that the sqlservr.exe process is taking up almost 2 GB of RAM.  I looked through the program menu and found that the configuration manager was installed, otherwise, it is pretty bare bones.  I clicked on properties of the EXE file and found 10.50.1600.1, but there is no place that I've found that states whether it is Express, Dev, STN, ENT, etc.  If I had to guess, this is an express edition, but I wanted to know if there is an obvious tell-tale sign.  Update: @Bob - The file tells me what I know, not the edition.  @valo - I get the following error when I run that command and I did verify named pipes was enabled:     HResult 0x35, Level 16, State 1   Named Pipes Provider: Could not open a connection to SQL Server [53].   Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or instance->specific error has occurred while establishing a connection to SQL Server. Server is not >found or not accessible. Check if instance name is correct and if SQL Server is configured >to allow remote connections. For more information see SQL Server Books Online..   Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : Login timeout expired.   @thomas - I noticed the Stock Keeping Unit Name before I asked the question, but that seemed too easy, I guess my initial suspicion was correct.


If two random variables are independent does that mean if one of them is squared then the independency still exists?

Suppose we have two random variables $X$ and $Y$ that are independent. Does that mean $X^2$ and Y are also independent?


boots to black screen during install uefi after attempting to install windows

i attempted to reset windows on a acer aspire one 14 and after letting die mid reinstall it wouldnt finish the install so i moved to install ubuntu and i got the grub menu that asks me to install ubuntu but if i select any option it is a blank screen and its not the nomodeset issue. its on uefi because the windows was on uefi so i cant disable the faast boot option and i was wondering if i could from either bios or grub command line. i was thinking the partial windows was effecing things but i have no idea how to fix it because it simply loops it will load a portion but once it restarts it starts from the first starting point please help


Transit visa for Indian citizen traveling through Hong Kong

I am an Indian national with a valid Indian passport. I intend to travel to San Francisco (US) via Hong Kong with Singapore Airlines and Cathay Pacific. I have to transit through Hong Kong without exiting the airport transit area within 2 hours.  Do I need a transit visa (pre-arrival registration) for Hong Kong for this short duration?


Are there Android design conventions for an empty screen?

I am designing an application with 3 screens, each on their own tab. Screens 2 and 3 require data to be inputted on Screen 1 before they work. The app will open at Screen 1.  Are there any conventions for informing the user, if they arrive at Screen 2 or 3, that they must select an option on Screen 1 before Screen 2 and 3 work? I can think of numerous solutions, but wonder if there are conventions?


What are the most recommended colors for the UI of a mobile app that is used under sunlight?

To use the app, users have to increase the brightness of the screen and this causes the battery to run out faster and still the best experience is not perceived.  It is an app that users use daily for 6 hours under sunlight taking meter readings located in the customers' house.  They make a tour in the street visiting around 500 houses.


How to set the default program for opening files without an extension in Windows?


Connect MacBook Pro to two external monitors

Is there a way to connect my MacBook Pro to two external monitors (either VGA or HDMI; no Thunderbolt) in such a way that the Mac screen serves as a third monitor?  What hardware do I need?


How to convert an "object" into a function in JavaScript?

JavaScript allows functions to be treated as objects--if you first define a variable as a function, you can subsequently add properties to that function.  How do you do the reverse, and add a function to an "object"?  This works:  var foo = function() { return 1; }; foo.baz = "qqqq";   At this point, foo() calls the function, and foo.baz has the value "qqqq".  However, if you do the property assignment part first, how do you subsequently assign a function to the variable?  var bar = { baz: "qqqq" };   What can I do now to arrange for bar.baz to have the value "qqqq" and bar() to call the function?


My son applied for UK visa to participate in Student Formula sponsored by his Institute IIT Bombay which is top 1 Institute in India.He is studying 2nd yr, 3 more yrs to complete the course. I am farmer , having 30 acres of land . Getting about 20 lakhs rupees Indian currency. income .As agriculture income is tax exempted.It is not reflected anywhere.About 16 lakh Indian currency is there in bank account.What documents to be kept ready for next year event participation?


Allow OPs to see deleted answers on their questions

There are a lot of questions here about people being able to see their own deleted posts.  This is not that.  Sometimes when I ask a question on a site where I don't have 10k rep, I'll get a notification of an answer, go to read it -- and find nothing, because it was deleted.  Often that means the community deleted it as low-quality or spam, but sometimes it's for some other reason -- self-deleted, or it was good information but not an answer, for example.  Sometimes the OP asks about this ().  I've been asked occasionally about my self-deletions, and as a moderator I'm asked somewhat frequently about deleted answers.  We all have an interest in the question but the OP has a bigger interest.  Could we allow the OP to see deleted answers to his question regardless of his rep?  The interface would be exactly the same as for 10k users.  Some behaviors are already different for the OP (for example, commenting on all answers), so it seems feasible to check not just reputation but post ownership.  If that's too expensive, though, then maybe we could add some sort of "click to see deleted answers" for the OP if there are deleted answers?  I'm looking for a way to satisfy the OP's curiosity without having to ask 10k users or moderators about it.


I heard this in  movie. It was my op. What does it mean? Googling gave me : 'Original Poster'. But that doesn't seem very meaningful.


How do I stop Twitter displaying URL contents?

If I tweet something containing wording that looks like (and is) a URL, but not intended to be interpreted as one, Twitter appends content from that URL to my tweet. I want to use the words ASP.NET without them being seen as a URL. How can I do this?


Does a Grapple or Shove count as an attack for the Mobile feat?

The  feat enables you to not get opportunity attacks from creatures you try to attack.  Does it still apply if the attack you made was a Grapple or Shove ?


Test $f_n = (1+\frac{1}{n^2})^n$ for convergence and give its limit if it exists.

Now this exercise looks like I need to use $$\lim_{n\to\infty} \left(1+\frac{1}{n}\right)^n=e$$ somehow, but I'm unsure of how. Bernoulli would give me $$\left(1+\frac{1}{n^2}\right)^n > 1+n\cdot\frac{1}{n^2}=1+\frac{1}{n}$$ for which the limit is $1$, but I'm not sure how that helps. Can anybody give me a tip on how to solve this elegantly?


Matrix reciprocal positive to prove $λ_{max}=n$

Suppose we have $n\times n$ matrix $A$ having only positive elements and satisfying the property $a_{ij}=1/a_{ji}$ (a matrix satisfying this property is called a reciprocal matrix).  If its largest eigenvalue $λ_{max}$ is equal to $n$, then the matrix $A$ satisfies the property (consistency property) $a_{ij}a_{jk}=a_{ik}$ where $i,j,k=1,2,...,n$.    I already found an example of $5\times 5$ reciprocal matrix  to show this condition:  \begin{bmatrix}1&1/2&1&1&1/4\\2&1&2&2&1/2\\1&1/2&1&1&1/4\\1&1/2&1&1&1/4\\4&2&4&4&1\end{bmatrix}  It has simple characteristic equation $λ^5-5λ^4=0$, so the eigenvalues of matrix $A$ are $λ=0$ and $λ=5$ and it's shown that $λ_{max}=n=5$.  Is there anyone can help me to give another positive reciprocal matrix example  that has simple characteristic equation and integer number as its eigenvalues ($4\times 4, 5\times 5$ or $6\times 6$ matrix)?


VMWare Player 15 Unable to Start on Fresh Install of 19.04?

I have a question very similar to () in that the modules cannot be compiled.  However, the top solution does not work for me.   Here is the terminal commands that I used:  root@LesserArk:~# uname -r  5.0.0-13-generic root@LesserArk:~# man dkms root@LesserArk:~# curl https://pastebin.com/raw/Z1ihzbcE -o /tmp/vmnet-3.19.patch   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed 100  1646    0  1646    0     0   4485      0 --:--:-- --:--:-- --:--:--  4485 root@LesserArk:~#  root@LesserArk:~# cd /usr/lib/vmware/modules/source root@LesserArk:/usr/lib/vmware/modules/source# tar -xf vmnet.tar root@LesserArk:/usr/lib/vmware/modules/source# cd vmnet-only root@LesserArk:/usr/lib/vmware/modules/source/vmnet-only# patch -p0 -i /tmp/vmnet-3.19.patch (Stripping trailing CRs from patch; use --binary to disable.) can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ur vmnet-only.a/driver.c vmnet-only/driver.c |--- vmnet-only.a/driver.c      2014-11-20 20:13:56.000000000 -0500 |+++ vmnet-only/driver.c        2015-02-09 15:40:10.916640592 -0500 -------------------------- File to patch:  Skip this patch? [y] y Skipping patch. 2 out of 2 hunks ignored (Stripping trailing CRs from patch; use --binary to disable.) can't find file to patch at input line 45


In linux code, i just saw this snippet:  struct elf_thread_core_info {     struct elf_thread_core_info *next;     struct task_struct *task;     struct elf_prstatus prstatus;     struct memelfnote notes[0]; };   struct memelfnote notes[0]; looks new to me. [0] - doesn't it mean 0 elements. Which means it will not allocate any memory at all? If yes, what is the use of having it?


Why doesn't Ubuntu 16.04 in Windows have ubuntu.exe?

A couple of months ago Ubuntu had an ubuntu.exe file inside the ISO, so I was able to run Ubuntu in my Windows by clicking ubuntu.exe after installing it with wubi.exe. Now in Ubuntu 16.04 it seems ubuntu.exe is not there anymore. My computer failed to install Ubuntu 16.04 even though I followed the steps from Ubuntu on how to create a bootable USB. Why doesn't Ubuntu 16.04 in Windows have an ubuntu.exe file like in older versions of Ubuntu?


How do I install the updated version of Google Chrome using Ubuntu Software Center

I have downloaded the newest version of Google Chrome and I don't know how to install it using Ubuntu Software Center. What do I need to do to to install the new version of Google Chrome that I have downloaded?


Is there any proof particles really exist?

Maybe is a dumb question, but I was always confused about the wave-particle duality, what if particles are just an interpretation of our brains? is that possible? that everything is actually a wave, and in just scenarios those waves acts like our concept of particle?        Asking it in another way: do we need particles? as a real thing? or the universe could be just waves and nothing else?


Digital Photo Professional alternative for Ubuntu?

I'm looking for alternative software to develop raw files (cr2) on Ubuntu?  I know that I can use wine to run DPP, but I wonder if there is another option worth trying?


Meeting someone at the airport gate in the US?

As of quite awhile back you're not able to meet people at the gate of the arriving flight. However, I've come across certain sites like , which offers a concierge service that supposedly allows an agent of the company to meet the client at the gate or even on the tarmac and help them through the Immigration and Customs this one specifically in JFK but they offer similar service in other major New York Area airports.  VIP TARMAC Additionally, we have tarmac service available that would allow a passenger to de-board the plane directly onto the tarmac where their luggage will be loaded into a private car, taken to a private immigration area, and then dropped with a Churchill Executive Cars driver outside the terminal to take them to their final destination. VIP ARRIVALS On arrivals, we will have a Churchill Executive Cars Agent meet the passengers at the gate when they de-board the airplane. The agent will have a sign with the passenger's name and Churchill logo and have a baggage porter ready to carry their carry-on bags. The agent will then whisk them through fast-track immigration and customs, and pass the passengers along to the Churchill Executive Cars driver to be taken to their final destination.  Now if this is true there is a way for someone to have clearance to go airside to meet a person but I was unable to find any references on how such a clearance can be attained. So is this real?  And can this be done by an Average Joe?


I need help to install vmware or vmplayer but I don't quite understand the written command to install it. I am using Ubuntu 14.04.


I used the following command after finding it on a thread:  $ sudo dpkg -i --force-overwrite atom-amd64.deb  (Reading database ... 256705 files and directories currently installed.) Preparing to unpack atom-amd64.deb ... Unpacking atom (1.19.1) over (1.19.1) ... dpkg: dependency problems prevent configuration of atom:  atom depends on git; however:   Package git is not installed. dpkg: error processing package atom (--install):  dependency problems - leaving unconfigured Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu5) ... Processing triggers for desktop-file-utils (0.23-1ubuntu2) ... Processing triggers for mime-support (3.60ubuntu1) ... Errors were encountered while processing:  atom   I am able to open and use atom. No problems yet. But should I  do anything about the  error message?


As in  I'm trying to use apa6e and biblatex-apa together and having problems.  Before I arrived at these problems, over the course of many hours of much reading, I first managed to get BibTeX working as expected in a simple input file (by modifying sample2e.tex). Then I managed to get apa6e working as expected based on the author's example in apa6e.pdf (which uses apacite). But when I try to get apa6e working with biblatex-apa, I end up with problems.  Here's my input file:  \documentclass{apa6e}  \usepackage[american]{babel} \usepackage{csquotes}  % biblatex \usepackage[style=apa]{biblatex} \bibliography{biblatex-apa-test-references}  \title{An Example Document} \shorttitle{Psychology: the end} \author{Silly Name}  \authornote{\dots} \abstract{\dots}  \begin{document}  \maketitle  This is an example input\cite{7.01:2} file.  Comparing it with the output it generates can show you\cite{7.01:3a} how to produce a simple document of your own.  \printbibliography  \end{document}   Attempting to typeset this in TeXShop by running LaTeX, then BiBTeX (which based on console messages, does seem to correctly call biblatex rather than BiBTeX), then LaTeX again, I get the following error message which I am having great difficulty (no doubt due to my lack of experience with TeX and co.) decoding.  (./test6.aux) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1ptm.fd) *geometry* driver: auto-detecting *geometry* detected driver: pdftex (./test6.bbl) Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 An Ex-am-ple Doc-u-ment   Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Silly Name   Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Author Note  [1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 Abstract  [2] Underfull \hbox (badness 10000) in paragraph at lines 18--18  []\OT1/ptm/m/n/12 An Ex-am-ple Doc-u-ment   Underfull \hbox (badness 10000) in paragraph at lines 25--25  []\OT1/ptm/b/n/12 References  ./test6.tex:25: Undefined control sequence. <argument> \mkbibdateapalongextra  (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1pcr.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omlztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omsztmcm.fd) (/usr/local/texlive/2011/texmf-dist/tex/latex/psnfss/omxztmcm.fd) Overfull \hbox (8.03372pt too wide) in paragraph at lines 25--25 [][]  \OT1/ptm/m/n/12 Gilbert, D. G., Mc-Cler-non, J. F., Ra-bi-novich, N. E.,  Sugai, C., Plath, L. C., As-gaard, G., ... Botros,  ./test6.tex:25: Undefined control sequence. <argument> \mkbibdateapalongextra                                    {year}{month}{day}\iffieldundef {endyear}{... l.25   I tried many different sources in several different *.bib files before eventually trying the .bib database shown above and included with biblatex-apa. All trials gave a similar error.  Can someone help? I'm impressed that the poster above was able to do anything with apa6e and biblatex-apa, and if I only had her problem of having the reference page title show up in bold, I'd be really happy.  If you need to know, my tools are from a fresh installation of MacTeX that I immediately updated using the TeX Live Utility. I've checked my versions for apa6e (v0.3) and biblatex-apa (v4.2), and I think these are current.


Why doesn't regex '.+' work as expected?

[root@localhost opt]# cat cfg key = value [root@localhost opt]# grep 'key\s*=\s*.+' cfg [root@localhost opt]#    My intent is: the = sign may be followed by zero or more spaces, but must be followed one or more non-space characters.  Why doesn't it output the line key = value?


Solving the equation X = AX + B of languages for X

I'm currently working on the following problem for my computer theory class. It goes as follows:     Let $A$ and $B$ be regular expressions. Show then that $A^* B$ is the   solution of $X = AX + B$.   Am I supposed to let $X = A^*B$? If so then  $$A^* B = A(A^* B) + B$$  I can understand that $A(A^* B)$ could be reduced to $A^*B$ but what happens with the ${}+ B$ part of the expression?  I've read up on Kleene algebra and found an axiom that seems relevant in which  $$b + ax \leq x \Rightarrow a^∗b \leq x $$  but I'm not actually sure if it applies.


Change every first word color in li with javascript only

I have list of links, and I need to change every first word color or just add html tag with class.  My code is:

example one

example two

example tree

   For example every word "example" in list need to be red color.


why doesn't Heisenberg's uncertainty principle also work for macroscopic bodies which are in-turn made up of quantum-particles?  ps: if proof is provided it will be a lot more useful.


Galois group of the product of two fields being the product of Galois groups?

I'm just wondering if the following theorem is reasonable and whether the proof is makes sense or not? Also I have an application of it which I was trying to do earlier but I made a lot of mistakes so I would be very grateful if anyone would give some comments on this in case I have some very strong misunderstandings about Galois theory.    Theorem Let $E_1$ and $E_2$ be Galois field extensions of $F$ with trivial intersection ($E_1 \cap E_2 = F$), then $E_1 E_2$ has Galois group $\text{Gal}(E_1/F) \times \text{Gal}(E_2/F)$.  Proof   $E_1$ and $E_2$ are splitting fields (over $F$) of some polynomials $f_1$ and $f_2$ so $E_1 E_2$ is the splitting field of $f_1 f_2$ over $F$ and therefore it is Galois and we are justified using the "Gal" notation. Let $\sigma_1 \in \text{Gal}(E_1/F)$ and $\sigma_2 \in \text{Gal}(E_2/F)$ then by the fundamental theorem of Galois theory we can lift these both into elements of $\text{Gal}(E_1 E_2/F)$. The claim is that $\sigma_1 \sigma_2 = \sigma_2 \sigma_1$, to see this consider an element $\alpha \in E_1$, we have both $\sigma_2 \alpha = \alpha$ and $\sigma_2 \sigma_1 \alpha = \sigma_1 \alpha$ because it is invariant with respect to $\sigma_2$, but we can combine these equalities to get $\sigma_1 \sigma_2 \alpha = \sigma_2 \sigma_1 \alpha$. Both groups $\text{Gal}(E_i/F)$ ($i = 1,2$) are included in $\text{Gal}(E_1 E_2/F)$ and the degrees say there are no more elements, furthermore since they commute we can conclude $\text{Gal}(E_1 E_2/F) = \text{Gal}(E_1/F) \times \text{Gal}(E_2/F)$.     So hopefully that theorem is, if not correct, fixable.. and can be used to prove that $\mathbb Q (\sqrt{a_1},\sqrt{a_2},\cdots,\sqrt{a_n})$ has Galois group $C_2^m$ ($m \le n$) over $\mathbb Q$?


How to create a non-destructive and reusable blurred/frosted glass effect?

How can I create a generic blurred background that can be used on multiple images similar to the example below?  I need a white frosted glass looking png that I can set use to layer over regular images to give them all a frosted glass look (like you can almost make out whats behind it; maybe some colors).  Examples:       Maybe a white background with texture (grainy texture) then Gaussian blur that and then use it as a layer over all my images.  I know the link I posted above is probably just an image blurred, but I need a layer that can be reused in an iOS project. This way it can be used a view layer over sections of an image and make the image underneath look blurred.  Maybe I shouldn't use blur as the term here. I am looking for frosted glass look.  What I am trying to do with this image is import it to my iOS app use it a view background. Then when this view is over other views (a map view, a photo, etc...) they all are frosted. I am trying to create the effect of this image from iOS 7. And no I don't want to use the new iOS 7 design features, because most of my users are on iOS 5 still. And no I don't want to force them to upgrade.


using "should" in an if adverbial clause

Do any one know if we use the word should in any if adverbial clause, so how that affects the sentence? Just my Profs. told me this:  when we add "should", this emphasises the speaker's uncertainty that something will happen.  Take for example.     I'll be at my uncle's house in case you should need to reach me.


Suppose I'm writing a foo class which at some point calls  LoadClassWithOptions{book}   I would like to be able to pass either oneside or twoside to the book class based on various other considerations. Is there a way to explicitly set the option prior to calling LoadClassWithOptions or do I have to use LoadClass and pass the appropriate option explicitly?


Understanding how to foreground a background process correctly

I am wanting to background a long running script, which I know I can do using the following:  nohup ./install.sh &>/dev/null &   However, I also realize that if I leave that session, I can no longer see it running using job, since it would be running on another session if I login and then log back in.  My question is, before I run a script in the background, is there a way I can set it up so that I can return/foreground that script later? Even after I have logged out and then back in?


Use Richardson Extrapolation to compute the function

A regular n sided polygon inscribed in a circle of diameter one has the circumference as     cn = 2 n Sin( Π / n )    put h=1/n  How can i show whether c(h) = c1/h  satisfies the assumption for repeated Richardson extrapolation  Also i need to calculate c2 , c3 , c6 (which i can do ) and perform repeated Richardson Extrapolation  My knowledge in Richardson Extrapolation is very bad and i have got no idea how to do it  So please help


How can I withdraw my paper from a fake conference?

I submitted one of my research paper in a fake conference by mistake. Now I want to withdraw my paper from it, But I am facing problem in withdrawal as no email id is given on that website. The problem is that now my paper has been accepted by another conference. But according to Turnitin, my abstract is already published somewhere else. Does anyone here know how and where to report such fake conferences?


What is conditional normal variance of $X$ given that dependent $Y$ is bigger than a real number $M$?

There are two dependent normal variables with the same distribution and the correlation coefficient $\rho$: $X,Y \sim N(\mu, \sigma^2)$. I would like to get $P(X>M|Y>M)$. For that I need to know the conditional expectation and variance. But I can not find any information about the conditional normal variance in the case when $Y$ is smaller/bigger than some real number. There is not a comparison between two normal variables. And it's not the truncated normal distribution. I found the conditional expectation of $X$ given that $Y$ is bigger than $M$ is $E(X|Y>M)= \mu + \rho \sigma \frac{\phi(\frac{M-\mu}{\sigma})}{1-\Phi(\frac{M-\mu}{\sigma})}$. But what is the conditional variance $var(X|Y>M)$? Is it $(1-\rho^2)\sigma^2 $, as it would be in the case of $var(X|Y=M)$, where variance does not depend on $M$?


I need to change the features of a MapLayer in real-time but I don't know how I can update/refresh/repaint the layer on the map without having to remove it and add it again (which creates flickering).  map.removeLayer(pathML); SimpleFeatureCollection pointsFC = createFeatureCollection(points); pathML = new MapLayer(pointsFC, pathStyle); map.addLayer(pathML);   Do you know a better way to update the Layer rendering?


Is verbatim copying of short technical phrases without quotes but with citation considered plagiarism?

My question is similar to , but I want to ask about very short, concise wordings. As an example, I read a paper in which the author uses the following sentence:     While in the above description we have specified a local algorithm as   a function that maps local neighbourhoods to local outputs, we could   equally well […]   Now, instead of copying the exact sentence with its grammatical structure, I want to point the reader to this paper and briefly mention one of the conclusions made in this paper. Consider the sentence     author et al. [citation] show that a local algorithm is a function that maps local neighborhoods to local outputs.   The wording "function that maps local neighborhoods to local outputs" is a verbatim copy from the original source. Of course, I could replace this wording with something else that expresses the same, but I find the original citation very concise and I could not come up with a completely different and equally concise sentence.  I always use quotes in addition to a citation to tell the reader that not only the conveyed ideas and concepts, but also the wording, is not my own intellectual achievement. But in this case, one might argue that a person that has understood the ideas described in the original paper might come up with the exact same wording, hence the wording is not a result of the original author's linguistic style, but rather a direct conclusion of the idea he wants to explain.  Is it acceptable to use this wording with a citation and no quotations, or should you always use quotes for verbatim-copies?


Control physical tty over ssh - send enter key

I have a machine which is hooked up to a physical display and to which I have ssh & root access, but which does not have a mouse or keyboard.  It does not have X installed.  I would like to run some commands such that their output is displayed on the physical display.  My thought was that I should just write to /dev/tty1, as I only needed to send keypresses, not receive data.  And it worked - kind of.  The display is sitting at the login prompt, so running  echo "myusername" | sudo tee /dev/tty1   does in fact cause my username to fill in the field in the physical display!  But it never goes to the password prompt...sending newlines does not seem to be the same as a physical press of the enter key.  I have tried  echo -ne "\n" | sudo tee /dev/tty1 echo -ne "\r\n" | sudo tee /dev/tty1 echo -ne "\0" | sudo tee /dev/tty1   All just seem to add more blank lines to the username field.  Is there a trick?


I have files with names as,  A2002185.h23v04.005.2007177004246.hdf   A2002201.h23v04.005.2008288062542.hdf   I want to rename them by deleting everything in the name after first dot (and have names as A2002185.hdf, A2002201.hdf), how can I do that?


I have to run isup eno1 at every boot to get the device online. Anyone know how to keep the interface up after a boot?


Humans winning an interstellar war against hive-minded aliens due to human nature

I read this story in the mid/late 90's, and I believe it was in a Sci-Fi anthology or a magazine (such as Asimov), so it's possibly much older.  Unfortunately, the only details I remember are very generic, so Google searches haven't been terribly helpful; it all centers around a specific scene, which I believe is near the end of the story.  Each piece I can remember is a concept which is present in numerous stories/movies/games, which further leads me to believe that this is much older than the 90's.  I remember that humans are at war with a hive-minded alien species, and this species initially stomps human fleets in virtually every battle.  Because they're a hive mind, they are perfectly unified in strategy, politics, and scientific research.    At the end, it's revealed that this race is doomed to lose, because it's unified.  Humans are constantly fighting, so our strategies quickly adapted to the enemy's, and we were able to rapidly reverse-engineer the aliens' superior technology to use it for ourselves.  I believe it's also revealed that the war was intentionally started by a human organization to give humans a common enemy.  I vaguely remember that all of this is revealed through a single conversation at the end of the story, but that's the extent of my memories on the subject.


How do I copy a string to the clipboard?

I'm trying to make a basic Windows application that builds a string out of user input and then adds it to the clipboard. How do I copy a string to the clipboard using Python?


ArcGIS Field Calculator reformat Lat Long values

I have a table which is filled with point values that have been exported from an external source. Unfortunately the Lat Long values are formatted strangely and this is preventing me from simply displaying XY data to add the points to the map.  An example Latitude value is: 15 13 51S  I am wanting to create a field calculation in a new field which can convert that value into a decimal degree value so I can easily display the XY data.  My understanding is that I need to split the value into four parts (the degrees, minutes, seconds and direction values) and then divide the minutes value by 60, divide the seconds value by 3600, add those two values to the degree value and assign a negative value if the direction is S.  I have little experience using field calculator for complex calculations like this.   How can Python can be used to do it?


A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to:   remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as the display is plugged in, with no need to muck around with applets or xrandr(1)?   The configurations would have to be applied on a per-user, per-display basis.   If there is no such tool in the wild, I'd like to throw together one myself, but as far as I can see, there's no way to tell that a monitor has been plugged in. Do I have to poll with xrandr -q once in a while to figure out that an output was connected or disconnected, or is there a more efficient way to do it? Can udev be tuned to do just that?


The existence of unprovably unprovable statements provable in ZFC

I am aware of Gödel's second incompleteness theorem, the proven existence of several unprovable statements (in ZFC), and the possibility that a formal system may include statements that are unprovably unprovable, that is, that there are statements in them which cannot be proven by them, but additionally, they cannot even be proven to be unprovable by them.  My question is this:  Can the existence of unprovably unprovable statements be proven/disproven in ZFC or a (not necessarily conservative) extension like TG or MK?  (I am aware of a similar question which asks if there can be unprovably unprovable statements in formal systems, however this asks if the existence of such statements is provable in ZFC, which is a different matter)


Is there any Soundcloud desktop client except Tomahawk?

I'm looking for a Soundcloud desktop client. I found this post quite relevant, and somebody has suggeted Tomahawk, but the post is pretty old:   Is there any great desktop client to browse your sets, listen to your tracks, search for and listen to new tracks, create sets, upload your tracks, and follow people all from inside the client?


PHP calling AJAX function that relies on passed PHP function values not working

In reading I am not sure if the issue below could have something to do with needing a custom wordpress ajax handler? All of these functions are inside my functions.php file. I have a couple of PHP functions that are supposed to pass information from one to another. The an AJAX call to the final function should produce the final result through that call. Its not happening. My count results in 0 and I am not understanding why. If I replace my query with a static array like [44,55,99,33] then it will pass the values ok. Likewise if I keep the query and simply replace the $id in the query and make it a static id such as '20' then it works. I would think that the id was the issue then and it wasnt pulling properly but it seems to work ok just not pass? function idx(){     global $wpdb, $id;       $getId = $_SERVER['REQUEST_URI'];     $ecp = explode('/', $getId);     if($ecp[3] != ''){         $id = $ecp[3];     }         return $id; } add_action( 'after_setup_theme', 'idx' );  =============================================== function Total_Result(){     global $wpdb;     $id = idx();        /*$resultx = [44,88,59,52];*/ ;      $resultx = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$wpdb->prefix}custom_form_submission_conversation as cc LEFT JOIN {$wpdb->prefix}custom_form_submission as cs on cc.fsid ='$id' WHERE fsid='$id'" ));          $resultxs = array($resultx);          $total_result =  count($resultxs[0]);     echo  $total_result; }  when I var_dump $resultx I get: array(3) { [0]=> object(stdClass)#1256 (36) { [“cid”]=> string(3) “167” [“fsid”]=> string(2) “20” [“specified_date”]=> string(3) “yes” [“price_quote”]=> string(4) “1140” [“posted_by”]=> string(9) “dc_vendor” [“limit_count”]=> string(1) “1” [“read_unread”]=> string(1) “1” [“vendor_response”]=> string(4) “zero” [“date_created”]=> string(19) “2021-04-15 11:39:08” }   [1]=> object(stdClass)#1257 (36) { [“cid”]=> string(3) “186” [“fsid”]=> string(2) “20” [“specified_date”]=> string(3) “Yes” [“price_quote”]=> string(3) “602” [“posted_by”]=> string(8) “customer” [“limit_count”]=> string(1) “1” [“read_unread”]=> string(1) “1” [“vendor_response”]=> string(4) “zero” [“date_created”]=> string(19) “2021-04-15 11:39:08” }   [2]=> object(stdClass)#1258 (36) { [“cid”]=> string(3) “188” [“fsid”]=> string(2) “20” [“specified_date”]=> string(3) “yes” [“price_quote”]=> string(4) “1017” [“posted_by”]=> string(9) “dc_vendor” [“limit_count”]=> string(1) “1” [“read_unread”]=> string(1) “0” [“vendor_response”]=> string(4) “zero” [“date_created”]=> string(19) “2021-04-15 11:39:08” } }   so then I try and pass that data like so: function getvendorresponsestatus() {     global $wpdb; $id = idx();          $total_resultx = Total_Result($id);         die; }  Ive tried with and without the die();. The AJAX call is: setInterval(function(){     var ffiidd = jQuery('#ffiidd').val();     var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";          jQuery.post(ajaxurl, {         action: "vendorAjaxprog",         ffiidd: ffiidd     }, function(data) {         console.log(data);         jQuery.post(ajaxurl, {             action: "getvendorresponsestatus", //<<<<<<<< this is the action that calls the function             fsid : ffiidd         },         function(datas) {             console.log('+ datas);             jQuery('.cust_vendor_top').html(datas);         });         if(data == 0){}else{             jQuery('.ajaxreload').html(data);                                     }     });               }, 5000);/*==30 seconds==*/  So the question is why wont it pass along the query array information but it passes a basic array or it will pass if I change the id in the query to be static? I know the query is good because of when I var_dumped it, I have results before I get to the Total_Result() function.


How to fix a leaking trim plate in shower

My shower leaks when water is splashed onto the trim plate around the water dial.  I assume there is some sort of gasket that needs to be replaced.  I do not know what any of these parts are called.  Please enlighten me as to the name of the parts I'll be dealing with, and any information that may be helpful in fixing this problem.  To be clear, I can run the shower for a solid hour when nobody is in there with no leaking.  Once someone splashes water onto the handle or spigot, water can be seen leaking around the pipe (witnessed through access panel).


I have been actively using Stack Exchange app for some days now.  In my account page, in the place of userID, it says user470992. How can I change it to something of my choice. I am using the app in Android platform.  Please provide step by step solution.  Also, how do I log into Stack Exchange in my other devices with this account?


Does the word "hope" require the use of the subjunctive mood?

e.g. - I hope you be/are fine during your travel   - I hope you be/are fine living in your new apartment


What is the parity of permutation in the 15 puzzle?

You might know the :  $\hskip1.4in$  Concerning the solvability, Wiki says:     The invariant is the parity of the permutation of all 16 squares plus the parity of the taxicab distance (number of rows plus number of columns) of the empty square from the lower right corner. This is an invariant because each move changes both the parity of the permutation and the parity of the taxicab distance. In particular if the empty square is in the lower right corner then the puzzle is solvable if and only if the permutation of the remaining pieces is even.   I don't get what exactly is meant with the  in this special case?


I intend to use fsck for checking my Linux partition of the main disk, because its file system is suspicious of being not unmounted cleanly by shutting down the system. I have searched in my environment variables: none of them except of PATH should control the fsck program. But the program apparently needs to be used during a boot: :~$ fsck -V fsck from util-linux 2.20.1 Checking all file systems. [/sbin/fsck.ext4 (1) -- /] fsck.ext4 /dev/sda6  e2fsck 1.42 (29-Nov-2011) /dev/sda6 is mounted. WARNING!!!  The filesystem is mounted.   If you continue you WILL cause SEVERE filesystem damage. Do you really want to continue? no check aborted.  (There is no /forcefsck file in my root according to  . My etc/fstab file contains    # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # #                 proc            /proc           proc    nodev,noexec,nosuid 0       0 # / was on /dev/sda6 during installation UUID=1ac55d8d-c112-4bc7-9e79-921d196f9f79 /               ext4    errors=remount-ro 0       1 # swap was on /dev/sda7 during installation UUID=54f7e314-50e2-419b-a45d-47c3058ecc00 none            swap    sw              0       0 /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0   ). According to an answer to  I have tried tune2fs hoping that I'll get the present value of the max_mounts_count parameter to be able to set it to 1 for checking the partition during the next boot. But after sudo rm /var/lib/update-notifier/fsck-at-reboot and a restart I have only got a response  :~$ tune2fs -l /dev/sda6 tune2fs 1.42 (29-Nov-2011) tune2fs: Permission denied while trying to open /dev/sda6 Couldn't find valid filesystem superblock. Can I use sudo tune2fs -l /dev/sda6 safely? Thanks.


Extract the first word of a string in a SQL Server query

What's the best way to extract the first word of a string in sql server query?


All chrome extensions disabled on startup

Every time I restart chrome it opens with all extensions disabled. I uninstalled/reinstalled chrome and this did not fix the problem, and I still have to manually enable every extension each time I start Chrome.


Can't eject drive - any idea what the following processes are?

I am having trouble with the time-honored problem of ejecting 2 external hard drives (Seagate). Windows tells me that both of them have files in use. Handle shows me the following: PS blarg> handle64.exe -a -nobanner E:\ System             pid: 4      type: File          45C0: E:\$Extend\$RmMetadata\$TxfLog\$TxfLogContainer00000000000000000001 System             pid: 4      type: File          4B30: E:\$Extend\$RmMetadata\$Txf System             pid: 4      type: File          C77C: E:\$Extend\$RmMetadata\$TxfLog\$TxfLog.blf System             pid: 4      type: File          CF2C: E:\$Extend\$RmMetadata\$TxfLog\$TxfLogContainer00000000000000000002 svchost.exe        pid: 5584   type: File           270: E:\$Extend\$ObjId:$O:$INDEX_ALLOCATION svchost.exe        pid: 5584   type: File           29C: E:\System Volume Information\tracking.log  PS blarg> handle64.exe -a -nobanner I:\ System             pid: 4      type: File           488: I:\$Extend\$RmMetadata\$TxfLog\$TxfLog.blf System             pid: 4      type: File          B8D4: I:\$Extend\$RmMetadata\$TxfLog\$TxfLogContainer00000000000000000002 System             pid: 4      type: File          C2A8: I:\$Extend\$RmMetadata\$Txf System             pid: 4      type: File          D19C: I:\$Extend\$RmMetadata\$TxfLog\$TxfLogContainer00000000000000000001 svchost.exe        pid: 5584   type: File           1D0: I:\$Extend\$ObjId:$O:$INDEX_ALLOCATION svchost.exe        pid: 5584   type: File           2B4: I:\System Volume Information\tracking.log  Obviously shutting down the machine works but is annoying. I've tried closing everything in my system tray and turning off Windows Defender. I've tried looking for updated drive firmware but there doesn't seem to be any. Best I can tell the drives are not shared with the network. I've      there is a lot of noise. I've confirmed these drives aren't listed in my Start menu search indexable location. I'm in the process of turning off the checkbox Right Click -> General -> Allow files on this drive to have contents indexed in addition to file properties, and we'll see if that matters... I've noticed both of the drives have the following setting:  One forum post I found seemed to believe that with this setting, it makes sense that "Safely Remove Hardware" would give issues, since you don't need to use it with this setting. The answer would be to either use "Better Performance" & "Safely Remove..." OR use "Quick removal" & don't use "Safely Remove...". While that does sort of match the description above, that doesn't seem right to me. With my current setting, doesn't the failure message indicate that, despite the above setting, something is indeed using the drive? Any ideas what that might be? It looks like some sort of system file system management process to me, but I haven't seen anything conclusive.


UK visitor visa from Germany - necessity of translating supporting documents

Good day to all,  I am an Indian citizen working and living in Germany, and would like to visit the UK for the Christmas holidays. My question is regarding the translation of the supporting documents. Since I live in Germany, all my documents are in German.  Of course, it would cost me an awful lot of money to translate all the documents from German to English. Hence, I would like to know if anyone have the experience of attaining a UK visa from Germany, and if yes, what documents were translated.  Following is the list of documents which I plan to submit in the order of priority:   Work contract (I will translate this). Salary slip (I will translate this too). Bank statements (this would rip me off, if I attempt to translate, as it is around 10 pages). Apartment contract (it is also 5 pages, which is a no-go for translation). City registration (also an additional document, means more translation costs).   If anyone could throw some light in this issue, it would be a huge help for me.  EDIT:  So I applied for the visa.  Here is what I submitted, and the experience of the visa application. First of all, thanks a lot to all those who provided valuable suggestions - @simbabque, @phoog  I submitted following 1.Passport and visa(german) 2.Work contract (German original and English translated) 3.Salary statement(German orignial and English translated) 4.Bank statement (in German WITHOUT translation) 5. City Registration (in German WITHOUT translation)  One caution to all who apply in Germany : The visa application centre has no role in providing any help on which documents to submit. You have to decide yourself and give them all what you think is necessary for the application success. The application centre just takes all the papers that you give, put them in a cover, and send it to the UK. They do not review, do not ask for any document. This is entirely our personal responsibility. It is also well stated by them. So in the end cannot blame anyone if you are not well informed with the process.  I received the visa after two weeks.  Here is my conclusion. As long as the embassy is convinced that your application is genuine, there is no issue with the visa application process. I found the entire process quite straight forward and logical.  I decided to translate work contract and salary statement, as an Officer reading the document in German clearly would have no clue as to what is written in the contract, or what the numbers mean in the salary statement.  For the bank statement, it is very easy to skim through it and clearly see the monthly incoming of the salary and the expeditures. This , according to my logic did not need a transaltion, and I was proven right!! Also, the city registration document, is to verify the address of your stay. Here I took a chance, but as long as you have the same address in all other documents submitted by you (german visa, bank statement, work contract, salary statement) , this is clearly enough.  I did not book any flight, nor submit any flight details.  This also does not make any sense , without having the visa.  Just for credibitlity of my intended dates of travel, I booked a hotel, with an option to cancel any time. Also I submitted a short itinierary of what I plan to do during my visit(this is inside the application).  All in all, the visa application is quite straight forward and logical, as long as you stick to their requirements.   I wish all good luck pursuing the same.  Now I am looking forward to my visit in the UK for the Holidays.  Cheers Everyone!!


Prove that  $|e^z - 1| \le e^{|z|} - 1$ for all complex number $z$  How to prove this? I have tried a lot, like z=x+yi. But it doesn't give a way to correctly solve this problem


Score/Answer, for any tag badge explanation

I am an active answerer in the Swift, iOS, and Swift4 tags.  I am trying to get a badge of one of those, currently sitting on Swift tag with those stats:     19/100 score      39/20 answers   I have 800+ total reputation points and at least a 100 earned from the Swift tag, but those stats seems to be never updated. Am I missing something?  How do I achieve this? I already see the part (non-Community Wiki) and the questions are not community wiki or the answers, so what is the explanation?


One might think that  echo foo >a cat a | rev >a   would leave a containing oof; but instead it is left empty.   Why? How would one otherwise apply rev to a?


Rename all the files within a folder with prefix “Unix_” i.e. suppose a folder has two files a.txt and b.pdf than they both should be renamed from a single command to Unix_a.txt and Unix_b.pdf


Find files containing keyword and show only the file path and the line number

I'd like to find all the Java files containing keyword File.createTempFile with the line number. Here's what I did:  $ find . -name "*.java" | xargs grep -n "File.createTempFile" ./nuxeo-studio-test/src/test/java/com/nuxeo/studio/web/StudioServletTest.java:162:            File tmpFile = File.createTempFile(jarEntryName, null, Environment.getDefault().getTemp()); ./nuxeo-studio-ui/src/main/java/com/nuxeo/studio/core/builders/WorkflowFeatureBuilder.java:421:            tmp = File.createTempFile(".workflow-to-zip", ".tmp", workspace.getRoot()); ./nuxeo-studio-ui/src/test/java/com/nuxeo/studio/core/backup/TestS3Backup.java:101:        File tempFile = File.createTempFile(RandomStringUtils.randomAlphabetic(5), ".tmp"); ./nuxeo-studio-ui/target/classes/com/nuxeo/studio/core/builders/WorkflowFeatureBuilder.java:421:            tmp = File.createTempFile(".workflow-to-zip", ".tmp", workspace.getRoot()); ./nuxeo-studio-web/src/main/java/com/nuxeo/studio/web/v1/ProjectResource.java:191:            File zip = File.createTempFile(filename + "-", ".zip", tempRepo);   However, I found this result too long to read. I'd like to keep only the file path and the line number. Here's expected result:  ./nuxeo-studio-test/src/test/java/com/nuxeo/studio/web/StudioServletTest.java:162 ./nuxeo-studio-ui/src/main/java/com/nuxeo/studio/core/builders/WorkflowFeatureBuilder.java:421 ./nuxeo-studio-ui/src/test/java/com/nuxeo/studio/core/backup/TestS3Backup.java:101 ./nuxeo-studio-ui/target/classes/com/nuxeo/studio/core/builders/WorkflowFeatureBuilder.java:421 ./nuxeo-studio-web/src/main/java/com/nuxeo/studio/web/v1/ProjectResource.java:191   Could somebody teach me how to do so?


Measuring percentage of visitors connecting over https

Does Google Analytics expose information about the connection protocol used by site visitors? I don't see any option in the customization section... is this something I'd have to use a custom variable to capture?


Layover at Narita, Japan. Do I need a transit visa?

I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita?


I really screwed up and did  sudo chmod -R 777 /etc   After searching for hours for an answer I eventually booted into recovery mode and did:  mount -o rw,remount /  # because the file-system was mounted as read-only chmod 0440 /etc/sudoers chmod 0440 /etc/sudoers.d/README chmod 0700 /var/lib/sudo   I am now able to login, but not as my user, but "I have no name!". I also get an error if I try to do anything:  bash: /etc/profile: Permission denied   Ubuntu is installed on a seperate SSD and I have 5 hard drives in RAID 5. I am afraid to not being able to remount the RAID array if i reinstall Ubuntu. And to connect a CD drive I have to disconnect one of the hard drives and I am really afraid of losing data. Is there something I can do?


Uninstalling Kali Linux and restoring the GRUB of Ubuntu from a triple boot

I have a system which has triple booted Windows 10, Ubuntu 16.04 and Kali Linux. I installed them in that order, so right now when I turn on the computer the GRUB from Kali Linux is what loads.   I want to uninstall Kali Linux which is the easy part. I'll just delete the partition which has Kali and it's done. But how do I restore the GRUB of Ubuntu so that I can boot Ubuntu or Windows from the bootloader menu?


Prove that if $n$ is a perfect square, then either $n \equiv 1 \pmod 4$, or $n \equiv 0 \pmod 4$.

An integer $n$ is a perfect square if and only if it can be expressed as the square of some other integer i.e. there exists some integer $a$ such that $n=a^2$.    Prove that if $n$ is a perfect square, then either $n \equiv 1 ~(\mod 4)$, or $n \equiv 0 ~(\mod 4)$.  How can I prove this?


apache2 points non-www to root instead of website folder

I have few different vhost created and every one has its own folder in /var/www/ like this /var/www/example1/ /var/www/example2/  Now, when I type url with www www.example1.com it points to the /var/www/example1/index.html so that's working fine, but when I type without www example1.com it points to /var/www/ and I can see all the folders, I don't have index.html in /var/www/. I looked  and created .htaccess in /var/www/:     RewriteEngine On     RewriteBase /     RewriteCond % ^example1.com [NC]     RewriteRule ^(.*)$ http://www.example1.com/$1 [L,R=301]  but it's not working. This is how the all vhosts look like: <VirtualHost *:80>         ServerAdmin webmaster@localhost         ServerName *example1*         ServerAlias *.*example1*         DocumentRoot /var/www/example1         <Directory />                 Options FollowSymLinks                 AllowOverride All         </Directory>         <Directory /var/www/example1/>                 Options Indexes FollowSymLinks MultiViews                 AllowOverride All                 Order allow,deny                 allow from all         </Directory>          ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/         <Directory "/usr/lib/cgi-bin">                 AllowOverride None  I have cleared browser cache. Any idea how to fix this?


Let $T:V\rightarrow V$ be a linear map. If $\lambda^2$ is an eigenvalue of $T^2$, then $\lambda$ or $-\lambda$ is an eigenvalue of T.  I have then $(T\circ T )(v) = T^2 (v) = \lambda^2 v$, but $\lambda^2 = (-\lambda)(-\lambda)$ or $(\lambda)(\lambda)$.  Any hints


I shut down my computer the hard way and next startup there was message on boot for several seconds saying recovering journal. Four startups later and the message was not there - only the first time. Looks like there are no consequences or side effects. Thanks to  I know why it happened but nowhere on the internet says what the journal is. There are no problems with it, I'm just interested in what it is.


Does there exist a detailed list or database of science fiction works, that includes both year written and year set?

I had it in mind to create a kind of 2D plot of classic science fiction stories, with the year it was written on one axis, and the year it's set on the other. The goal is to see if any patterns stand out in this data, such as Amara's law ("we tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run").  However, in order to make such a plot I need a good source of data. A web site with a big list would do, but a proper database would be even better, if one exists. At a minimum it needs to have fields for year of publication and the year(s) in which the story is set, and it would be helpful also if it contains data about subgenre or details of any predictions made, and/or how popular the work was. I don't particularly mind if it's restricted to just films or just novels, but it should include at least all the most significant works of the 20th century. A machine readable format is greatly preferred! (I can scrape HTML if I have to.)  I note that the  doesn't seem to have the year in which the story is set as a field, so it doesn't work for my purpose.  (One more note: I'm not asking for big lists to be posted in the answers, please don't do that! Rather, I'd like pointers to reasonably complete resources, if they exist.)


how to get rid of web eula notification?

whenever i install a package eula notification appears.like   │ TrueType core fonts for the Web EULA                                           │                                                                                │ END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE                              │                                                                                │ IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement            │ ("EULA") is a legal agreement between you (either an individual or a           │ single entity) and Microsoft Corporation for the Microsoft software            │ accompanying this EULA, which includes computer software and may include       │ associated media, printed materials, and "on-line" or electronic               │ documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your           │ rights to make and use copies of the SOFTWARE PRODUCT, you agree to be         │ bound by the terms of this EULA. If you do not agree to the terms of           │ this EULA, you may not use the SOFTWARE PRODUCT.                               │                                                                                what should i do to get rid of this ?


Decode gzipped web page retrieved via cURL in PHP

I'm retrieving a gzipped web page via curl, but when I output the retrieved content to the browser I just get the raw gzipped data. How can I decode the data in PHP?  One method I found was to write the content to a tmp file and then ...  $f = gzopen($filename,"r"); $content = gzread($filename,250000); gzclose($f);   .... but man, there's got to be a better way.  Edit: This isn't a file, but a gzipped html page returned by a web server.


Someone votes your question down without understanding it. Question gets ignored because it has negative votes

Is there a solution if this happens to your question, esp. if the topic of the question is not that popular.


What's the purpose (if any) of "javascript:" in event handler tags?

I've been making a concerted effort to improve my javascript skills lately by reading as much javascript code as I can. In doing this I've sometimes seen the javascript: prefix appended to the front of event handler attributes in HTML element tags. What's the purpose of this prefix? Basically, is there any appreciable difference between:  onchange="javascript: myFunction(this)"   and  onchange="myFunction(this)"   ?


Which one is correct?     He engraved photos of himself and his wife on the coins.   Or     He engraved photos of him and his wife on the coins.


What is the difference between $f(x,y)$ and $f(x,y(x))$?  Are both functions of two variables, $f:\mathbb R^2 \rightarrow \mathbb R$?  Update: The possible duplicate question is regarding an ODE.


Are there guidelines for homebrewed content?

I am going to be a first-time DM in the near future, and one of the players wants to run a homebrewed class that sounds pretty exciting. I'm eager to include the class, but some searching only turned up homebrewing guidelines for .  Are there official  guidelines for homebrew content that exist outside what's already provided in the DMG (official errata etc.) and where might I be able to find them?


Create a Border with An Image as the Stoke

I would like to know how i can create a border (or rectangle with no fill) but with an image as the border lines.  Image example attached.  Can competently use Indesign, Illustrator or Photoshop so open to all.  Thanks


How do I run different ubuntu versions in a virtual machine?

Been looking into Cinnamon, Mint, and MATE and want to run them in a virtual machine but I'm struggling to get the ISO's to run them in a VM from downloads. I think I'm doing something wrong but honest to goodness don't know where to even start. I have Boxes downloaded as my software I'm using to run a VM but I can't find the ISO files. Any help as to where I can go to get ISO's to run in a virtual machine for each of those above?


What Is the Best UBUNTU script for installing LAMP

I  have tried to install LAMP on Ubuntu 14.04LTS Cant get PHPmyAdmin to work and access MYSQL Where is the clearest set of instructions to install LAMP


Bounty: Should I award it to the only answer I have got?

I have received only one answer during the bounty period. The answer is good enough in the sense that I'll choose that path if that's really the last thing in the world I can do about it. Should I award the bounty to that guy?  (I'm still in the grace period. Should I wait or what)?


What are the conditions of solvability of the equation $p^2=2xq^2+2yq+1$ where  $p,q$ being prime and $x,y\in \mathbb{N}$?  Thank you in advance...


I am trying to color the following table:   \begin{tabular}{ |c|c|c|c|c| } \hline 1,5h&               0,25h&   13h&    0,25h& 0,5h \\ \hline Flight preparation& Taxiing& Flight& Taxiing&   Flight debrief \\ \hline &   \multicolumn{3}{|c|}{Block time}&   \\ \hline \multicolumn{5}{|c|}{Duty time} \\  \hline \end{tabular}   Goal:   To make the cell "BLOCK TIME" in the color yellow. To make the cell "DUTY TIME" in green.    Please note, I do not want to color a complete row or column. Just the CELL!


Can I install a package from a previous version or it will be problems?

I was trying to install a package called: "qt-at-spi", but this doesn't exist in the version 20.04 LTS (Focal Fossa), so I went to the repositories and this package exists but only on the version 18.04 LTS (Bionic Beaver) this is the URL:  . My question is: if I install this package from a previous version my system won't have issues? , if it so , what should I do ?  waiting for a new package from the version 20.04 or trying to break dependencies?


Peculiarity in finding number in vector - MATLAB

I created a consecutive number sequence as follow:  dTime = 0:0.01:5;   However when I type   k=find(dTime==3.53)   I get:  k =     Empty matrix: 1-by-0   But k=find(dTime==3.52), produces a result. Any recommended solutions? Why does the problem arise?


Changing default \citet font in biblatex

I'm using biblatex to manage my citation in a natbib style :  \usepackage[style=alphabetic,maxnames=6,natbib=true]{biblatex}   However when I use the \citet command, the author's name is in a \textsc font, I would like to change this behavior so that the font used is the default one, but I could not find how to do this in biblatex's documentation.


Is the sorting algorithm used by .NET's `Array.Sort()` method a stable algorithm?

Is the sorting algorithm used by .NET's Array.Sort() method a  algorithm?


Regex /Perl : Match all instances of any string between two specified strings

I need to find all strings that occur between the words "Close" and "Minor", for example, but the words "Close" and "Minor" occur many times in my string. How can I use regex to find all of the strings between each instance of "Close" and "Minor". Example:  In the text  $string = "Minor fall major fifth Close to home Minors cannot vote before 18 Polls Close at 8";   I want to match   fall major fifth   and   s cannot vote before 18 Polls  I have tried to use this:  my @matches = $string =~ /Minor(.*) Close/gi;   but this matches  Minor fall major fifth Close to home Minors cannot vote before 18 Polls Close   which matches the words themselves, and does not produce the desired match.  I'm so lost!


Using comma(,) when listing several objects

Which is correct expression using comma or not in front of last object when listing several objects?  ... A, B, C and D. ... A, B, C, and D.


I have the following limit  $$\lim \limits_{n \to \infty}\left({1 \over 2^1}+{3 \over 2^2} + {5 \over 2^3} + \dots + {2n-1 \over 2^n}\right)$$  My idea is to separate it into geometric progressions and rewrite them using the equation for the sum of first terms of a geometric progression. I manage to get one geometric progression but the other elements of the sum don't follow a geometric pattern. Do you have any hints as to how I might separate the terms? Or, alternatively, if there is a simpler way to do this?


What kind of threshold should I have between up-voting, down-voting, and "not-voting"?

I decided to take a look at my  on SO, and I get the impression that "I'm doing it wrong" with regard to up/down votes.  I feel like, if I have 6,000+ answers, 1,500 total votes seems like a lousy amount to have.  Now, while I do have a few more upvotes than downvotes, I tend to find myself looking at the vote buttons and either going "this is a crap question, downvote it", or "eh... it's a decent question, but is it upvote-worthy?"  I feel like I'm being overly conservative with my votes.  Is there any way to find out how my voting compares to that of users in general? And what, if anything, should I change about my voting attitude to improve?


I am fascinated by the way the CLR and GC works (I'm working on expanding my knowledge on this by reading CLR via C#, Jon Skeet's books/posts, and more).  Anyway, what is the difference between saying:  MyClass myclass = new MyClass(); myclass = null;   Or, by making MyClass implement IDisposable and a destructor and calling Dispose()?  Also, if I have a code block with a using statement (eg below), if I step through the code and exit the using block, is the object disposed of then or when a garbage collection occurs? What would happen if I call Dispose() in the using block anyay?  using (MyDisposableObj mydispobj = new MyDisposableObj()) {  }   Stream classes (eg BinaryWriter) have a Finalize method? Why would I want to use that?


Spawn number different from two previous ones

In this script I am creating a random number different from the previous one. I would like it to be random number different from the TWO previous ones but I can't get it to work. Does someone know the answer to this?  void SpawnElement() {         prevSpawnIndex = prefabIndex;          while (prevSpawnIndex == prefabIndex)         {             prefabIndex = Random.Range(0, prefabList.Count);         }          moveHelper = Instantiate(prefabList[prefabIndex]); }   Thanks in advance!


Preimage of codimension one subspace of the quotient $g/D^1 g$

I am trying to prove the following.  Proposition Let $g$ be a Lie algebra such that the first derived algebra $Dg$ is a proper ideal of $g$. Consider the quotient $g/D^1 g$, and show that the preimage of any codimension 1 subspace is   an ideal, and has codimension 1.   I could show that the preimage is indeed an ideal, but I need some help with the part about the dimensions:  So suppose that $\phi: x \mapsto [x]$ is the quotient projection. And write $[h] + Dg$  for a codimension 1 subspace of $g$ (here $h\subset g$). Then the preimage of this subspace is just the linear span $h+Dg\leq g$. Let $y+z \in h+Dg$ with $y\in h$ and $z\in Dg$. Let $x\in g$. We want to show that $[x, y+z]\in h$, ie that $h + Dg \lhd g$. We can write $x$ as $x_0+x_1$ for $x_0 \in Dg$, $x_1\not\in Dg$. Then  $$[x,y+z] = [x_0, y+z] + [x_1, y] + [x_1,z] \in h + Dg$$  The inclusion follows since $Dg$ is an ideal so the first and third terms belong $Dg$; and $[x_1, y] \in D_g$, as $g/Dg$ is abelian.


Prove that $1 \over (1-4x)^2$ generates ${2n \choose n}$,  $n\in N$  I cant find theformula for that type of generating function, i have already tried expanding the combination and trying to expand the generating function. Any Ideas?


Which are all the known "joke items" that Fred & George created throughout HP History?

Fred and George seem to have created a wide range of gag gifts and practical joke items, both while at Hogwarts and then as owners of their "Wizard Wheezes" emporium.   What are all the known "jokes items" that Fred & George created throughout HP History and what were their side-effects?


how to fill intersection of 2 shapes in latex tikz package

I have to fill a specific region as given in the following figure.  The code I have written is   \begin{tikzpicture}  \draw (0,0) rectangle (10,10);  \draw (3.5,3.5) circle (5) node {A};  \end{tikzpicture}   Now, how to fill the intersecting area (area of circle overlapping the square)


When to use a web service and when not to use a web service?


I'm trying to understand the difference between the sparse file and no-sparse using the following article   I also created the sparse file  as mention over here.  But every time I create a file I see the block size to be equal to the actual size of the file (of the above sparse file create)  dd if=/dev/zero of=xen-guest.img bs=1 count=0 seek=1G   then using ls command to verify if the file is sparse file  ls -alshk 1.0G -rw-r--r--  1 ratatouille staff 1.0G Apr 17 08:48 xen-guest.img   Can someone explain me what I'm missing over here.  Note:  the OS is MAC-OS 10.12.3 and the above stuff works properly in Ubuntu.


System crontab:  /etc/crontab   Root crontab:  sudo crontab -u root -e   Which way is preferred? As they all run tasks within administration privilege.


Let $\Bbb F$ be a field with $k$ elements, where $k$ is a finite number. Prove that there exists a prime $p$ and a positive integer $n$ such that $$k=p^n$$


How can I roll back xserver-xorg-core and xserver-common?

A recent update to Xorg broke my desktop, which now looks like this:     In short, the desktop background is not updating on the secondary display. (And if there is no secondary display, the primary display background stops updating.)  Looking into the history, I found that this happened right after upgrading two packages:   xserver-xorg-core xserver-common   These were upgraded to 1.9.0-0ubuntu7.3.  I'd like to downgrade these packages. How do I do that?  I've checked that both have another version in the maverick repo:  xserver-xorg-core:   Installed: 2:1.9.0-0ubuntu7.3   Candidate: 2:1.9.0-0ubuntu7.3   Version table:  *** 2:1.9.0-0ubuntu7.3 0         500 http://fi.archive.ubuntu.com/ubuntu/ maverick-updates/main amd64 Packages         100 /var/lib/dpkg/status      2:1.9.0-0ubuntu7 0         500 http://fi.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages   However, apt won't let me downgrade them:  ville@fluxx ~ % sudo apt-get install xserver-common=2:1.9.0-0ubuntu7 xserver-xorg-core=2:1.9.0-0ubuntu7  The following packages have unmet dependencies:  xserver-xorg-core : Depends: xserver-xorg but it is not going to be installed E: Broken packages   And this is the reason:  ville@fluxx ~ % sudo apt-get install xserver-common=2:1.9.0-0ubuntu7 xserver-xorg-core=2:1.9.0-0ubuntu7 xserver-xorg-core  The following packages have unmet dependencies:  xserver-xorg-core : Depends: xserver-common (>= 2:1.9.0-0ubuntu7.3) but 2:1.9.0-0ubuntu7 is to be installed E: Broken packages   Am I out of options here?


I would really love to use package pst-solides3d to draw 3D solids but so far I haven't been able to work on it. I am just a beginner of using pst-solides3d so and I do not know how to figure this following code out. When I was compiling the simple following code, always was being the error, that is: ! Undefined control sequence. Please anybody helps me with that, many thanks to you.  Code complied:  \documentclass[a4paper]{report} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(1,1)(2,2) \psSolid[object=cube,a=2,action=draw*] \end{pspicture} \end{document}


Why is Max known as "Mad Max" in the Mad Max Franchise?

As the title suggests I was wondering why is Max known as "Mad Max" in this franchise? From the first movie till Fury Road Max is the only character who is not "Mad" and is the only sensible human in the post apocalyptic era. So how is he "Mad"? Is there something that I missed or being normal in abnormal times mean that one is "Mad"?


Clustering neighboring points inside ArcGIS Desktop?

I am using ArcGIS Desktop 10x. I have a shapefile of 300 points which I need to make groups, each of which will contain exactly 9 points which are closest neighbors.  I tried the '' tool, which have added NEAR_FID and NEAR_DIST to the attribute table but couldn't use it to group 9 neighbors. I also tried '' tool but this only makes 2 groups overall with variable number of members each time.  Anyone have any better idea?


How to invert a mixture of log-logistic distributions?

Say I have a CDF of the form  $$F(x) = \sum_{i=1}^n \frac{ k_i }{ 1 + (x/\alpha_i)^{ - \beta_i } }$$  $$\sum_{i=1}^n k_i = 1$$  How do I find the quantile function, i.e. how do I invert F for n>1? I tried the simpler n=2 case by hand, but I'm getting nowhere. I also tried , but no luck.  If there is no closed-form solution, can you point to a (googleable) way to get a numerical approximation (say in python)?


Consider a variant of two-finger morra where the winner is still determined   by the parity of the sum of the two numbers thrown (if it’s even, Alice wins money and if it’s odd, Bob wins   money), but the amount won or lost is the product of the two numbers.      If Alice plays 1 finger with probability p and 2 fingers with   probability 1 − p, what’s the expected payoff she gets even if Bob   knows p and can chose his strategy based on this knowledge? How should   Alice choose p such that this payoff is maximized?   Here's what I have so far, (assuming P(A=1) = p),  I know that the expected payoff for Alice is at least:   min(p - 2(1-p), -2p + 4(1-p))   And the expected payoff for Bob is at least (assuming P(B=1) = p),  min(p - 2(1-p), -2p + 4(1-p))   Which means that the optimal strategy for Alice would be to play 1 finger with probability 2/3, and the same goes for Bob.  I know how to get the expected payoff using these probabilities, but I don't know how to get the expected payoff for Alice if Bob knows p and can choose his strategy based on this knowledge. And how does Alice choose p such that the payoff is maximized?


I want to know if both of the sentences are grammatical or not:  I prefer not to end this.  I prefer to not end this.


Something wrong with monthly user rep - some users show quarterly figures?

There seems to be a bug on some sites right now. , for instance, the "month" tab (/users?tab=Reputation&filter=month) says that it's the score from 2016-08-01 but some users show their rep from the start of July onward.  It's not like that for everyone. For example, my own month's reputation shows (as it always has before) the figures for August only -- as it does for many other people.  Here's figures for CrossValidated (stats.SE); whuber (circled) and I earn fairly similar reputation amounts week to week. He and I have almost the same quarterly reputation, but his monthly is showing his reputation since the start of July, while mine shows only a few days of reputation.    vs    Is this a bug? Or some temporary issue?


How do you choose a font for extremely limited space, i.e. will fit the most READABLE text in the smallest space?

I often have very limited space when creating reports and dashboards for users. I usually use Arial, or Arial Narrow, but UI isn't my area of expertise, so I want to know, how do you determine an optimal font for fitting the most readable text in the smallest space?  Here is an example: Keep in mind this is just an example, as there are many times that space is limited, such as when you need to squeeze a million columns into a report, etc.


How can we show that the number of pairs $(a,b)$ (where the pairs $(a, b)$ and $(b, a)$ are considered same) with $\operatorname{lcm}(a, b) = n$ is equal to $$\displaystyle\frac{(2e_1+1)(2e_2+1)...(2e_k+1)+1}{2},$$ Where $n=p_1^{e_1}p_2^{e_2}\dots p_k^{e_k}$, $p_i$s are prime for all  $1\leq i\leq k$. I managed to guess this formula for a programming problem I was working on, but I'd be interested in a deduction or proof.


How to get the size of a collection in memory?

I have a custom collection that stores compressed data.  How can I easily get the size in KB or MB of the collection?  I want to see how efficiently my data is being stored, and the effect of compression on some of the data.


Why is $x - a$ a factor of $p(x) - p(a)$?

I'm reading a proof in a linear algebra book. It mentions $$p(x) -p(c)= (x - c) h(x),$$ where $c$ is a constant, and $p(x)$ and $h(x)$ are polynomials.  Can we always factor $p(x) - p(c)$ in this way?   Please give a proof.


Labels on tiled map sometimes unavailable

I have following case. Map of highway with labeled points placed by some interval. Problem is with labels that are partially on particular tile. Sometimes they are not drawn completely. I tried to find out which code is responsible for exact drawing but geoserver is too complicated for me on first attempt. I'm looking for help with schema around drawing flow in just master branch of geoserver or any practical resolution of my case.


A inequality proposed at Zhautykov Olympiad 2008

An inequality proposed at Zhautykov Olympiad 2008.     Let be $a,b,c >0$ with $abc=1$. Prove that:    $$\sum_{\mathrm{cyc}}{\frac{1}{(a+b)b}} \geq \frac{3}{2}.$$   Set $a=\frac{x}{y}$, $b=\frac{y}{z}$, $c=\frac{z}{x}$.   Our inequality becomes: $$\sum_{\mathrm{cyc}}{\frac{z^2}{zx+y^2}} \geq \frac{3}{2}.$$  Now we use that: $z^2+x^2 \geq 2zx.$ $$\sum_{\mathrm{cyc}}{\frac{z^2}{zx+y^2}} \geq \sum_{\mathrm{cyc}}{\frac{2z^2}{z^2+x^2+2y^2}} \geq \frac{3}{2}.$$  Now applying Cauchy-Schwarz we obtain the desired result.  What I wrote can be found on this link: . But now, I don't know how to apply Cauchy-Schwarz.   Thanks:)


How do I show that this function is continuous?

I'm interested in showing that $CX=\frac{I\times X}{\{1\}\times X}$ is contractible.  I defined the d.r $F(s,[t,x])=[(1-s)t+s,x]$ and the only missing part for me is to show that it is continuous. How do I do that?  I did see some related questions (example:  ), but couldn't understand completly why $F$ is continuous iff $F\circ(q×1)$ is continuous.  Also, is there a more traditional way to show the continuity?  Thanks


What GCC options should be set to have GCC as strict as possible? (and I do mean as strict as possible) I'm writing in C89 and want my code to be ANSI/ISO compliant.


I recently stumbled upon this:    (From page 13 of .)  Can anyone identify where the math symbols are coming from? It looks similar to the default LaTeX math font, but it's not quite. The curly braces, in particular, have real curl to them, and the asterisk and angle brackets are also different. I'd like to copy some of these features, if anyone can help me find where they've come from.


difference between $('#element_id') and $("#element_id") in JQuery

What is difference between following two syntax's in JQuery. Some people follow syntax 1 and some syntax 2  Syntax 1 $('#element_id')    OR  Syntax 2 $("#element_id")


LaTeX: issue when using multicol with RTL languages

I'm trying to use LaTeX with RTL language. when I set columns count to 2, LaTeX use LTR direction as default.  I try to use \RLmulticolcolumns command but it does not work!  \documentclass{book}  \usepackage{setspace} \usepackage[margin={2cm,2cm}]{geometry} \usepackage{multicol} \usepackage{fontspec} \usepackage{polyglossia}  \setmainlanguage{english} \setotherlanguage{arabic}  \newfontfamily\arabicfont[Script=Arabic,Scale=1.6]{Geeza Pro} \setlength{\columnsep}{1.5cm}  \begin{document}  \RLmulticolcolumns  \begin{multicols}{2}   \begin{Arabic}  \setstretch{1.9}  some RTL text...  \end{Arabic}  \end{multicols}  \end{document}   Any help?


what does $\cdot^\rho$ mean in the Harish-Chandra function?

Wikipedia defines the Harish Chandra function on a semisimple Lie group to be $$g\mapsto \int_Ka(kg)^\rho dk$$ where $K$ is a maximal compact subgroup, $a(g)$ is the $A$ factor in the Iwasawa decomposition of $g$ and $\rho$ is the Weyl vector (half the sum of the positive roots).  What does it mean to put that vector in the superscript?


Is Westworld an isolated part of the country or something else?

In Westworld (2016) we see this vast area of land that is the stereotypical 'western' locale with scrubland, some prairie, a few nice buttes, and so on.  On top of one of the larger mesas is a complex that houses the maintenance crew and developers. They even mention in casual conversation about rotating back home.    Is Westworld located in some sort of giant holodeck like building, or is it in a remote locale? (I was thinking something Jurassic park like since it's written by Michael Crichton).


Different style for frontmatter chapters in TOC

I am looking for a way to change the style of chapters in the TOC that belong to the front matter. Below I posted a minimal example code to illustrate my goal:  \documentclass{scrbook} \begin{document} \frontmatter \chapter{Preface} \chapter{Acknowledgements} \tableofcontents \mainmatter \chapter{First Chapter} \chapter{Second Chapter} \end{document}   Here, I would like to have the two frontmatter chapters Preface and Acknowlegements to be written in non-bold italics in the TOC, including their page numbers. I manage to write their names in the required style by simply using e.g.  \chapter[\itshape\textmd{Preface}]{Preface}   but this does not change the formatting of the page number.


Allowing a user to use sudo without a password

On a sandbox VM environment, I have a setup of Ubuntu Linux which is firewalled and cannot be accessed from outside the local system.  Therefore, on that VM, I'd like to give the administrative user (which I set up) the ability to run anything with sudo and not need a password.  While I know this is not secure, this VM is not on all the time, and requires my personal passcode to run.  So even though this is not "secure", is there a way to get the desired functionality?


Issues with the new popup guide for searching

I just noticed that addition.   Searching for posts by author does not need the brackets [], and can be clearer as to what "1234" is. A new user may think 1234 is a username example. Tag guideline can be clearer, for example: [tag-name].


Why is sharpness lost in my DSLR viewfinder?

I have a fairly new Nikon D7000 (I've taken about 2000 pictures).   Something happened during my last trip, where thew viewfinder never gets sharp anymore. It always looks out of focus, regardless if i am in manual or automatic mode.   Pictures still come out sharp, and when I switch to the LCD screen I can see the focus, but not in the viewfinder.   Is there some sort of tuning that needs to be done?


What are the grammatical rules determining whether to use "which" or "what"?

What are the grammatical rules determining whether to use which or what?  I usually go by intuition. It's "What car are you looking at?" and "What bicycle do you like most?" but "Which song did you sing?" Quite often, I don't know whether to use what or which.  How can I tell?


What is the best way to repeatedly execute a function every few seconds, without intterupting other functions, for a Python gui?

I want to repeatedly run a function that retrieves data from an API every 60 seconds. However, I've realized that I can't put it to sleep, or use a while loop, without interrupting the other functions.  My question is, how do I repeatedly retrieve the data from the API/rerun the code that gets the data in the first place, without interrupting the other functions?


Connecting Laptop to Monitor while it is switched on

Is it ok to connect a laptop to a monitor via a VGA cable while the laptop is on? Normally I shutdown my laptop before doing so - but is this necessary?    I am using Windows 8.


How to turn off System Restore and remove System Volume Information folders in Windows?

I met the same problem of not being able to shrink the Windows OS partition C: as much as I plan to due to unmovable files.  Having learned from , I would like to "turn System Restore off and remove System Volume Information folders". So I was wondering where and how I can "turn System Restore off and remov System Volume Information folders"?  This is the only way I can find out to solve my problem. If you have other way please let me know.


Without user loging inner page is disable wordpress

how to set without user loging inner pages is disable or display message please loging Frist  Ex. I want if user not loging and open abouts us page and display message please loging Frist and don't see any countain. When user login click on about us page see all countain


wifi adapter not found(acer aspire 570G)

hi i just installed ubuntu 18.04 and i am new to all this. And canot acces the wifi, becose the wifi adapter is not found. I tried some solutions but nothing works for me. I have Acer aspir 5750G thank you for any help.    i am sorry, but i don't understand this   petr@petr-Aspire-5750G:~$ lspci -nn -d 14e4: 02:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10) 02:00.1 SD Host controller [0805]: Broadcom Inc. and subsidiaries BCM57765/57785 SDXC/MMC Card Reader [14e4:16bc] (rev 10) 02:00.2 System peripheral [0880]: Broadcom Inc. and subsidiaries BCM57765/57785 MS Card Reader [14e4:16be] (rev 10) 02:00.3 System peripheral [0880]: Broadcom Inc. and subsidiaries BCM57765/57785 xD-Picture Card Reader [14e4:16bf] (rev 10) 03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43227 802.11b/g/n [14e4:4358]


Trying to dual boot Ubuntu 14.10 with Windows 10, last one not detected

I have a laptop, and I'm going to install Ubuntu (I have experience, and I have  successfully installed , Ubuntu, , , , , , etc.), but installing  (Utopic Unicorn) alongside , Ubuntu can't detect Windows.  It shows me like there's no OS, but I have Windows 10.  I have two primary partitions by the way if I manually install. If the Ubuntu installer can't detect Windows 10, will it be detected at ?


How to install ipa file on iPhone Simulator?

I need to install .ipa file on iPhone simulator.  I tried to change the extension .ipa to .zip and extracted it.  And I got the Payload folder and moved the application inside to my iPhone simulators applications folder at:   /Library/Application\ Support/iPhone Simulator/6.1/Applications/   Application appears on iPhone Simulator, But the application did't running. How to solve the problem then how to run the app.