Easiest way to update Apache, MySQL & PHP on VPS

I purchased a new VPS from bluehost they provided me old version of PHP that's not supporting my website and Its been 1 Week bluehost technical support team refused to do that they are making excuses.  My ubuntu version is 12.04.5 LTS  I want to update Apache,MySQL and PHP with their latest version and all dependencies and necessary extensions that are commonly used on website.  I know that some people think that my Question is duplicate of other questions.  I am asking that what I have to do for upgrading Apache, MySQL and PHP for example: I have to remove all these three before upgrading on server ?  My problem is how can i upgrade Apache, MySQL and PHP???  Please explain step by step


Ubuntu 16.04: remove home encryption but leave whole disk encryption

I installed Ubuntu 16.04.02 server with full disk encryption, but also enabled home directory encryption which is now interfering with some other system functions. How can I disable home directory encryption system-wide without affecting whole disk encryption? I see instructions online for disabling home directory encryption, but they all end with uninstalling ecryptfs-utils & libecryptfs0 modules, and I don't know how that will impact whole disk encryption.


What will happen if my flight gets cancelled after my 90 days is up and I am already at the gate?

What will happen if I were to go to the airport on my last day of my Schengen visa, I get to the airport, and my flight is not canceled. I go through security and immigration. I get to my gate and my flight is canceled. Since I am through the gate and immigration am I still in the "Schengen Area"?  And would I be able to go to the main terminal?  What would happen to the exit stamp, since it is then unvalid?


spatstat::plot.envelope observed line longer than shading

Using the R package spatstat I'm plotting pooled pointwise envelopes of the function Jfox calculated for different point pattern in an hyperframe. The workflow is as follow: # define distances to make envelopes comparables ers<-seq(from=0,to=3, by=0.01)   # calculate the envelopes for the Jfox function for each point pattern in an hyperframe urc_hyp$env_Jfox<-with(urc_hyp, envelope(Y=urc_ppp,  fun=Jfox, funargs=list(Y=pref_im), r=ers,nsim=39, fix.n=T,savefuns=TRUE, global=FALSE, nrank=1, correction='best', eps=0.1)  # split the hyperframe according to a factor env_split<-split(urc_hyp$env_Jfox, urc_hyp$matrix) # pool the envelopes for patterns splitted by factor env_pool <- anylapply(env_split, FUN= pool)  You can find the env_pool object . I can see that each envelope has an attribute of suggested (r) values: env_pool[[1]]  Pointwise critical envelopes for J[fox](r) and observed value for ‘urc_ppp’ Obtained from 78 simulations of CSR with fixed number of points Alternative: two.sided Significance level of pointwise Monte Carlo test: 2/79 = 0.0253 ..................................................................................      Math.label             Description                                            r    r                      distance argument r                                    obs  {hat(J)[fox]^{obs}}(r) observed value of J[fox](r) for data pattern           theo {J[fox]^{theo}}(r)     theoretical value of J[fox](r) for CSR                 lo   {hat(J)[fox]^{lo}}(r)  lower pointwise envelope of J[fox](r) from simulations hi   {hat(J)[fox]^{hi}}(r)  upper pointwise envelope of J[fox](r) from simulations .................................................................................. Default plot formula:  .~r where “.” stands for ‘obs’, ‘theo’, ‘hi’, ‘lo’ Columns ‘lo’ and ‘hi’ will be plotted as shading (by default) Recommended range of argument r: [0, 0.46] Available range of argument r: [0, 3]  So here, for example, the recomended rance goes from 0 to 0.46, while the available range is up to 3 (which is the limit I set to all the envelopes to make them comprable). Now if I plot without specifying the range of the x axis, the plot function use by default the recomended range:  plot(env_pool[[1]])   but If I specify the xlim I get this:  plot(env_pool[[1]], xlim=c(0,3) )   Now, in the last figure you can see that the shaded area (which represents the significant band, as per ?envelope) extend beyond the recomended range for r. However the shading does not extend to the whole length of the black line (i.e. the observed JFox curve). In some case the shading falls short even within the recommended r range (e.g. plot(env_pool[[2]]) Is there theoretical a reason for this and if so how should I interpret the line after the shading? Or is it due to some plotting parameter that should be modified/specified?


Only one object showing up in blender while rendering

Guys im really panicking... So im making a GFX and im using blender 2.79, but when i start rendering, only one object show up and the background is transparent. When i press the render preview, it shows all of the objects.


Can I discover a Java class' declared inner classes using reflection?

In Java, is there any way to use the JDK libraries to discover the private classes implemented within another class? Or do I need so use something like asm?


Link to the recommended job is broken in the mobile apps

The link to the recommended job in the app brings you to a page with the text: Not Found    Looking at the link it seems like after changing the URL structure in Stack Overflow Jobs they have not been updated in the apps.  For the job in the screenshot this is the used URL in the app:    The correct URL is:


Identify series of books about a hero chasing a body switching potion between planets

Can someone remind me of the name of the author, the name of the hero and the name of the series if any? Adventure Sci-Fi books, short by today's epic standards ( = about same length as Heinlein's shorter youth books), probably published late 50s?, early 60s? by Bantam? or Del Rey? I think at least 30, possibly more than 40 books in the series. Not comic books. The author is not a well-known writer. At least, I don't remember seeing the name on any other books, ever.   Subject: a man who can move and respond to threats extremely fast learns about a secret potion that allows a person to change bodies with someone else and thus control them. A powerful organization does not want the secret to be known, because they use the potion to control politicians on many planets. The organization's goons are people who had surgeries to remove their emotions, and function like organic computers. They can communicate over interstellar distances and follow and murder anyone who learns the secret. I remember the following detail about the potion: there are two nearly identical molecules that have to be assembled in a certain sequence. Two of the components had to be switched around and that determined who would be dominant and who would be controlled during the mind switch / body swap.   Every book finds the hero on another planet with new adventures, and usually taking another deep-sleep-passage to another world, fleeing his pursuers. The background story about the secret potion is dished out little by little in each book.  One book in the series starts like this: hero is on very hot planet, diving for valuable marine life, catches a deadly fungus disease and is rescued last moment in exchange for his catch...  One of the themes that returns often is that the hero is an excellent knife fighter.  Of course he's a womanizer. In the second (or close to 2nd) book in the series, he's involved with a woman who rules a planet.  To travel to another world, he usually takes the cheapest dead-sleep passage, and there's always a 10-25% risk you won't wake up from that.


What comes after (Primary,unary),(secondary,binary),(tertiary,ternary),...?

I was curious to know what comes after:     Primary, secondary, tertiary, ...    says it is "quartenary, quinary, ..."  But they are already taken!     Unary, binary, ternary, quaternary, quinary, ...   And according to  deriving from the Latin originals should give:     Primary, secondary, tertiary, quartary, quintary, ...    says that "quartary" (from the ordinal) is correct, but "quaternary" (from the distributive number) is common especially in biology.  So, what should it really be in English?


When I insert a DVD, videos said it cant be played. so i go into the disc and select a VOB file and that does not work.I’ve tried VLC and it still does not work. Please HELP!


What's the mathematics definition of the F value in Analysis of Variance Table?

Suppose I have a linear regression model Y ~ b1*x1 + b2*x2 with the sample data:          x1      x2        y 0  -0.7251 -0.6033  10.2508 1  -1.3148  3.7067  10.3054 2  -1.2818 -5.8136   7.2010 3   0.6154  3.6336  11.2807 4   1.4887 -2.8337  10.6299 5  -2.0224 -0.3931   7.4502 6   0.5419 -1.7807  10.7339 7  -1.0745 -5.0296   5.8734 8   3.2116 -0.4681  11.7184 9   1.6767 -4.6040   9.0145 10 -1.3355 -2.6874   6.5014 11  0.8296  2.6793  11.8295 12 -2.8647  4.2916   7.8414 13  1.8445 -3.3924   9.6520 14 -0.1036  2.4273  11.9766 15  1.0886 -3.5636  10.6023 16 -3.3026 -6.9837   4.9962 17  1.4050 -3.8453  10.4630 18 -0.3111 -1.4278   9.2283 19 -3.5454  2.4960   7.3720   And using the following R code to get the Analysis of Variance Table:  > df <- read.csv('f:/data.csv', header=T, sep=",") > model_All <- lm(y ~ x1 + x2, data=df) > anova(model_All) Analysis of Variance Table  Response: y           Df Sum Sq Mean Sq F value    Pr(>F)     x1         1 44.440  44.440  58.277 6.865e-07 *** x2         1 26.640  26.640  34.934 1.711e-05 *** Residuals 17 12.964   0.763                       --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1   And I can calculate the F value of hypothesis test H0： b2=0 via:  > model_Drop2 <- lm(y ~ x1, data=df) > SSR_All = sum(resid(model_All)^2) > SSR_Dp2 = sum(resid(model_Drop2)^2) > F_x2 = ((SSR_Dp2 - SSR_All) / 1) / (SSR_All / (20 - 3)) > F_x2 [1] 34.93434   We can see that F_x2 is equal to F value of x2 in Analysis of Variance Table. However, the value F_x1 calculated as follow is not equal to F value of x1, I can't understand why:  > model_Drop1 <- lm(y ~ x2, data=df) > SSR_Dp1 = sum(resid(model_Drop1)^2) > F_x1 = ((SSR_Dp1 - SSR_All) / 1) / (SSR_All / (20 - 3)) > F_x1 [1] 70.30392   So, what is the mathematics definition of the F value in table?  EDIT The result of the features reversed as commented by @Michael M:  > model_All2 <- lm(y ~ x2 + x1, data=df) > anova(model_All2) Analysis of Variance Table  Response: y           Df Sum Sq Mean Sq F value    Pr(>F)     x2         1 17.468  17.468  22.907 0.0001718 *** x1         1 53.612  53.612  70.304 1.914e-07 *** Residuals 17 12.964   0.763                       --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1


using chrome to access HTML files on android

I downloaded the java documentation to read on my phone but i can't use the html viewer on my phone because it cant use links.  When I tried using google chrome and going to the file location its not allowing chrome to access the location.  Does anyone know how to allow chrome to access the folder or know a folder that I could move the documents to?   It's the Zip file I'm using. Before someone says I could use the epub or mobi, they are missing some of the bits i want to read.  Im using an HTC M9 and the location im trying to access is file:///download/tutorial/tutorial.  Thanks for any help:)


Prove that if $|X|=\aleph _0$ then there exist a family of sets, $\mathcal{F}$, of subsets of $X$, s.t $|\mathcal{F}|=\aleph$

Let $X$ be a set such that $|X|=\aleph _0$. I need to find a family of sets $\mathcal{F}$, of subsets of $X$ such that $|\mathcal{F}|=|\mathbb{R}|$.  I saw a couple of examples of Specific X but I can't construct a family of sets which hold the condition for a general set X with $|X|=\aleph _0$.  edit: I forgot to mention an important condition that $\mathcal{F}$ must hold: for every $A,B\in \mathcal{F}$ the intersection $A\cap B$ is finite.


Getting a lot of hits on my web server and it's taking down my httpd. Possible DDoS?

