Load custom field value into div with AJAX

I have 3 different custom fields url-1, url-2 and url-3. Each field have different value in type of  embedded video.     Click any link
 and play that video, By default play url-1   HTML:  <form  id="myform">
 Link

 Link

 Link
 </form>
 video player
   Jquery  jQuery(document).ready(function($){ $("#myform").on('click', 'a', function(e) {  $.ajax({     url: ajaxobject.ajaxurl,     type: 'post',     data: {          action: 'call_meta',      },     success: function(result) {         $('#output').append( result );     } }); }); });   PHP:  add_action('wp_ajax_call_post', 'call_meta'); add_action('wp_ajax_nopriv_call_post', 'call_meta');  function call_meta(){  if( isset($_POST["pid"]){    $post = get_post( $_POST["pid"] );      echo get_post_meta( $ID, 'url-1', true ); }  else {     echo get_post_meta( $ID, 'url-2', true ); } else {     echo get_post_meta( $ID, 'url-3', true ); } wp_die(); }   How to load video with Ajax? & play any from others by replacing previous one.  I'm new in wordpress theme development, So I know that there is many problem and error in my code. Thanks for your attention. I’m looking forward to your reply.


How to remove GRUB after deleting Ubuntu and repair Windows MBR

I tried to delete Ubuntu by doing what was found online:  Delete the partitions, then do an advanced startup into Command prompt to fix the MBR.  Oops, instead of the old GRUB Menu that comes up, allowing me to select Windows with the down arrow, it brings up GRUB command line. I am able to boot Windows by typing exit - this brings up the firmware settings allowing me to select Windows. But Ubuntu is still in the list, even though I deleted it.  What I want to do it get rid of GRUB so Windows can boot normally.  I have an Ubuntu installation disk but whenever I try to boot from it if brings up a unhelpful command prompt - initrampfs or something along those lines.  Also, I don't have a Windows Installation Disk.


Is there a word with phobia suffix for fear of waking others up?

I usually come home after basketball at like 12:30 a.m. and at this time my mom and sister usually sleep (my Dad though is usually up). When I come home, I don't go to sleep right away and will sometimes eat or do something else. When I do so, I do it in stealth, so that I don't wake up anyone. I do out of two things, to be polite as I do not want to wake anybody up and also the fact that if I make a loud noise and wake my mom up, my mom will get mad and lecture me. Does this count as a phobia? In addition, if it does what would the name of it be.


Remove elements in a list if difference with previous element less than value

Given a list of numbers in ascending order. It is necessary to leave only elements to get such a list where the difference between the elements was greater or equal than a certain value (10 in my case).  Given:  list = [10,15,17,21,34,36,42,67,75,84,92,94,103,115]   Goal:   list=[10,21,34,67,84,94,115]


My son will be flying into Copenhagen in July arriving at 7:15am.  He will need to travel by train to Kalmar. He must go through border control. I am wondering: how much time he will need to get through border control at the Copenhagen airport and then onto the train?


Can software written for windows be used on linux?

we have programs at work that I would like to use on my linux laptop, is there a shell program i can run to be able to use them or must i have a dual boot system, limited HD space. Regards Gavin


I have some check boxes in my HTML page. And also each component have  attribute. I need to get the  value if the check box is checked.   Following is my HTML code

Document Submited
  <input type="checkbox" id="idcopy" name="checkbox">  NIC Copy  <input type="checkbox" id="birthcertificate" name="checkbox">  Birth Certificate  <input type="checkbox" id="nomineeNic" name="checkbox">  Nominee NIC copy  <input type="checkbox" id="agreement" name="checkbox">  Agreement
     I already tried to get the text by using document.getElementById(idcopy).text()


Acceptance-Rejection Method Acceptance Probability Proof

I did not fully understand the proof of the acceptance probability.   The acceptance-rejection algorithm is described as follows:   suppose you have RVs $X$ and $Y$ with densities $f$ and $g$, respectively, and there exists a constant $c$ such that $\frac{f(t)}{g(t)} \leq c$ for all $t$ such that $f(t) > 0$, then    generate random $y$ from distribution with density $g$ generate random $u$ from $\text{Uniform}(0, 1)$ if $u < \frac{f(y)}{cg(y)}$ accept $y$ and deliver $x = y$, otherwise repeat    In Rizzo's book 'Statistical Computing with R' (p56) he writes  $P(\text{accept}|Y)=P(U<\frac{f(Y)}{cg(Y)}|Y)=\frac{f(Y)}{cg(Y)}$  and so  $\sum_y{P(\text{accept}|y)P(Y=y)}=\sum_y{\frac{f(y)}{cg(y)}g(y)}=\frac{1}{c}$  This still makes sense to me, but what about the continuous version of this proof, which is as follows:  $ \begin{aligned} P(A) =& \int_{-\infty}^{\infty}dy\int_0^{\frac{f(y)}{cg(y)}}g(y)du \\ =& \int_{-\infty}^{\infty}\frac{1}{c}f(y)dy \\ =& \frac{1}{c}. \end{aligned} $  Could someone explain to me specifically how you get to this double integral?


When I create a folder or copy files, after the operation finishes I have to manually refresh the Explorer window (F5). For example, when I create a folder, I don't see the "New Folder" until I hit F5.  Does anyone have any idea how to fix this?


I am building an encryption program for a messenger app I am developing.   I was wondering if the code looks clean and succinct, and at the same times is safe and secure:  import random import os import time  key = os.urandom(64)  def encrypt(_key, message):     letter_map_message = []     ascii_msg_value = ''.join(str(ord(c)) for c in message)     for c in message:         ''.join(str(ord(c)))         letter_map_message.append(ord(c))     ascii_key_value = ''.join(str(ord(x)) for x in str(_key))     new_msg_encrypted = int(ascii_msg_value) * int(ascii_key_value)     returned = (new_msg_encrypted, letter_map_message)     return returned;  def decrypt(_key, message, letter_map):     ascii_key_value = ''.join(str(ord(x)) for x in str(_key))     msg_ascii_divided = int(message)/int(ascii_key_value)     letters = []     for c in range(len(letter_map)):         li = letter_map[c]         c = int(li)         letter = chr(c)         letters.append(letter)     new_msg_decrypted = ''.join(letters)     return new_msg_decrypted;  encrypted = encrypt(key, "HEHHEHEHHE") print(encrypted[0]) decrypted = decrypt(key, encrypted[0], encrypted[1]) print(decrypted)


How to specify the locations of executable JAR file and manifest file using maven with pom.xml

I'm trying to create an executable JAR for my maven project. With IntelliJ I'm able to create such a JAR using 'copy to output directory and link via manifest' and using the folder resources to store my manifest file:  Now I'm trying to do the same with maven using the pom.xml which looks like so:     <build>         <plugins>             <plugin>                 <groupId>org.apache.maven.plugins</groupId>                 <artifactId>maven-compiler-plugin</artifactId>                 <version>3.5.1</version>                 <configuration>                     <source>11</source>                     <target>11</target>                 </configuration>             </plugin>             <plugin>                 <groupId>org.apache.maven.plugins</groupId>                 <artifactId>maven-jar-plugin</artifactId>                 <configuration>                     <archive>                         <manifest>                             <addClasspath>true</addClasspath>                             <classpathPrefix>lib/</classpathPrefix>                             <mainClass>MyClass</mainClass>                         </manifest>                     </archive>                     <outputDirectory>myJar/destination</outputDirectory>                  </configuration>             </plugin>         </plugins>     </build>  But I can't see the jar anywhere when I run maven compile and I'm not sure how to specify where the manifest should be. Any help would be apricated.


If $A$ is a square matrix and $A^2 = 0$ then $A=0$. Is this true? If not, provide a counter-example.

This is a proof question and I am not sure how to prove it. It is obviously true if you start with $A = 0$ and square it.   I was thinking:  If $ A^2 = 0 $  then $ A A = 0 $  $ A A A^{-1} = 0 A^{-1}$  $I\,A = 0 $   but the zero matrix is not invertible and that it was not among the given conditions.  Where's a good place to start?


Render semi-transparent volume with cycles

I want to render an image of a fire in cycles, but as a png with a transparent background. Without a transparent background, the output image looks like this:    But as soon as I tick the "Transparent" checkbox under Render->Film, all the semi-transparent parts of the image are not rendered and it looks like this    which is clearly not what I want. I've tried to add a holdout shader or a transparent shader to my smoke domain material nodes, but it didn't help. I've only found answered questions for semi-transparent glass, but none for volumes. My node setup looks like this:    but the transparent shader doesn't do anything.  Has anyone an idea how to fix this?  Thanks  Edit: I've just changed the flow type to "Fire and Smoke" instead of "Fire" and now the semi-transparent parts render too, but I don't want the smoke.


Simulating pod racing over a 2D map : am I implementing OOP in a GO-like fashion?

I'm learning Go and I wrote this for a programming challenge. It is working (building and running) but I feel the code is not what Go code should be.  I used an OOP design. Is it correctly implemented in GO ?   In my main, I will call the method pod.playTurn(target, speed)  package main  import (     "fmt"     "math"     "os"     "strconv" ) // Dot is king type Dot struct {     x, y int } // Pod is life type Pod struct {     position                Dot     vx, vy, angle, nextCpID int     hasShieldOn             bool }  func squaredDist(a, b Dot) int {     return (a.x-b.x)*(a.x-b.x) + (a.y-b.y)*(a.y-b.y) } func distance(a, b Dot) float64 {     return math.Sqrt(float64(squaredDist(a, b))) }  func (pod Pod) getAngle(p Dot) float64 {     d := distance(p, pod.position)     dx := float64(p.x-pod.position.x) / d     dy := float64(p.y-pod.position.y) / d     a := math.Acos(dx) * 180.0 / math.Pi      // If the point I want is below me, I have to shift the angle for it to be correct     if dy < 0 {         a = 360.0 - a     }     return a }  func (pod Pod) diffAngle(p Dot) float64 {     a := pod.getAngle(p)     pangle := float64(pod.angle)      right := 0.0     if pangle <= a {         right = a - pangle     } else {         right = 360.0 - pangle + a     }      left := 0.0     if pangle >= a {         left = pangle - a     } else {         left = pangle + 360.0 - a     }      if right < left {         return right     }     return -left }  func (pod Pod) rotate(p Dot) int {     a := pod.diffAngle(p)      // Can't turn more than 18° in one turn !     if a > 18.0 {         a = 18.0     } else if a < -18.0 {         a = -18.0     }      pod.angle += int(math.Round(a))      if pod.angle >= 360.0 {         pod.angle = pod.angle - 360.0     } else if pod.angle < 0.0 {         pod.angle += 360.0     }     return pod.angle }  func (pod Pod) boost(t int) (int, int) {     if pod.hasShieldOn {         return pod.vx, pod.vy     }     pangle := float64(pod.angle)     pod.vx += int(math.Round(math.Cos(pangle) * float64(t)))     pod.vy += int(math.Round(math.Sin(pangle) * float64(t)))     return pod.vx, pod.vy }  // t shoud become a float later on func (pod Pod) move(t int) (int, int) {     pod.position.x += pod.vx * t     pod.position.y += pod.vy * t     return pod.position.x, pod.position.y }  func (pod Pod) endTurn() (int, int) {     // todo rounding position if needed     pod.vx = int(float64(pod.vx) * 0.85)     pod.vy = int(float64(pod.vy) * 0.85)     return pod.vx, pod.vy }  func (pod Pod) playTurn(p Dot, t int) {     pod.angle = pod.rotate(p)     pod.vx, pod.vy = pod.boost(t)     pod.position.x, pod.position.y = pod.move(1)     pod.vx, pod.vy = pod.endTurn()     fmt.Fprintf(os.Stderr, "\nPredicted Pod position : ")     fmt.Fprintf(os.Stderr, "\n(%d, %d) speed (%d,%d)", pod.position.x, pod.position.y, pod.vx, pod.vy) }   Am I using struct correctly ? Is it acceptable object oriented code ?


