I receive all emails from my php form in spam. How can i solve it?

I have a contact form on my site with the following php script but when people compile the form e send a message from my site, I receive their message always in spam..   So if i'm not careful to check always my spam folder, i lost messages received from my site..  I don't know how to solve this problem.. thanks in advance!  <?php include('SMTPClass.php');  $use_smtp = '0'; $emailto = 'antonycee@gmail.com';  // retrieve from parameters $emailfrom = isset($_POST["email"]) ? $_POST["email"] : ""; $nocomment = isset($_POST["nocomment"]) ? $_POST["nocomment"] : ""; $subject = 'Email da festeprivateroma.com'; $message = ''; $response = ''; $response_fail = 'There was an error verifying your details.';      // Honeypot captcha     if($nocomment == '') {          $params = $_POST;         foreach ( $params as $key=>$value ){              if(!($key == 'ip' || $key == 'emailsubject' || $key == 'url' || $key == 'emailto' || $key == 'nocomment' || $key == 'v_error' || $key == 'v_email')){                  $key = ucwords(str_replace("-", " ", $key));                  if ( gettype( $value ) == "array" ){                     $message .= "$key: \n";                     foreach ( $value as $two_dim_value )                     $message .= "...$two_dim_value<br>";                 }else {                     $message .= $value != '' ? "$key: $value\n" : '';                 }             }         }      $response = sendEmail($subject, $message, $emailto, $emailfrom);      } else {          $response = $response_fail;      }  echo $response;  // Run server-side validation function sendEmail($subject, $content, $emailto, $emailfrom) {  $from = $emailfrom; $response_sent = 'Grazie. Il tuo messaggio è stato ricevuto.'; $response_error = 'Error. Please try again.'; $subject =  filter($subject); $url = "Origin Page: ".$_SERVER['HTTP_REFERER']; $ip = "IP Address: ".$_SERVER["REMOTE_ADDR"]; $message = $content."\n$ip\r\n$url";  // Validate return email & inform admin $emailto = filter($emailto);  // Setup final message $body = wordwrap($message);  if($GLOBALS['use_smtp'] == '1'){      $SmtpServer = 'SMTP SERVER';     $SmtpPort = 'SMTP PORT';     $SmtpUser = 'SMTP USER';     $SmtpPass = 'SMTP PASSWORD';      $to = $emailto;     $SMTPMail = new SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body);     $SMTPChat = $SMTPMail->SendMail();     $response = $SMTPChat ? $response_sent : $response_error;  } else {      // Create header     $headers = "From: $from\r\n";     $headers .= "MIME-Version: 1.0\r\n";     $headers .= "Content-type: text/plain; charset=utf-8\r\n";     $headers .= "Content-Transfer-Encoding: quoted-printable\r\n";      // Send email     $mail_sent = @mail($emailto, $subject, $body, $headers);     $response = $mail_sent ? $response_sent : $response_error;  } return $response; }  // Remove any un-safe values to prevent email injection function filter($value) { $pattern = array("/\n/", "/\r/", "/content-type:/i", "/to:/i", "/from:/i", "/cc:/i"); $value = preg_replace($pattern, "", $value); return $value; }  exit;  ?>


I looked for a way to remove outliers from a dataset and I found .  In some of the comments and answers to this question, however, people mentioned that it is bad practice to remove outliers from the data.   In my dataset I have several outliers that very likely are just due to measurement errors. Even if some of them are not, I have no way of checking it case by case, because there are too many data points. Is it statistically valid than just to remove the outliers? Or, if not, what could be another solution?   If I just leave those points there, they influence e.g. the mean in a way that does not reflect reality (because most of them are errors anyway).   EDIT: I am working with skin conductance data. Most of the extreme values are due to artifacts like somebody pulling on the wires.   EDIT2: My main interest in analyzing the data is to determine if there is a difference between two groups


Can't show collections after migrating from 2.7

I've been working on a large model in Blender 2.7, and I split it into layers to manage it better. Now I've updated to 2.83, and I've learnt about layers being replaced by collections. However, when I open my file in 2.83, I get this in the Outliner:  Even though all collections have the open eye, only the first one is visible, and the View submen only shows the first one:  Is this something related to my file being migrated to 2.83? How do I get all my objects back again?


I am looking for a shapefile of Assam showing district-wide boundaries. I have searched in the net but I have not been able to locate one for Assam, even though shapefiles for India are available.   Can anyone suggest where I can obtain such a file?


How to split a list into multiple "even" lists in Python

So I have a list, let's say list = [1,2,3,4,5,6,7,8,9,10] and I want to divide it equally between x number, in this scenario let's say 3, how can I make it so it turns into, list = [1,2,3]        [3,5,6]        [7,8,9,10]  or something similar, I tried dividing a list of 30 items between 25 lists and it gave me 24 single entries and the last one had 5, instead of giving 20 single items and 5 double items perse.


I need help with understanding how to solve this task, because I'm a bit lost at the moment.  Use the powerseries  $$f(x)=\frac{1}{1-x}$$ to decide the sum of the series   $\sum_{n=1}^{\infty} n(n+1)x^n$    and $\sum_{n=1}^{\infty} \frac{n(n+1)}{3^n}$  I don't understand how to manipulate the sums to use the power series of the function.


How do I change the remote frequency options in my ceiling fan?

My Hampton Bay ceiling fan remote control is interfering with my neighbours.  Inside the remote there are switches to adjust the remote frequency.   Where in the fan do I make the corresponding adjustment? Do I have to take the fan down?


How to create an offline script with zip file to be run instead of running an apt-get install command?

I'm helping someone to install a  on a Ubuntu 18.04 LTS server which is currently offline from the internet. This will be later used to setup authentication to connect to a Kakfa service.  If it was online, this simple apt-get command would be enough:  sudo apt-get install krb5-user krb5-config libsasl2-modules-gssapi-mit   I though about zipping the krb5-config krb5-user libgssrpc4 libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 libsasl2-modules-gssapi-mit downloaded files (as seen on my server* log) and give him the instruction to where to put them. This may or .  What should I do, then?  *obs: the offline server is a similar version of my online server.


'Push' in a rigid rod travel at speed of sound or speed of light

Two person, $A$ and $B$,  each holding one end of a long solid rod.   Now person $A$ pushes the rod on one end.  Question: Is it correct that the information that the rod has been pushed will travel to the other end at the speed of light whereas the actual 'push' will travel at the speed of sound in the rod?   i.e. If the rod has length $ ct $ , then will person $B$ feel the push in time $t$ or $ct/v$? ($c$ is speed at which EM waves propagates in this experiment, and $v$ is the speed of sound in the rod.)


How do I copy a version of a single file from one Git branch to another?

I've got two branches that are fully merged together. However, after the merge is done, I realise that one file has been messed up by the merge (someone else did an auto-format, gah), and it would just be easier to change to the new version in the other branch, and then reinsert my one line change after bringing it over into my branch. So what's the easiest way in Git to do this?


I've got a very simple question, I hope. I have a table MYTABLE like this: FIELD1   FIELD2   FREQ A1       B        10 A1       C        20 A1       D        5 A2       X        7 A2       Y        12 ...  and I want to get something like this: enter code here  FIELD1   FIELD2   A1       C              A2       Y                that is I want to get for every distinct FIELD1 the row having the max(FREQ) but also with its FIELD2 value Oracle 10g Thanks in advance! Mark


Online Playing for Age of Empires - Conquerors

I am looking for a place to play AOE 2 TC online - something like Battle.NET.  I used to play in Game Zone, but I think this game is no longer supported.  Any ideas?


Sometimes I see sites offering Ubuntu packages via something like     Add this line  to your software sources: deb http:// something something   How can I add these to my package manager so I can install the software and keep it up to date? I'd like both GUI and command line options.


I really want to spawn Giant with armor and swords. Because Giants are strong, and great challenge if spawned with enchanted diamond armor and a diamond sword.


How do I test on an already-installed Android application using Appium + Selenium?

I am using the APK info app to know what activities' name are:    package name.v2.acyivities.SplashActivity    package name.v2.acyivities.OnBoardingChooseRegion   (...)  And then I create the DesiredCapabilities:  public AndroidDriver remoteRunningDevice() throws  Exception {      DesiredCapabilities cap = new DesiredCapabilities();     cap.setCapability("platformName", MobileConfig.platformName);      cap.setCapability("deviceName", MobileConfig.emulatorDeviceName);      cap.setCapability("platformVersion", MobileConfig.emulatorPlatformVersion);      cap.setCapability("app-package", MobileConfig.appPackage);     cap.setCapability("appActivity","MobileConfig.appPackage" +".v2.acyivities.OnBoardingChooseRegion");     cap.setCapability("noSign", true);      driver = new AndroidDriver(new URL(MobileConfig.url), cap);     driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);      return driver; }   But it can't be run and result is:  java.lang.NullPointerException   How do I solve this?


Regex for date pattern with optionnal year

I try to write a regex for a date pattern (mm/dd/yyyy ; m/d/yy ; etc...) :      ".*([0-9]+/[0-9]+/[0-9]+).*"   However for my usecase, the year can be omitted. In this case, I still want to match mm/dd. I tried to put the last group opional for that purpose:      ".*([0-9]+/[0-9]+(/[0-9]+)?).*"   But it does not work with a full date pattern (R code below):      str = "hello 2/5/2017 123"     gsub(".*([0-9]+/[0-9]+(/[0-9]+)?).*", "\\1", str)   Result:       [1] "5/2017"   Any idea of what I am doing wrong ?


Exercise 36 Ch 1 in Stein's Real Analysis

Construct a measurable set $E\subset [0,1]$ such that for any   non-empty open sub-interval $I$ in $[0,1]$, both sets $E\cap I$ and $E^c\cap I$ have positive measure.      [Stein's Hint: For the first part, consider a Cantor-like set of positive measure, and add in each of the intervals that are omitted in the first step of its construction, another Cantor-like set. Continue this procedure indefinitely.]   So I tried using the hint to construct the desired set, but I must be misunderstanding something because I do not think the construction works.     My Thoughts:  I believe the basic idea is that we generate a Cantor-like set $C_1$ by removing repeatedly open intervals of some appropriate length at each stage of the construction starting from $[0,1]$.  Then as said in the hint, at the first step in the construction we removed centrally some open interval $I_1$ from $[0,1]$. Then we generate another Cantor-like set $C_2$ from $I_1$. During the first stage of $C_2$'s construction we removed $I_2$ from $I_1$. Repeat indefinitely...  My problem with this is that during the second stage of the construction of $C_1$, we removed $2$ open intervals, call one of them $\mathcal{I}$, from $[0,1]\setminus I_1$. If we take the union of all these Cantor-like sets, denote it as $E$, then wouldn't $E\cap \mathcal{I}=\emptyset$?  If true, then it seems we would have to apply this to all the open intervals that $C_1$ removes and generate a collection of Cantor-like sets from them. Each of which would need the same procedure done to them.   This doesn't seem correct to me and we may need to define $E$ as the countable union of countable unions of Cantor-like sets.    Any help thinking correctly about this problem would be much appreciated.  Note: It's proven (I've proved) that the Cantor-like sets Stein is talking about have positive measure (Exercise 4 in Stein).