I'm getting a lot of hits on my server. This server normally gets little to no traffic yet there's is constant hits every time I bring the server back up. I get the following error first   ip_conntrack: table full, dropping packet  then sooner or later my httpd runs out of memory and my server becomes unresponsive. Any ideas on how to fix it?   latest head of my access_log. I changed http to hxxp   122.193.164.5 - - [27/Mar/2011:23:48:35 -0700] "GET hxxp://pubs.acs.org/templates/jsp/_style2/_achs/css/atypon-main.css HTTP/1.0" 200 174299 "hxxp://pubs.acs.org/doi/abs/10.1021/ac100095u" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)"    218.29.188.217 - - [27/Mar/2011:23:48:38 -0700] "GET hxxp://rotator.adjuggler.com/servlet/ajrotator/913831/0/vh?ajecscp=1301294917498&z=pdn&dim=753179&kw=&click=, HTTP/1.0" 200 1181 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8"    117.41.182.55 - - [27/Mar/2011:23:48:38 -0700] "GET hxxp://www5.tellgames.com/media/games/images/tellgames/120x90/02470dca7676598b9381e4c5dc2eef05.jpg HTTP/1.0" 200 4883 "" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)"    117.41.186.191 - - [27/Mar/2011:23:48:37 -0700] "GET hxxp://s0.2mdn.net/1361550/K2147_NBRD_FYEA_728.jpg HTTP/1.0" 200 41371 "hxxp://ad.doubleclick.net/adi/N3340.161249.ADNETIK.COM/B5252096.3;sz=728x90;click=" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.9"    173.252.208.155 - - [27/Mar/2011:23:48:38 -0700] "GET hxxp://ads.smowtion.com/st?ad_size=160x600&section=1739112 HTTP/1.0" 200 1336 "hxxp://www.consumerhealthdigest.info/category/health-information" "Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030701"    61.139.105.162 - - [27/Mar/2011:23:48:38 -0700] "GET hxxp://therugged.com/wp-content/uploads/2011/01/Steph61-80x53.jpg HTTP/1.0" 200 2980 "hxxp://www.therugged.com/category/lifestyle#player" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1"


php curl not getting installed on Debian 8

I am using linux debian 8. I have webmin/virtualmin installed and 1 domain is running over the server. Php version is 7.1. But, i can not run curl on my server. i tried to install curl but it throws below error     E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I have tried all below commands which are not working:  sudo apt-get -f install  sudo apt-get update  sudo apt-get clean  sudo apt-get upgrade   sudo apt-get update shows below errors:  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743  W: Failed to fetch http://debian.mirrors.ovh.net/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)  W: Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease  W: Some index files failed to download. They have been ignored, or old ones used instead.}   my sources.list file content:  # deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main  #deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main  deb http://debian.mirrors.ovh.net/debian jessie main deb-src http://debian.mirrors.ovh.net/debian jessie main  deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main  # jessie-updates, previously known as 'volatile' deb http://debian.mirrors.ovh.net/debian jessie-updates main deb-src http://debian.mirrors.ovh.net/debian jessie-updates main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main


Can not execute sudo or gksudo comand to run nautilus to edit root file on ubuntu 17.10

No protocol specified Unable to init server: Could not connect: Connection refused  (nautilus:3041): Gtk-WARNING **: cannot open display: :0


Letter "c" appearing inside pmatrix environment with aastex

My journal recently updated its official class file, , from version 5.2 to version 6.0. Apparently this was a major rewrite, as the journal abandoned its own class and based 6.0 off the ancient third-party emulateapj made before the journal published class files.  Now I'm getting an italix "c" at the beginning of my pmatrix with the new version. Here's an example:  \documentclass{aastex} \usepackage{amsmath} \begin{document} \begin{equation*}   \begin{pmatrix}     -1 & 0 \\     0  & 1   \end{pmatrix} \end{equation*} \end{document}   With 5.2 I get this:    while with 6.0 I get this:    Where is this coming from, and how do I get rid of it?


Do virtual particles pop in and out of existence in the space just outside the nucleus?

This question is similar to one asked if virtual electrons exist outside the nucleus, but please note, my question says virtual particles. It is not a duplicate.  I read so often that matter is mostly empty space and the electron is some fantastically large distance from the nucleus that matter is mostly empty space. We know there is actually an electron cloud that fills the nucleus that reflects the probability of finding the electron. Are there virtual particles and anti particles popping in and out of existence in any of the spaces surrounding the nucleus? The same ones that produce the energy of the vacuum. I ask because there many textbooks that insist we are all mostly made of empty space since there is so much of it surrounding a nucleus.


Ive been developing an RPG for sometime, and its far enough now where I need to get some formulas down for attacking and whatnot. What Im looking to understand is a basic hit and miss formula based on dexterity or another stat. If someone can give me a basic framework to modify and extend, or helpful pointers, Id be appreciative.


I'm no expert in darkroom photography, but it seems a little odd that there is a type of light that doesn't affect film or developing paper etc. The only way that I could think to explain it is:   The low frequency red photons don't have enough energy to raise electron states in the film/paper, or Magic   either way, I'm curious to know how this handy tool is, as per title, safe.


I have a problem related to regex in c++. I want to create a regex pattern like that regex special("[~`!@#$%^&()-_+={}[]|/:;"'<>,.?]"), for special characters, i would like to count how many of them are in a string. The problem is i don't know how to get rid of special meaning they have, so that regex_search can just search for chars that they are. I found an information that: \char Forces \char to be accepted as char (that is, ignoring any special meaning of char). But when i added \ before every character it was an error still.


I have read that in Candy Box 1, you may buy "Surpass yourself" in order to defeat yourself. My question is, there is no option to buy that; so how do you beat yourself?


ETS() function, how to avoid forecast not in line with historical data?

I am working on an alogorithm in R to automatize a monthly forecast calculation. I am using, among others, the ets() function from the forecast package to calculate forecast. It is working very well.  Unfortunately, for some specific time series, the result I get is weird.  Please, find below the code i am using :  train_ts<- ts(values, frequency=12) fit2<-ets(train_ts, model="ZZZ", damped=TRUE, alpha=NULL, beta=NULL, gamma=NULL,              phi=NULL, additive.only=FALSE, lambda=TRUE,              lower=c(0.0001,0.0001,0.0001,0.8),upper=c(0.9999,0.9999,0.9999,0.98),              opt.crit=c("lik","amse","mse","sigma","mae"), nmse=3,              bounds=c("both","usual","admissible"), ic=c("aicc","aic","bic"),             restrict=TRUE)   ets <- forecast(fit2,h=forecasthorizon,method ='ets')      Please, you will find below the concerned history data set :   values <- c(27, 27, 7, 24, 39, 40, 24, 45, 36, 37, 31, 47, 16, 24, 6, 21,  35, 36, 21, 40, 32, 33, 27, 42, 14, 21, 5, 19, 31, 32, 19, 36,  29, 29, 24, 42, 15, 24, 21)   Here, on the graph, you will see the historical data (black), the fitted value (green) and the forecast(blue). The forecast is definitely not in lines with the fitted value.  Do you have any idea on how to "bound" the forecat to be "in line" with the historical sales?


Find the ring of algebraic integers in $K=\mathbb Q(\sqrt[3]{2})$.   So, I know that $K=\{a+b\sqrt[3]{2}+c\sqrt[3]{2}^2 \mid a,b,c \in \mathbb Q\}$.   My professor has done very little on this topic. I know that an algebraic integer is the root of a monic polynomial with integer coefficients.   I have no clue on where to start with this question. Any help is much appreciated!


Change in Hamiltonian under infinitesimal canonical transformation

Consider an infinitesimal canonical transformation from the (symplectic) coordinates $z$ with Hamiltonian $H(z, t)$, to the coordinates $$ Z = z + \epsilon J \frac{\partial G}{\partial z} $$ with the transformed Hamiltonian $$ K(Z, t) = H(z(Z, t),t) +\epsilon \frac{\partial G(z(Z, t),t) }{\partial t} $$ where $G = G(z, t)$ is the infinitesimal generator and $\epsilon$ is a small quantity. In the active view of this transformation, a point $A$ with coordinates $z$ is mapped to a different point $B$ with coordinates $Z$; in the passive view, $A$ is assigned new coordinates $A' \equiv Z $, but is physically unchanged. I find it easy to see why the change in a function $u(z, t)$ under such a transformation is simply $$ u(B) - u(A) = u(Z, t) - u(z, t) = u\left(z +\epsilon J\frac{\partial G}{\partial z}, t\right) -u(z, t) = \epsilon\frac{\partial u}{\partial z}J\frac{\partial G}{\partial z} = \epsilon\{u, G\}, $$ since this is just the change in the value of $u$ between the two points. I get confused however, when it comes to the Hamiltonian. According to Goldstein $\S$9.6, the change in the Hamiltonian is $$ \partial H = H(B) - K(A') = H(Z, t) - K(Z, t). $$ Why is it defined in this way? I don't understand why the change isn't $$ \partial H = K(B) - H(A) = K(Z, t) - H(z, t), $$ since I would have thought that this would be the difference in the Hamiltonian before and after the transformation.


which of the following group is isomorphic with : $\frac{ \Bbb{Z ×Z }} { \langle (2,2) \rangle } $?

which of the following group is isomorphic with : $ \frac{ \Bbb{Z ×Z }} { \langle (2,2) \rangle} $ ?  1- $\Bbb{Z} $  2-  $\Bbb{Z×Z} $   3-$\Bbb{Z_2 ×Z_2} $  4- $\Bbb{Z_2 × Z} $  The group $ \frac{ \Bbb{Z ×Z }} { \langle (2,2) \rangle} $  is infinite and is not cyclic then the "1" ,"3" is false .


I as an ideal of $R$ then $a+I=0+I$ iff $a\in I$

show that if a,b belong to the ring $R$ and $I$ is an ideal of $R$ then $a+I=0+I$ if and only if $a$ belongs to $I$. I know that since I is an ideal then it is both a left and a right ideal.


Is SO/SE about to be sold (and does that explain recent events)?

I have seen some hypotheses that the recent series corporate actions and statements are a sign of SO/SE being in the process of being, or about to be, sold. Arguments cited include the corp statements being made in paywalled areas and addressed to an audience that seems very distinct from the community, the choice of CEO, the push for a 'service sector' flavour of tensely smiling hospitality, and surely some more I can't recall in a coherent form.   Just how plausible and implausible, and how founded or unfounded, is such a hypothesis? Is it, as far as people more knowledgeable either about business in general or about the specific case of SE/SO, strategically consistent or even outright connected with the corp's behaviour (and a likely cause thereof)?


Render a custom region inside node template

I am attempting to render a menu assigned to a block right next to the body of a custom content type. I am using Drupal 7.  I have a custom region defined within my template .info file. I would like to render this region and the block assigned to it from within a custom node template ...  node--<my custom content type>.tpl.php   I needed to do this within the custom node template because I needed to break out the individual fields of the content type rather than just using   print render($content);  This is what I was trying to do ...
   <?php     print render($content['title']);     print render($content['field_banner_image']);     print render($content['body']);   ?>