I'm trying to insert images using the graphicx package. However, when I compile the code, it comes up with an error:  ! LaTeX Error: Cannot determine the size of graphic in C:/Users/cst2/Pictures/MathsC.png (no BoundingBox).   My file directory is as follows:  \graphicspath{ {C:/Users/cst2/Pictures/} }   and the call function is as follows:  \includegraphics{MathsC.png}   can anyone tell me what could be causing this error?  Many thanks.


How to move one file to a folder using terminal?

I want to move one file to a folder using terminal. How do I do this?


Proving that $GF(p^n)$ contains a unique subfield isomorphic to $GF(p^m)$ if and only if $m$ is a divisor of $n$.

I am looking to prove that $GF(p^n)$ contains a unique subfield isomorphic to $GF(p^m)$ if and only if $m$ is a divisor of $n$. In the Wikipedia article:    They say that this statement has been proven by E. H. Moore in 1893.  How to go about proving the theorem? I know first I need to generate a subset, prove that it's a subfield, and then assume they are two and show it's unique.  But how to generate it in the first place? Consider the set of polynomials of the form $x^{p^m}-x=0$? Is there a way to show that it's a subfield without checking all the axioms?


For continuous functions, if they are equal on $\mathbb{Q}$ then they are equal on $\mathbb{R}$

Let $f$ and $g$ be functions, and suppose $f$ and $g$ are continuous (in particular, this means $D(f)=\mathbb{R}\; D(g)=\mathbb {R}$). Suppose that for every rational number $x\in\mathbb{Q}$, we have $f(x)=g(x).$ Prove that $f(x)=g(x)$ for ${every}$ number $x\in\mathbb{R}$.  Any suggestions on how I am supposed to even begin to approach this problem would help.


$$\left[J^{\mu\nu},\,J^{\rho\sigma}\right]=i\left(\eta^{\nu\rho}J^{\mu\sigma}-\eta^{\mu\rho}J^{\nu\sigma}-\eta^{\nu\sigma}J^{\mu\rho}+\eta^{\mu\sigma}J^{\nu\rho}\right)\tag{3.17}$$ How can I prove this equation?


What can suffice as a scientific proof for God? to what domain can such a proof belong to?

"Scientific" theories require proof, and there are certain guidelines and standards for the proofs to be acceptable to the "scientific" community in that domain (Algebra, Computer Science, etc.). Hence I am keen to know: What can suffice as a "scientific" proof for the existence of a monotheistic God? to what domain can such a proof belong to?    And Is "science" mature enough to come up with scientific instruments and methods that can assess such a proof as we are dealing with a thing which is supposedly more complex then the Atom which physicist are still struggling to understand ?


I am trying to display the dimensions of an image and then resize them with a program my system says is there called Package ImageMagick-6.5.4.7-7.el6_5.i686 already installed and latest version. But getting error:  -bash-4.1# display main-bg1.jpg display: unable to open X server `' @ display.c/DisplayImageCommand/420.


This baby-walking device is called a ([prefix]-)[name] by people from [location]

It shouldn't be hard to agree that people around the world have babies, and people with babies like to take walks with their babies.  So we invented various wheeled devices to securely hold baby during the walk, allowing parent and baby to get fresh air, experience new sights and sounds, and for parent at least to get exercise.  What we can't seem to agree on is what to call the silly things, even among people who speak English.  In the title, I am wondering about the following possible substitutions:   name: stroller, pram (perambulator), buggy, carriage, cart, etc. optional prefix: baby-, jogging-, etc. location: US, UK, Australia, India, or any country/culture/region where English is the dominant language.     As in the images, some key differences seem to be:   Whether baby is seated, or lying down Whether baby faces the direction of walking, or backward toward parent   For purposes of this question, let's ignore that several newer higher-end models are modular/convertible between these options.  Some less important differences might be:   Number of (sets of) wheels, three or four Size and type of wheels, smaller hard-plastic casters versus larger bicycle-style  (Which I think may just be the difference in adding a "jogging-" prefix or not)   My prior reading has turned up only articles that focus on one specific term, or one specific location.  My hope is someone here can pool all this into one comprehensive discussion.  With that in mind, I would prefer not to get one answer of "American here, and we call them..." and another of "I'm an Aussie, and they are called..." but rather one answer by a well-traveled or well-researched user.  If this isn't possible, then maybe let's start a Community-Wiki answer and have each region edit in its versions of these terms.


Change Lable (Name of countries) according to Attribute values ArcMap

I'm creating a world map using ArcMap. I want to style the label in such a way that their name should be displayed as the attribute value. For example if I'm using population data then the China's font should be largest then other


It might sound like a silly question, but I can't come up with a clear answer. By looking at the expression, the answer should be "no", since $(-1)^2=1$ and we're in trouble.   However, if I factorize: $(x^2-1) =(x+1)(x-1)$, $x=-1$ is still illegal. But now the terms cancel out and I am left with $1/(x-1)$, which is clearly defined for $x=-1$?  What happened? Was some information lost in the manipulation or was the original expression an "illusion"? I hope my question makes sense.


Spell check and/or spell correction in Java

How can I do spell checking and/or spell correction in a Java application?


Plural vs singular responses, without knowing sex of subject

Is your neighbor moving out?  Not knowing there sex of the neighbor, what is the correct response to this question?  Yes they are.?  But something with this doesn't sit right with me. 'They' may well be the correct response if asking if your neighborS are moving out,  but the question was singular.  Knowing the sex of the neighbor, you could say 'he' or 'she' is...  As a native English speaker, this question confused me enough to sign up and ask. Please opine.


cannot connect to network after today's updates in Ubuntu 16.04

Good afternoon, today I downloaded/installed the most recent updates for Ubuntu 16.04  on my laptop (Lenovo B50-50), as I do regularly every day. I was asked to  reboot the laptop. After the reboot I am not able to connect anymore.  Network manager does not detect any wifi connection and also the cable  connection does not work. network-manager is there and it is running.  I restarted network-manager but nothing changes. Is there anyone who faced  the same problem? Thanks


Is there any way to organize attachments?

Is there any way to organize attachments in cards? I got a lot of attachments in my project cards and I would like to organize them in some kind of folder or groups.


List of screen resolutions doesn't go up to my monitor's native resolution

I recently installed Windows 7 on my desktop computer and found that even after going to Display settings and setting it to the highest setting that there's still black space between the edge of the display and the edge of the monitor. Also, that resolution isn't as high as my monitor's native resolution (it's telling me I can go as high as 1400 x 1050, and I think mine goes as high as something close to 1920 x 1280).  I believe that my monitor is an .  When I try to detect my monitor/graphics card with  it tells me that they are named "Standard VGA Graphics Adapter" and "Generic PnP Monitor".


Was Harry the only one who heard the hissing of the basilisk in the Chamber of Secrets?

HARRY POTTER AND THE CHAMBER OF SECRETS  There's a specific part in this book explaining...     Harry hearing the voices but actually was a hissing of a snake.      Harry hearing the words kill and rip.      Harry being filled with panic as he tries to find whether that voice   he heard is trying to kill someone or not.      Ron and Hermione explaining that hearing voices in the wizarding world   is not a good sign.   A part of the book contains the information of Harry hearing voices. When Harry received a detention after being caught on a night walk, Ron was told by Professor McGonagall to help Filch in polishing and cleaning the trophies in the trophy room.  And one time, a form of wizard duel was held, the coordinators were Lockhart and Snape (assistant). When Draco casted the


what does this inversed triangle stand for?

Can someone show me the meaning of this symbol? I've googled but couldn't find it


Convert Excel Sheet to Web Page + Horizonal Scrolling

I have a Excel Sheet that I am trying to translate over to web page. The issue I am running into is that if I have a lot of columns that causes horizontal scrolling.   I could also have 100+ rows that display information  For example (not the actual data, thanks to ):   Any Recommendation on how to make UI/UX experience for users easier so it shows them all the information and they can update the data in one page?


How to keep chocolate from melting when bringing it for a flight?

I'm thinking of bringing chocolate for my friends in my flight a month from now.  Should I keep it with the check in baggage? Or with my carry on?   Assume that weight isn't an issue - all I need to ensure is to keep it from melting.


Countability of a sequence of natural numbers

I am trying to determine if that the set, $T$, of all eventually constant sequences of natural numbers is countable.   My intuition: The set $T$ is countable. . Let $T_j$ denote the set of sequences of natural numbers so that $t_i=t_j$ for all $i>j$. If we can show that $\mathbb{N}^k$ for all $k\in\mathbb{Z}^+$ is countable, then the union $$T=\bigcup_{j\in\mathbb{N}}T_j$$ is countable as a countable union of countable sets is also countable.  Is my intuition correct?


Postgresql error: insert operation returns id exists in Python

I tried to insert name into database.  name = 'test' cur.execute("INSERT INTO scholars(name) VALUES('{}') returning id".format(name)) id = cur.fetchone() print(id)   error message:  psycopg2.IntegrityError: duplicate key value violates unique constraint "idx_16514_primary" DETAIL:  Key (id)=(2321) already exists.   When id=2301, it succeed,and return ID. After that,id += 1and returns the error below.


Who is faster Superman or The Flash?                                 Already tried other comic sites.


How to cron run every 1 hour on ubuntu 9+?

How to start a script using cron every hour?


(Self-Study) UMVUE of the mean of a normal distribution

Let $X_1,...,X_n$ be a random sample from normal(θ,1). Is there an UMVUE of $θ^2$ here?  $X^2-1$ is an unbiased estimator of $θ^2$. First thing that came to my mind is to use Lehmann-Scheffe Theorem. But the problem is that, according to my calculations, n(θ,1) doesn't have a complete statistic since, even though $\overline{X}=\frac{\sum_{n=1}^{n}X_i}{n}$ is a minimal sufficient statistic for θ (easy to show), it is not complete (again easy to show). Thus there is simply no complete statistic for n(θ,1). Another way to prove it may use the condition that an UMVUE must be uncorrelated with all unbiased estimators of 0 (and vice-versa). But I don't have a candidate for UMVUE at all.   Can anybody give a clue about this question? Thanks!