Verify google account synced on factory reset

Did a factory reset by accident and now can't get past the sign into to verify with last google account synced to device.


I disabled login options, how do I reset my password?

So yesterday I changed password on ubuntu, but today I wanted to revert it so I entered user accounts and tried to change it, but sadly I could not. It told me password is not secure enough or something then i disabled log in options, but i want it back as it was     I cannot use sudo as I don't know what password to enter.  Now I can not change password at all  any way to make it as it was?


My proof that this series sums to log 2,

EDIT: Please see my attempt below at a proof to show the answer is $log2$  Let $$\alpha = \lim_{n \to \infty} \sum_{j=1}^n \frac {(-1)^{j+1}}{j}$$  Part (1): Show that $\alpha$ exists.  Part (2): Show that $\alpha = log2$.  My work:  $\alpha$ exists, by the alternating series test - simple enough.  But how can I get started on part(2)?  Proof:  Start with $log(1+x)$.  Rewrite it as   $$log(1+x) = \int \frac{1}{1+x}dx$$  Should there be a constant, c, added to the L.H.S.?  Or, should I look to make the R.H.S. a definite integral instead?  Continuing along, I get that  $$\int \frac{1}{1+x}dx$$ $$= \int [\sum_{n=0}^{\infty} (-x)^n]dx$$  with the sum valid for $|x|<1$.  Inside the interval of convergence of this sum, i.e., inside (-1,1), we have uniform convergence, and so we can integrate term-by-term, getting   $$ \sum_{n=0}^{\infty} \int (-x)^ndx$$ $$= \sum_{n=0}^{\infty} \frac {(-x)^{n+1}}{n+1}$$  same question: do I add a constant to the result of the indefinite integration?  Now relabeling indices gives  $$ \sum_{n=1}^{\infty} \frac {(-x)^{n}}{n}$$  $$ = \sum_{n=1}^{\infty} \frac {(-1)^{n+1}x^{n}}{n}$$  but we started with $log(1+x)$, so this shows that we have the equation:  $$ log(1+x) = \sum_{n=1}^{\infty} \frac {(-1)^{n+1}x^{n}}{n}$$  and this implies that   $$ log(1+1) = log(2) = \sum_{n=1}^{\infty} \frac {(-1)^{n+1}1^{n}}{n}$$  $$ \ => \alpha = log(2) = \sum_{n=1}^{\infty} \frac {(-1)^{n+1}}{n}$$  as required.  What do you think?  Am I close?    My concerns are the indefinite integration that I used a couple of times.  Also, I completely neglected the interval (and boundary) of convergence for $log(1+x)$, and just plugged in $x=1$, since I arrived at an equation. Is this ok to do?  Any hints or comments are welcome.  Thanks,


In job descriptions, I often see positions called "Gameplay Programmer."  What do people in that position do?


I'm newbie in C/linux. man time_t is unsuccess. I'm trying to clarify what exactly time_t type is? It's ok when I'm assign const int to the variable type time_t as follows:  time_t =4;   Seems this type is just alias for some numeric type. But I don't understand what is this type?


The differences between $\aleph$ and $\mathfrak{c}$

In elementary set theory, the cardinal of the real numbers is denoted by $|\mathbb{R}| = \aleph$. After a few months here on MathExchange, I have seen quite a few times the notation $\mathfrak{c}$ for the exact same thing. Recently an answer of mine was edited such that every time I used $\aleph$ it was replaced with $\mathfrak{c}$ which made me wonder: Are there any actual differences between the two notation? Of course, they're defined to be the exact same thing, but maybe differences in the source of the notation, or where you should use each, or something like that...  I appreciate your help in advance :)


Converting a number theory question into involving vectors

$p,q,r \in \mathbb{R^+}$ $$p^2 +q^2 = 9 $$ $$q^2+qr+r^2=16$$ $$ p^2 + \sqrt{3} pr +r^2 =25$$ Find $2pq + pr+ \sqrt{3} pr$  My attempt: I tried to interpret this equation as one involving vector dot products by the steps presented below: Let $\vec{p}$ , $ \vec{q}$ and $ \vec{r}$ be vectors, then the first identity suggests that $ \vec{p} \perp \vec{q}$ as we would see if we compare the formula of dot products: if, $$ |p+q|^2 = 9 $$ $ \implies  p \cdot q = 0 $ and since they are non zero vectors , the vectors must necessarily be perpendicular. Similarly, we find that $ \vec{q} $ and $ \vec{r}$ are angled at $ \frac{\pi}{3}$ degrees and finally $ \vec{p} $ and $ \vec{r}$ are at an angle of $ \frac{\pi}{6}$ degrees. So, what we want to find is this: $$ F(p,q,r) = 2 |p| |q| + |p| |r| + \sqrt{3} |p| |r|$$ One last thing which I thought of doing is writing $ \vec{r}$  in the basis of $ \vec{p}$ and $ \vec{q}$ since they are orthogonal, but, I'm worried that $ \vec{r}$ may not be in the plane defined by $ \vec{p}$ and $ \vec{q}$. Anyways I have shown the decomposition below: $$ \vec{r} =  \frac{ \vec{r} \cdot \vec{p} }{ |p| } \vec{p} + \frac{ \vec{r} \cdot \vec{q} }{|q| } \vec{q}$$  Not sure how to proceed next/ if it is even solvable by this method. Appreciate any help given.


As a non-native English speaker, I have a bit of trouble finding the plural of the word 'lettuce'. In my own language (Dutch) it doesn't have a plural at all, and 'lettuces' simply sounds funny to me. Is that just a feeling, or is this word actually not really being used? Would there be another way of expressing the same thing (i.e. bunches/pieces of lettuce), what would be the word of quantity for lettuce?


Do I need to disclose my affiliation on non-promotional, technical answers on my project

As a web search will tell you, I'm a committer on the  project. This means that I'm affiliated with the project, and according to , implies that I need to state that affiliation in every Tycho-related answer:     Post good, relevant answers, and if some (but not all) happen to be about your product or website, that’s okay. However, you must disclose your affiliation in your answers.   But this really feels wrong: If for example I'd write "I'm a committer" in my answer to a Tycho question with multiple answers, this feels like saying "I'm a committer, so that's why I am right and all others are wrong". IMHO, the affiliation statement would be undermining the community's mechanism for choosing the best answer based on the content of the answers, and not based on ranks and titles. I don't want to get votes because I'm a committer, but only if people like the information I'm providing.  So, for a purely technical answer on a project that I am affiliated with, do I really need to state my affiliation? I'm not promoting my project by answering a question of someone who happened to choose my product, am I?


I see leaves rustling all around me (I'm at 14th Street/Union Square)!! Do I have to do some thing to make the pokemon spawn, or is it just random? I've tried walking above them with no success.


I want to know example of a sequence of function $\{f_n\}$ where each $f_n$ is continuous and the pointwise limit $f$ is continuous, but $f_n$ is not uniformly convergent. clearly, I need to think for a $f_n$ where there exist an $x$ such that $f_n(x)$ is not monotone.


.alert{     color:#555;     border-radius:10px;     font-family:Tahoma,Geneva,Arial,sans-serif;font-size:11px;     padding:10px 10px 10px 36px;     margin:10px;     min-width: 500px;     position: fixed;     display: block; }   How would I go about centering this on the screen without using a set starting width?


How can I make make shadows blur as they get further from the object casting them?   I have set up a relatively simple scene witch includes two pots on a clay ground texture, and I am lighting it using an HDRI image. Here is my render result right now:    How could I go about making the shadow of the pots gradually blur more the farther it is from the pots?   is the HDRI i am using to light the scene.   Thanks in advance!


Ajax click function doesn't work after load content

I have following problem. If I generate anhor "load_more_btn" via ajax then click function (the one with alert('test') ) wont work. Why is this happens and how to solve this problem?


How do I access `$HOME/storage` outside of Termux (with a file explorer)?

How do I access $HOME/storage Termux directory on Android Pie with a GUI File Explorer?  In Termux I print the working directory with pwd and it shows $HOME/storage as:  /data/data/com.termux/files/home   My internal storage looks like this:  . ├── Alarms ├── Android |   ├──data |   |  ├── ... |   |  ├── com.termux |   |  |   └── files |   |  |       └── 0 items |   |  └── ... |   └── ... ├── DCIM ├── Download └── ...   My external storage looks like this:  . ├── Android |   ├──data |   |  ├── ... |   |  ├── com.termux |   |  |   └── files |   |  |       └── 0 items |   |  └── ... |   └── ... └── LOST.DIR   Neither my internal storage, nor my sd card, contain a /data/ directory at the root level. Where is this /data/ directory? For that matter, where is the root /storage/ directory? Where is the root /emulated/ directory? Where are any of these directories and why cant I access any of them?


I started as a humble merchant. I have both ships and I have figured out how to make some good cash. I am wondering if there is a way to fly the scout ship discoverer? I can't seem to get a google hit on this question but I see others saying that they set up the mercury to auto-trade and fly the discoverer ship but I can't figure out how to fly the other ship.


How to control what appears on google search results?

So I have just built a site and all is well... but I want to control what appears on google search results.  Lets say I google for "thefwa", first what comes is the link to www.thefwa.com, then underneath is a list of pages on that site with preview and  a link "More results from thefwa.com". How can I tell google to display my chosen content/pages? Do I use robots.txt or sitemap.xml? Because now the pages that are associated with my site are displayed kind of random.  Is it possible to tell google what to display?


How to georeference a map - which is in projected coordinate system - using geographic lat long?

We have some hard copy maps which were projected in Gauss Kruger coordinate system (in the legend it has been mentioned). But, the coordinates were given in Geographic lat long (Beijing 1954). In Global mapper, if we enter the geographic lat long and change the projection, it will change the coordinates accordingly & will detect the Zone too. Is there any such thing in QGIS or even in ArcGIS.  We have tried by assigning geographic lat long (Beijing 1954) to the data frame (Default CRS in the case of QGIS) and entered the geographic lat long and tried with the Target CRS as Gauss Kruger projection. But still, it doesn't convert the coordinates correctly.  All i can see is, first we have to georeference the image in Geographic lat long and then we have to reproject (Warp in case of QGIS) the image. Is there any other options available ?


How to prevent the keras convolutional neural network model to over-fit?

I want to build a convolutional neural network and train it to recognise whether the digit is 0 or 1.  Example of my training data is a 800 * 600 gray scale image containing a digit one: I have 22 such images, 11 containing zeroes, 11 containing ones.  I now build a convolutional nerual network:  def addConvolutionalLayer(layer, newDepth = None):     print(layer.get_shape().as_list())     if newDepth is None:         newDepth = layer.get_shape().as_list()[3] * 2     newLayer = Conv2D(newDepth, kernel_size = (3, 3),                 activation = 'relu', padding='same') (layer)     newLayer = Dropout(0.2) (newLayer)     return Conv2D(newDepth, kernel_size = (3, 3),         activation = 'relu', padding='same') (newLayer)  def buildModel():     s = Input((600, 800, 1))     d1 = addConvolutionalLayer(s, 32)     d2 = addConvolutionalLayer(MaxPooling2D(4)(d1))     d3 = addConvolutionalLayer(MaxPooling2D(4)(d2))     d4 = addConvolutionalLayer(MaxPooling2D(4)(d3))     f = Flatten()(d4)     dense = Dense(64, activation='relu') (f)     o = Dense(1, activation='sigmoid') (dense)     model = Model(inputs = [s], outputs = [o])     model.compile(optimizer='adam', loss='binary_crossentropy',               metrics=['accuracy'])     return model  model = buildModel() model.compile(optimizer='adam',         loss='binary_crossentropy',         metrics=['accuracy'])   In short, a network consists of multiple convolutional layers (with MaxPooling included), ending with a dense layer.  I then split the data into training and test sets:  X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)   X_train, X_test are arrays of float values, each value corresponding to the pixel in the image (1.0 for white, 0.0 for black).  y_train, y_test are lists containing 0 or 1 depending on the digit in the corresponding image.  Finally, I run the model to train:  model.fit(X_train, y_train, epochs = 50, validation_split=0.2) model.save('prediction.h5')   The problem is that the model gets over-fitted: it reaches 100% accuracy on the training data, but does not perform well on the validation set:  Epoch 95/100 12/12 [==============================] - 0s 32ms/step - loss: 1.0640e-07 -     acc: 1.0000 - val_loss: 10.7454 - val_acc: 0.3333   How to fix this issue?


You don't have permisission necessary to save the file,PHP Apache

I just installed LAMP server, which works fine.  But when I code a PHP script and try to save it in /var/www/html, it says:  You don't have permisission necessary to save the file   Help me!  How do I fix this problem?


I am trying to find the limit of   $$\lim_{x\to 0}\frac{\sin{3x}}{x}$$  I have no idea what I am supposed to do. I know the identity that,  $$\lim_{x\to0}\frac{\sin{x}}{x} = 1$$  but that will not be good enough on a test and I am not sure why that is true anyways. I do not know how I am supposed to proceed with this problem.


Apex email : How to override 'From address'

Friends,  This issue is driving me nuts. Basically, I have an APEX trigger which is supposed to send out emails to customers when new records are available for them to look at.   Everything is working as expected. Except the sender name on the email which is the "From address"   I read the documentation and called these methods as follows:      // Specify the address used when the recipients reply to the email.            mail.setReplyTo('testaccount@testOrg.com');          // Specify the name used as the display name.           mail.setSenderDisplayName('Test Org Account Team');   But the "from address" still shows my email because the trigger is executed by my user.  When the reply button is clicked, the sender is populated to the email address set above. But I do not want my email to show up on the "From address".   Looks like Salesforce is defaulting this to the person who ran the trigger. How can I override this :( ?  Thanks.


How to import an object across scenes (sort-of)

I have already made the Cyodrake's Gaze for my animation, but I really don't want to have to do it all over again for scenes 6, 7, 31... and so forth.  Is there any way to copy/paste an object into scenes?  Thanks, Nefer007


Show $R$ is right-Artinian but not left-Artinian

Let $R$ be the subring of $M_2(\mathbb{R})$ defined by $$R=\left\{\begin{pmatrix}a&b\\0&d\end{pmatrix}\mid a\in\mathbb{Q},b,d\in\mathbb{R}\right\}$$  Show that $R$ is right-Artinian but not left-Artinian.  The "obvious" approach to show it is not left-Artinian is to find an $A\in R$ such that $$RA\supset R(A^2)\supset R(A^3)\supset\dots$$  is an infinite decreasing chain of proper left submodules of $R$ (as a module over itself). However, after spending a lot of time in this endeavor I've come to the conclusion that no such element $A$ exists (I can post a proof if anybody is interested but it'd be long and not worth the time for me otherwise). Does anybody have an idea for another approach I can take to this? I have no idea what else submodules of $R$ would look like.