<?php print render($page['MY-CUSTOM-REGION']); ?>

<?php print render($content['body']); ?>div>
   However, my menu block does not render and I get the following error ...  Warning: Cannot use a scalar value as an array in include()[PATH TO MY CUSTOM NODE TEMPLATE]  Is it possible to render a region from within a custom node template?


Java HashMap Get Highest 3 Values and their Key

I am making a program that keeps a list of users and Integer values in a HashMap.  I need to loop through the HashMap, and get the three highest values.  I also need to get corresponding key of those three values.      For example - HashMap with values:      User1: 13      User2: 325      User3: 1      User4: 456      User5: 666   Would give me:     User5      User4      User2      (In that order)


How can I extract a predetermined range of lines from a text file on Unix?

I have a ~23000 line SQL dump containing several databases worth of data. I need to extract a certain section of this file (i.e. the data for a single database) and place it in a new file. I know both the start and end line numbers of the data that I want.  Does anyone know a Unix command (or series of commands) to extract all lines from a file between say line 16224 and 16482 and then redirect them into a new file?


Convert dateTime to ISO format yyyy-mm-dd hh:mm:ss in C#

Is there a standard way in .NET/C# to convert a datetime object to  format yyyy-mm-dd hh:mm:ss?  Or do I need to do some string manipulation to get the date string?


When I compile this code I experience a bus error and I don't understand what I'm doing to cause this. I read up what a bus error entails and I still don't quite see my problem. This code should reproduce the behaviour of the strcpy() function in the string.h library.    #include <unistd.h>  void ft_putstr(char *str) {  while (*str)   write(1, str++, 1); }  char *ft_strcpy(char *dest, char *src) {  int index;   index = 0;  while (src[index] != '\0')  {   dest[index] = src[index];   index++;  }  dest[index] = '\0';  return (dest); }  int main(void) {  char *str1, *str2, *cpy;   str1 = "Cameron";  str2 = "Why you no work?";  cpy = ft_strcpy(str1, str2);  ft_putstr(cpy);  return (0); }


How can i prove the following inequality  $$\ \min{\left(\frac{a_1}{b_1},\frac{a_2}{b_2}\right)}\leq\frac{a_1+a_2}{b_1+b_2}\leq\max{\left(\frac{a_1}{b_1},\frac{a_2}{b_2}\right)} $$ for any real numbers $a_1,a_2$ and positive numbers $b_1,b_2$.  Can anyone give me some hint or reference for the proof of this inequality?


I am attempting to add a logo to a metal material. Unfortunately, when I render it, it has no color.    I fed the metal shader and the logo's image texture to a mix shader. Then I used the same image texture as the fac input. It has colour in material viewport mode, but not when rendered.  Oddly, if I  feed the image texture only into the fac input and not as a shader, it makes no difference to the render.  The upper 3d view is rendered, the lower is material viewport mode.


Every time i reboot my laptop i need to open terminal and type sudo chmod 777 /dev/ttyS0to use the serial port.  For configuring Cisco routers I want /dev/ttyS0 to be open when i boot my laptop.  Searched the internet but did not find the answer I am looking for.


Why does my phone have erroneous input when connected to a non-OEM power source?

My phone (Motorola DROID RAZR MAXX) seems to have problems accepting touch input when connected to a non-OEM power source. When connected to my computer via USB, it accepts input fine, as it does when connected to an Xbox 360 through USB. When connected to the wall USB charger it shipped with, it also accepts input fine, but when connected to a third-party wall USB charger, the touch input goes crazy and starts selecting objects all over the screen where I'm not pressing. The charger did not do this with my previous Android phone.  Is this because there is some data connection it is looking for through USB so that it acts weirdly if not using an OEM charger or actually connected to a data-using device?


Lightning QuickAction (API) without modal

I am attempting to replace JS buttons with quick actions. These button simply call a web service method and alert the result and need no user interaction.  With quick action a modal always seems to appear and this is not desirable.   I am calling the Webservice method in the doInit function and  firing a toast event with the results and have no need for the modal popup.  Seems an oversight maybe? But is there a way to accomplish this without the modal to closely mimic the JS button functionality?  Ideally we could show the spinner without the modal   Right now I am simply calling   $A.get("e.force:closeQuickAction").fire();   at the end of the doInit but it is not the most ideal in way of a UI to do this IMHO as it flashes the modal on the screen briefly.


Having this in the preamble:  \usepackage{tikz} \usetikzlibrary{chains,shapes.multipart} \usetikzlibrary{scopes} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes,calc} \usetikzlibrary{automata,positioning}   I have the following figure:  \begin{figure}        \centering        \begin{tikzpicture}[start chain=going right,>=latex,node distance=0pt]          \node[draw,rectangle,on chain,minimum size=1.5cm] (rr) {$I$};          \node[draw,rectangle,on chain,draw=white,minimum size=0.8cm]{};          % the rectangular shape with vertical lines         \node[rectangle split, rectangle split parts=5,         draw, rectangle split horizontal,text height=1cm,text depth=0.5cm,on chain,inner ysep=0pt] (wa) {};          \fill[white] ([xshift=-\pgflinewidth,yshift=-\pgflinewidth]wa.north west) rectangle ([xshift=-15pt,yshift=\pgflinewidth]wa.south);         \node at (wa.east) (A){};         \draw [-latex] (A) --+(30:1.5) coordinate (B1);         \draw [-latex] (A) --+(-30:1.5) coordinate (B2);          % the circle          \node [draw,circle,on chain,minimum size=1cm] at (B1) (se1) {$U_1$};          \draw [-latex] (se1) --+(0:1.3) coordinate (BB1);          \node [draw,circle,on chain,minimum size=1cm] at (B2) (se2) {$U_2$};          \draw [-latex] (se2) --+(0:1.3) coordinate (BB2);          \node [draw,diamond,on chain,minimum size=0.2cm] at (BB1) (C3){};          \draw [-latex] (C3)--+(0:1)node[midway,above] {$\mu$};          % the arrows and labels          \draw[<-] (wa.west) -- +(-20pt,0) node[midway,below] {$\lambda$};          \draw[->] (C3.north) to[out=120, in=145] ([shift=(up:.3)] wa.west);        \end{tikzpicture}           \caption{The model represented as a queuing system.}              \label{fig:queue}        \end{figure}   How to put labels on arrows where there are none (the picture below shows the edges where i want to put labels)?


Given the positive integer numbers $n$,prove that $$\sum_{k=1}^{2^{n-1}}\sigma{(2^n-2k+1)}\sigma{(2k-1)}=8^{n-1}$$  where $\sigma(n)$ is defined as $$\sigma{(N)}=\sum_{d|N}d$$  This problem I think is very interesting, and have nice methods?  Thank you everyone.  and I find some of this     or can see:


Nullpointer exception when trying to create a deque in Java

I have been trying to create a deque in Java, but I get a nullpointer exception when I add a new node. Here is the helper class I use for the doubly-linked list:      private class Node {     private Item item;     private Node next;     private Node prev; }   Then I add nodes to the beginning of the list as follows:      public void addFirst(Item item) {     Node oldfirst = first;     first = new Node();           first.prev = null;     first.item = item;     first.next = oldfirst;     oldfirst.prev = first;             N++; }   I get a NullPointer exception for the oldfirst.prev = first; line. Also, when I compile the code I get the following warning:  Warning: The field Deque2<Item>.Node.prev is never read locally  What might I be doing wrong?


Transiting through the Schengen Area with an expired American Schengen Visa

I am an American citizen currently doing a summer internship in Italy. I arrived on May 13. My parents will be coming at the end of my 90 days to go on a Euro trip together. On August 10th (the end of my 90 day period), I plan to exit the Schengen area for a Non-Schengen country with my boyfriend to go on  vacation together, probably Albania. However, looking at the plane tickets back to the United States I noticed most of them have layovers in Schengen Member State airports like Cologne. I was wondering what the rules were for transiting (1/2 hour layover without leaving the airport) like this? Would I need to get an Airport Transit Visa? I have been extremely careful to leave the Schengen Area when my time is over, so I am interested in any advice or information that could be provided.  Thank you


Abnormal long prompt / change username & computer name

I've just tested out Ubuntu 16.04, my first time with Linux.  Now I  installed it just to try, and found out that u like it! However, since this was only a test, I didn't select username and computer name with care, which resulted in an abnormal long prompt:  Hjiyhjihyig000@ihoihjjjjj000-HP-550-Notebook-PC-RU544AA-AK0:/$   Anyway to change this (easily for a newbie) ?


Can you grant superuser privileges to an application?

I was wondering wether it is possible since ES File Explorer has the root explorer option,  which I need to see where Termux got installed/from where it's running to be able to navigate (though it seems that I can't).      So, is there a way to grant just it such privileges with adb,  or  at least a permission for viewing such files?


What am I doing wrong while mining in Minecraft?

I'm new to this game. I'm mining in 12th and 13th layers by making 2x2 tunnels, and have made several 50-60 block long tunnels. The problem is so far I'm only able to find iron, redstone, coal, lapis lazuli, but no diamonds and only a little gold. So, my question is why am I not able to find reasonable amount of gold and diamond. Is the problem my technique of mining or am I searching in wrong layers? What is the best way to mine gold and diamond in Minecraft? What am I doing wrong?


How to configure Centos 7 Postfix SSL (port 465)?

My problem is I can't send mail/connect to port 465. I purchased a SSL certificate and I have my private key, domain certificate and ca certificate file in pem format.   I have opened 465 port in iptables and commented out the following lines in master.cf  smtps     inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes   I added the following lines in main.cf  smtpd_use_tls = yes smtpd_tls_key_file = /etc/postfix/private_key.pem smtpd_tls_cert_file = /etc/postfix/cert.pem smtpd_tls_CAfile = /etc/postfix/ca.pem smtpd_tls_loglevel = 3 smtpd_tls_security_level = encrypt smtpd_tls_ask_ccert = yes smtpd_tls_auth_only = yes smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache smtpd_tls_session_cache_timeout = 3600s smtpd_relay_restrictions = permit_mynetworks permit_tls_clientcerts reject_unauth_destination   There is no error in /var/log/maillog  But when run this command:  openssl s_client -connect mydomain.com:465   I see it stated connected and all my certificate verify = 1. but at the end it show:  Start Time: 1444920545 Timeout   : 300 (sec) Verify return code: 0 (ok) --- read:errno=0   Is there anything that I need/do in order to use port 465?


I was upgrading from Ubuntu 10.04 to Ubuntu 12.04 but my upgrade paused on libc6-dev for around 2 hours.  I rebooted my system and now I'm getting you have held broken packages.  I've tried looking through other posts but none of the fixes seem to work for me and I just don't think I know enough to fix it myself.  In synaptic package manager I'm getting  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies   I'm unsure what to do in terminal to try and fix this.  I seem to be working fine in 10.04 still but without fixing this I can't upgrade to 12.04.


How can multiple java processes share a single rolling log file