how to check properties object is there or not ? jquery

I have some problem, I have an array like this  var obj = [{'person': {'name: 'foo', 'email': 'email.com'}, {'person': {'name: 'foo'}]  if i loop inside var obj, and want to get value email like this :  $.each(obj, function(index, value) {     console.log(value.person.email) }   if I do like that, it shows an error because cannot read the property email.  how I pass it when the person does not have email ? or is there a way to create conditions like isset on php


How to force Windows desktop background to update or refresh

If I manually change the background image in the registry, how can I force it to refresh without logging off?  I know that  does it, but I would like to keep things simple and not use any software.


How is Verizon suddenly tracking my hot-spot usage on Android and how do I disable this tracking?

I am familiar with how iOS devices report hot spot use by treating it differently somehow.  My understand is that Android is not crippled like this, and there is rightly no difference in traffic between hot spot data and data from the phone itself. So I was a bit shocked when I received a text from Verizon telling me I had used up almost all my paltry hot-spot "allowance" because this should not be possible that it discriminates traffic like that.  How is this possible?  I have used my hotspot a lot before and never received this message. I have read something about an "APN"s but there is only one, "VZWINTERNET" which can only be "reset to default" with no option to delete or create a new one.


What is the term for a sentence which reads same forwards and backwards?

Please note, I'm not asking for a palindrome.  I mean to say that only the word  order is rearranged, not the actual spelling of the word.  An example might be as follows:     First ladies rule the State and state the rule: ladies first.


Adding two vectors gives me NullPointerException

public double[] add (double[] u, double[] v)  {     double[] output = new double[u.length];      for(int i = 0; i < u.length; i++)     {         output[i] = u[i] + v[i];     }     return output; } public double dotProduct(double[] u, double[] v)  {     double output = 0.0;      for(int i = 0; i < u.length; i++)     {         output += u[i] * v[i];     }      return output; } public double[] scalarProduct (double alpha, double[] v)  {     double[] output = new double[v.length];      for(int i = 0; i < v.length; i++)     {         output[i] = v[i] * alpha;     }      return output; } public double norm (double[] v)  {     return 0; }   Hi, I am trying to add two vectors but when I run it it gives me this error:  Can you recognize why it is printing NullPointException error?  in add method, double[] output = new double[u.length]; has NullPointerException.


Can you reduce yourself, crawl into the Tarrasque's airway, and try to collapse its lung by enlarging inside of it?

A player tried to use the spell  on his PC while in the mouth of the Tarrasque to shrink himself, then go deeper into its airway and to try to collapse its lung by enlarging himself inside of it. I imagine there's no real rule for this but I felt silly just denying it, because it seemed like a cool idea that you could only probably do with a creature as large as the Tarrasque.  Can you crawl into a gargantuan creature’s mouth or into its airway via reduce/enlarge and attack its brain or internal organs?


How to serve wp-includes javascripts from CDN?

My goal is very simple to describe: I want all JS from wp-includes to be served via my CDN (cloudfront to be specific). This just means I need to change the domain from:  Should be served from:   I know this question resembles this:   But the answer to that Q suggested eventually to go over each and every JS in the folder and deregister/register them...This seems like a lot (!) of work to the point it's not really feasible to be done...  Is it really impossible to be achieved easily ? For comparison to do the same with wp-content, involves one line of configuration (wp-config.php): define( 'WP_CONTENT_URL', '');  Thanks.


What if my boarding pass name does not match perfectly with my id card?

My surname is LO and my given name is Kei Cheung Arthur while my boarding pass name only shows that I am Arthur LO.  Will it affect my boarding?


Can I see images and watch movies inside the terminal emulator? In case of virtual console I can do it via framebuffer, but what about terminal emulators?


I want to disable guest session in ubuntu 14.04. I did that in 12.04 before, however I can't find /etc/lightdm/lightdm.conf as in 12.04. I think 14.04 might replace it with /etc/lightdm/users.conf, which has the following code:  [UserAccounts] minimum-uid=500 hidden-users=nobody nobody4 noaccess hidden-shells=/bin/false /usr/sbin/nologin  Should I change hidden-users= to hidden-users=guest?


How do I get the LOGFONT structure from a HFONT handle?

If I have the handle of a window, say hWnd, I can get the handle to its font type, say hFont, like this:  HFONT hFont = SendMessage(hWnd, WM_GETFONT, NULL, NULL);   After this point, how do I obtain a  structure (which contains many features of the font), from this  handle?  My purpose is not to create a font from scratch by calling . I want to read font properties into a LOGFONT structure, then arbitrarily modify it, and finally update the font by calling the  function and passing the modified LOGFONT object to it.  How do I do this?


Compact operator for which the image of the closed unit ball is not compact

Do you have an example of a compact operator for which the image of the closed unit ball is not compact?


Why are protons and neutrons the "right" degrees of freedom of nuclei?

This question may sound stupid but why do we visualize nuclei as composed of a bunch of neutrons and protons? Wouldn't the nucleons be too close together to be viewed as different particles? Isn't the whole nucleus just a complicated low energy state of QCD?


How does one annually convert each previous year's Traditional IRA contributions to Roth IRA?

My income is too high to contribute to a Roth IRA, so my only choice is a Traditional IRA.  Is there some way I can in 2019 convert my 2018 Traditional IRA contributions into a Roth IRA? And then do that each year thereafter with the previous year's contributions?


What are some pros and cons of each? I use a Nikon D600 and am looking for my 50mm. I shoot a lot of video, so a smooth manual control is important to me. Besides that, I am unsure of what exactly I want. Are there any significant performance differences? Any differences in the way you would use them? Weight? Thanks so much!


One a game I am making I have a saving bug. I have an alert with the PHP message. It gives me an SQL error. The problem is obvious. That last comma before the parentheses shouldn't be there. The question is why is it there? In my code, it isn't.  This is the alert message.    The statement is like this.  > $query2 = "INSERT INTO users VALUES ('$village', $power, $influence, $gold, NULL, $ore, $wood, $food, $honor, $keep, $mine, $sawmill, $farm, $barracks, $tavern, $stables, $temple, $militia, $warriors, $spearmen, $clubmen, $swordsmen, $archers, $vanguards, $legion, $crossbowmen, $knights, $mercs, $mercelites, $bandit1, $bandit2, $bandit3, '$faction', $dwellings, $dwellingscost);";   One of my theories was that the dwellingscost variable had a comma at the end. It is posted from an AJAX request. If you need some of that code to decipher just ask.


I have a problem with installing apps from a debian. I open a .deb file in Ubuntu Software and click the "Install" button. for a few seconds it seems to work, with the meter on the install button appearing and rising normally for a split second. then the meter suddenly disappears and the Install button becomes live again and nothing seems to have happened. I click it in rapid sucession, and this app called "waiting to install" appears and it does absolutely nothing after that. So, how do I install a Debian properly!? error: Detailed errors from the package manager follow:  do not know how to install app in state unknown


Is it true that $\int_{- \infty }^{\infty} \frac{1}{1+x^2}\, dx=[\tan^{-1} x]_{- \infty }^{\infty} = \frac{\pi}{2}-(-\frac{\pi}{2})=\pi$?  I'm integrating after a long period of time of inactivity, and sometimes I have doubts.


How to build a difference distribution table?

i am studying about differential cryptanalysis, and found one metric to measure the resistance of a sbox to it, but to use it, it is necessary to build a difference distribution table, like the one in , this is is the table of sobox s1 of des, how do I build the table for AES sbox for example?


I add scrip to run on terminal start.  I forgot unchecked "Exit after script run" or so.  Now my terminal keeps closing and i can't run it!  How do i reset that option ?


How to re-calculate area, perim, p2a,width and length in QGIS?

I cut a part out of one feature and added it to another feature in a polygon shapefile.  My problem now is that both features has the same values in the area-, perim-, p2a-, width- and length-columns?  The features are very much different in size, how do I get QGIS to sort of "re-calculate" the areas etc?


Totient function: show that numbers are equal

I am a bit lost. It seems to be true, but I am not sure how to prove this to myself.  If $m*ϕ(m)=n*ϕ(n)$ then $m=n$  It is clear that this property would hold if m and n were prime, but I am not sure how to show this for the general situation.  Help is greatly appreciated. Thank you.


Can we distinguish between two mass distributions in spacetime having the same effect over a test partlicle

Einstein's equation is  $$8πT_{ab}=G_{ab}$$  where the left side contains the stress-energy tensor and the right side contains the Einstein tensor.   Is there exactly one unique stress-energy tensor corresponding to a given spacetime curvature? Or is it possible for one curvature (i.e. one spacetime metric) to be produced by multiple different mass configurations


Suppose $p$ is an odd prime.  Show that $1^{p-1} +2^{p-1}+ \ldots +(p-1)^{p-1}\equiv -1\pmod p$.  I think I need to use Wilson's Theorem on this but I'm not sure how.  I believe I am suppose to factor it somehow too but also I'm lost at this point.


Hello i am new to programming and am learning Data Structures on Java,  i am making a simple Palindrome program that works fine, but the only think i am stuck with is that when i enter the String to exit from the program it continues to Loop. I am trying to have it continue the loop when the user enters anything but "!"  package Palindrome; import java.util.Stack; import java.util.Scanner; public class Palindrome { static String input; static String reverseInput = ""; public Palindrome() {     // TODO Auto-generated constructor stub }  public static void main(String[] args) {      Scanner keyboard = new Scanner(System.in);     String check = null;     System.out.println("Enter a string that you want to check (or enter ! to exit): ");             input = keyboard.nextLine();     do     {                    input = keyboard.nextLine();              Stack<Character> stack = new Stack<Character>();              for (int i = 0; i < input.length(); i++) {                     stack.push(input.charAt(i));              }               while (!stack.isEmpty()) {                     reverseInput += stack.pop();              }              isPalindrome(reverseInput);           System.out.println("Enter a string that you want to check (or enter ! to exit): ");             input = keyboard.nextLine();      } while (input != "!"); }  public static boolean isPalindrome(String aString){     if (input.equals(reverseInput))         System.out.println("Yes! that is a palindrome.");     else         System.out.println("No! that isn't a palindrome.");     return false; }  }


Is there a way to install a printer that prints to pdf?  There's a lot of discussions about this in the web foruns, but none seens to work.


Does a random string of infinite length contain all finite strings?

This may be a duplicate, but I have not found a yes/no answer. So, does a random string of infinite length contain all finite strings?


Search Service is not crawling all contents from the restored sites

A new SP farm has been setup and the content databases are restored from another farm. All the setup have been made in the search service application but it is not crawling all the documents from the sites even after running full crawl. there is no specific pattern of why the document is not crawled. I edited a document and did check in. Ran an incremental crawl on the corresponding content source. The document is showing up in search. Can anyone please explain why this behavior of SSA occurred and if there is any solution ?


Wrapfig doesn't work in the environment proof

I need to put an illustration in a proof in one of my document. Since it's a small image, I would like to put it surrounded by the text, using the environment wrapfigure.  Yet, the text doesn't wrap around the image in the environment proof whereas it does outside of the proof.  Does anyone know if this is an issue or if it's possible to still have the text wrapped around the image in a proof ?  Example:  \begin{proof} \lipsum[1]  \begin{wrapfigure}{r}{0.5cm} \includegraphics[width=0.5cm]{example.png} \caption{test} \end{wrapfigure}  \lipsum[2-3] Thus, $e$ is unique. \end{proof}


I have some user accounts in my Ubuntu 10.04 and I want them to login from all over the world and access their data using Internet and of course I want any of my users to be able to access only their own user and to be able to change data.  What should I do? Are there any remote desktop apps?


How does centering make a difference in PCA (for SVD and eigen decomposition)?

What difference does centering (or de-meaning) your data make for PCA? I've heard that it makes the maths easier or that it prevents the first PC from being dominated by the variables' means, but I feel like I haven't been able to firmly grasp the concept yet.   For example, the top answer here  describes how not centering would pull the first PCA through the origin, rather than the main axis of the point cloud. Based on my understanding of how the PC's are obtained from the covariance matrix's eigenvectors, I can't understand why this would happen.  Moreover, my own calculations with and without centering seem to make little sense.  Consider the setosa flowers in the iris dataset in R. I calculated the eigenvectors and eigenvalues of the sample covariance matrix as follows.  data(iris) df <- iris[iris$Species=='setosa',1:4] e <- eigen(cov(df)) > e $values [1] 0.236455690 0.036918732 0.026796399 0.009033261  $vectors             [,1]       [,2]       [,3]        [,4] [1,] -0.66907840  0.5978840  0.4399628 -0.03607712 [2,] -0.73414783 -0.6206734 -0.2746075 -0.01955027 [3,] -0.09654390  0.4900556 -0.8324495 -0.23990129 [4,] -0.06356359  0.1309379 -0.1950675  0.96992969   If I center the dataset first, I get exactly the same results. This seems quite obvious, since centering does not change the covariance matrix at all.   df.centered <- scale(df,scale=F,center=T) e.centered<- eigen(cov(df.centered)) e.centered   The prcomp function results in exactly this eigenvalue-eigenvector combination as well, for both the centered and uncentered dataset.   p<-prcomp(df) p.centered <- prcomp(df.centered) Standard deviations: [1] 0.48626710 0.19214248 0.16369606 0.09504347  Rotation:                      PC1        PC2        PC3         PC4 Sepal.Length -0.66907840  0.5978840  0.4399628 -0.03607712 Sepal.Width  -0.73414783 -0.6206734 -0.2746075 -0.01955027 Petal.Length -0.09654390  0.4900556 -0.8324495 -0.23990129 Petal.Width  -0.06356359  0.1309379 -0.1950675  0.96992969   However, the prcomp function has the default option center = TRUE. Disabling this option results in the following PC's for the uncentered data (p.centered remains the same when center is set to false):  p.uncentered <- prcomp(df,center=F) > p.uncentered Standard deviations: [1] 6.32674700 0.22455945 0.16369617 0.09766703  Rotation:                     PC1         PC2        PC3         PC4 Sepal.Length -0.8010073  0.40303704  0.4410167  0.03811461 Sepal.Width  -0.5498408 -0.78739486 -0.2753323 -0.04331888 Petal.Length -0.2334487  0.46456598 -0.8317440 -0.19463332 Petal.Width  -0.0395488  0.04182015 -0.1946750  0.97917752   Why is this different from my own eigenvector calculations on the covariance matrix of the uncentered data? Does it have to do with the calculation? I've seen mentioned that prcomp uses something called the SVD method rather than the eigenvalue decomposition to calculate the PC's. The function princomp uses the latter, but its results are identical to prcomp. Does my issue relate to the answer I described at the top of this post?  EDIT: Issue was cleared up by the helpful @ttnphns. See his comment below, on this question:  and in this answer: . In short: a covariance matrix implicitly involves centering of the data already. PCA uses either SVD or eigendecomposition of the centered data $\bf X$, and the covariance matrix is then equal to ${\bf X'X}/(n-1)$.


I need to validate string input with regex, rules are:   String should not be number less than 2 and not bigger than 9999 (2-9999) String should not have zeros before number (ex: no 0002, 0022, 0222)   I really need to accomplish this by regex so any other solution is not acceptable.


What's the best way of transforming a 2D vector into the closest 8-way compass direction?

If you have a 2D vector expressed as x and y, what's a good way of transforming that into the closest compass direction?  e.g.  x:+1,  y:+1 => NE x:0,   y:+3 => N x:+10, y:-2 => E   // closest compass direction


What's the best way to secure a Teamviewer/X11/VNC connection?

I'm fairly new to Ubuntu so please bear with me. I use Teamviewer on my Windows machines and love it, even more so that there is an Ubuntu version. As most will know it can't start on computer startup as a service on Ubuntu so if my machine reboots for any reason I'm screwed.  Obviously I don't want to enable port 5900 to the outside world as even with a secure password VNC access is hackable.  So, I have installed, configured and successfully tested OpenVPN which means I can "see" my machine but I'm wondering what would be the best solution for remote controlling it if it at the login page with no user logged in.  VNC? X11(although I'm sketchy as to what exactly this is). Any help would be appreciated.  Thanks  Paul.


How to declare a friend operator with template then define it

I have a class with two friend operator overloadings inside:  template<typename T> class A {     T i;      template <typename L, typename R>     friend auto operator+(const A<L> &l, const A<R> &r) -> A<decltype(l.i + r.i)>;      template <typename L>     friend auto operator+(const A<L> &l, const T &r) -> A<decltype(l.i + r)>; }   I wanted to know how can I create a definition for these functions in a .cpp file (since the declarations are in a header file).  For now I did this but it throws an error:  template <typename L, typename R> auto operator+(const A<L> &l, const A<R> &r) -> A<decltype(l.i + r.i)> {     return Vector3Generic<decltype(l.i + r.i)>(l.x + r.x, l.y + r.y, l.z + r.z); }   The error:  Undefined symbols for architecture x86_64:   "A<decltype((fp.x) + (fp0.x))> operator+<float, float>(A<float> const&, A<float> const&)"   And I absolutely don't know how to define the second operator overload using the parent's T.


Why is the reputation of a post's author shown on all questions and answers?  I don't mean the technical meaning, I mean what is this information supposed to convey, when seen under a question or an answer, as a poster or as an editor?  What is the reader supposed to think about the score?  Does it have a purpose?  For example, if there are two basically equal answers given around same time, should rep affect on downvotes or upvotes, like being more harsh about high rep users bad answers, because they should know better?   And a followup, whatever the answer to the above question is: does displaying the total reputation have the desired effect, or would it be worth thinking what could be displayed instead of or in addition to it, or if info could be displayed differently than as a raw number?  But let's not get carried away with suggestions (there already are many here on meta), first paragraph above is the main question an answer should address, and this followup is just context for answering that.    After reading the discussion and the current one answer, it seems the displayed reputation of post's author is supposed to tell two things:   Reputation at Stack Overflow, as a person; the product of the effort they have put to the site, and how well their contribution has been received. How much of an expert or how reputable they are in the subject matter (which I take to mean, topic of the question).   To me it seems 1st point is well covered, and showing current (increasing) reputation is not counter-productive. However, the 2nd point is not covered at all (it does not show subject matter expertise at the time of creating the post, and it includes for example all VB reputation when answering an R question).  Is 2nd point important to how SO works?


Hidden filenames are too faint to read in Finder

I have enabled the display of hidden files in Finder. But the font color looks too faint to me to read. How can I make the font color darker?   So this question is now closed because there is a similar question with an answer. That answer did not solve my problem and I don't have enough points (125) to downvote it. I am also confused by the instructions that say "If this question doesn't resolve your question ask a new one", which I did, only to have the new question closed.


Why does part of my scene get cut off when going into camera view?

When I go into camera view, part of my scene gets cut off automatically. The render tab and shading tab also has part of my scene not visible but the scene is fine in all other modes.


How can I intercept an item being crafted and replace it with something with a 'canplaceon' tag?

I want to detect when someone is building a lever, then replace it with another lever that has the canplaceon tag so it can be placed on a redstone_lamp  How can I clear the crafting item and replace it with one that has a canplaceon tag?


How to intersect a line with a point off the page using a straight edge and compass (see description)

Its very common in illustration to want to draw a line towards a vanishing point that is off of the page.   The specific problem is this: lets say we draw two line segments on a piece of paper lying on a flat surface. The line segments are drawn such that, if extended beyond the edge of the page, they intersect at a point $A$. Next, we draw a point $B$ anywhere on the page.   Without actually extending the two line segments to find $A$, is there a way to draw a line segment such that, if extended to a line, would intersect both $A$ and $B$ using only a straight edge and compass construction?   Looking for an answer with the fewest number of steps.


SQL Server Express 2012 Database Size Limit

I checked the forum there are other similar topics but my scenario is different. for myDatabase under database properties -> General tab it shows:  Size : 25285.31 MB Space Available: 3989.13 MB   And on disk   myDB.mdf = 10.0 GB (10,745,806,848 bytes) myDB_log.ldf = 14.6 GB (15,767,764,992 bytes)   As per my understanding only 10GB is allowed in Expres edition but here it seems more. What is the space available parameter from DB properties.


Can C++ cast the base class back to the derived class?

I am trying to create an easy-to-use interface for array indexing in C++. Unfortunately, I just cannot get my code working. And I think the problem is regrading to C++ does not allow me to cast a base class back to the derived class. However, I am not sure why that happens. Please help me with that.  Here is the code.  #include <iostream> #include <vector>  enum index_type {     single_value,     sequence, };   class idx { protected:     index_type t; public:     idx(index_type _t);     virtual void print_out(); };  class single_idx:public idx { private:     int sidx; public:     single_idx(int _sidx);     void print_out(); };   class multiple_idx:public idx { private:     std::vector<int> midx; public:     multiple_idx(std::vector<int> _midx);     void print_out(); };  idx::idx(index_type _t):t(_t){     switch (t) {         case (single_value):{         std::cout << "single_value\n";         break;         }          case (sequence):{         std::cout << "multiple_value\n";         break;         }     } }  single_idx::single_idx(int _sidx):sidx(_sidx), idx(single_value){}  multiple_idx::multiple_idx(std::vector<int> _midx):midx(_midx), idx(sequence){}  void idx::print_out() {     std::cout << "lalala\n";     switch (t) {         case (single_value):{         std::cout << "casting to single\n";         dynamic_cast<single_idx*>(this)->print_out();  // ERROR happens here!!!         break;         }          case (sequence):{         std::cout << "casting to multiple\n";         dynamic_cast<multiple_idx*>(this)->print_out();         break;         }     } }  void single_idx::print_out() {     std::cout << "single value: ";     std::cout << sidx << "\n"; }  void multiple_idx::print_out() {     std::cout << "multiple value: ";     for (int i : midx) {         std::cout << i << " ";     }     std::cout << "\n"; }  void f(std::initializer_list<idx> a) {     for (idx t : a) {         t.print_out();     } }  int main() {     f({single_idx(1), single_idx(2)}); }


How was Molly Weasley powerful enough to Kill Bellatrix Lestrange?

I know the question of which spell was used has been asked (without really an answer) before. This is not a question of which spell or the series of spells cast. My question is how did Molly have the power to kill Bellatrix.  Harry Potter Book 7: Deathly Hallows:     Bellatrix was still fighting too, fifty yards away from Voldemort, and   like her master she dueled three at once: Hermione, Ginny, and Luna,   all battling their hardest, but Bellatrix was equal to them, and   Harry’s attention was diverted as a Killing Curse shot so close to   Ginny that she missed death by an inch—      He changed course, running at Bellatrix rather than Voldemort, but   before he had gone a few steps he was knocked sideways.      “NOT MY DAUGHTER, YOU BITCH!”      Mrs. Weasley threw off her cloak as she ran, freeing her arms.   Bellatrix spun on the spot, roaring with laughter at the sight of her   new challenger.      “OUT OF MY WAY!” shouted Mrs. Weasley to the three girls, and with a   swipe of her wand she began to duel. Harry watched with terror and   elation as Molly Weasley’s wand slashed and twisted, and Bellatrix   Lestrange’s smile faltered and became a snarl. Jets of light flew from   both wands, the floor around the witches’ feet became hot and cracked;   both women were fighting to kill.      “No!” Mrs. Weasley cried as a few students ran forward, trying to come   to her aid. “Get back! Get back! She is mine!” Hundreds of people now   lined the walls, watching the two fights, Voldemort and his three   opponents, Bellatrix and Molly, and Harry stood, invisible, torn   between both, wanting to attack and yet to protect, unable to be sure   that he would not hit the innocent.      “What will happen to your children when I’ve killed you?” taunted   Bellatrix, as mad as her master, capering as Molly’s curses danced   around her. “When Mummy’s gone the same way as Freddie?”      “You — will — never — touch — our — children — again!” screamed Mrs.   Weasley. Bellatrix laughed, the same exhilarated laugh her cousin   Sirius had given as he toppled backward through the veil, and suddenly   Harry knew what was going to happen before it did.      Molly’s curse soared beneath Bellatrix’s outstretched arm and hit her   squarely in the chest, directly over her heart.      Bellatrix’s gloating smile froze, her eyes began to bulge: For the   tiniest space of time she knew what had happened, and then she   toppled, and the watching crowd roared, and Voldemort screamed.   From the quote above we see Bellatrix duelling three witches at the same time and equalling all three.  Bellatrix killed Sirius who was an expert in dueling. Bellatrix defeated Aurors (who are trained specifically to duel death eaters) Frank and Alice Longbottom.  If your answer is that Molly is angry please consider it already states in the above quote:     "...taunted Bellatrix, as mad as her master"   So I'd like some in canon proof that being angrier than someone during a duel overrides their ability and experience.  If for some reason your answer is that Bellatrix is not focused on her new opponent, please consider in the above passage:     Bellatrix spun on the spot, roaring with laughter at the sight of her    new challenger.   If it's something about being protective of her children, please explain why this would matter in a dueling situation like this, unlike Lily's which was clearly self sacrifice and explained in great detail.  How could Molly a witch hardly trained in dueling with almost no comparable real life experience in dueling, beat one of the most powerful witches in the series?


Align Image in the middle of a floated element, that gets parent height

I have the following structure/code:     .navbar__brand, .navcontainer {  float:left; }  .navbar__brand img { vertical-align:middle;}            .navbar__menu {  display:inline-block; }  .navbar__menu li { display:inline-block; list-style: none;  }

Item 1

Item 2

     I want the image in navbar__brand to be vertical align in the middle; At this moment is align at the top of the div.  I need to support old IE browser so please no flex.


Been trying to solve this problem for a couple of days now: Let $E \subset \mathbb{R}$. Prove that if there exists $0 \leq \delta < 1$ such that for every interval $[a,b]$ we have $$|E\cap[a,b]|_e \leq \delta(b-a),$$ then $|E|_e = 0$. Here $|-|_e$ is the exterior Lebesgue measure.


Does an Evocation shield have a reactive utility to it?

Say that Player X is 2nd in the initiative. 1st is the Black Court vampire that is in a rage and taking a swing at Player X. Player X gets a built in defense [Athletics/Fists + 4dF] but can Player X instead use his action this turn to cast his Rote Evocation Shield?  It is not his turn in the initiative order. A Block is an Action that a Player can take on his turn.   Thematically though, it seems to make sense that the char could cast a Rote Evocation Shield in response to an attack ahead of him in the initiative order. At least thematically in the books. Also, the example in YS252, shows him reacting to an attack by Agatha Hagglethorn by bring up his shield.  I am hoping there is some as yet undiscovered dark corner where this concept is covered or squashed.


Can't find wifi drivers for 0bda:f179 Realtek Semiconductor Corp

I'm trying to install wifi drivers for a particular mini wifi card i bought. The output of lsusb is:  0bda:f179 Realtek Semiconductor Corp   I've searched everywhere for drivers, but could not find anything. Any help?  Thanks


Why would anyone *want* to become a death eater?

Title says it all: Voldemort is cruel to them, treats them like garbage, tortures them for insignificant mistakes, and once you join you can't back out or not follow Voldemort's instructions to the letter, or you'll be killed.  I find it hard to imagine why anyone would sign up for that kind of life... any other takes?


Installing ubuntu to a new laptop(asus laptop with Ryzen processor and Vega graphics)

I want to install ubuntu into my new laptop (I want to remove my windows completely) , which partition mode  i should use when I create bootable usb(MBR or GPT) , what all thing do i need to be cautious when installing ubuntu to a new laptop .


Electron ejecting from surface while photoelectric effect

Even after increasing the frequency why does the the ratio of Number of electron ejecting/number of capable photons to take out the electron remains constant? Check the image attached.


Should it be "indicating" or ",which indicates"?

Which one of the below is more appropriate?  an investigation into sleep score, which indicates the quality of sleep, and life stress revealed significantly negative correlation between life stress and the quality of sleep  or  an investigation into sleep score indicating the quality of sleep and life stress significantly negative correlation between life stress and the quality of sleep  to make my question more specific, I want to make sure that sleep score only measures the quality of sleep not life stress...in other words it was an investigation into sleep score and life stress, and sleep score indicates the quality of sleep.


I recently stumbled upon a fact that all prime numbers past $3$ are of the form either $6n-1$ or $6n+1$.  Is it true? at least for numbers less than $10^9$.  And does it cover all primes?


Another layman blackhole question, pulling one end of a string out from behind the event horizon

No long explanation is needed,  What would happen if I were to allow one end of a rope to fall past the event horizon of a black hole while I held the other end?  Would I be able to pull it out? Would the rope feel extremely (infinitely?) heavy?


I am trying to do a program that uses call methods. However, when this is compiled the program tries to read dataIn as a symbol and gives me the error: Cannot find variable I cannot seem to find the problem to why this is happening. Any help?  import java.util.Random; import java.io.*;  public class Adventure1 {   public static void main(String[] args) throws IOException {     String strInput = "Y";     while (strInput == "Y") {       int caveNo;       doIntro();       caveNo = getChoice();       doTest(caveNo);       System.out.println("Do you want to play again? (Y or N)");       strInput = dataIn.readLine();     }   }    //Start game   public static void doIntro() {     System.out.println("You are in a land full of dragons. In front of you,");     System.out.println("you see two caves. In one cave, the dragon is friendly");     System.out.println("and will share his treasure with you. The other dragon");     System.out.println("is greedy and hungry, and will eat you on sight.");     System.out.println("");   }    //Choosing a cave   public static int getChoice() {     String strCave;     int intCave;      while (strCave != "1" && strCave != "2") {       System.out.println("Choose a cave (1 or 2)");       strCave = dataIn.readLine();       intCave = Integer.parseInt(strCave);     }     return intCave;   }    //Determining which cave you picked   public static int doTest(int intCave) {     Random ran = new Random();     int friendlyCave = ran.nextInt(1) + 1;    } }   This is what happens when I compile:  E:\CMIN216\Adventure1.java:15: error: cannot find symbol             strInput = dataIn.readLine();                        ^   symbol:   variable dataIn   location: class Adventure1 E:\CMIN216\Adventure1.java:37: error: cannot find symbol             strCave = dataIn.readLine();                       ^   symbol:   variable dataIn   location: class Adventure1 2 errors  Tool completed with exit code 1   Code is incomplete, by the way. I was so busy on trying to fix this that I did not finish it.


How to include different headers from different folders?

I have a C++ project and I love mycode organized, however when I put everything in separate directories (headers and source files kept together) I am not  able to include headers from another folder. For example: I have two classes called "FooException" and "ContentProvider", which obviously go into separate directories, FooException being an exception and ContentProvider being a utility. Of course, I put them into different folders, but when I try to include the FooException in the ContenProvider it does not work and says that it could not find the source file. Has anyone encountered such problem? Any suggestions? Thanks in advance and Happy New Year!  UPD: Okay, people suggested looking at the differences between #include <> and #include "" and that still did not help. Although I am able to access any files from my Main.cpp I am not able to access files neither in my ContentProvider class nor in FooException class no matter which #include-statement I use. Moreover, no matter which statement I use I can access SFML-library from any point in my project. Does it have to do with the SFML-directory being in the "include"-directory in my project?  UPD 2: Okay, problem solved and it had nothing to do with #include <> and #include "". I just had to put "..\" before writing the name of the path and it worked beautifully. I marked the answer that suited the best right.


What does this mean in my program? -exec ls -s {}

-exec ls -s  is part of my program just want to know what does -s {} mean. This is my whole program, I know what it does:  find $root -type f -exec ls -s {} \; | sort -n | tail -n 15 >> ~/prog.log


Remove multiple fields from multiple shapefiles using a python script

I'm using the python console of QGIS 2.8.1-Wien. I have a shapefile with many fields in the table that I want to remove them. I tried to use this geoalgoritm as:  processing.runalg('qgis:deletecolumn', myshapefile.shp, "myfield", myoutput.shp)    This works perfectly and the field I want is removed. My question is: if I want to remove more than one fields how should I write this formula? Or there are any other way to write a python script?    I used your 1st method, just for one shapefile as:  output_0=processing.runalg('qgis:deletecolumn', "D:/PATRICIA/ECMWF/Test/TPrecip_20140628_VERAO_join9.shp", "Lat_dec", None) output_1=processing.runalg('qgis:deletecolumn', output_0, "Lon_dec", None) output_2=processing.runalg('qgis:deletecolumn', output_1, "Altitude", "D:/PATRICIA/ECMWF/Test/TPrecip_20140628_VERAO_join12.shp")  The result was:"Error: Wrong parameter value: None"  I tried to use the 2nd method for 3 similar shapefiles (with same fields) activated in the table of contentes but just occured de removal of the fields in the 1st shapefile :  layer = qgis.utils.iface.activeLayer() res = layer.dataProvider().deleteAttributes([1, 2, 3, 4, 5, 6, 7, 8]) layer.updateFields()                         In this case it's impossible to use 8000 shapefiles activated in map canvas.  Any help?


How to access a computer behind two NAT routers?

For technical reasons that I cannot change my computers at home are located behind two routers, only one of which (the one connecting my own network) I have control over.  Basically the setup is  Internet <-> R1 <-> private network 1 <-> R2 <-> private network 2  R2 is my router. The private networks are 192.168.10.0 and 192.168.1.0. The latter is mine.  Is there any way for me to reach my computer from the outside (i.e. the Internet)?  I am not adverse to renting a hosted server somewhere and run some sort of client on a computer inside my network to allow the hosted server to SSH to my home network.  Any ideas?


How to mute notification sounds during a call on Samsung Galaxy 6 Edge?

While on a call, if I receive a text message, the notification sound for text message plays during the call. How do I mute the notification sounds for text messages while I'm on a phone call? My device is Samsung Galaxy 6 Edge.


How can I tumble a picturebox in c# form

I'm trying to write a code that tumbles a picturebox when pressed Space key. If we hold the key, the picturebox will enter to a loop like this  What should I use?


Error-The request xml is too complex and its depth exceeds the maximum depth 32 undefined

I am getting this error while running the below javascript code.  <script type="text/javascript"> //var siteUrl = '/projects/SharePoint2013-Demo/TimesheetManagementSystem/'; var oList = null; var web = null; var clientContext  = null;    function retrieveListItems(sender, args) {  var filterValue =document.getElementById("ctl00_ctl41_g_1c91c2d4_fbbb_4792_8507_ba589e5be222_SpListPicker_SelectionBox"); var StartDate=document.getElementById("ctl00_ctl41_g_ed4beb82_8f7e_4389_bb35_a44188462aab_DateFilterPicker_DateFilterPickerDate");   var EndDate=document.getElementById("ctl00_ctl41_g_07c2185d_e903_4010_8a84_b2d9536a5549_DateFilterPicker_DateFilterPickerDate"); alert(filterValue.value ); alert(StartDate.value); alert(EndDate.value);       clientContext = new SP.ClientContext.get_current();     oList = clientContext.get_web().get_lists().getByTitle('TimeSheetList');     clientContext.load(oList);      clientContext.executeQueryAsync(Function.createDelegate(this, this.LoadList), Function.createDelegate(this, this.onQueryFailed));           }    function LoadList(sender, args) {            var  camlQuery= new SP.CamlQuery();                    camlQuery.set_viewXml("<Where><And><And><Eq><FieldRef Name='Author' /><Value Type='User'>Vikash Kumar</Value></Eq><Geq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-13T12:00:00Z</Value></Geq></And><Leq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-20T12:00:00Z</Value></Leq></And></Where>");       camlQuery.set_viewXml(camlQuery);      this.collListItem = oList.getItems(camlQuery);       clientContext.load(collListItem);     clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));     }    function onQuerySucceeded(sender, args) {      var listItemInfo = '';       var listItemEnumerator = collListItem.getEnumerator();      while (listItemEnumerator.moveNext()) {                 var oListItem = listItemEnumerator.get_current();                 var ID= oListItem.get_id();                 alert(ID);                 } }   function onQueryFailed(sender, args) {     alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());  }   </script>  <button type="button" onclick="retrieveListItems()">Approve!</button>   What is the reason, where am I doing wrong??


I tried to wage war with France from Scotland, but for some reason I could not attack from the sea tile, while an allied army was. How do I attack from the sea? In general, why can't I land on blocks that are not mine?


Gravitational Effect Versus the Speed of Light

If, for some reason, the sun were to suddenly disappear altogether, I would like to know the following:   would we "feel" it first (i.e. being thrown into outer space due to no longer having anything to orbit); would we see the sun disappear at precisely the same moment that we "feel" it?;  or would we see it before we feel it (shortly before inevitably being subsequently thrown into outer space)?   For reference: light from the sun takes ~8.5 minutes to reach us here on Earth.  I have read that , however I personally would imagine that we feel it first for this reason: how could we possibly "feel" something 8.5 minutes after it has happened if it is something as major as planet Earth being thrown into outer space?  Surely we wouldn't be hurtling through space for 8.5 minutes before noticing, would we?  But then that would lead us into the realm of the Universal Speed Limit and how, in theory, nothing should be able to exceed it (except, perhaps, subatomic particles being able to communicate instantly (MUCH faster than the speed of light), but that is a whole other question and not for discussion here).  Any help would be great.


My stairway LED ceiling lamps on 3-way switches glow next morning after being off all night. Is this an indication of stray voltage, bad switch or short circuit? They still glow today after 14 hours.


Does an android phone unroot itself on factory reset?

If you root your android device, and then factory restore it... does it remain rooted?


Read the EXISTING content from another terminal

How may I read the EXISTING output content from another terminal, like an SSH terminal?  The scenario is I ran a program in a GUI session but later on I need to read its output remotely without touching its GUI session (I know I can if I use VNC). I did a bit search in StackExchange but their stories are different.   gives a solution to redirecting its FUTURE output towards the remote terminal but still, the EXISTING output is missing. Any solution to this?


We are using rsync to copy files from one location to another location on a different host. We want to exclude a directory from the source location so that files from this directory are not copied . The files inside this directory are actually session data and this data were removed once the session completes . So we are excluding this directory.   For this we modified our rsync to exclude the directory as follows:  rsync -av --exclude '/share/web/moodle/moodledata/sessions/' --rsync-path "sudo rsync" /share/ 172.31.X.X:/share/ &>/home/fsync/rsyncjob/output."$datetime";   But I can see that the directory is not getting excluded as from the log file can see it is trying to copy the log file:  rsync: send_files failed to open "/share/web/moodle/moodledata/sessions/sess_bnktcuvnv965dj4qtv1438o651": Permission denied (13) rsync: send_files failed to open "/share/web/moodle/moodledata/sessions/sess_d2vvo9ip79jc13qafgq5of50s2": Permission denied (13)   Please suggest fix to exclude the directory


I have a database in which an invoice can be linked to multiple orders. I'd like to have multiple results from the order table put in one cell, but (And that's the problem) I need to have the orders filtered the same way as they are from the main query, without rewriting them in the subquery. I doubt it is possible, but the idea is actually to rely as much as possible on the main query, mainly because the columns are created automatically and independently of the conditions.  The query:  SELECT [Invoice].INV_ID AS 'Invoice ID',        INV_TIT AS 'Invoice title',         (SELECT CAST((SELECT ORD_TIT + ' | ' FROM ORD WHERE ORD_ID IN ([Order].ORD_ID) FOR XML PATH('')) AS VARCHAR(MAX))) AS 'Order list' FROM INV [Invoice] JOIN INV_ORD [InvoiceOrder] ON [Invoice].INV_ID = [InvoiceOrder].INV_ID  INNER JOIN ORD [Order] ON [InvoiceOrder].ORD_ID = [Order].ORD_ID WHERE [Invoice].INV_ID IN (29517, 30951, 42048)   AND [Invoice].INV_ISDEL = 0   AND [Order].ORD_DAT = GETDATE()   The result:  ╔════════════╦════════════════╦═══════════════════╗ ║ Invoice ID ║ Invoice title  ║ Order list        ║ ╠════════════╬════════════════╬═══════════════════╣ ║ 1          ║ Cinema tickets ║ 1 cinema ticket   ║ ║ 1          ║ Cinema tickets ║ 2 cinema tickets  ║ ║ 2          ║ Groceries      ║ 1 toothbrush      ║ ║ 2          ║ Groceries      ║ 5 shampoo bottles ║ ╚════════════╩════════════════╩═══════════════════╝   The desired result:  ╔════════════╦════════════════╦════════════════════════════════════╗ ║ Invoice ID ║ Invoice title  ║ Order list                         ║ ╠════════════╬════════════════╬════════════════════════════════════╣ ║ 1          ║ Cinema tickets ║ 1 cinema ticket | 2 cinema tickets ║ ║ 2          ║ Groceries      ║ 1 toothbrush | 5 shampoo bottles   ║ ╚════════════╩════════════════╩════════════════════════════════════╝


Normalising Constant for exponentiated function

What would the normalising  constant be of the following, or atleast an approximation? I would like to avoid sampling.  $$f(\theta)=\exp(-k_1e^{-k_2\theta^2}-\theta^2)\qquad\theta\in(-\infty,\infty), \quad k_1,k_2>0$$  In the event that its not possible, what would be a valid polynomial lower bound on $\log(f(\theta))$, that would take into account $k_1$  For anyone, who is interested, I end up with this expresssion because I place a Gaussian prior over (a squared exponential) kernel parameters, and trying to use variational bayes (hence, a lower bound).


What happens when you floor a number that by definition is the number above it?

I have an interesting question that is not a duplicate. I have been pondering this for a while, and I would like to see what MSE's "pro" mathematicians think the answer would be.    Problem: What is $\lfloor 1.\overline{9} \rfloor$?    My thoughts:  There are two solutions which I believe can be applied to this problem, although I'm not sure which one is correct.  Solution 1: $1.9999...$ is $2$, and the floor function would equal $2$.  Solution 2: Floor $1.9999...$ to get $1$, which is the answer.    I am not sure which one is correct. Please state which solution you think is correct and why. Thanks! Max0815.


Why do house elves struggle with English grammar?

In the Potterverse we see house elves speak broken English. Winky is the best example     House elves does what they is told. I is not liking heights at all, Harry Potter...but my master sends me to the top and I comes, sir.   But in fact they all speak oddly. Given the fact that most of them seem to live in British families for their whole lives it is strange they can't speak properly.  I can see two reasons why a person would speak broken language:   They are not native speakers Their IQ does not allow them to grab the complicated grammar   In case of house elves we can consider both reasoning. Or can we?..


Is it required for panel data to use dummy variables?

I am doing research considering seven countries and I have panel data. My question is: do I need to include dummy variables every time I use panel data in regression, or is enough to do it as a fixed effect in Stata, without dummy variables?


For any $a \in \mathbb{N}$, $4^a \equiv (3a+1) \mod 9$. How do I prove this?  I have attempted to do so by induction(which I think should be sufficient).  For the base case: $4^0 = 1 \equiv (3(0)+1) \mod 9$.  I have tried assuming the inductive hypothesis $4^a \equiv (3a+1) \mod 9$ to try and get the result to be true for say $a+1$ but I can't get past that point and don't know whether this is the correct route. Any help would be appreciated.


I want to study Fuzzy Sets and Fuzzy logic self. For that what would be better book to start from basic?


Minimal polynomial of $x$ over $K(f(x))$

Let $K$ be a field and $f(x)$ be a one-variable monic polynomial on $K$. Is the minimal polynomial on $K(f(x))$ of $x$ (with $t$ as a variable) $f(t) - f(x)$? I know that the minimal polynomial of $x$ I want to know is a divisor of $f(t)-f (x)$. I expect the minimal polynomial to be $f(t)-f(x)$. So, in general, is $f(t)-f(x)$ irreducible on $K(f(x))$?


The subcaption package counts incorrectly under KOMA script

I have a figure with two subfigures, each with its own caption. When I refer to the figure the numbering is correct, but when I refer to a subfigure the figure number is one more than it should be. If I change the document class to article the error does not appear. How to fix the numbering when referencing under KOMA script?  MWE:  \documentclass{scrartcl}  \usepackage[hyphens]{url} \usepackage{graphicx} \usepackage{subcaption}  \begin{document}  \begin{figure}   \caption{Two photos} \label{fig:photos}         \centering   \begin{subfigure}[t]{0.45\textwidth}       \caption{People on a square}       \label{fig:square}           \includegraphics[width=\textwidth]{images/square.jpg}                 {\footnotesize By Lina Kivaka and available at                     \url{https://www.pexels.com/photo/people-walking-near-white-building-3989821/}                 \par}   \end{subfigure}   \quad   \begin{subfigure}[t]{0.45\textwidth}       \caption{Cabin over a lake}       \label{fig:cabin}                 \includegraphics[width=\textwidth]{images/cabin.jpg}                 {\footnotesize By Lucas Craig and available at                     \url{https://www.pexels.com/photo/cabin-on-green-grass-field-near-lake-under-white-clouds-3689772/}                 \par}   \end{subfigure} \end{figure}  When I refer to panel~\subref{fig:square} of Figure~\ref{fig:photos} it is displayed as Figure~\ref{fig:square}. Similarly panel~\subref{fig:cabin} is displayed as Figure~\ref{fig:cabin}.  \end{document}


Prove: If $a^5|b^3$, then $a|b$ for integers $a, b$.

I know that if $a^5|b^3$, then there exists some integer t such that $ta^5=b^3$. I also know that if I can show there exists some integer s such that $sa=b$, then $a|b$. I believe I should use prime factorization in some way. I can write $a^5 = (p_1^{r_1}p_2^{r_2}...p_n^{r_n})^5$ and $b^3=(p_1^{s_1}p_2^{s_2}...p_m^{s_m})^3$ if I allow some of the exponents to possibly b zero. Logically, I would think that some of the $p_i$ in the factorization of $a$ would be in the list of prime factors of b. However, I am not sure which direction I should go with this.


Book Identification: Dragons as war machines

Read the book once in the late 90's The only things I can remember are:   Dragons were some sort of war machine (built and maintained, rather then real, living creatures) A bunch of somewhat magical creatures working in a factory. The pilot of the dragon has small needles inserted into their arms. Lastly, I'm associating the color green with the cover.   Anyone got any ideas?


I can't connect my IDE to org using SFDX:Authorize command

When I use SFDX:Authorize org command, it redirects me to Salesforce login screen. Then I enter my credentials. However I see only white screen and there is no response. From my home machine everything works fine. My OS - Linux Mint 20.


Using Visual Studio in Italian, in a project in Visual C# adding a form object DateTimePicker the calendar that is shown on the click, displays the months in the Italian language, as you can set the display in English?


PDF/A-1u validation failure due to incorrect "CIDSet stream" from CJK fonts

This document... \documentclass{article} \usepackage[a-2u]{pdfx} \usepackage{babel} \babelprovide[import=zh-Hans]{chineseS} \babelfont[chineseS]{rm}{AR PL UMing CN} \begin{document} what \foreignlanguage{chineseS}{什么什么} what \end{document}  ... compiled with lualatex, produces a PDF that fails PDF/A validation (veraPDF v1.16.1) with an error that I have no idea how to resolve:  clause 6.2.11.4 test 4: If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program, regardless of whether a CID in the font is referenced or used by the PDF or not.  veraPDF also tells me that the offending font is AR PL UMing CN.  I tried replacing it with each other CJK font I have, with the same result. Is this a problem with the fonts, or a problem with TeX itself, or what? Is there anything I can do about it? Note: The full document from which this is cut down, is primarily written in English but contains many short phrases in both Simplified and Traditional Chinese script.  There is also one paragraph-length quotation in Japanese which requires both kanji and kana.  So I need fonts that, taken together, can handle all three.


I want to backup my full ubuntu (18.04) as an iso , so that I can install from that iso later in my system , and get back all the applications installed with their settings . All the browsers with all settings logins and all addons installed . I want full clone of my system as a bootable iso image . Is that possible ? thanks in advance .


Sometime ago I was looking for a user on Stack Overflow. I saw this:    Actually that's kind of odd for me... As you see, Gordon has the biggest reputation number this week. So why is he in the third position? In other words, what's the ordering based on?


A collective name for eating related items

What would be a good word that includes and covers food-consumption related items such as plates, bowls, pots, pans and utensils?  Thanks you


If X and Y are independent random variables, then, are X and $Z= Y+1$ independent random variables?

I was trying to prove this statement in a formal way although intuitively it sounds true.  is there any better and fast way to conclude this other than trying to see if the cumulative distribution function of $X, Z$ is equal to that of $X, Y$?


I need to prove the equivalence of sets [-1,4) ~(2,11) using:   a) Cantor-Bernstein Theorem  b) Constructing a bijection between those two sets.  What I have done:  a) I understand that in-order to prove this using Cantor-Bernstein you need to show injection from $f(x): [-1,4)\rightarrow (2,11) $ and $g(x): (2,11) \rightarrow [-1,4)$  I tried to find corresponding $x$'s so that $f(x)$ would always be in range of $(2,11)$ but I couldn't set up a proper ruleset.  b) Contructing a bijection:  If we have $A =$ {-1, ... 4} We would have to construct a $B = $ {2 +- $rule$ .... 11} The result would be a function $f(x) = $ { a set of rules}.  For example $2-x, x < 0$ and $2 \frac{3}4 * x , x > 0$.  Here also I couldn't understand how do I know to look for these rules, if anyone could provide any insight.  Best regards.