Cannot get certain characters imported into MySQL

This issue is absolutely killing me, I cannot get a single solution online to work!  I am trying to import the following text from a CSV to a MySQL table - via Navicat's import wizard:  L154 – TRAINING WARRANTY   The hyphen is a wide hyphen and so far I've managed to import it as either a question mark, or a black diamond with question mark inside. Same for £ symbols and other special characters.    Everyone always talks about UTF-8. So far I have tried:  Saving the CSV in Excel, clicking Tools > Web Options > Encoding: UTF-8  Right clicking the database and clicking EDIT. Setting Char set to utf8 Unicode and Collation: utf8_general_ci  I have "designed" the table and set the 2 options above to exactly the same.  I have edited the varchar field in question and set the same 2 fields again to the 2 types above.  But my hyphen will not import correctly.  It would be nice to know exactly how to go about importing data that has £ symbols and other special characters once and for all.


Is there any canon source for Sora no Otoshimono?

In the anime, it says that Ikaros Apollon can destroy a country several times throughout the manga. Her shield is strong enough to contain the blast. Hephaestus, her cannon was created to be an anti-weapon and one slight mistake could lead to the destruction of the planet.  Is there any canon source that shows if this is true because the anime sometimes contradicts itself?


Windows 7 (64-bit): "C:\Program Files" versus "C:\Program Files (x86)"

I am running Windows 7 Home Premium (64-bit).  I have read that the difference between "C:\Program Files" versus "C:\Program Files (x86)" is that one is for 32-bit executables whereas the other is for 64-bit executables.  Could someone please point out to me which is which? (I ask because I have been following the installation instructions for some software I downloaded and the instructions do not make it clear which is which). Thanks.    NOTE: This question is a simplified version of , which contains more detail on the issue.


Vertical align middle div with center div

I have HTML and CSS below :    .lpanel{  text-align: center;  height: 50px; } .logo{  display: inline-block;  font-size: 25px; } .slogan{  display: inline-block;  vertical-align: middle;  line-height: 50px; }

LOGO HERE

SLOGAN IS HERE

     I know can using display:table for .lpanel and display:table-cell for .slogan to vertical middle this slogan div but I can't do this because when I add display:table for .lpanel then 2 class .logo and .slogan not align center.  You can see picture :   How to fix this ?  Thanks you so much.


Can I set the default number of vertices for a cylinder?

Is there any way to set the default number of vertices for a cylinder? Every time I create one I get 32 as default but I usualy work with low poly models so I want it to be something like 8. How to do that ?


I just install Ubuntu 14.10 and wanna connect to school WiFi(wpa2 enterprise/peap/mschapv2), but failed. According to forum solution, I need to delete a line called system-ca-certs=true. But I even cannot find it in that file. Anyone has idea?  The solution for the low version   I put my file below, clearly, no line related to "system-ca-certs"  [connection] id=*** uuid=672b112a-ed80-4d76-9cb9-9f1435919b78 type=802-11-wireless  [802-11-wireless] ssid=*** mode=infrastructure security=802-11-wireless-security  [802-11-wireless-security] key-mgmt=wpa-eap  [ipv4] method=auto  [ipv6] method=auto  [802-1x] eap=peap; identity=jz1958 phase2-auth=mschapv2 password-flags=1


how to show that this complex series converge?

If $$\sum_{n=1}^{\infty} \frac{a_{n}}{n^{s}}$$ Converges( s is real) and $\operatorname{Re}(z)>s$.  Then $$\sum_{n=1}^{\infty} \frac{a_{n}}{n^{z}}$$ also converges.  $a_n$ is complex sequence.


iPhone with broken home button is stuck on black screen after jailbreaking

I have an iPhone 3Gs and recently noticed that the home button doesn't work anymore. I used AssistiveTouch.  Now I want to jailbreak my iPhone, but it's gone wrong: the device is stuck on a black screen after jailbreaking, iTunes doesn't recognise my iPhone and my home button doesn't work.  What can I do?


Whenever a prisoner or staff member is killed, a hearse drives up and immediately takes them away. Knowing that the  is a source of contraband, what is the purpose of even having one?


Find the locus of all points inside $\triangle ABC$ such that $PA^{2}+PB^{2}=PC^{2}$. At first, i tried finding a right angled triangle and then tried to go on applying Pythagorean Theorem and finding other trivia but that didn't seem to work. I think the locus is most likely to be some line segment rather than an arc of some circle as that seems to be quite unrelated seen from an Euclidean perspective. Applying Apollonius' Theorem and Stewart's Theorem on some triangles might be the key to this problem although i could not find such triangles. I don't know whether this can be solved by trigonometry or not but since this is a problem from a chapter on euclidean geometry, i am sure that there is some clever way to look at this problem.


I am trying to script Blender for the first time following the documentation  import bpy   def my_handler(scene):     print("Frame Change", scene.frame_current)  bpy.app.handlers.frame_change_pre.append(my_handler)   How can I replace a type of frame handler, respectively clear it, instead of appending to it every time I run the script? I can't directly write into the handler, since it is read only. However closing and reopening the project can not be the answer either.


Why an open set in $R^n$ might not be written as countable union of disjoint open intervals?

There is a theorem saying that every open set in $R$ can be written as a countable union of disjoint open intervals. And we can also show any open set in $R^n$ can be written as the union of countable many bounded open intervals ().  I understand the proofs of the above two statements, but it feels strange that $R^n$ does not share the same property as $R$. Is there any explanation that why an open set in $R^n$ might not be written as countable union of disjoint open intervals?


Importance of optimizing the correct loss function

I want to understand the importance of optimizing the correct loss function. Say that I am building a linear regression model $p$ for predicting some values $y_1,\ldots,y_n$.  I choose to fit my linear model such that it minimizes the mean squared errors. Now I send my model off to a statistical prediction competition, where they instead of using MSE as an error metric uses mean absolute error (so no squares). How will this affect my models predictive power? In general, what can be said about the importance of optimizing the "correct" loss function?  Edit: If one should put the question in a more specific context, then that context would be predictive modelling competitions like those featured on . I want to understand the importance of choosing models and loss functions which correspond to the evaluation metric for the competition. One reason for this is .


Viewing inbox should unmark read items rather than all items

Possible Duplicate:          In the SE dropdown inbox list, when you view it, all unread comments/answers get toggled to 'read' if you view one of them. Is there a way (of course there is; is there any support behind...) to make this per item rather than global? To set to read by comment/answer instead of all at once?   My reasons are duplicated in  but somehow the answer interpreted that question as simply asking for this as a preference. I am asking for this as the way to do things. Similar to how in RSS or news group readers you know what you've attended to and what not attended to.


Trouble Booting Ubuntu from bootable USB

I'm trying to install Ubuntu from a bootable USB, but having trouble. I've created the USB according to the tutorial, but when I restart my computer with the USB inserted, all I get is a black screen with a single white line. How can I get my Windows 10 computer to boot from the USB?


Close popup doesn't appear after editing the question without refreshing the page