I have a java CLI program that uses SLF4J with log4j2 and a rolling file appender for logging. When multiple processes are running there appears to be problems when it's time for the file to rollover. The file is unable to be moved and/or deleted and an ERROR is printed to stdout. Is there some trick to use a single log file with multiple processes? Do we need to use a single file per process? I just realized this was the first time I'd tried doing it as we'd used a daemon in the past.


What are the possible catch bonuses and how much experience do they reward?

I found , earlier, and found out that I can throw a curveball at pokémon to earn an increased experience bonus.  I have since noticed two more bonuses: "Great" and "Nice". I had assumed the bonuses were for throwing a pokéball with the 'catch circle' closer to the center, which according to the FAQ, increases the chances of actually catching the pokémon.  However, I have since noticed that the 'catch circle' is actually bigger in cases where I have earned a "Great" bonus. Despite appearing to be a less powerful throw, I earn more experience than when I earn a "Nice" bonus. "Great" nets me 50 experience, while "Nice" only nets 10 experience.  What are the possible catch bonuses, and how much experience do they reward?  For bonus points, every so often I am awarded an additional 10 experience points that are not accounted for on the experience screen. The screen lists my bonuses, and tells me how much experience I have earned, but I am clearly rewarded additional experience when it is added to my player. Assuming this is another catch bonus, what could this be?


The Windows Domain I manage has hundreds of computer names which I don't recognise and I'd like to remove old ones which aren't in use before trying to track down the misnamed ones.  Is there someway to see when the last time a machine logged onto the network? Either via dhcpd or a user login event or something else.


Hello I do not understand why tikz can not find the intersection of the curve and the right? thank you  \documentclass[border=5mm]{standalone} \usepackage{tikz}  \usetikzlibrary{calc,intersections}  [![enter image description here][1]][1] \begin{document} \begin{tikzpicture}[xscale=0.015,yscale=0.01]  \draw[domain=0:500,samples=1000,variable=\x,name path=A] plot ({\x},{475.-712.*exp(-0.133e-2*\x*10)+238.*exp(-0.400e-2*\x*10)}); \draw[-latex] (0,0)coordinate(O)-- (500,0) node[above]{$t$}; \draw[-latex] (O) -- (0,500) node[right]{$\theta_s(t)$};  \draw[dashed,thick,name path=S100] (0,{475}) --  (500,{475});  \draw[dashed,thick,name path=S95] (0,{475*0.95}) --  (500,{475*0.95}); \path[name intersections={of=S95 and A,by=E}];   \draw (E) |- (O-|E);  \end{tikzpicture} \end{document}


Remove attribute from JSON objects in a array

I have an array of json objects.   var user =[ { id: 1, name: 'linto', img: 'car' },   { id: 2, name: 'shinto', img: 'ball' },   { id: 3, name: 'hany', img: 'kite' } ]   From this is want to remove attribute img from all the elements of the array, so the output looks like this.  var user =[ { id: 1, name: 'linto' },   { id: 2, name: 'shinto' },   { id: 3, name: 'hany' } ]   Is there a way to do this in java script.


How to format correctly according to the device configuration date and time when having a year, month, day, hour and minute?


Object looses its scale on keyframe change

I've made a static model of a mannequin to do some tests. My problem is that whenever I scale a part of the model, or the entire mesh, then every time I move the time-line a bit (or Alt middle mouse. I'm used to zooming that way from maya) the scaled meshes return to previous scale, along individual centers.    Here's a image sample of the problem: 1 Before the scale     2 After the scale (note the time-line)  3 After moving the time-line*     This effect would also happen if I'd scale the mesh, and then export it as a FBX (without moving the time-line).  I've tried to apply the scale onto the model. In effect the elements of the model get incredibly small, when the time-line moves/I export it.  I would be very grateful for any help with this issue.  *I know it wasn't exactly by 5. My mistake. But it's visible that the current time has changed.


Adding a rectangular box with tikz to table (beamer)

I would like to add a rectangular box to my table to highlight some rows. I'm trying to use tikz with the second lot of code from  to a similar question. However, unlike the earlier question, I'm using beamer and the box appears in the wrong place after compiling several times. I'm attaching a picture with the desired result and what I obtain instead.      This is my code:  \documentclass{beamer} \usepackage[english]{babel} \usepackage{tabularx,booktabs,dcolumn} \usepackage{tikz} \usetikzlibrary{matrix,shapes,arrows,fit} \pdfmapfile{+sansmathaccent.map} \newcolumntype{d}{D..{-1}}  \newcounter{nodecount} \newcommand\tabnode[1]{\addtocounter{nodecount}{1} \tikz \node                (\arabic{nodecount}) {#1};}  % Some options common to all the nodes and paths \tikzstyle{every picture}+=[remember picture,baseline] \tikzstyle{every node}+=[inner sep=0pt,anchor=base, minimum width=1.8cm,align=center,text depth=.25ex,outer sep=1.5pt] \tikzstyle{every path}+=[thick, rounded corners]  \begin{document}  \begin{frame} \frametitle{Title of my slide} \begin{table} \resizebox{\textwidth}{!}{    \begin{tabular}{c*{7}{d}} \midrule  \multicolumn{1}{c}{$CCCCC$}  & \multicolumn{1}{c}{$CCCC$} & \multicolumn{1}{c}{$CCCC$} & \multicolumn{1}{c}{$CCC$} & \multicolumn{1}{c}{$CCCCCCC$} & \multicolumn{1}{c}{$CCCCC$} & \multicolumn{1}{c}{$CCCCC$} & \multicolumn{1}{c}{$CCCCCCC$} \\ \midrule \multicolumn{8}{c}{\textbf{Panel A: AAA}} \\ \midrule \tabnode{0}     & 0.00  & 0.00  & 0.00 & 0.00 & 0.00  & 0.00 &            \tabnode{0.00} \\ \tabnode{}    & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) &          \tabnode{0.00} \\   &       &       &       &       &       &       &  \\   0     & 0.00  & 0.00  & 0.00 & 0.00 & 0.00  & 0.00 & 0.00 \\   & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\   &       &       &       &       &       &       &  \\   0     & 0.00  & 0.00  & 0.00 & 0.00 & 0.00  & 0.00 & 0.00 \\   & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\   \multicolumn{8}{c}{\textbf{Panel B: BBB}} \\  \midrule  0     & 0.00  & 0.00  & 0.00 & 0.00 & 0.00  & 0.00 & 0.00 \\    & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\    &       &       &       &       &       &       &  \\  0     & 0.00  & 0.00  & 0.00 & 0.00 & 0.00  & 0.00 & 0.00 \\    & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\    &       &       &       &       &       &       &  \\  0     & 0.00  & 0.00  & 0.00 & 0.00 & 0.00  & 0.00 & 0.00 \\    & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) & (0.00) \\   \midrule  \end{tabular}  }  \begin{tikzpicture}[overlay]  \node[draw=red,rounded corners = 1ex,fit=(1)(4),inner sep = 1pt] {};  \end{tikzpicture}  \end{table} \end{frame} \end{document}


Can't connect to wifi hotspot on 18.04 Ubuntu, Realtek [10ec:d723]

I have installed Ubuntu 18.04. All things are working properly, but I cannot connect to my mobile Hotspot with it.  I have noticed that there is no additional  driver for it, though I can connect to internet via USB cable with my phone. Please help me out with this problem.


I am new to Linux and just started using ubuntu 14.04. I'm trying to run imwheel process on startup by editing rc.local file. Perhaps I'm doing something wrong and I need to type a path to a program apart just the name like in terminal?  when i try to do a check by running:   sudo service rc.local start   I get below message:INFO:  imwheel started (pid=4906) Could not open display, check shell DISPLAY variable, and export or setenv it!   rc.local file:  #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing.  imwheel  exit 0


Do we have magnetic monopole? Is charge, according to yesterdays paper on Nature by Ray-Roukokoski-Kandel-Möttönen-Hall (30.01.14) quantized?

As everybody here knows, Maxwell's equation would look more beautiful if a magnetig charge were present. Beyond the aesthetics question, if a single magnetic Dirac monopole would be found, the consequence is that the electric charge would be quantized.  While, I guess, everybody should be happy with the news, my experimentalist background doesn't allow me to understand the experimental setting. I therefore ask for the following advice -- a rather theoretically oriented question.  A recent paper,     Observation of Dirac monopoles in a synthetic magnetic field. M. W. Ray, E. Ruokokoski, S. Kandel, M. Möttönen and D. S. Hall. .   claims to have observed such monopoles.   Can somebody shed light on the theoretical implicacions of this work? Concretely, should we now take care before saying that it's been proven that the electric charge is quantized?


Example of uniformly convergent sequence $(f_{n})$ such that the sequence of cubes $(f^3_{n})$ does not converge uniformly on the same set

So I know if the sequence $f_{n}$ has a pointwise limit $f(z)=z$ then the convergence is uniform on $C$ iff  $\sup\|(f_{n}(z)-f(z))|$$\rightarrow$  0 as n tends to infinity  My trouble is in finding an example of a sequence is that is uniformly convergent and so is its sequence of cubes. Any help?  Note: Sorry about my English!


When to buy plane tickets to get best rates?

I'm planning a trip from Europe to USA, that will happen next summer.  I was looking lately into purchasing plane tickets, but a lot of carriers do not offer late July/early August 2015 tickets yet.  So, I can buy some ticket on kayak.com, but I feel that if I'll wait a bit, I might get a better deal. My question is generally - when is the best moment to purchase tickets - one that gives best prices, but also doesn't limit available flights too much, so I have options to choose from.


I wanted to change the name of my user as well as its home directory. Looking for a way to do this, I stumbled upon .  I did everything as described there, but since I restarted the computer, all that happened is, that I'm not an admin anymore.  I can't unlock anything under System Preferences > Users & Groups, as well as I'm unable to edit /etc/sudoers/  What went wrong? whoami still shows my previous username..  How can I fix this mess? Am I screwed now?  macOS 10.13.4 btw


For some choice of $\lambda \in \mathbb{R}$ and $n$, what would be a general formula for  $$ \sum_{k=1}^{n} \lambda^k $$  as a function of $\lambda$ and $n$?


How could Basilisk Eyes affect the Plastic Camera of Colin Creevy?

The Basilisk in Book 2 reminds me much of Greek mythology Medusa who could kill anyone who sees her with his/her naked eyes.  It was not that some sort of rays or extreme heat or light emits from the eyes (Medusa or Basilisk) - Its just that they look so fearsome and horrified that the person who sees them die of the mere shock.   Now, a person with feelings of fear and foreboding, understandably could die of shock on seeing a real life 50 foot or so giant snake with huge fangs but this however doesn't give any explanation on how the plastic camera of Colin Creevy was damaged and the film inside was burnt when Colin saw the Basilisk through it.   Any theory?


Why is that get 0.8999999999999999 as the output of System.out.println(0.3+0.6) in Java?

public class test {     public static void main(String[] args) {             System.out.println(0.3+0.6); } }   The output of the above java code is 0.8999999999999999. Why is that?


What are the basic statistics to describe tensor data distribution