Violated non-proportional hazards - Cox regression model of time-dependent covariable

I have been reading a lot on Cross Validated for a while now, but this is my first post here. Thanks for all the help I've received! I am currently working on a project where we are trying to estimate the effects of a drug on overall and disease-specific mortality. This is a prospective observational study, where patients are enrolled when they have a blood test, which happens at different time points. Patients are then followed until death, emigration, or the end of the study. To figure out if the drug impacts mortality, we have set up a Cox regression model where drug exposure is allowed to accumulate over time with the cumtdc function specified . The problem is that the proportional hazards assumption is severely violated - with p-values approaching 0 for most of the covariates. I am a beginner to this type of analysis and what I have read and tried so far is:  Splitting continuous variables (such as age) into categories, which did not make a difference. Could interaction variables be helpful here - if so, how do I best implement them? Would this analysis be better suited to be performed with an accelerated failure time model? Is it possible that the analysis could be valid despite the non-proportional hazards? I am asking this since, intuitively, there are many individuals in the study (> 300 000) and many events (> 30 000), so even minimal violations might be registered as significant.  I am attaching the Schoenfeld plots with the respective p-values for the covariables.  I would be most appreciative of any suggestions to this problem. There seem to be many different approaches out there, making it a bit tricky to navigate for a beginner. Thank you! ADDITON TO ORGINAL QUESTION These are the log hazards for the variables age and X. I have now attempted both restricted cubic splines and categorization without meaningful changes to the Schoenfeld residuals.  ADDITION 2 TO ORIGINAL QUESTION The output from cox.zph:  The requested plots from cox.zph for A and age:


Where is the verb "be" in "This page intentionally left blank"?

"This page intentionally left blank" is a common sentence at the start of books/documents. I know it is correct, but why is it not expressed as "This page has been initially left blank"?   Is there a term to describe this phenomenon in English grammar? A useful link for further study will be appreciated. I have already read this relevant .


Why does the following loop run infinite times

This seems like a very normal piece of code ...but I don't know why its showing abnormal behaviour .  #include <bits/stdc++.h> using namespace std ;  int main() { string s ; cin>>s;  for(int i =2 ; i < s.length()-2 ; i++) {     cout<<"AAAA"<<endl; }  }   For an input of a string of lenght 1 like  'B' ....The expected output should be nothing ..but instead the output is 'AAAA' infinite times ..can't figure out why the loop runs infiniye times


Why doesn't the last digit method work for divisibility by 4?

I wish to explain to a grade 5 kid, the answer to the question - 'When can we know that the observing the last digit of a number will not be sufficient to determine its divisibility by a given N?'  For example - It doesn't work for 3, because we get all sorts of digits, i.e. from 0 to 9, at the units place. The same reason works for 7 and 9.   But what would be a convincing argument for 4 and 8? Even though the last digits form a pattern - 0, 2, 4, 6 and 8 - but we're still not sure about its divisibility.