Seems like a bug:  The user:   Edits a question Then, he decide to close it. Clicks on the Close button. The popup doesn't appear. Refreshes the page. Click on the close button. The popup appears.   After editing in the link appears a hash: #. But I don't think that this is the problem because if I add the hash without editing the close popup appears.  It's minor, but I think that is good to be reported and solved.  Edit: The close popup doesn't open after we click an edit has been made to this post; click to load.


My /boot is out of space.  Issue is, I've been deleting my old kernels:  $ dpkg -l | grep linux-image ii  linux-image-4.15.0-36-generic                 4.15.0-36.39                                               amd64        Signed kernel image generic ii  linux-image-generic                           4.15.0.36.38                                               amd64        Generic Linux kernel image   Looks like 4.15.0-34 and 4.13.0-19 weren't properly deleted:  $ ls -al /boot total 92545 drwxr-xr-x  5 root root     3072 Oct  6 10:04 . drwxr-xr-x 26 root root     4096 Oct  3 14:54 .. -rw-r--r--  1 root root  1537610 Aug 27 10:45 abi-4.15.0-34-generic -rw-r--r--  1 root root  1537821 Sep 24 10:08 abi-4.15.0-36-generic -rw-r--r--  1 root root   216905 Aug 27 10:45 config-4.15.0-34-generic -rw-r--r--  1 root root   216954 Sep 24 10:08 config-4.15.0-36-generic drwx------  3 root root     4096 Dec 31  1969 efi drwxr-xr-x  5 root root     1024 Oct 12 08:36 grub -rw-r--r--  1 root root 15422137 Sep  2 14:30 initrd.img-4.13.0-19-generic -rw-r--r--  1 root root 58504792 Oct  6 10:04 initrd.img-4.15.0-36-generic drwx------  2 root root    12288 Jul 29  2015 lost+found -rw-r--r--  1 root root   182704 Jan 28  2016 memtest86+.bin -rw-r--r--  1 root root   184380 Jan 28  2016 memtest86+.elf -rw-r--r--  1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin -rw-r--r--  1 root root        0 Aug 27 10:45 retpoline-4.15.0-34-generic -rw-r--r--  1 root root        0 Sep 24 10:08 retpoline-4.15.0-36-generic -rw-------  1 root root  4044038 Aug 27 10:45 System.map-4.15.0-34-generic -rw-------  1 root root  4046393 Sep 24 10:08 System.map-4.15.0-36-generic -rw-------  1 root root  8277752 Sep 24 11:54 vmlinuz-4.15.0-36-generic   apt-get autoremove doesn't help:  $ sudo apt-get autoremove linux-image-4.15.0-34-generic [sudo] password for matt:  Reading package lists... Done Building dependency tree        Reading state information... Done Package 'linux-image-4.15.0-34-generic' is not installed, so not removed ...   No luck with grub either:  $ sudo update-grub Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.15.0-36-generic Found initrd image: /boot/initrd.img-4.15.0-36-generic Adding boot menu entry for EFI firmware configuration done   How can I safely (re)delete these?  Or do I just rm -f them?


Should searching by default be AND or OR?

On my website I have a search bar.  It's powered by Lucene.net.  I have a requirement to make search be a substring case insensitive search, with direct hits appearing before substrings.  What I don't know, however, is when a user searches for a multi-word item--say "Chocolate Milk"--should that be treated under the hood as an AND or OR search?  As an example:  *chocolate* AND *milk*   vs  *chocolate* OR *milk*   The requirement right now is to treat this as an AND, but I'm not sure if that's the right way to go about it.  What would be the best in terms of UX?  I would think the best thing to do would be an OR search, with items containing both keywords appearing before items containing only one of the keywords.  Thoughts?  EDIT: The types of items being searched are medical supplies, with very cryptic names.