For numeric data, the basic/straightforward way to describe its distribution is to use some metrics like mean, min, max, std et al. What about tensor data (vectors and high dimensional data)? Of course, the mean, std still holds but it is a high dimensional data point. Is there any scalars that can help describe the data.


Java: How to test methods that call System.exit()?

I've got a few methods that should call System.exit() on certain inputs. Unfortunately, testing these cases causes JUnit to terminate! Putting the method calls in a new Thread doesn't seem to help, since System.exit() terminates the JVM, not just the current thread. Are there any common patterns for dealing with this? For example, can I subsitute a stub for System.exit()?   [EDIT] The class in question is actually a command-line tool which I'm attempting to test inside JUnit. Maybe JUnit is simply not the right tool for the job? Suggestions for complementary regression testing tools are welcome (preferably something that integrates well with JUnit and EclEmma).


I have a server that runs Debian and sshd on it, and in case I need to reboot the server my SSH session hangs at client side until TCP timeout. I assume this is because when sshd is being terminated it does not explicitly close open SSH sessions to the host. What should I do to make sshd first disconnect everyone, then terminate itself as normal? So far I don't see a parameter in man sshd_config that's related to shutsown behavior.


Is Morgoth, the original enemy in J. R. R. Tolkien's Middle-earth ever visually described? I envisage him as a bigger, meaner version of the physical Sauron, but I cannot find any reference in The Simarillion.


'I'm sure your friends will likely call you on your birthday.' Is "that" required?

Could someone please help me.  I was wondering if I have to use "that" in the following sentence:     I'm sure your friends will likely call you on your birthday.   Should there be a "that" between sure and friends?  Thank you.


Approximate order statistics for Half-normal probability plot

To construct the half-normal probability plot, plot the absolute values in a certain statistical diagnostic (residual, leverage, Cook distance and others) versus $z_i$ where:  $\displaystyle z_{i}  = \Phi^{-1} \left(\frac{k + n - \frac{1}{8}}{2n +\frac{1}{2}}\right)$   $\therefore$ Applied Linear Statistical Models, (Kutner,Nachtsheim,Neter & Li, 2005) Fifth Edition, Pag 596  or  $\displaystyle z_{i} = \Phi^{-1} \left(\frac{k + n + \frac{1}{2}}{2n +\frac{9}{8}}\right)$  $\therefore$ Generalized Linear Models, (P. McCullagh & J.A. Nelder, 1989) Second Edition,  Pag 407  where  $\Phi$ is the cumulative distribution function of the standard normal distribution.  $k$ is the  $k$-th ordered absolute residual   $n$ is the sample size  I could not locate the mathematical justification for the difference of the $z_i$, and more importantly I don't have any intuition about where it comes from.


I'm level 16 which makes battling many Draugr Wrights hard. My defense is just way too low, and I don't have enough time or strong enough magic to take them out.   My one-handed skill is at 62 and my strongest weapon does 33+10 enchanted damage. Are there any ways to level up easily?


How do I change the `enumerate` list format to use letters instead of the default Arabic numerals?

I've seen documentation whereby an \alph command is put around the \begin{enumerate} somewhere, but I'm not entirely sure how that operates...


Do electric eels produce current as they just move about, and how/why?

This video demonstrates how an electric eel can supposedly produce up to 800 watts, and power a Christmas tree, which is very topical (a late Merry Christmas to the Biology community!). The video, sadly, is not very detailed as to how this works. I was under the impression that electrical discharge was a conscious action on the part of the eel, rather than a natural state for it. But, apparently, the electric eel generates electricity "whenever it moves," as the video's narrator put it? Do electric eels produce electricity subconsciously, just by moving? Surely, though the host lists off the 800 watts of power, it's not constantly producing 800 watts, either? How do the fish's electrocytes work in this instance, where just lazing about is powering the Christmas tree?


I just noticed . Hey! I'm there! But that's beside the point.  The point is that Nick Craver is there too. Nick seems to like really long tag names, so his profile shows up like this:    Akk! Diamonds everywhere!  It seems that the page is optimized for only two lines of tags per user. One tag per line means three lines. Three lines means that Nick's reputation (tag) is cut in half.  Let's not cut Nick's rep (tag) in half on the Users page, no?


I couldn't find an example of below symbol.  Is there a symbol or package for this triangle?


Is it possible to construct a metric in $\mathbb{R}^n $ s.t. it does not induce CONVEX balls?

I'm studying point set topology and looking for a counterexample of "Balls are convex".   We say set $K \subset \mathbb{R}^n $ is convex if $\forall x, y\in K$ implies $\lambda x + \left(1-\lambda y\right)\in K, \forall \lambda \in \mathbb{R}$.   A counterexample has been found in $\mathbb{Q}$ (where the definition of convex has been specialized to "$\lambda\in\mathbb{Q}$") by using p-adic metric. E.g. consider ball $B_{\text{2-adic}}\left(0, 1\right)$.


How to use grep for finding file location in linux machines?

How can search for a file in ubuntu os with grep command ?   Let's say, I want to find CMakeList.txt, how to write grep command to find the existence of this file ?


Bijective Conformal Mapping onto the Open Unit Disc $\mathbb{D}$

What is the explicit bijective conformal mapping  $f(z):G_n\to\mathbb{D}$, $z\in\mathbb{C}$ for the following domain transformations:  $G_1=\{x+iy~|~x>1/2,y>0\}$ is the open region of the first quadrant.  $G_2=\{x+iy~|~x<0,y>0\}$ is the open second quadrant.  $G=_3\{x+iy~|~x<0,y<0\}$ is the open third quadrant.  $G_4=\{x+iy~|~x>0,y<0\}$ is the open fourth quadrant.  Where it is noted that $\mathbb{D}$ is the open unit disc defined by $\mathbb{D}=\{x+iy~|\sqrt{~x^2+y^2}<1\}$. I am aware that the aforementioned transformations have the specific form $f(z)=Ke^{cz}$, $\forall K\in\mathbb{C}$ or $f(z)=z^2$, where such mappings exist by the Riemann Mapping Theorem.


What is a good way to cut a plastic drum in half?

What is a good way to cut a 55 gal plastic drum in half?


how do you get shell powder in candy box 2


Hats can push time stamp to the right in question list

Hats can be positioned in a way that leaves the bounds of a user's image, but apparently this can also affect time stamp positioning when browsing questions.  In this image, a hat is pushing the time stamp to the right, and the right part of the stamp is cut off due to overflow. The question above it shows what a normal time stamp looks like.


Recently I have been reading a book called Market Wizards. The author talked about his own experience:      "I had done a very detailed analysis of the cotton market throughout the entire post-   World War П period. I discovered that because of a variety of government support programs, only two seasons since 1953 could truly be termed free markets [markets in which prices were determined by supply and demand rather than the prevailing government program]. I correctly concluded that only these two seasons could be used in forecasting prices. Unfortunately, I failed to   reach the more significant conclusion that existing data were insufficient to permit a meaningful market analysis. Based on a comparison with these two seasons, I inferred that cotton prices, which were then trading at 25 cents per pound, would move higher, but peak around 32-33 cents.The initial part of the forecast proved correct as cotton prices edged higher over a period of months. Then the advance accelerated and cotton jumped from 28 to 31 cents in a single week. This latest rally was attributed to some news I considered rather unimportant. "Close enough to my projected top," I thought, and I decided to go short. Thereafter, the market moved slightly higher and then quickly broke back to the 29-cent level. This seemed perfectly natural to me, as I expected markets to conform to my analysis. My profits and elation were short-lived, however, as cotton prices soon   rebounded to new highs and then moved unrelentingly higher: 32 cents, 33 cents, 34 cents, 35 cents. Finally, with my account equity wiped out, I was forced to liquidate the position ......"   My question is why the author's account equity was wiped out. In my opinion, he went short with a price higher than 25 cents per pound, which means he earned money, no matter how high the price moved afterwards.


A problem to prove $f'(c)$ as a sum of the given elements as in problem

Let $f\colon [a,b]\to\Bbb R$ be a continuous function on $[a,b]$ and $f''(x)$ exists for all $x\in (a,b)$. Let $a<c<b$, then there exists a point $\xi$  in $(a,b)$ such that $$ f(c)=\frac{b-c}{b-a}f(a)+\frac{c-a}{b-a}f(b)+\frac12(c-a)(c-b)f''(\xi).$$  In this problem, instantaneously I am thinking of applying  Rolle s ' theorem.. Am I correct in my thought approach? If not kindly provide a way out how to solve this problem elegantly..thank you . Even in Rolle s how can I go about.... The RHS seems so frightening to prove ...... Any ideas how to go about this problem ...anyone


Is there any difference in meaning between 'efficacy' and 'efficiency'?

I feel that there is a subtle difference in meaning between 'efficacy' and 'efficiency', but I couldn't find any authoritative sources that could help me confirm or refute this. Is there any difference between the two words, especially in scientific context?