I am trying to make my appache server, server a javascript file which I have compressed my self. I don't want my javascript to be compressed on the fly for example with mod_deflate or mod_gzip. I have already compress the file my self and I just want to serve it. Among others I have follow the instructions from this post (which is my current configuration).   and from  .  I have also tried some other partial solution that I read here and there but I cannot make it work.  Currently my .htaccess configuration is like this:   <IfModule mod_rewrite.c>     RewriteCond %{HTTP:Accept-Encoding} gzip     RewriteCond %{REQUEST_FILENAME}.gz -f     RewriteRule (.*\.(js|css))$ $1.gz [L] </IfModule> AddEncoding x-gzip .gz <FilesMatch .*\js.gz >  ForceType application/x-javascript </FilesMatch>   I have read a lot of solution but they do not work for my inlucding this  I dont know what I am doing wrong and I have not get an answer. Besides I think the above solutionshould work without Mutliviews because it use rewrite to rename the requested files. Can someon please helpe me with the correct configuration?  For testing purpose I have jquery.min.js and jquery.min.js.gs  The file that server is not the compressed one but the uncompressed.  I am hosted on plesk 11.5 using centos 6.5 and apache 2.2.15.  I have tried lots of thinks but I can not make it work. Any help would be appreciated  you can test my page here    thanks for yout time.