I am Confused!   Are there any differences between "I have to go", "I had to go", "I've had to go", "I get to go", "I got to go", "I've got to go"?  In which situation is each term used?  I checked this dictionary , & found that      get to do something:  to have the opportunity to do something   Seem like if you have a opportunity to do something, then use "get".  The expression is in present but why we use present perfect tense (Ex: I've got to go) here?


Why call javascript behaviour within its own function?

Looking at the JavaScript below, what does calling the behaviourName do?     Drupal.behaviors.behaviourName = {     attach: function (context) {       $('.someClass', context).once('some-handler').behaviourName(); // what does this do?      }   };   I though that the behaviourName was generally used for name spacing. I can see in the site that im working on that the behaviour name is normally called within itself like in this example. What is this for?


"Inter-Stack" Feature for Questions Deserving of Multiple Stacks.

Perhaps an "inter-stack" feature could be added to deal with question like  that are applicable on  as well. Such a feature would allow a single question and answers to appear on multiple sites. Reputation and badges could be awarded to the stack from-which the viewer came - or in the case of search-engine traffic make the user choose which stack to join before upvoting.


pst-optexp: issue putting beam behind elements

So, I'm having some trouble with pst-optexp lately. There seems to be some compilation problems with my sketch, since it doesn't show the elements properly. My current code is   \documentclass{standalone}     \usepackage{pstricks-add}     \usepackage{pst-optexp}         \let\clipbox\relax  \begin{document}     \begin{pspicture}[showgrid](0,-0.3)(9,2.3)         \pnode(1.8,1){A}\pnode(4.5,1){B}\pnode(7,1){C}\pnode(8,1){D}         \begin{optexp}             \optbox[position=start, labeloffset=0](A)(B){Fonte}             \lens[n=1.3, lensradius=-1 -1, lensheight=1](A)(B)             \lens[n=2, lensradius=2 2, lensheight=2](B)(C)             \pinhole[position=end, innerheight=0, outerheight=1.5](B)(D)             \drawwidebeam[beamwidth=0.3,fillstyle=solid, fillcolor=green!40](A){2-3}(D)         \end{optexp}     \end{pspicture} \end{document}   This code yields the following result (when compiled with XeLaTeX on Overleaf v2):   If I remove the optexp environment, i.e., use the following code:   \documentclass{standalone}     \usepackage{pstricks-add}     \usepackage{pst-optexp}         \let\clipbox\relax  \begin{document}     \begin{pspicture}[showgrid](0,-0.3)(9,2.3)         \pnode(1.8,1){A}\pnode(4.5,1){B}\pnode(7,1){C}\pnode(8,1){D}             \optbox[position=start, labeloffset=0](A)(B){Fonte}             \lens[n=1.3, lensradius=-1 -1, lensheight=1](A)(B)             \lens[n=2, lensradius=2 2, lensheight=2](B)(C)             \pinhole[position=end, innerheight=0, outerheight=1.5](B)(D)             \drawwidebeam[beamwidth=0.3,fillstyle=solid, fillcolor=green!40](A){2-3}(D)     \end{pspicture} \end{document}   Then I'll get this result:   I have dealed with similar issues on other PSTricks diagrams, which seemed to compiled when put in certain pages of the document, but were breaking in other places. How can I solve this?  I'm sorry if this is a known issue or something alike, I've been searching the web for quite sometime now and I just couldn't find a solution. Also, please let me know if there are bad style issues in this post, I have asked few questions over here so far.


I have recently found that my MC world does not auto-save (Don't answer on how to do that), so I have to /save-all every 5 minutes or so.  However, I have created a timer hooked up to a /save-all command block. Note that all repeaters are set to max delay.    Basically, what happens is, there is a redstone signal passing through the repeaters. When it reaches the end, it hits out a command block and loops around back to the starting which goes through the timer again.  I have timed this as 2:24.  Is there a much efficient design to the timer or any part of the structure? Is there also a way to increase the time without changing a major part of it?  Please don't suggest any latchology as I am terrible at it.


How to set an alias on a per-directory basis?

Suppose you have an alias go, but want it to do different things in different directories?  In one directory it should run cmd1, but in another directory it should run cmd2  By the way, I have an aliases for switching to the above directories already, so is it possible to append the go alias assignment to the foo alias?  alias "foo=cd /path/to/foo"   Working in bash(?) on OSX.


Does the opportunity attack granted by War Caster have disadvantage?

I am going to start a new 5e campaign, nobody having played it before.  I was asked whether it would be sensible to take the War Caster feat and stumbled over the problem of whether its opportunity attack is made with disadvantage.  Since, as far as I am aware, a creature trying to leave the reach of a PC is the only way to trigger an opportunity attack, any magic opportunity attack that requires an attack roll would be while the target creature is still in 5ft and conscious, and therefore be made at a disadvantage.  Is my reading of the rules correct? If not, what did I miss?


Proving that $\lim_{k\to \infty}\frac{f(x_k)-f(c)}{x_k-c}=f'(c)$ where $\lim_{k\to \infty} x_k =c $

Question.  Suppose that a function $f$ is defined on an interval $I$, $c$ is a point of $I$, and $\{x_k\}$ is any sequence of points in $I$, no term of which is $c$, such that $\lim_{k\to \infty} x_k =c $. Define a sequence $\{y_k\}$ by $y_k=\frac{f(x_k)-f(c)}{x_k-c}$.  a)Prove that $f'(c)$ exists if and only if $\lim_{k\to \infty} y_k $ exists and has the same value for every such sequence $\{x_k\}$.  b)Prove that, if $f'(c)$ exists, then $\lim_{k\to \infty} y_k=f'(c) $ for every such sequence $\{x_k\}$.  My attempt(...?)  a) Let $\epsilon>0$ be given.  Since $f'(c)$ exists, $\lim_{x\to c} \frac{f(x)-f(c)}{x-c} $ exists.  (...)  There exists $k_0\in \mathbb N$ such that for $k\ge k_0$, $\vert \frac{f(x_k)-f(c)}{x_k-c}-L \vert< \epsilon$.  How can I find the link between $\frac{f(x)-f(c)}{x-c}$ and $\frac{f(x_k)-f(c)}{x_k-c}$?  It just seems so trivial to me and I cannot fill the blank.  Any advice would be appreciated!


If you don't care about using GLM model parameters to predict anything, but simply want to select the best-fitting model for your data, is it necessary to get into the theoretical debate as to which link function to use? Is it OK to simply select the link function that gives you the lowest deviance?   Specifically, I am running an ordinal GLMM, and have found that the log-logistic link function in the software program called SuperMix fits my data the best.


Get Image and Text From Server and show to gridview in android studio

i am using this example try it   but it is not working can you please help me to resolving this problem.  "java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference"  this error has been shown


Can Queueable solve "Future method cannot be called from a future or batch method"?

I have code that must be called as @future as it requires all the resources one can get. The only problem is that in 1% of the cases this code is called from a Batch and therefore fails with     System.AsyncException: Future method cannot be called from a future or   batch method   Is the new Queueable interface a solution to this? Meaning can I convert this @future into an Apex class that implements Queueable and fix this problem?  Or would I need to convert my calling Batch into a series of Queueable calls?  What I already tried:  I tried to call multiple Queueable's (one per record) from the Batch and ran into     Too many queueable jobs added to the queue: 2   When I instead passed in a List<Id> and let the Queueable to iterate through this list be restarting itsself for remaining records in its execute() method I got     Maximum stack depth has been reached.


test algorithm to decide if point is inside area

here's a geometric problem that I've been unsuccessful to solve:   we have four points A, B, C, D defining an area and two points E, F E is within the boundaries of the polygon ABCD F is outside the borders   We know the (x, y) coordinates of each point.  (see the figure below)    Determine for any point G (x, y) if G is inside or outside ABCD  Any ideas out there?  Thanks Adrien


mv - how to escape backslash in file name?

I copied a file to my Ubuntu vm with a backslash in the name, and I cannot figure out how to rename the file, e.g. mv .\Dockerfile Dockerfile -- the command line does not like that syntax for the filename but I'm not sure how to escape the .\Dockerfile


Verbatim environment that can break long lines?

I want to generate a PDF of user-submitted text using LaTeX. To handle crazy user input, I first thought about using the verbatim package, but of course it doesn't break up too long lines. Is there some package that works similar to verbatim (i.e., accept any input) but formats the text nicely?


I have a web page that displays content after fetching it from database. The table has values as expected, but when it fetches and displays it is showing something like below:  advertiser���ˌ_s  The correct value in the table is:  advertiser's    I have done the following settings in my php file:  <meta http-equiv="Content-type" value="text/html; charset=UTF-8" />   The database file looks like:  $mysqli->set_charset('utf8mb4');   Can someone please tell what is going wrong.


On which site can I ask medicine questions?

Where can I ask questions about medicine? For example, about the operating principles of a ventilator (CPAP mode).


Sacrificing a creature - Magic the gathering

My question came up after I had a disagreement over what it means when a card states “sacrifice a creature” as it’s ability. The disagreement is in whether or not this text allows a player to sacrifice ANOTHER players creature. The rules for sacrifice didn’t clear up the issue for me, the ruling is still vague enough that I could conceivably sacrifice my opponents creature in a game and think it’s perfectly legitimate. Anyway I wanted to get some feedback on this.


Determinant of $\left(\begin{smallmatrix} -2a &a+b &a+c \\ b+a& -2b &b+c \\ c+a&c+b & -2c \end{smallmatrix}\right)$

Evaluate $$D=\begin{vmatrix} -2a &a+b  &a+c \\   b+a& -2b &b+c \\   c+a&c+b  & -2c \end{vmatrix}$$  My try:  Applying $R_1 \to R_1+R_2$ we get  $$D=\begin{vmatrix} b-a&a-b  &a+b+2c \\   b+a& -2b &b+c \\   c+a&c+b  & -2c \end{vmatrix}$$  Now apply $$C_1 \to C_1+C_2$$  $$D=\begin{vmatrix} 0&a-b  &a+b+2c \\   a-b& -2b &b+c \\   2c+a+b&c+b  & -2c \end{vmatrix}$$  Now apply $C_2 \to C_2 +C_3$  $$D= \begin{vmatrix} 0&2a+2c  &a+b+2c \\   a-b& c-b &b+c \\   2c+a+b&b-c  & -2c \end{vmatrix}$$  Now use $R_3 \to R_3+R_2$  $$D= \begin{vmatrix} 0&2a+2c  &a+b+2c \\   a-b& c-b &b+c \\   2c+2a&0  & b-c \end{vmatrix}$$  any way to proceed here using elementary operations?


Didn't expected to get stuck with it, however it is seems to be a problem.  Is there any publicly available standard icons set for windows 10 applications design? (Something like here for material )


Why is polyploidy much more common in plants than in animals?

There are very few animals with polyploidy like salamanders. Why is it that polyploidy is so uncommon in animals? On the other hand there are numerous examples of polyploid plants. If ut something to do with the gene dosage, how does it not affect plants?


Gdal image georeferencing and gdal2tiles image flip question

I'm georeferencing an image using gdal and the following command:  gdal_translate -of Gtiff -co tfw=yes -a_ullr 0.016264915466308594 51.505109712517786 -0.0024890899658203125 51.492018739579336 -a_srs EPSG:4326 Penguins.jpg penguins.tif   then I'm generating the tiles using gdal2tiles and the following command:  python gdal2tiles.py -t 'Penguins' -k penguins.tif penguins_gdal   but for some reason the resulting tiles show the image flipped on the y axis even though the tif image is not flipped.  Am I doing something wrong?  Thanks


Why is the verb used without “-s” in this sentence?

In order to help the system make a better guess of the corner locations,...   In this sentence, why is "make" not succeeded by "s"? It seems it is needed!


I need help to see who would of won this hand

If the board had A,A,3,6,6  In my hand I had a 9,3. My oppents hand had a Q,5  Who wins?


Anime: boy transforms into white+orange being after a terrorist attack

Typical Japanese style anime art, it was a series.   It has been around for more than 6 years. I think it mixed fantasy and sci-fi. It was certainly not Isekai and it has no magic, it feels more like revered science. A boy gets a gem embedded into his arm after a terrorist attack and transforms into a white and orange humanoid being. There are more people able to transform into these beings. There is also a red flying ship with a dark yellow underbelly that throws boxes with parachutes. There is also this top-secret laboratory where the scientists study how to battle against the beings. There are some other flying ships of varying colors. If I remember correctly, the protagonist gets amnesia near the end of the plot.


Conditional formatting in Google Sheets with 2 conditions

I have a sheet where column E lists statuses of jobs and column N has the due date for the job. What I'd like to do is colour code the date so that the date appears red if the due date is before today's date and the status is any other status other than complete. Would appreciate some help on how to do that.


How to add defer to Wordpress Plugin javascript?

I want to add defer in Javascript in a WordPress Plugin, how can I add that?  /* Init AddToAny when an AddToAny WordPress Widget is selectively refreshed for customizer preview. */ jQuery( function() {     // Short-circuit selective refresh events if not in customizer preview or pre-4.5.     if ( 'undefined' === typeof wp || ! wp.customize || ! wp.customize.selectiveRefresh ) {         return;     }      function addtoany_init() {         if ( window.a2a ) {             a2a.init_all( 'page' );         }     }      // Init AddToAny when a partial is rendered.     wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) {         if ( placement.container ) {             addtoany_init();         }     } ); } );


I make a finger progamming in C#, and i wana when a user input to textbox1, this is display is textbox2. I don't know convert Keys to string, ex: Keys.space, Keys.Back... and shirt + symbol -> upper.


What exactly are tilt shift lenses and why are they so important

So I have heard things called tilt shift lenses which makes the buildings appear fully flat.  I also heard its mission critical for anyone that wants to take architecture photographs.  Why spend a grand on a lens that only makes buildings appear flat without distortion? Why dont we simply use photoshop?


Is $A\triangle B := A\cup B-A\cap B $ a suitable definition for the symmetric difference of two sets $A$ and $B?$ Or is $A\triangle B := (A-B) \cup (B-A) $ only allowed?


My baby boy is 9 weeks old, he always drinks every 2 or 3 hours at day times. At night time he's always asleep more then 4 hours. I am afraid he is hungry. Should I wake him up to feed at night if he falls asleep longer then 3 hours?


How download file from one folder to another in python3?

I have a file called C:\skor\test.xlsx And I need create a copy of it in C:\skor2\ pd.read_excel and df.to_excel - cannot be used Basically I need to copy the file without opening it.


What happens when you evolve a pokemon while it's in a gym?

So I noticed that while my pokemon is defending a gym, it can evolve (or looks like it could since the button is not faded out). You can tell it is in the gym because the team insignia is on the CP circle.    Has anyone tried this? Does my Caterpie become a Metapod at the gym or does it stop me from evolving?


touch: cannot touch file: No such file or directory

I am getting the error:   touch: cannot touch `/opt/tsrm/compliance/cme/log/20121207.log`: No such file or directory   on the touch command: touch $LOGFILE  I also checked the link: , But I didn't understand the answer.   Note: I was also getting mkdir: cannot create directory; I fixed this by adding the -p option.   Could this be something with the version of Linux I am working in?


If someone at a hedge fund reveals their firms position to someone else is it illegal to trade on or disseminate the information?

If someone at a hedge fund reveals the details of one of their positions to another person that doesn't work at the firm can the other person trade on, or disseminate, the information?  It's not like knowing Apple has to delay the release of the new iPhone by a month because Tim Cook told them Hedge funds aren't public It's not any type of guarantee that knowing a hedge funds position will actually make a trade go in a particular direction


Why shouldn't I use sqlite3 to create a disk-backed map of Python objects?

EDIT: This post was marked as "duplicate," which I think missed my original point. So I have clarified my question, and I hope it will be re-opened.  I recently came across a situation in which I needed random access to a collection of Python objects. The collection did not fit in memory, so I consulted the .   The documentation mentions two options for non-serial persistence:  and .   shelve is a Python-specific library that works with some kind of Unix built-in. (I'm not familiar with the specifics.) sqlite3 is a widely supported, highly dependable mini-database that is used all over the place.   So my first reaction was to use sqlite3, as it's highly flexible and has a rich ecosystem. But according to , storing pickled Python objects in sqlite3 is considered very bad form.  In the question marked above, it is noted that pickling data into sqlite3 prevents queries within that data. However, there's nothing stopping me from adding two, three, or many columns by means of which I could retrieve cross-sections of the data. shelve does not enable this.  To me, this presents a whole range of use cases that shelve simply does not offer. Nevertheless, in the post noted above, it is claimed that "doing this sort of thing is indicative of bad design," as well as a host of other judgmental statements.  My question is: why is this? Why is doing this a sign of unhealth? I can think of numerous use cases where I might want the flexibility and capacity of sqlite3 without the overhead of a full-fledged database system.


How to fill CAPTCHA using Test automation?

How can I automate "Enter CAPTCHA" using Selenium WebDriver?


I'm trying to read in some xml and want to find the tag names. For example if I read <dc:title>, I want to get "title". Can someone tell me what the "dc" part is and what the "title" part is?  I'm using Python and when I iterate over the nodes and print out node.tag, it returns "{}title". I really don't know what the url stuff is or why it's returning with my node tag.


Additional Boxes - Criteria, Longevity, Manipulability

This feature has existed for a while (I'm not sure since when exactly), but I'm mainly interested in the Gen VI implementation (hence the tag).  Usually, at the start of a game, you have some number of Boxes available. In B/W, those were 8, in X/Y I think it was 15. Under certain conditions though, you receive additional Boxes that just appear at the end of your current Boxes list. Which brings me to Part 1 of my question:     1) What are the exact conditions for additional Boxes to appear and do you always get 8 additional Boxes? (Using Pokemon Bank reveals that in X/Y, the maximum number of Boxes is 31, which I have experienced to be unlocked in 2 steps of 8 Boxes each.)   Since I'm a person who really likes to order and organize stuff, my Boxes have names and are used to categorize my Pokemon. This results in some Boxes ending up empty for a while most of the time. So here's to     2) Do additional Boxes you receive stay forever or do they disappear if the conditions for them are no longer met?      3) If they disappear, is there a way (such as renaming or putting any Pokemon in the last Box) to make them stay no matter what, even if you released all your other Pokemon?


I want to alter the view of edit.php in the posts admin area. What I want is when a category is set ( $_GET['cat'], cat=x in the url ), add post would be post-new.php?cat=x.  Is this possible?  I know there is a sample code on wordpress answers that gives you this ability, but it does not alter the Add Post / Add Page link on the edit.php screen. I've managed to do this by hacking the edit.php myself, but normally in the next update all changes will be lost.  here is a picture depicting what needs to be altered....


Is it possible to return more than one value from a method in Java?

I am using a simulator to play craps and I am trying to return two values from the same method (or rather I would like to).  When I wrote my return statement I simply tried putting "&" which compiled and runs properly; but I have no way of accessing the second returned value.  public static int crapsGame(){   int myPoint;   int gameStatus = rollagain;   int d1,d2;   int rolls=1;    d1 = rollDice();   d2 = rollDice();   switch ( d1+d2 ) {     case 7:      case 11:       gameStatus = win;       break;     case 2:      case 3:      case 12:       gameStatus = loss;       break;     default:       myPoint = d1+d2;       do {         d1=rollDice();         d2=rollDice();         rolls++;         if ( d1+d2 == myPoint )           gameStatus = win;         else if ( d1+d2 == 7 )           gameStatus = loss;        } while (gameStatus == rollagain);   } // end of switch   return gameStatus & rolls; }   When I return the value as:  gameStatus=crapsGame();   It appropriately sets the varaible to win or lose but if I try something as simple as following that statement with:  rolls=crapsGame();   It is assigned the same value as gamestatus...a 0 or a 1 (win or lose). Any way that I can access the second returned value? Or is there a completely different way to go about it?


Was Smaug's treasure-hoarding a bug or a feature in-universe?

Smaug (and all other dragons) were created by Morgoth as species as warfighting machines.  As such, the desire to amass bling seems to be a somewhat... tangential feature, to put it mildly. If I was implementing the dragon, it'd get cut as creeping featurism from any project plan.  So, is there an in-universe explanation from Tolkien on whether this desire for riches was:   A designed feature by Morgoth, somehow beneficial to the goals for making dragons An inadvertent side effect of some other design decisions (e.g. he used Dwarf DNA, for lack of a better terminology) An inevitable conclusion of his life history given some other features Morgoth designed Just a random bug, unique to Smaug, not explained by anything     I'm only interested in in-Universe explanation. The fact that Tolkien was basing Smaug on  (warning: TVTropes link. Enter at peril) is 100% obvious and doesn't need stating. Besides, please note that most of said archetypical dragons were NOT created as engines of war by sentient master.


, but how can I add or edit a URL (or URI) in the history?


Lightning init handler called multiple times

We have a lightning component thats being used a quick action. When the lightning component is activated it calls the init handler multiple times     Component   <aura:component implements="force:lightningQuickAction,force:hasRecordId,flexipage:availableForAllPageTypes" controller="CloneObject">     <aura:attribute name="recordId" type="String"/>     <aura:attribute name="name" type="String"/>      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>      <ui:inputText label="Quote Name" value="{!v.name}"/>     <br/>     <ui:button class="slds-button slds-button--neutral" press="{!c.clone}" label="Clone" /> </aura:component>      js controller   ({ doInit : function(component, event, helper) {     var action = component.get("c.doInit");     var recordId = component.get("v.recordId");     console.log(recordId);     action.setParams({         "recordId" : recordId     });      action.setCallback(this, function(response) {         var state = response.getState();         if(component.isValid() && state == "SUCCESS"){             component.set("v.name", response.getReturnValue());         } else {             console.log('There was a problem and the state is: '+state);         }     });     $A.enqueueAction(action); },  clone : function(component, event, helper) {     var action = component.get("c.cloneQuote");     var recordId = component.get("v.recordId");     console.log('record Id');     console.log(recordId);     action.setParams({         "objectId": recordId,         "cloneAttachments": true     });      action.setCallback(this, function(response) {         var state = response.getState();         if(component.isValid() && state == "SUCCESS"){             var urlEvent = $A.get("e.force:navigateToURL");             urlEvent.setParams({                 "url": "/" + response.getReturnValue()             });             urlEvent.fire();         } else {             console.log('There was a problem and the state is: '+state);         }     });     $A.enqueueAction(action); } })      Apex Controller   public class CloneObject {      @auraEnabled     public static String doInit(String recordId) {         return [SELECT Name FROM Quote WHERE Id = :recordId].Name;     }  }      Output when the quickaction is clicked


How to add  in WP_Query to every 3 posts displayed?

I want to display every 3 products in a
  Example of how HTML should look:

product looping 1

product looping 2

product looping 3

product looping 4

product looping 5

product looping 6

   WP_Query Code:  <?php         $args = array(             'post_type' => 'product',             'posts_per_page' => 8,             'orderby' => 'date',             );         $loop = new WP_Query( $args );         if ( $loop->have_posts() ) {             while ( $loop->have_posts() ) : $loop->the_post();                  //wc_get_template_part( 'content', 'product' );              ?>

                     <a href="<?php the_permalink(); ?>">                         <?php global $post, $product; ?>                         <?php if ( $product->is_on_sale() ) : ?>                             <?php echo apply_filters( 'woocommerce_sale_flash', '' . __( 'Sale!', 'woocommerce' ) . '', $post, $product ); ?>                         <?php endif; ?>                                                       <?php the_post_thumbnail( 'medium' ); ?>
                             <a href="<?php the_permalink(); ?>">
<?php the_title(); ?>

<?php echo $product->get_price_html(); ?>
                                                                      <?php                                      $boleto = $product->get_price();                                     $desconto = 10;                                      $division = $boleto - ( $boleto * ($desconto / 100) );                                     echo "R$ " . number_format( round($division, 2), 2, ',', '.' );                                     ?>                                                                  no boleto ou em até
 3x de <?php echo number_format( round( $product->get_price() / 3, 2), 2, ',', '.' ); ?> sem juros.                                                          Comprar

              <?php endwhile;         } else {             echo __( 'No products found' );         }         wp_reset_postdata();     ?>


python: sorting list of dicts by one key OR another

Have a list of dict objects where 50% will have a key name and 50% will have a key full_name and I'd like it sorted alphabetically based on either key.  Some sort function like:  if 'name' in a:     a_name = a['name'] elif 'full_name' in a:     a_name = a['full_name'] # repeat with a b in the compare, sort based on value   Is there a more efficient way here?


changing order of layers in legend interface " QGIS 2.6" as using layerTreeCanvasBridge() gives attribute error

Want to bring the active layer to top of the legend interface layer list.


How is it possible that the well-ordering theorem is strictly stronger than the axiom of choice in second-order logic?

If I am not wrong,  . I am not sure to understand how this is possible. The reason is that second order logic is supposedly more restrictive than first order logic, because it is categorical. Thus, any theory in first order logic should have more models (many of them unintended, or non-standard)  than the same theory in second order logic.  In first order logic, within ZF, the axiom of choice is equivalent to the well-ordering principle. I interpret this as meaning that there are no models in which the axiom of choice is true but the well-ordering principle is false. However it seems that in second order logic we can have models in which the axiom of choice is true but the well-ordering principle is false. Am I correct?  UPDATE: this is possibly a duplicate question, as mentioned by Andres. But just to be sure that I correctly understood the "duplicate answer": Would the conclusion be that the statement "there are second-order models in which the axiom of choice is true but the well-ordering principle is false but there are no first-order models in which the axiom of choice is true but the well-ordering principle is false" is false?


Prove that every tournament contains at least one Hamiltonian path.

A tournament is a directed graph with exactly one edge between every pair of vertices. (So for each pair  (u,v)  of vertices, either the edge from  u to  v  or from  v  to  u  exists, but not both.) You can think of the nodes as players in a tournament, where each player has to play against every other player. The edge points from the winner to the loser of a game.  A Hamiltonian path (not cycle) is a sequence of consecutive directed edges that visits every vertex exactly once.  How can i prove that every tournament contains at least one Hamiltonian path? thanks your help!


When not to use \ensuremath for math macro?

I have gotten into the habit of using \ensuremath around math components in every macro that I define, so that I can use the same macro inside and outside of math mode.  But egreg's comments in  has me thinking that perhaps I should not be doing this all the time:     It's not a good idea, in my opinion, to add \ensuremath; why should it be? Disclaimer: this is part of my \ensuremath-only-when-really-needed campaign. :) -    A related comment in :     Why \ensuremath? Wouldn't $\scriptstyle#1$ be easier to read? -    In this case it was required to use math mode as we were within a \makebox (i.e., text mode). So, out of habit I used \ensuremath but egreg was right that in this case using $...$ would have worked just as well and was certainly easier to read. But, even in this case I still prefer to use \ensuremath so that it is more obvious that this can be used in math and text mode without having to think about \makebox being in text mode.  So, is there really any harm in always using \ensuremath, at least for any of my personal macros?  I realize that there is a slight extra overhead in processing, but is there something else to consider?  If there are other considerations when they macros are coming packages that are intended for general purpose use, I would be interested in those as well. The most obvious one is that we may want to make sure that the user of the macro knows that this macro requires math mode, so require them to only use the macro in math mode.  Since this references egreg's campaign, I felt I should include a  for new users as per my MWE-as-often-as-possible campaign:  \documentclass{article}  \newcommand{\FunctionF}{\ensuremath{x^2}}%  \begin{document} Text mode: \FunctionF  Math mode: $G(x) = x^3 - \FunctionF$ \end{document}


Missing letters in menus and folder names

The names of my folders and the menus are not displayed correctly (even the tabs names in firefox). A lot of letters are missing. When cross over with the mouse pointer, part of them are correctly displayed. Contrary, the content of askubuntu site, for example, is displayed correct. It does not always happens, usually a restart solve the problems for a while. I have Ubuntu 14.04. I don't know how to tag this question, so I'll mark it as display related, even though is not really this.


Are there any guidelines for converting cooking recipes from Regular Ovens to Convection?

I was looking to buy a Convection Oven and wanted to know if there are any general differences in baking methods between the two.


How to fill array with random numbers limited to 0-20

I am having trouble placing the random generator in the array, how can I get #20 random numbers from 0-9 in the array? Then you count the occurrences of those numbers.  import java.util.Random;  public class CountDigits {  public static void main(String[] args) {        Random digit = new Random();       int Random[] = new int [20];      int Digits[] = {0,1,2,3,4,5,6,7,8,9};       int Count [] = new int [10];        for ( int i = 0; i < Digits.length; i++) {           for( int j = 0; j < Random.length; j++) {              if ( Digits [i] == Random [j] )                  Count[i]++;          }      }       for ( int i = 0; i < Count.length; i++) {          if ( Count[i] == 1)              System.out.printf(" %d  occurs  1 time " , Digits[i] );           else             System.out.printf("%d occurs %d times" , Digits[i], Count[i]);       }   result so far:: 0 occurs 20 times1 occurs 0 times2 occurs 0 times3 occurs 0 times4 occurs 0 times5 occurs 0 times6 occurs 0 times7 occurs 0 times8 occurs 0 times9 occurs 0 times


Avoid a trailing slash in bash when completing a directory name (like zsh)

I'm on a Mac and the cp and mv commands are killing me due to them copying the contents of a directory if a trailing slash is present. It has bitten me more than once when I use tab completion to specify the directory I want to copy.  I have noticed zsh has a neat feature that removes the trailing slash if it's not needed after a space or enter key is pressed. Is there any way to have bash mimic this behavior?


What does "feeling a little precious" mean?

I ran across this phrase in a video made by an Australian walking the Camino de Santiago. He describes a horrible sleep-deprived night and suffering from food poisoning, and states that he's feeling a little precious.  at 1:09:25. I assumed from the context it meant wasted or shaky. In  blog entry there's a similar use, I believe also from an Australian:      It was a good night as everyone celebrates throughout the city just as we do at home.   Woke up the next day feeling a little precious and was having a coffee and looked at a stamp I had on my hand from a bar we went to.   But then, in  blog, which is also an Australian, it's used a bit differently:      Matt is feeling a little precious about a couple of scams he's fallen in to over the last couple of days. The first one was when he asked me the time one morning and I mistakenly read my watch as 6.30am - off he went running at 5.30am. He was a tad confused to get back at 6.20am. The second I will let him explain but when you read it bear in mind how many years he spent dealing with reps and suppliers getting the best possible price for shop stock. Right Matt here. Absolutely gutted yesterday got conned by a gypsy woman about 4 foot 6 and with only one tooth.   In that case, it seems to mean disappointed or embarrassed.   So, what's up with this?


Is there any four positive integer for which $a^2 + b^2 = c^2 + d^2$?

$a$, $b$, $c$ and $d$ belong to natural numbers (no fractions). Is it possible to find four integers for which two of the square would be equal to the other two? I intend to come up with a special number by operation of two natural numbers that can not be represented by that same operation of any other pairs of natural numbers. I want to find them by algebraic expression. I could find them by using possible numbers.


When I open blender, my textures and materials turn bright pink?

When I open blender, the textures and materials I used turn bright pink. Does anyone know how to help?


I've been asked to solve the following problem and I believe that I have gone about it correctly but I would appreciate a second look from someone with more experience.  Question: If $f+g$ and $f$ are differentiable at $a$, must $g$ be differentiable at $a$?  Since $f+g$ and $f$ are differentiable at $a$, $f+g$ and $f$ are continuous at $a$.  Observe   \begin{align*}(f+g)^{\prime}(a)-f^{\prime}(a)&=\lim_{x\to a}\frac{(f(x)+g(x))-(f(a)+g(x))}{x-a}-\lim_{x\to a}\frac{f(x)-f(a)}{x-a}\\ &=\lim_{x\to a}\frac{(f(x)+g(x))-(f(a)+g(x))-(f(x)+f(a))}{x-a}\\ &=\lim_{x\to a}\frac{g(x)-g(a)}{x-a}\\ &=g^{\prime}(a). \end{align*}  Thus, if $f+g$ and $f$ are differentiable at $a$, then $g$ must be differentiable at $a$  I feel that I went about this proof correctly, however the move from two limits to a single limit seems like it might have been done incorrectly.


Finding the inverse of an element of $S_n$ and it's order

I have two questions,  1) What are the ways to find the inverse of an element of $S_n$?   2) What are the ways to find the order of an element of $S_n$?


I'm running Ubuntu 13.04 on DELL XPS L501 - Nvidia GeForce GT 420M. I'm using kernel 3.9.0-030900-generic.  All kernel-headers are installed in the system.  and  I've tried the following.   Use apt-get to install nvidia-current (which download 304) && load using modprobe Use apt-get to install nvidia-310 && load using modprobe Download nvidia 64-bit driver nvidia-319.23 for 400M series and install Use swat-x repo to install nvidia driver   All of these failed. And I tested it everytime like this   After the module is loaded (checked from lsmod),  restarted lightdm tested from get.webgl.org  (Google-Chrome webgl support is enabled)    Problem faced with nvidia-xconfig   after running nvidia-xconfig (which writes to /etc/X11/xorg.conf), and restarting lightdm, my display res changes to 640x480. and had to remove this file to revert back to old setting Have also tried commenting out those two lines which adjusts Horizontal and Vertical Setting in xorg.conf. That just rectified the resolution. But still I wasn't able to use the graphics card (webgl).   EDIT 1: (nouveau)   Tried rebooting after each installation Removed (purge) all of nouveau* before starting.  Removed one more package (dont remember the exact name though) - xorg-xserver-blah-blah.   EDIT 2: (bitlbee)   I had bitlbee installed before. Removed that too before starting installation. When bitlbee was present, NVIDIA-3.9-x86.run (downloaded from nvidia) was not able to recognize graphics card. But it did when I removed bitlbee. (So I'm assuming here that it should work if graphics driver was installed properly)   EDIT 3: (software-properties-gtk)   sudo software-properties-gtk the Additional drivers tab is always NIL. (before and after installation) (even if the installation was successful)   Have been trying this the whole day, and done it quite a few times. None of them worked.  Need help! Is it the problem with kernel-3.9, that there are no updates for this ?


What is the correct way of pluralizing acronyms in which the last word is either irregular or a foreign word?  For example: radiation transparent medium (RTM)  What would be the plural of the acronym RTM? RTMs or RTM considering that the plural of medium is media?


Is sneaking more effective in darker environments, and if so how much does the light level effect sneaking?


When a positron and an electron come together they annihilate and produce 2 gamma photons $$e^+ +e^- \rightarrow 2\gamma$$  I can understand that they must be produced in pairs to conserve momentum. However, that still leaves all other even numbers. Why 2 photons, why not 4,6, 8, 10... photons?  Note it is NOT a duplicate of  because that question only asks how can mass-less particles have momentum.


How to make enumerate list format numbers like this:     REG/001 (content)      REG/002 (content)      REG/003 (content)   I already managed to do the following:   \begin{enumerate}[label=\textbf{REG/\arabic*},leftmargin=*] \item content \end{enumerate}   using   \usepackage{enumitem}   but I don't know how to add leading zeros.


Python - How to scan if file is already existing or not?

I would like to avoid accidental replacement, when I create a new file.  My code is this to check file name.  fname = "myFile" contents = "abc"  if fname is existing:  #How to check this?      print("The file name is already existing, would you want to replace the file?")     myAnswer = input("The answer is : ")     print("Your answer is " + myAnswer)      if myAnswer == "yes":         fid = open(fname,'w')         fid.write(contents)         fid.close()     else:         print("rejected")  else:     fid = open(fname, 'w')     fid.write(contents)     fid.close()   But, I don't know how to scan file name in a folder.  Anyone can help me?


Can I add to my laptop a DDR3L RAM of 1.35v if I already have a DDR3 RAM of 1.5v configured to run at 1.35v?

I have an MSI GP60 2QF Leopard Pro laptop that has a 4th generation Intel core processor (i5-4210H) and an  RAM Memory (couldn't find a better nor original link) I want to upgrade my RAM memory by adding exactly 8 more GB of RAM of that same model but my problem is that the model I found is not DDR3 but . Both memories have the same exact specifications, the only difference is the voltage: the RAM I have I don't know why is of 1.5v but is configured to use only 1.35v (apparently, it came like this from the factory) while the one they sell because is DDR3L is of 1.35v: sudo dmidecode --type memory | less  throws this: Array Handle: 0x0024     Error Information Handle: Not Provided     Total Width: 64 bits     Data Width: 64 bits     Size: 8192 MB     Form Factor: SODIMM     Set: None     Locator: ChannelA-DIMM0     Bank Locator: BANK 0     Type: DDR3     Type Detail: Synchronous     Speed: 1600 MT/s     Manufacturer: Kingston     Serial Number: C003F863     Asset Tag: 9876543210     Part Number: MSI16D3LS1MNG/8G       Rank: 2     Configured Clock Speed: 1600 MT/s     Minimum Voltage: 1.35 V     Maximum Voltage: 1.5 V     Configured Voltage: 1.35 V  (CPU-Z also says that I am using a DDR3 memory of 1.35v) After hours of research I've found in many places statements like this :  Systems utilizing Intel 4th generation processors are not backward compatible with regular DDR3 memory modules.   DDR3 is a single voltage capable memory SoDIMM, which supports 1.5V operation only. It is NOT compatible with systems using 4th gen Intel processors, which exclusively support 1.35V operation for memory.  In every website I have visited what it says is that DDR3 is not backward compatible with intel 4th generation processors but I am confused because my case is different, by default I have a DDR3, I don't want to add another DDR3 RAM I want to add a DDR3L RAM. Besides, my memory (I don't understand why) is configured with 1.35v. I have not found someone that has had the same issues so that's why I am asking for help from you guys! Any help, comment or word will be highly appreciated :)


Is the expression 'of an evening', 'of a morning', 'of a Saturday', good English or dialect?

People will say: He usually comes round here about 8 o'clock of an evening, or 10 o'clock of a morning, or of a Saturday afternoon.  Is this standard English? I tend to associate it with Londoners.


Cannot see the contents of the array printed in console

public RMI post(PrintStream stream, Object object) { try {     ByteArrayOutputStream baos = new ByteArrayOutputStream();      ObjectOutputStream oos = new ObjectOutputStream(baos);      //      oos.writeObject(System.rmi);      oos.flush();      oos.close();      //      stream.println("Class size: " + baos.toByteArray().length);      stream.println("Class data: " + baos.toByteArray());      stream.flush();      stream.close();      // } catch (Exception e) {     e.printStackTrace(); }  return this;   }  This prints [B@12843fce instead of the expected underlying bytecode structure.  The same operation works find with FileOutputStream but here not with ByteArrayOutputStream. We would really need this to work. Can you spot what's wrong or what's happened?


Is there any chance to recover data from a clicking HDD?

I've experienced HDD failures a few times already... Usually, my system was first starting behaving strange, or was even becoming inoperational, then I was doing a full HDD scan, which was reporting a bunch of damaged sectors; so I was simply removing the misbehaving HDD from this laptop or PC, plugging it to another working laptop or PC via USB and copying whatever data could be salvaged... up to now I was always able to recover the vast majority of data from a failing HDD.  But this time, it's another story. My HDD started freaking clicking with no prior warnings in the middle of the work. The system froze and the laptop become unbootable - each time I power my laptop on the HDD starts clicking again. I can still boot my laptop from a Linux LiveUSB; but I cannot access this HDD from there. (by conventional means at least; not sure if there's any wizard way to do so)  I do backup my data - monthly. And...I did the last backup almost a month ago. Loosing a month of work is...well... not nice.  Is there any hope of recovering data from this HDD or should I just accept that this data is lost for good?  EDIT: This is crazy... but it just come to my mind... The HDD started clicking while I was operating Windows... Is it remotely possible that Windows decided to install updates in the background as it usually does - and so it installed some buggy HDD firmware updates - which killed the drive?


Is the linear combination of least square estimators in linear regression normally distributed?

I am reading Mathematical Statistics with Applications by Wackerly et al. (7th edition). In Chapter 11, the book discusses linear models and least squares, specifically $Y = \beta_0+\beta_1x+\epsilon$ where $E(\epsilon)=0$ and $Var(\epsilon)=\sigma^2$, with $E(Y)=\beta_0+\beta_1x$ being deterministic.   The book derives $\hat\beta_0=\bar Y - \hat\beta_1\bar x$ and $\hat\beta_1=\frac{\sum(x_i-\bar x)(Y_i-\bar Y)}{\sum(x_i - \bar x)^2}$ as estimators of $\beta_0$ and $\beta_1$ respectively from minimizing the SSE. The book states if $\epsilon$ is normally distributed, then each $Y_i$ from an independent sample is normally distributed and  $\hat\beta_0$ and $\hat\beta_1$ are also normally distributed since they are linear combinations of $Y_i$. I am assuming this is true based on ?   However, the book later goes further to state that $\hat\beta_0$ and $\hat\beta_1$ being normal implies that a linear combination $\hat\theta = a_0\hat\beta_0 + a_1\hat\beta_1$ is also normal. This confuses me since $Cov(\hat\beta_0 ,\hat\beta_1)=\frac{-\bar x\sigma^2}{\sum(x_i-\bar x)^2}$ may not be zero, which means for $\hat\theta$ to be normal, the joint distribution of $\hat\beta_0$ and $\hat\beta_1$ must be normal (per ) but the book makes no reference to the joint distribution. Is it always true that $\hat\theta$ is normally distributed? If so, how is it shown?


How to store the apostrophe into MySQL database from user input?

I have a simple comments page a user enter a text into a textarea and the hit comment button to send the comment to a php page :  <?php $reply = strip_tags($_POST['reply']); $comment_id = strip_tags($_POST['id']); $id = strip_tags($_POST['user_id']); $date = strip_tags($_POST['date']); $time = strip_tags($_POST['time']); $server_root = "./"; if(file_exists("{$server_root}include-sql/mysql.class.php")) {     include_once("{$server_root}include-sql/mysql.class.php"); } include_once("{$server_root}config.php"); $db1; $db1 = new db_mysql($conf['db_hostname'],                     $conf['db_username'],                     $conf['db_password'],                     $conf['db_name']); $db1->query("SET NAMES utf8"); $current_server_date =  date('Y-m-d H:i:s');// Your local server time date_default_timezone_set('Asia/Istanbul'); $current_pc_date = date('Y-m-d H:i:s');  $sql = $db1->query(     'INSERT INTO replies1 (reply, comment_id, date, time, timestamp, user_id)      VALUES ("$reply", $comment_id, "$date", "$time", "$current_pc_date", $id)'); ?>   the problem is : when a user enter any comment with apostrophe it does not store it in the database ? why does that happened? Is my code has something wrong? I added everything the double quotes and stripe_tags.? did i miss something?


Primes, Fermat's Theorem on sum of two squares

Is there any method that I can follow to calculate $x$ and $y$ such that $p= x^{2}+y^{2} $ where $p$ is a prime and $p \equiv  1 ({mod}\ 4)$. Fermats theorem of sum of two squares.


Which book is best from David lay or Hoffman or Gilbert Strang for linear algebra.

Among these book which book is self introductory. if any other book is good then suggest that also.


This question is inspired (in part) by this question:   This question was asked several months ago by a different user. Currently I'm looking for an answer to the same question but the accepted answer to the question is unsatisfactory and serves only as a workaround instead of truly answering the question at hand. What do I do if I'm unsatisfied with the answer to a question that's already been asked? Should I ask the question again and risk getting flagged as a duplicate?


Error Exception in thread "main" java.lang.NullPointerException with .xlsx file

I have a sheet,it includes: number,name,pass,access,result. I want get name,pass,result to testweb, I try writing it but i get this error  :    String user[],pass[],result[]; Workbook workbook = WorkbookFactory.create(new File(pathFile)); Sheet sheet = workbook.getSheetAt(0); workbook.close(); if (sheet != null) { int rowindex =0; for(Row row : sheet) {    for(Cell cell:row){       int i=cell.getColumnIndex();       if(i==1) user[rowindex]=cell.toString();       if(i==2) pass[rowindex]=cell.toString();       if(i==4) result[rowindex]=cell.toString();       }       rowindex++;   } } else {     System.out.println("Sheet was not found");   }


How can render overlapped object's edge freestyle line?

When I overlap 2 objects like this    resulting freestyle lines are like this    But I want render overlapped edge lines like this(red lines below picture)    What's the easiest way to accomplish my purpose?(A lot of objects in my work are made in that way so resulting render image misses many overlapped edges. I tried to remake some object to reveal overlapped edges but I realized that remaking all objects is too hard to me.)


Let n $\in \mathbb{N}$. Is there a field K such that $\overline{K}$/ K is a extension of degree n?  Here $\overline{K}$ implies algebraic closure.  (Note that for n = 2 we have K = $\mathbb{R}$).


Incorrect slope values for points in QGIS

I'm trying to determine the slope of sampling points in QGIS 3.4, but the values are all ~89.99°, which I know is incorrect. Pretty sure it's an issue when creating the slope raster.   Based on the steps detailed below, is it clear to anyone what I'm doing wrong?  My points and ⅓ arc-second USGS DEM are set to CRS EPSG:4269 - NAD83.   This is my DEM (with points).   I select Processing => Toolbox => Raster Terrain Analysis => Slope to generate the slope raster.  This is the output slope raster (with points):   Then I use the point sampling tool with the slope raster and points to generate the slope values. These are all ~89.99°, which isn't right.


Java array , print what is stored in the array

How do I print what is stored in the array in an easy way. I have been staring at this for the past 3 hours!  import java.util.Scanner;  public class December2012 {      public static void main(String[] args) {          int[] array = new int[100];         int sum = 0;         int i = 0;         Scanner input = new Scanner(System.in);         while (sum <= 100 && i < array.length) {             System.out.print("Write in the " + (i + 1) + "th number: ");             array[i] = input.nextInt();             sum += array[i];             i++;          }         System.out.print("You added: ");         System.out.print(array[i] + " ");          System.out.println("\nsum is " + sum);     } }


Java Generic Object Null Pointer Check Throwing Null Pointer Exception

I tried searching for a similar issue, to no avail.  If I change the operator from "!=" to "==", it prints "{ }".  Also, if I simply print out the variable I'm testing (current.myData) the Integer that it references prints out as expected. However, every time I test "current.myData != null" it throws a null pointer exception and exits.  Any help is greatly appreciated!  public class LinkedQueue<E> implements QueueADT<E> {  @Override public String toString() { ...     String exitVal = null;     final StringBuffer sb = new StringBuffer();     if (myFront.myData == null) {         exitVal = "{ }";     } else {         Node<E> current = myFront.myNext;         sb.append('{');         sb.append(myFront.myData);         while (current.myData != null) {             sb.append(", ");             sb.append(String.valueOf(current.myData));             current = current.myNext;         }         sb.append('}');         exitVal = sb.toString();     }     return exitVal; }


while updating its throwing error like as follows :

Error during update:  W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/restricted/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  E: Some index files failed to download. They have been ignored, or old ones used instead.


How do I appropriately use inline citations for multiple quoted paragraphs?

I'm writing a paper where I have a number of sentences across a few paragraphs, all from the same source. How should I use inline citations in this situation? Should I put them after each listed fact in the sentence at the end of each paragraph, or at the end of all of the paragraphs? The paragraphs are all topically related, but each one is different enough to be a sub-topic. In case it's relevant, the topic being discussed is technology, the paragraphs detail how companies using that technology.


In the following sentence why is omitting "who was" correct?     Michelangelo, who was a sculptor, an architect, a painter, and a poet   had a great influence on the world of art.    to      Michelangelo, a sculptor, an architect, a painter, and a poet   had a great influence on the world of art.


What's the best way to model complicated pipes?

I've been trying to model a realistic rocket engine and if you've never seen a rocket engine before, they have some really complicated plumbing structure.     I've tried getting some crazy shapes using either the Array or Curve modifier but they don't work that well with complicated curves and always produce some weird results. Is there a better way to make a weirdly bent pipe or wire?


Is there a difference between initializing a variable in the default constructor or inline?

I've found a few related questions in Java, but none for C#, so please forgive any duplicates.  Short and sweet, whats the difference? Is there any?  public static class Foo {     public static List<Bar> Bars;      static Foo()     {         Bars = new List<Bar>();     } }  public static class Foo {     public static List<Bar> Bars = new List<Bar>(); }   See the comment by @Nick G for the answer to the case of non-static classes. I'd still like to know if it affects static classes any differently.   Now they don't have to be static either. What about this case?  public class Foo {     public List<Bar> Bars;      public Foo()     {         Bars = new List<Bar>();     } }  public class Foo {     public List<Bar> Bars = new List<Bar>(); }


I want to pick a random number that is -1<x<1, but if I use Math.random, it is only -1<=x<1. How do I get a random number in this range? double x = (Math.random*2)-1


How does the US federal income tax system work?

General question here about US personal income federal tax rates.  Is it a cumulative effect where your income is first taxed at the lower tranches and move up, or is it one specific percent for your entire taxable income?


How does this way of accessing character in C-String work?

was asked in a recent exam where the candidate had to find the output for the following code: #include<stdio.h> #include<string.h> int main() {     char * c = "GATECSIT2017";     char *p = c;     printf("%d", (int)strlen(c+2[p]-6[p]-1));     return 0; }  I started coding in C++ , so I wasn't an expert in C-Strings. After messing around with code, I understood how it worked, but one thing wasn't clear to me, which was this way of accessing a char from the char* string. My question is, how 2[p] gets the character at index 2? Does it  resolve into *(p+2) or is there something else going on? Also, is there any documentation or any article that could explain this behavior?


How does int main() and void main() work?

I am a beginner in the C language. Can anyone explain in detail using example how main(), int main(), void main(), main(void), void main(void), int main(void) work in C language? As in, what is happening when we use void main() and what is happening when I use int main() in simple language and so on? I know, but I can’t understand what is it doing:  main() - function has no arguments int main() - function returns int value void main() - function returns nothing, etc.  When I write a simple  program using the int main() return 0, it still gives me the same output as when using void main()), so how does it work? What is its application?


Complete Newbie: Axiom of Foundation Exercise

No other axioms. There are $3$ sets such that:  $x\in y$; $y\in z$; $z\in x$;  These sets violate foundation.    I don't get it... For $x$, $z\in x$, so z must be the $\epsilon$-minimal member but the only member of $z$ is $y$.  $z \cap x = \{y\}\cap\{z\} = \emptyset$. None of the members of $z$ (only $y$) are members of $x$ so doesn't that satisfy definition of Foundation?  Please help this noob, thanks