I want to store what a user is saying (or get the value of a slot) and store it in a variable. Something like this:   String employee = intent.getSlot("Employee").getValue();   Alexa gives the right speechOutput so it gets the slot, however if i Say "Peter" and then make an if-statement (employee == "Peter") it always seems to be false. Can someone explain what I am missing?  public static SpeechletResponse getFact(final Intent intent, final Session session) {       Map<String, Slot> slots = intent.getSlots();      // Get the employee from the list of slots.     Slot employeeSlot = slots.get("Employee");     String speechText, repromptText;      if (employeeSlot != null) {         String employee = employeeSlot.getValue();          if (employee == "Peter") {             speechText =                     String.format("Pasta is the favorite food of %s.", mitarbeiter);         } else {             // I always end up here         }   ...


How can I create a Linq AND expression in C#?

I have been trying to create an AND expression in Linq with no satisfactory results. This is the method I have created: private List<Item> GetItems(int projectId, bool checkFlag) {     Expression<Func<Item, bool>> sqlExpression = item => item.ProjectId == projectId;      if (checkFlag)     {         Expression<Func<Item, bool>> newExpression = item => item.Flag;         sqlExpression = Expression.And(sqlExpression, newExpression);     }      return db.Table<Items>().Where(sqlExpression).ToList(); }  And this is the Item class: public class Item {     [PrimaryKey]     public int Id { get; set; }     public int ProjectId { get; set; }     public bool Flag { get; set; } }  The problem at compile time is located at the line where the AND expression is created: Expression.And(sqlExpression, newExpression);  The error that Visual Studio returns is:  Error CS0029: Cannot implicitly convert type 'System.Linq.Expressions.BinaryExpression' to 'System.Linq.Expressions.Expression<System.Func<Item, bool>>' (CS0029)  I know this example could be fixed just by changing the first expression, but it is not what I intended to do: Expression<Func<Item, bool>> sqlExpression = item => (item.ProjectId == projectId) && (!checkFlag || item.Flag);


How to know if Google Sheets IMPORTDATA, IMPORTFEED, IMPORTHTML or IMPORTXML functions are able to get data from a resource hosted on a website?

Google Sheets has several import functions   IMPORTDATA IMPORTFEED IMPORTHTML IMPORTXML   Sometimes the above functions returns errors like #N/A Imported content is empty and would like to be sure that there isn't a problem with the resource content to be imported.  How do I know if these functions are able to get the content that I looking to import?  I know that there also exist IMPORTRANGE but that function only is able to import content from Google Sheets spreadsheets


Let $a$ be a positive integer with factorization $a = p_1^{e_1} p_2^{e_2}...p_n^{e_n}$. Prove that the number of positive divisors of a is given by the product $(e_1 + 1)(e_2 + 1)...(e_n + 1)$. I know that from the fundamental theorem of arithmetics, that if $a\geq2$, then $a$ can be factored as a product of prime numbers. However, I'm not sure how I can use this knowledge to answer this question. Any help is appreciated.


Not sure if this is a bug or a feature, but I noticed today that if I , it annoyingly one-boxes a link to the room, which is not a link to the info page! That's it. I'm gonna pack up and leave! Such annoyance! But for the time being,  Is this behavior expected? If so, what is the reason for changing the links? If this is really a bug since the responsible bot is not seeing parts of the URLs and ends up one-boxing, and hence linking to the wrong message, could this be fixed please? Worth pointing out that too much exposure to annoying things results in a higher blood pressure.


Removing a vagrant file I see .nfs0000000000b869e300000001

I removed a file and now I see:  $ ls total 64 -rw-rw-r-- 1 502 17229 Sep 17 16:42 page_object_methods.rb drwxrwxr-x 7 502   238 Sep 18 18:41 ../ -rw-rw-r-- 1 502 18437 Sep 18 18:41 new_page_object_methods.rb -rw-r--r-- 1 502 16384 Sep 18 18:42 .nfs0000000000b869e300000001 drwxrwxr-x 5 502   170 Sep 21 13:48 ./ 13:48:11 *vagrant* ubuntu-14 selenium_rspec_conversion   and if I try to remove it:  $ rm .nfs0000000000b869e300000001 rm: cannot remove ‘.nfs0000000000b869e300000001’: Device or resource busy   What does this indicate?  What should I do


If two sound waves that are different frequencies create beats that occur several hundred times per second, can you hear this effect as its own tone?

If you have multiple waves of different frequencies, the interference from the different waves cause "beats".  (Animation from )    Let's say that a green dot in the above animation reaches your ear a few hundred times per second.   Is it possible to hear this phenomenon (wave groups occurring at frequencies in the audible range) as its own tone?


I'm from a place where there is no "L" in the language, and it's always been tricky to say.   Well, I did some research and, at least for American-English, there are two types: A "light L" and a "dark L".   Individually, I don't have a problem, but putting the dark L together with another word is sometimes a challenge. For example, I'm uncertain about "all of". Out of habit I use a light L to say it similar to "olive", but from what I read (and correct me if I'm wrong), I think I'm supposed to use a dark L for "all". This is very uncomfortable to say.  What's the proper way to pronounce "all" and "all of"? Is there a difference when put together?  EDIT: I did some more research, and some sources say that the dark L also uses the tip of the tongue as well as raising the back of the tongue. It's possible that "all of" is used in this manner. "All of" and "olive" may be different after all.  The linked post  does have some information, but it doesn't fully answer this question.  Tom says in the question that     Dark "L": is "L" at the end of the word or after a vowel sound.   Example: ball, pull.      Light "L:: is "L" at the beginning or before a vowel sound. Example:   light, love.   Araucaria says in an answer that      The rule for dark /l/ is that we always use dark /l/ when /l/ isn't   followed by a vowel. So in the word falafel the first /l/ is clear, the second is dark.   But neither of these posts seem to say if the rule applies when a word ending in "l," such as "all," is followed by a word starting with a vowel sound, such as "of."


Could you please tell me that how I can change only the size of the font on Ubuntu desktop?  I want to change the desktop font size not the others font size!


From Discrete to continuous Probablities

How does one define Density function for a continuous Random variable? What is the role of density function? How do achieve Density from mass?


Finding rational solutions to this system of equations

For a Linear Algebra problem I need to find $3$ distinct solutions, $(x,y,z)$ to the following system of equations: $$x^2+y^2+z^2=1 \\ x+y+z=\pm 1$$  such that $x,y,z\in \mathbb Z$  I have found $(x,y,z)=(\pm 1, 0, 0) , ({-1\over 3}, {2\over 3}, {2\over 3})$  But I'm having trouble finding a third solution. I'm not sure if it even exists.   Just to be clear, by "distinct" I mean that that $(0, \pm 1, 0)$ and $(0, 0, \pm 1)$ count the same as the first solution.


I've tried everything I found on the internet to make this program work but still nothing. I end up with a "Exception in thread "main" java.util.NoSuchElementException". The error definitely comes from the scanner but I can't figure out where. I would like to stop the user input when they enter an empty line. public static void main (String[] args) {   int count = 1;   Scanner sc = new Scanner(System.in);   String s = sc.nextLine();   Scanner sc2 = new Scanner(s);    while ( s != "" && count <= 10 )   {       int e = sc2.nextInt();       int m = sc2.nextInt();        int dt0_e = 365 - e;       int dt0_m = 687 - m;        if ( e%365 == 0 && m%687 == 0 ) // Case both Earth and Mars already are at day 0       {         System.out.println("Case "+count+": "+ 0);         count++;       }        else if ( dt0_e == dt0_m ) // Case both need the same number of days to reach day 0       {         System.out.println("Case "+count+": "+ dt0_e);         count++;       }        else // Other cases       {         int dtadd = dt0_e ;         int n = 1;          while ( (dtadd+m)%687 != 0 )         {           dtadd = dt0_e + n*365;           n++;         }       System.out.println("Case "+count+": "+ dtadd);       count++;       }       System.out.println(s);       sc2.close();       s = sc.nextLine();       sc2 = new Scanner(s);     }     sc.close(); }


In the prologue of A Game of Thrones it is described how Gared runs for his life, when he and other two rangers encounter with White Walkers. But this happens north of the Wall.  In the first chapter, we find Lord Eddard executing him outside the walls of Winterfell. Hundreds of miles south of the Wall.  How did Gared get through the Wall? Is this a plot inconsistency? He can't have deserted the Watch after reporting the incident. If he did Night's watch would have known about the White Walkers.


What does the Active image on my flag indicate?

What does this  image mean?   I see this image on posts that I've flagged.     And what about this flagged post? It's marked as helpful but not marked as duplicate.


How to get rid of ebury malware / trojan on Centos / cpanel

I have a server with cPanel installed on Centos 5.9.   Three days ago, my server provider told me I'm infected by "Ebury Trojan".   I read a lot of things saying that the openSSH server coming with cPanel may be infeted and how to detect it. Some says that the package using "Yum" may be corrupted as well.  So how to remove the ebury trojan once and for all?  How can I install a clean openSSH version on cPanel / Centos 5.9?  How to be sure my server will not be corrupted by this trojan as it sends passwords to third parties (of course I've changed the passwords)?


What is the maximum value of $\frac{x^2+x+1}{x^2-x+1}$

I tried to solve it and I got answer '3'. But that is just my intuition.I don't have concrete method to prove my answer .I did like this, in order to maximize the fraction, we need to minimize the denominator .So if plug in '1' in expression,    denominator becomes '1'.Now denominator is minimalized,the result of expression is '3'. Thats how I got to conclusion.But I can't prove that " 3  is the solution" mathematically. Can anyone show me how to prove it properly


bash adding a filename to an alias command

I have an alias to a ffmpeg command to start recording a session like this:  alias sreq='ffmpeg -f x11grab -r 24 -s 1024x768 -i :0.0 -qp 0 -c:v libx264 -preset veryslow'   I can just type sreq filename.mkv to start recording. This is pretty good but I'd like to fix this up a bit.  since I always record in .mkv format, how can I have it so that i can avoid having to type .mkv   how could I rework this alias command or something so that I can just type sreq filename or sreq /path/to/filename  and have it work as expected?


Cite footnote not showing in figure environment

For citing I'm using biblatex with the chicago style, and I want to use \autocite within the caption for a figure. However, even though the footnote number is shown within the caption, the corresponding footnote text doesn't appear on the same page nor on any page in the whole document.  I'm aware that you have to use \protect for this kind of matter, but it still doesn't seem to affect the result.  Here the simplified MWE of my LaTeX code segment:  \documentclass{report} \usepackage{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,ngerman]{babel} \usepackage{graphicx} \usepackage{varioref} \usepackage[pdfborder={0 0 0}]{hyperref} \usepackage{cleveref} \usepackage{etoolbox} \usepackage[style=authoryear-icomp,autocite=footnote]{biblatex} \usepackage{csquotes} \usepackage{lipsum}  \addbibresource{example.bib}  \begin{document}  \section{some section} \lipsum[1]  \subsection{some subsection} \begin{figure}[h!] \centering %\includegraphics[width=.5\textwidth]{...} \caption[here some text]{here some more text.\protect\autocite[Vgl.][11]{dirac1981principles}} \label{fig:figureone} \end{figure}  \end{document}   And here the according bibliography file:  % Encoding: UTF-8  @Book{dirac1981principles,   title     = {The Principles of Quantum Mechanics},   publisher = {Clarendon Press},   year      = {1981},   author    = {Paul Adrien Maurice Dirac},   series    = {International series of monographs on physics},   isbn      = {9780198520115},   keywords  = {physics}, }  @Comment{jabref-meta: databaseType:bibtex;}     I already tried the solution mentioned in the thread , and this is what I came up with:  \begin{figure}[h!]     \centering     %\includegraphics[width=.5\textwidth]{...}     \caption[here some text]{here some more text.\protect\footnotemark}     \label{fig:figureone} \end{figure} \footnotetext{\cite[Vgl.][11]{dirac1981principles}}   But this is not what I first intended, because I want to change the cite style (by the use of biblatex arguments) dynamically, without any manual interference for each occurrence of cites within figure environments.


What is the fundamental group of $(\mathbb{C} \setminus {\{0\}})~/~\{e,a\}$, where $e$ is the identity homeomorphism and $az = -\bar{z}$?  Clearly this is homeomorphic to the half cylinder , which is homotopy equivalent to the half circle.  But what is the fundamental group of the half circle?


Convergence or divergence of $\sum\limits_n(-1)^{\pi(n)}\frac1n$ where $\pi(n)$ is the number of primes less than or equal to $n$

Consider $$\sum_{n=1}^{\infty}\frac{(-1)^{\pi(n)}}{n}$$ where $\pi(n)$ is the number of primes less than or equal to $n$.  Does this sum converge or does it diverge? Are there any results related to this?


Correlated joint normal distribution: calculating a probability

Given   $$ f_{XY}(x,y) = \frac{1}{2\pi \sqrt{1-\rho^2}} \exp \left( -\frac{x^2 +y^2 - 2\rho xy}{2(1-\rho^2)} \right) $$  $Y = Z\sqrt{1-\rho^2} + \rho X$  And   $$ f_{XZ}(x,z) = \frac{1}{2\pi } \exp \left( -\frac{x^2 +z^2}{2} \right) $$  Show that $P(X>0,Y>0)= \frac{1}{4}+\frac{1}{2\pi}(\arcsin \rho) $  I'm supposed to use the fact that X and Z are independent standard normal random variables, but I don't quite understand how. Any help would be greatly appreciated.


Does walking fast prevent eggs hatching?

I have a couple of eggs that I've picked up from some Pokestops (I'm lucky enough to live above one).   I walk a lot. I get to work through a 2 mile walk / train journey every day, so I should be picking up loads of steps for the eggs I have. However, because I'm normally always running late... for everything, I have to rush everywhere, so I walk at an above average pace.   Today I've walked around 5 miles, but the game has registered 100 metres. Is this because I walk too fast, or because of something else?  It's worth pointing out that I have the app open when walking... mostly because I have to catch them all. (This made me miss a train this morning... luckily I was early :D)


UK visa refused do to lack of economic ties in the UK. What are my options?

Based on advice given on the forum. I have applied and was refused and below is the wordings of my refusal word for word.     the decision       I have refused your application for a visit visa   because i am not satisfied that you meet the requirements of   paragraphs V4.2 (a)(e). of appendix V. Immigration Rules for Visitors   because: Home Office records show that you have previously been   refused a UK visa. However each application has to be accessed based   on its merits using info and evidence submitted.      You are seeking entry into UK for 8 days to visit your   family(MOTHER, father, bro)...who are all resident in UK. I note you   also have a sister in UK.      You have stated on your application that you are employed as a   business development Exec with Snug Global Services and earn ***** per   month. You have supplied an employment letter to support this. I note   that this letter doesn't have a named signatory. The contact email for   the business is ********@gmail.com rather than an official, corporate   email account. I also note the phone numbers provided are mobile   numbers. A search through open sources has located an official website   for a business called ******* in Nigeria, however the contact details   on this website doesn't correspond with the details of the letterhead.   From the information on your application form and the documents you   have submitted, I am not satisfied that your employment and income is   as stated. I am therefore not satisfied that your economic status is   as declared.      As evidence of funds you have submitted statements of  ****bank and   F*** bank for accounts in your name. However you have not sufficiently   documented your employment or your income and the documents supplied   support the origin of these funds. I am therefore not satisfied that   these funds are genuinely available for your use or that your   financial circumstances are as stated.      Given the above I am not satisfied that your economic circumstances   are settled and that they constituent ties that tend to support your   stated intention to leave the UK.      In the light of all the above I am not satisfied as to your intentions   in wishing to travel to the UK or that you will leave the UK at the   end of your visit. Furthermore I am not satisfied that you have   sufficient funds available to cover your costs whilst in the UK with   working or accessing public funds. Your application has been refused   under paragraph v 4.2(a)(e).   The copy of my employment letter was not signed by me (this was a stupid omission on my part). The original is on my file with the company.  My question is how do I show company and my employment letter is real and what documents should be submitted to address the ECO's concerns so as not to damage my credibility.  The company is registered with CAC, and the company does have an official email address which is not on the letterhead I submitted.   The mobile phone numbers was used to register the company with the CAC, so will showing company registration and company bank statement correct the wrong impression. What can the company I work for send to support my reapplication?


Is it possible to stir-fry meat cutlets without "oil bombing" ?)

While frying in the pan, meat gives out the moisture, that causes oil to "shoot".  How do you make cutlets? And is there something, that I can add to the meat, to make water stay inside or go out slower? I've tried to add dry bread to meat, but it doesn't help. Maybe egg?


We have learned the rules concerning sequence of tenses in Reported Speech. I have one question. Is the one and only possibility according English Grammar to say or to write: She told me that he loved me. Even if I am just now reproducing the sentence which was told before one hour and I want to express the fact that she loves me constantly. Is the sentence  She told me that he loves me? in every occasion wrong?


I am triying to obtain a good calification on Page Speed test, now I've obtained 85 points but I am still on the problem of "Leverage browser caching".  This is the Page Speed test message about this problem:  Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network. Leverage browser caching for the following cacheable resources: https://cdn.syndication.twimg.com/…ollowing&lang=es&screen_names=lomasguapa (10 minutes) http://platform.twitter.com/widgets.js (30 minutes) https://apis.google.com/js/api.js (30 minutes) https://apis.google.com/js/platform.js (30 minutes) http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (60 minutes) http://pagead2.googlesyndication.com/pagead/osd.js (60 minutes) https://oauth.googleusercontent.com/…e:rpc:shindig.random:shindig.sha1.js?c=2 (60 minutes) http://stats.g.doubleclick.net/dc.js (2 hours) http://www.google-analytics.com/ga.js (2 hours)   However I have seen in many source on Internet that this solution works for this case, the solution is a modification of .htaccess file. There is the first block.  ## EXPIRES CACHING ## **<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month" </IfModule>** ## EXPIRES CACHING ##  # REST OF MY .HTACCESS # BEGIN Better WP Security Options -Indexes  Order Allow,Deny Deny from env=DenyAccess Allow from all SetEnvIF REMOTE_ADDR "^1\.234\.83\.77$" DenyAccess SetEnvIF X-FORWARDED-FOR "^1\.234\.83\.77$" DenyAccess SetEnvIF X-CLUSTER-CLIENT-IP "^1\.234\.83\.77$" DenyAccess SetEnvIF REMOTE_ADDR "^211\.110\.140\.70$" DenyAccess SetEnvIF X-FORWARDED-FOR "^211\.110\.140\.70$" DenyAccess SetEnvIF X-CLUSTER-CLIENT-IP "^211\.110\.140\.70$" DenyAccess SetEnvIF REMOTE_ADDR "^91\.200\.13\.45$" DenyAccess SetEnvIF X-FORWARDED-FOR "^91\.200\.13\.45$" DenyAccess SetEnvIF X-CLUSTER-CLIENT-IP "^91\.200\.13\.45$" DenyAccess SetEnvIF REMOTE_ADDR "^200\.27\.231\.114$" DenyAccess SetEnvIF X-FORWARDED-FOR "^200\.27\.231\.114$" DenyAccess SetEnvIF X-CLUSTER-CLIENT-IP "^200\.27\.231\.114$" DenyAccess # END Better WP Security  # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>  # END WordPress  <IfModule mod_deflate.c>     # compress text, HTML, JavaScript, CSS, and XML (for more page speed)     AddOutputFilterByType DEFLATE text/plain     AddOutputFilterByType DEFLATE text/html     AddOutputFilterByType DEFLATE text/xml     AddOutputFilterByType DEFLATE text/css     AddOutputFilterByType DEFLATE application/xml     AddOutputFilterByType DEFLATE application/xhtml+xml     AddOutputFilterByType DEFLATE application/rss+xml     AddOutputFilterByType DEFLATE application/javascript     AddOutputFilterByType DEFLATE application/x-javascript </IfModule>  # remove browser bugs (for more page speed) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent # END    The case is that solution does not work and the page speed is showing again the caching problem. I put all the .htaccess in order to give more information, may be some lines cause any king of problem.


Left a 10 pound cryovac wrapped frozen ribeye in garage for 3 hours - is it safe to eat?

I purchased a 10 lb sleeve of ribeye from a friend who works at a sausage factory. It was purchased within an hour of it being brought back from the sausage factory and it was frozen solid.  Got busy with other things when I got home and did not remember to take it out of the car & put in the fridge for three hours.  For three hours.  It's Georgia, so likely the temperature in the closed garage was around 80°  In the evening  – when I took the meat out of the car it was still frozen in the middle, but thawed everywhere else,  but still felt cold. Is it safe to cook and consume? Thanks!


embarcadero c++ 10.2.3 double comparsion

please tell me what to do in this code:  UnicodeString Str; double        x, y; double        z1, z2;    x= 2.0;   y= 5.0;    z1= x/y;   z2= x/y;    if(z1>z2)     Str= "> not ok\n";   else     Str= "> ok\n";    Application->MessageBox(Str.c_str(), L"Info", MB_OK);   The result is ">not ok". Why????  it should be z1>z2= false; but it is true.  if i use the standard compiler than it is ok. But the clang compiler give wrong result.  the disassemble using CLang compiler (gives wrong result):  Unit1.cpp.24: if(z1>z2) 00403D7B DD8568FFFFFF     fld qword ptr [ebp-$00000098] 00403D81 DFE9             fucomip st(1) 00403D83 DDD8             fstp st(0) 00403D85 0F86E7000000     jbe $00403e72 00403D8B EB00             jmp $00403d8d 00403D8D 8B45B0           mov eax,[ebp-$50]   the disassemble using Standard compiler (gives right result):  Unit1.cpp.24: if(z1>z2) 004031C7 DD45AC           fld qword ptr [ebp-$54] 004031CA DD45A4           fld qword ptr [ebp-$5c] 004031CD D9C9             fxch st(1) 004031CF DAE9             fucompp  004031D1 DFE0             fstsw ax 004031D3 F6C445           test ah,$45 004031D6 753D             jnz $00403215


I am using qgis 2.8.9 wien version. windows 10 home 64-bit operating sysytem. vector layer: Kml file,Line string CRS: WGS 84, EPSG:4326, is the base file for which buffer zone is to mark.   for the need of buffer in meters, I saved the file using "save as" option and saved it as "esri shapefile", where i changed the CRS to NAD 83/Maryland, EPSG:26985. In order to get the buffer zone in meters. After that selected VECTOR-GEOPROCESSING TOOLS-BUFFERS. In Buffer option in the slot of "BUFFER DISTANCE", I have filled 1 meter. Because i want the buffer zone of 1 meter, which is shown in below figure:  I got the buffer zone in meters but when i cross checked it, it showing the distance of 0.95m. means there is 0.05m error for 1mtr. which is shown in below figure:  For 1mtr it is 0.05m error. For 15000m its is showning much more error. Since i am doing the project of noise modeling. single meter is also important to me.   My question is why this error is occuring? what is the solution for this?


How to prove that a nilpotent matrix is not invertible?

Let $B_{nxn}$ be a nilpotent matrix. How should I go around proving that $B$ is not invertible? I was thinking this: if $B*B = 0$ , then if I rank $B$ to echelon form, I will always have two or more rows that are the same, and then because $B$ is square, it is not possible to find another matrix ($B^{-1}$)that will transform $B$ to $I_{n}$... But I don't know how to write it mathematically


why does "square one" not take an article?

Consider the next idiom:     Go back to square one   For me, as a non-native speaker, putting the in front of square one sounds equally good as not putting it at all. But, when I speak with native speakers, for them saying the before square one sounds as a broken English.  On the other hand, if I take an another example:     There are a few problems. The first one is ...   My question is, what is the difference? Why in the case of idiom the should not be said, but in the second case it has to be said?


What are the indestructible materials in DC Universe?

The strongest materials in the Marvel universe are  and . In the Star Wars universe there is , with a special resistance against energy weapons like blasters and lightsabers. There is  light, strong at high temperatures, and resistant to radiation damage.  What is the strongest material in DC?


If$$A=  \begin{bmatrix}     1 & 4   \\     2 & 3   \end{bmatrix},$$then find $A^5-4A^4+7A^3+11A^2-A-10I$ where $I$ is Identity matrix of $2^{nd}$ order.    Answer should come in terms of $A$ and $I$.   My approach: I thought it would might end up in a pattern so I found   $$A^2=\begin{bmatrix}    9 & 16   \\    8 & 17  \end{bmatrix}$$ and similarly $A^3$ but got no such pattern. I don't want to evaluate it to up to $A^5$. Any better approach or solution is much appreciated.


I made the mistake of installing Katoolin package . The problem is it botched up my Ubuntu, many packages don't work anymore. System update doesn't work anymore.   The question: is there a way to somehow uninstall this from my Ubuntu without re-installing the OS??  PS: Piece of advice to people who want to study computer security: stay away from this Katoolin tool! Think at least ten times before installing it.


Prove that the vectors are linearly independent

Show that vectors $v_{1}, v_{2}, ..., v_{n} \in V$ are linearly independent only when $v_{1}, v_{1} + v_{2}, ..., \sum_{i \in [n]} v_{i}$ are linearly independent. I know it must be true, because its the definition of linearly independent vectors, but I don't know how can I prove that.


Beamer: "No section" section; erratic behavior of "\section*{}"

I have updated to Ubuntu 18.04 and I am using TexLive 2017 from the repositories.  In my Beamer presentations, I have always used \section*{} before the last slides corresponding to acknowledgements, thank you to the audience, etc. Like this, those slides do not correspond to any section. This is detailed in .  However, now that command does not produce the desired effect. In the MWE below, the circles corresponding to the navigation on top of the slides should not be filled for the "no section" slides, but now they are filled and they screw up the navigation (which should direct to the "My Section" slides when clicking in the circles...).  Why does the \section*{} command not work correctly now? Is it deprecated now? What should be the correct way to obtain the effect it used to have? Thanks!  \documentclass{beamer}  \mode<presentation> {     \usetheme{Singapore}     \usecolortheme{orchid} }  \begin{document}  \begin{frame}[plain] \titlepage % Print the title page as the first slide \end{frame}  \section{My Section} \begin{frame} My Section slide 1 \end{frame}  \begin{frame} My Section slide 2 \end{frame}  \section*{} %"no section" section \begin{frame} No section slide 1 \end{frame}  \begin{frame} No section slide 2 \end{frame}  \end{document}


How to get just selected value from the group of elements with the same name?

I have two radio buttons with the same name but different values. I have to check before I submit my form that value selected id correct otherwise give message to user.   Here is my HTML code:        <input type="radio" name="directed" value="1" id="directed_yes">    Yes
      <input type="radio" name="directed" value="0" id="directed_no">    No   	   Here is my JQuery that i tried to use:  var directed = $('input[name=directed]').each(function(){   alert($(this).val()) });   This code gave me all values for elements with the same name, I just need selected value. After that I have to check if that value is valid before submitting the form. If anyone know how to get just selected value please let me know. Thanks.


An example where $\frac{(2m)!(2n)!}{m!n!(m + n)!}$ is the number of ways of counting something?

Prove that for all non-negative integers $m,n$, $\frac{(2m)!(2n)!}{m!n!(m + n)!}$ is an integer.  There is a answer given here to this question   I've seen how it can be proven using recurrence equations as well. When I was trying to solve this problem I was looking to represent it as the number of ways of counting something. Can anyone give such an example, thus proving the question another and very natural way?


When moving things, it almost seems like it's lagging or I'm moving in specific grids, it's hard to explain, watch the gif:


Alt+Shift to switch language conflicts with Alt+Shift+Tab for previous window

I have a fresh installation of Ubuntu 20.04. I use gnome-tweaks to map Alt+Shift to swtich language. The problem is that when I use Alt+Tab to switch window, the option to press Alt+Shift+Tab (which supposed to be "previous window") doesn't work, and instead the language input is changing. How can I resolve this conflict? I want both shortcuts to work.


I have several ESXi hosts that running vSphere version 6.0 standard licenses. Now, I have a plan to upgrade all of that to vSphere version 6.5. I'm not sure to upgrade to vSphere 6.5 for free. Can I upgrade to 6.5 for free?


Books for Advanced algebra and Advanced geometry(AMC 12)

I will be taking the American Math Contest. Various topics are covered in this test including advanced geometry and algebra. It would be great if any of you could provide books/references which contain challenging or hard problems related to advanced geometry and algebra.


My plot has two axis, one with a bar chart, the other with two line charts. I want a shared legend for all the charts now. I'm quite before the target, but the symbol for LegendS becomes a striped line - and not "minibars". How to fix that? I'm also open for other solutions without a matrix.  MWE:  \documentclass[a4paper]{article}  \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{matrix}  \begin{document}     \begin{tikzpicture}[scale=1.5]       \begin{axis}[               axis y line=left,                axis x line=bottom,               enlarge x limits=0.1,                enlarge y limits=0.08,                ylabel={Label Y1},               xlabel={LabelX},               symbolic x coords={1,2,3,4,5,6},               xtick=data,               legend columns=-1,           ]                       \addplot [ybar,draw=brown!80!black,fill=brown!20] coordinates {(1,93) (2,59.36) (3,48.43) (4,43.16) (5,39.96) (6,38.1)};           \label{pgfplots:plot1}       \end{axis}       \begin{axis}[               axis y line=right,               axis x line=none,               enlarge x limits=0.1,                ylabel={Lavel Y2},               xtick=data,           ]            \addplot coordinates {(1,0) (2,2212) (3,2453) (4,2677) (5,2872) (6,2895)};           \label{pgfplots:plot2}            \addplot coordinates {(1,0) (2,1726) (3,2238) (4,2513) (5,2641) (6,2756)};               \label{pgfplots:plot3}       \end{axis}        \matrix[           matrix of nodes,           anchor=north west,           draw,           inner sep=0.2em,           column 1/.style={nodes={anchor=center}},           column 2/.style={nodes={anchor=west},font=\strut},           draw       ]       at([xshift=-1.1cm,yshift=-1.1cm]current axis.south){           \ref{pgfplots:plot1}& LegendS\\           \ref{pgfplots:plot2}& LegendA\\           \ref{pgfplots:plot3}& LegendB\\};     \end{tikzpicture}  \end{document}


subtraction of two multivariate normal distribution

Assume that we have a $n$-dimensional vector that shows the position of a point and two multivariate normal distributions with means $\mu_1$ and $\mu_2$, and covariances $cov_1$ and $cov_2$.  I’m trying to find a formula to calculate the subtraction of the distance between that point and each of those multivariate normal distributions.   Or if let me know how can I have subtraction of two different multivariate normal distribution.   I'd be really thankful if someone explain it for me.


Assigning JSON string to apex:inputText  jQuery code:  $('*[id*=stageName]').val(JSON.stringify(final_array));   Apex & Visualforce:   public String stageName{set;get;}  <apex:inputText value="{!stageName}" id="stageName"/>   Getting below text into stageName in apex through jQuery  {     "New":["Prospect","Open","In Negotiation","Final Negotiation"],     "Readoption":["Won"],     "Rollover":["Won","Invoiced","Lost"],     "Upsell":["In Negotiation","Lost"],     "Conversion":[] }   How to convert this JSON text into apex map like Map<String,List<String>>


If $f''(a)$ exists, then $f''(a) = \lim_{h\to 0} \frac{ f(a+ h) - 2f(a) + f(a-h) }{h^2}$ without using Darboux Property

In the book of The elements of Real Analysis by Bartle, at page 220, it is asked that     If $f''(a)$ exists, then $$f''(a) = \lim_{h\to 0} \frac{ f(a+ h) -  2f(a) + f(a-h)  }{h^2}$$   I have proved a similar result for the first derivative of $f$, but I'm not able to show this result for the second derivative of $f$.  I have seen  this question, and it gives a proof for this question, but what I'm asking is that how can we prove this result without exploiting the Darboux property, and using the given hint in that question, and without using Taylor's theorem.  Edit:  Note that I want to see how can this result be obtained only using algebraic manipulations.


Recursively delete all files with a given extension

I want to delete all *.o files in a directory and its sub-directories. However, I get an error: sashoalm@aspire:~/.Workspace.OLD$ rm -r *.o rm: cannot remove `*.o': No such file or directory  On the other hand, rm *.o works, but it's not recursive.


As anyone attempted to show that QM and GR cannot be unified?

Sometimes it possible to make very general statement about functional form of things and show, for example, that QM cannot be described by the use of hidden variable (I'm not a physicist in any sense, so excuse imprecision which hopefully aren't gross misunderstanding).  As anyone ever attempted to show that it is impossible to incorporate QM and GR in a single consistent framework?


Dual monitor login screen prob: always on same monitor - Ubuntu 20.04

I use 2 monitors on Ubuntu 20.04, let's call them "Old" and "New". Sometimes I only need "New". They seem to work well with following exception: Problem:  When the computer is starting, no matter what option I use, the login screen always appears on the "Old", even if I select "New" in the "single display option". How can this be fixed?  Facts:  Just did a fresh install of Ubuntu 20.04. My monitors are both iiama. "New" is identified by the system as being monitor n°1 and "Old" as monitor n°2. Already tried setting one and then the other as the Primary Display. Already re-arranged monitors position (this was an issue on ubuntu 14.04 which was what I had) and put "New" both to the left and to the right.  Thanks to the links suggested by PRATAP I was able to solve this problem. There were several solutions but the only one that worked for me was  (quoting from the solution):  sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml   sudo chown gdm:gdm ~gdm/.config/monitors.xml  And in the /etc/gdm3/custom.conf uncomment WaylandEnable=false (basically remove the # before Wayland)  sudo gedit /etc/gdm3/custom.conf  IMPORTANT!: some of the users referred they had to go into recovery mode to revert this situation because they only got a blank screen and were unable to login. This was not my case as everything worked fine for me. For more information look at the links mentioned by PRATAP, specially the second one, there are other solutions proposed but they didn't work in my case.


Why does QgsSpatialIndex.nearestNeighbor(point, 1) sometimes return 2 lines?

I'm trying to get the closest line to a point using PyQGIS in a plugin. The active code file is this:   When I request the closest line (only 1)  nearestIds = self.spIndex.nearestNeighbor(self.feat2.geometry().centroid().asPoint(),1)   I sometimes get a list with two lines and the first one is not the closest but as far as I can see the second one is. Why is this?   Does QgsSpatialIndex use only boundingboxes for lines? How do I get the real closest line always, not only most of the time?


Prove by induction the following inequality for all n∈N

$\frac1{\sqrt{1}} + \frac1{\sqrt{2}}+\frac1{\sqrt{3}}+...+\frac1{\sqrt{x}}\ge {\sqrt{x}}$  I proved the basic case: and realize it is equal to 1, but I have absolutely no idea how to create prove the left and right side using the induction hypothesis.  Please help :) I've solved equality's before using induction, but this is the first time I've done an inequality, and although I'm sure the process is fairly similar, I think the square root is messing me up.


How to add a Ø to my bibliography from Jabref?

So I added the character for his name in Jabref just fine but when I typeset my document, the bibliography just completely omits the letter. His name is Østby and the bibliography just says "stby".  Thank you!