Designing interactions and UI for synchronous action with long processing time

I have a synchronous process that is trigger by a user action and the process can take more than 10 minutes.  While it's being processed, the previous UI that user triggered from and the previous data displayed is blocked and the user cannot approach it.    Do you know of any references for a system that has this kind of behavior?


Why does OS X show a forgot password prompt when trying to boot or wakeup screen?

Something came up today that bugged me a bit, I left my laptop on battery power before going to bed. When starting it up the battery was dead. I plugged it in, and here is what happened:  The startup progress bar came up for a while and then a forgot password prompt came up, with questions like: "set a new password" + 2 other options that I can't remember (they weren't relevant) and a previous and next arrows.  Puzzled, I hit previous and the dialog froze. I proceeded to restart again and ended up on the same dialog, I reset my password to the same as my previous and that was it.  Any idea what might have happened?


Ridder's method advantage over other methods?

I can't find anywhere the advantages of using Ridder's method over any other numerical method. My professor said that it specializes in solving a unique set of functions, but I can't find anything about it anywhere. When is Ridder's method more useful than something else and why?  I realize it may sound like a silly question but I have to answer it for a project. Thanks!


Request desktop site on stock Android Chrome by default for certain websites

For certain websites on my Nexus 5 running stock Android 5.1, I would like to always display the desktop version instead of the mobile version.  My current workflow is as follows to navigate to a desktop version of a frequently-visited website:   Open Chrome bookmark from a Bookmark widget Wait for Chrome to begin to load the mobile version of the website Check the "Request desktop site" option in the Chrome menu Wait for Chrome to load the desktop version of the website.   I'm aware of  that shares how to configure Chrome to always request the desktop site. Is there a way for to set up a bookmark so only that bookmark loads the desktop site?


How do i `\tag` a subequations environment as a whole?

I have a similar subequations environment as in the mwe  \documentclass{article} \usepackage{amsmath} \begin{document}   \begin{subequations}\label{eq:w} %\tag{myEQ}   \begin{align}     a &= b \label{eq:s1} \tag{myEQ.1}\\ %\tag{\ref{eq:w} 1}     c &= d \label{eq:s2} \tag{myEQ.2}   %\tag{\ref{eq:w} 2}   \end{align}   \end{subequations}    I need to reference \eqref{eq:w} and \eqref{eq:s1} and     would like the tags to be coherent   \end{document}   I found  where the numbering within  the subequation is automated. However, that is not my concern,  rather then the fact that \eqref{eq:w} should show (myEQ) rather than (1).


Prove there does not exist $(a, b, c, d)$, not all $0$, such that $ a^2 + b^2 = 3(c^2+d^2)$

Prove that there is no quadruplet of integers $(a, b, c, d)$, not all $0$, such that: $$ a^2 + b^2 = 3(c^2+d^2)$$  I would appreciate a solution for this problem or a hint please.


Why are accepted answers immune from Flagging link-only answers as Not an Answer?

Let's assume you agree with the  to a link-only-answer (#12) of the Faq Post ?     [A link only] answer must be improved as described above, else it will be   deleted. Downvote if link is tangential to the question. Write a new   answer with details and then flag as Not an Answer. Also flag if the   link is broken.   I think this is reasonable but I understand it's not strictly followed and people flag things without all the steps being followed and some mods will convert the answer to a comment.   But when I saw a case where this was being followed I thought it would be a no-brainer to flag it. I was really surprised when it was declined with       Sadly accepted answers are the one exception to the "link-only-answer" rule.   I looked on meta and couldn't find anything that mentioned this.   Why does this rule exist?   And should it also extend to self-accepted answers?


Problem with desktop environments ubuntu

Ok so here is the problem in short: I run ubuntu 14.04 LTS with two desktop environments: Gnome which i usually use and spectrwm. I removed gnome (followed instructions from somewhere) and left out with spectrwm. I accidentally ran the following command: "sudo apt-get remove unity* ubuntu-desktop" Which caused a disaster (cant access any desktop environment even spectrwm, running on low graphics mode, ...) so how do I revert my last command ? By the way I tried to reinstall ubuntu-desktop and it gave me unmet dependencies errors, I did not try installing any unity package because I do not know which packages got removed because of this command.  Thank you all I really appreciate your help.


I am checking out ES6 features and the Symbol type created a question for me.  With ES6 we cannot apply the new operator on Symbol(). When we do it, it throws an error. And it does this checking if the function is being used as constructor. So, how it does check if the function is being used as constructor or not behind the scenes? (Implementation might change depending on the platform.)  Could you share any example implementation?


I have two versions of python, namely, 2.7.10 and 3.4.3 in my Ubuntu 14.04 (trusty) machine.  How can I upgrade the 3.4.3 version to 3.5 latest version without affecting the 2.7.10 version?    Thanks in advance.


I am bringing up a rather pedantic point here, but, one that has me completely stumped.  This is going to require some serious grammar knowledge.  I was in a line at a shop today and the teenager at the counter actually said "May I please help whomever is next."  As a matter of conversational English, I dare say, this construction borders on pretentious.  But, on deeper thought, it might be fine in formal English since the subject of the dependent clause should typically agree with the main clause.  But, then I found the  by Edwin Ashworth on this site regarding the issue:     If one wants to be pedantic, the correct version uses whoever rather   than whomever in this construction as, though the accusative is   required to agree with the main clause (Can I help John? Can I help   him? Can I help him who is next? NOT *Can I help he who is next? - see   Fowler), the compound lexeme whoever fulfils a dual accusative   (relating to the main clause)/nominative (relating to the relative   clause) role. Whomever fulfils a double accusative role (Treat   whomever the acid came into contact with).   I followed Mr. Ashworth's explnation until he started making distinctions between dual and double accusatives (which I didn't think existed in English).  If anyone could offer a clearer explanation, I would be apprecative.  Thanks.


Is it the Whitehaven Boy's Soccer Booster Club

Or is it the Whitehaven Boys' Soccer Booster Club?


Surjective endomorphisms of uniserial modules

Please help me to prove the following result:  Let   $R$  be  a ring with $1$ and $M$ a uniserial left $R-$module and $\alpha,\beta\in End_R(M)$.      $\alpha\beta$ is surjective if and only if both $\alpha$ and $\beta$ are surjective   This is what i wrote:  The implication  if both $\alpha$ and $\beta$ are surjective then $\alpha\beta$ is surjective is evident since the composition of two surjective functions is surjective:   Let $\alpha:M \to M$ and $\beta:M \to M$ be surjective functions.   We wish to show that $\alpha\circ \beta:M \to M$ is also surjective.  Now, we know that for every $c \in M$, there is a $b \in M$ such that $c = \alpha(b)$, by surjectivity of $\alpha$. And we know that for that same $b$, there exists an $a \in M$ such that $b=\beta(a)$, by surjectivity of $\beta$.  So what we have shown is that for every $c \in M$, there is an $a \in M$ such that $c=\alpha(\beta(a))=\alpha \circ \beta(a)$, i.e., $\alpha \circ \beta$ is surjective.  For the other inmplication let us suppose that $\alpha\beta$ is surjective. Let $a\in M$ by sujectivity of $\alpha\beta$ there exist $b\in M$ such that $\alpha\beta(b)=a$ hence there exist $c=\beta(b)\in M$ such that $\alpha(c)=a$ then $\alpha$ is surjective   But i am not able to prove that $\beta$ is also surjective. Please help me to do so. Thanks in advance.


Could chicken meat ever be safe when pink?

I have cooked chicken breasts today and they read 83c (safe is 73c) with a ThermoWorks Thermopop (best company in the industry). When I sliced them they had small pink strips on the inside. What does it mean? Was the chicken safe? Is it impossible for chicken to be both slightly pink and safe?


Relating the union of the power set of a set to the set itself

I'm pretty sure I've asked way too many questions on sets already(still, a big thanks to everyone who helped) and even though I'm starting to see what's going on there are still some issues, for example this question:  Prove that $\bigcup P(X)=X$, where $P(X)$ is the power set for the set $X$  So, what I can do is the following:  $a \in \bigcup P(X) \implies \exists b \subset X$ s.t. $a\in b \implies a \in X$ and for the other direction I can take $b=X$.  However, I'm not sure whether this is correct, and in particular, the bit with $b \subset X, a\in b \implies a \in X$  If I take $X=\{\{1\},\{2\}\}$, then $P(X)=\{\emptyset,\{1\},\{2\},\{\{1\},\{2\}\}\}$, hence $\bigcup P(X)=\{1,2,\{1\},\{2\}\}$ which is not equal to $X$ by ZF$1$  Where's the problem?  Thanks


What is the meaning of "duh" in this sentence?

Though I know the meaning of each word except 'duh', I have failed to realize the meaning of the following sentence.     Why do researchers get so many grants to do stuff that's like, well, duh?   Would anybody like to explain the meaning of above sentence?


Embedding stop time in a YouTube video link

We all know that we can embed a start time in a YouTube video URL (by adding something like &t=1m45s to the end).   But is there a way to embed both start and stop time? Like linking only a part of the video...


Provided that dark matter coaleces in halos around and within a galaxy and gravity seems to affect dark matter in a similar way as regular matter, would it be possible for dark matter to coalece into a black hole and would not the mass of a black hole include regular matter and dark matter.


I'm trying to show that the equality $$\sum_{i=0}^{k} \binom{m}{i}\binom{n}{k-i} =\binom{m+n}{k}$$  Is true. I know it is since there is a good combinatorical argument for it. If we have a group of $m$ men and $n$ women, and we need to choose $k$ then we know its equal to $\binom{m+n}{k}$, but we can also say that we  choose $0$ men and $k$ women, or we can choose $1$ man and $k-1$ women, or we can choose $2$ men and $k-2$ women, etc.  So in theory they should be equal, but I can't work the math behind it.  A hint in the right direction would be appreciated


How to make nautilus use file-roller in 17.10 like in 17.04?

In Ubuntu 17.10 ubuntu upgraded Nautilus (File Browser) to version 3.26.0. New nautilus is not using file-roller anymore, it has  to an integrated compression mechanism.     This makes it complicated to create encrypted archives and/or different types compression archives that file-roller does provide.  How to make nautilus use file-roller as before?  Related question:


Why do statisticians like "$n-1$" instead of "$n$"?

Does anyone have an intuitive explanation (no formulas, just words! :D) about the "$n-1$" instead of "$n$" in the unbiased variance estimator $$S_n^2 = \dfrac{\sum\limits_{i = 1}^n \left(X_i-\bar{X}\right)^2}{n-1}?$$


Why is dropping a primary key expensive?

I have a table with a clustered PK. No foreign keys reference it. When I drop it I expect it to be more or less instantaneous, but it is instead very slow.  My assumption was that we'd just be removing some metadata and not having a constraint or clustering for future updates and inserts.  What is actually happening internally to make this expensive?


Use Hall's Theorem to show if $|N(S)|\geq k|S|$ for all $\emptyset \neq S \subseteq A$, vertices of $G$ can be covered entirely by disjoint $k$-stars.

Let $k \in \mathbb N$ with $k\ge2$. Consider a bipartite graph $G$ with vertex classes $A,B$, where $|B| = k|A|$.  Use Hall's Theorem applied to a suitable graph $G'$ to show that if $|N(S)|\geq k|S|$ for all $\emptyset \neq S \subseteq A$, then the  vertices of $G$ can be covered entirely by disjoint $k$-stars. (A $k$-star is a tree with $k+1$ vertices and $k$ leaves.)


Seasonal ARIMA model mathematical equation

I am trying to write a mathematical equation for a seasonal ARIMA model of ARIMA (0,0,1)(0,1,1) where the values are recorded quarterly.  I have tried to follow other examples but i cant seem to get my head around these specific examples and cant apply them to my model.  Any help would be greatly appreciated


Ubuntu 12.04, 13.04: Cannot login to account returns to login screen

Question  In Ubuntu 12.04 and 13.04 (and probably 13.10) I made some changes to my graphics settings. After rebooting when I attempt to login to my account the screen flashes black the bounces me back to the login (lightdm) screen. My password is correct and I can log in on a guest account. Why by Richard Stallman's Scraggly Beard does this keep on happening!!