/e modifier depreciated use preg_replace_callback instead PHP
Replace preg_replace() e modifier with preg_replace_callback
Knots in Smoothing Splines In , there's this line under the section describing Smoothing Spline's tuning parameter $\lambda$:       In fitting a smoothing spline, we do not need to select the number or   location of knots - there will be a knot at each training observation,   $x_1,...,x_n$.   But, in my opinion wouldn't that be overfitting?     Reason for such a claim: If there are more points which act as knots in the Spline fit, then the range for each slot for fitting is very small. Thus each change in the data, is recognized and imititated in the fit. Thus fitting the changes, which are random, and do not mean anything. Thus overfitting.    Possibilities: We know that cubic splines and Smoothing splines are different. The basic differences are:     Smoothing splines try to minimize the function $$\sum_{i=1}^n(y_i-g(x_i))^2+\lambda\int g''(t)^2dt$$ Smoothing splines shrink the parameters.   Moreover, Smoothing Splines are basically natural cubic splines, and thus they're smooth too.  So, how can these differences( and properties) save the Smoothing Spline from overfitting? Is there anything else that I'm missing here? Proving Pascal's Rule : ${{n} \choose {r}}={{n-1} \choose {r-1}}+{{n-1} \choose r}$ when $1\leq r\leq n$ I'm trying to prove that ${n \choose r}$ is equal to ${{n-1} \choose {r-1}}+{{n-1} \choose r}$ when $1\leq r\leq n$.  I suppose I could use the counting rules in probability, perhaps combination= ${{n} \choose {r}}=\frac{n!}{r!(n-r!)}$.  I want to see an actual proof behind this equation.  Does anyone have any ideas? I have recently created a logo. I have seen an online trend of showing off a logo in a realistic environment, illustrating possible use cases of the logo.  An example of this can be seen here, with the original logo at the bottom and a 3D mockup at the top:    How can I create such a mockup? Where can I see the source code of the Sun JDK? I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this? How do I set up a supply line? I'm planning to fly from Ulaanbaatar to Melbourne via Seoul (and Kuala Lumpur).  However, can I actually enter South Korea using this visa waiver? I'm hoping to meet a friend there for a few hours before flying. Also, would traveling via Malaysia affect this policy?  Transit tourists bound for another country Eligible countries  Applicable to all countries (save for Macedonia, Cuba, Syria, Sudan and Iran) that are not granted visa-free entry into Korea.  Applicable to…  Those with a visa (excluding Japanses Group Visa, excluding e-visa) or a re-entry permit for U.S., Japan, Canada, Australia, or New Zealand (5 countries) and traveling to any one of those countries through Korea.  Those traveling from any one of the five countries mentioned above, whose final destination is not Korea.  However, please note that the first bullet points are not applicable to those travelling to/from Guam and Saipan, which are unincorporated territories of the United States.   Requirements  Must have a confirmed onward flight ticket for departure within 30 days after entering Korea, in addition to having no record of criminal offence in the five countries mentioned above. I want to append several shapefiles in QGIS. The ftools 0.6.1 add-on is installed.   But under Vektor>Datenmanagement-Werkzeuge>Shapedateien zu einer zusammenführen (=append shapefiles) is only the possiblility to choose the Eingabedatei (input file) and the Ausgabedatei (output file) but not a further Datei (file) for the append itself? (Even though there are  several shapefiles in the same folder)  //Furthermore the icon "In neue Projektion exportieren" (export to new projection) is also not appearing under the: Vektor>Datenmanagement-Werkzeuge? Do I need a further add-on?//  Has anyone an idea why I can't choose a shapefile for the appending?  Thanks in advance! phil In my preamble, you'll find:  \renewcommand{\baselinestretch}{1} \renewcommand{\familydefault}{\sfdefault} \usepackage[sfmath]{kpfonts} \usepackage[mathrmOrig]{sfmath} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{animate} \usepackage{anysize} \usepackage{arcs} \usepackage{array} \usepackage[scale=0]{background} \usepackage{blindtext} \usepackage{calc} \usepackage{cancel} \usepackage{chngcntr} \usepackage{CJK} \usepackage{CJKspace} \usepackage{CJKpunct} \usepackage{colortbl} \usepackage{enumitem} \usepackage{epstopdf} \usepackage{etoolbox} \usepackage{fancybox} \usepackage{fancyhdr} \usepackage{float} \usepackage{framed} \usepackage{graphicx} \usepackage{hyphenat} \usepackage{ifthen} \usepackage{latexsym} \usepackage{lmodern} \usepackage{multicol} \usepackage{multirow} \usepackage{mwe} \usepackage{pgffor} \usepackage{rotating} \usepackage{tabularx} \usepackage{textcomp} \usepackage{tgheros,tgtermes,tgcursor} \usepackage{tikz} \usepackage{times} \usepackage{tipa} \usepackage{varwidth} \usepackage{wasysym} \usepackage{wboiboites} \usepackage[abs]{overpic} \usepackage[breaklinks,colorlinks=true,linkcolor=red,citecolor=red, urlcolor=blue]{hyperref} \usepackage[framemethod=TikZ]{mdframed} \usepackage[breakable, theorems, skins]{tcolorbox,empheq} \usepackage[default]{gillius} \usepackage[document]{ragged2e} \usepackage[latin1]{inputenc} \usepackage[spanish]{babel} \usepackage[T1]{fontenc} \usepackage[total={18.59cm,26.5cm},left=1.5cm,top=2.5cm]{geometry} \usetikzlibrary{matrix,arrows, positioning,shadows,shadings,backgrounds,calc, shapes, tikzmark} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes.symbols} \usetikzlibrary{patterns,fadings} \tcbuselibrary{skins,breakable,listings,theorems}    I'm trying to draw an arrow for X axis and Y axis.   \begin{tikzpicture} \draw[yellow!10, fill=blue!5](-1, -1) rectangle (7, 5); \draw[dotted] (-0.75,-0.75) grid (6.75,4.75); \node[below] at (-0.25,0){$O$}; \draw[-&gt;,black, thick] (-0.75,0)--(6.75,0); \end{tikzpicture}   But I get this error:    Additionally, if I remove -> from the options of \draw the tikz picture compiles normally. Block specific URL on web browsers I want to block certain URLs on browsers. I don't want to block whole site. For example, I want to block , but not whole  domain. Is there any way I can do it? What dried food can I take across the American border from Canada? We will be driving from Banff to Glacier National Park while on our camping trip and I was told to be careful with taking food across the border. We don't eat meat so that's one less issue and I already know that many fresh fruits/veggies can get complicated so I'm only thinking of taking dry stuff across (mostly grains but possibly also dried veggies).  My plan at first was to stock up at BulkBarn in Calgary since they have tons of stuff and you can just take what you need but I'm afraid that since the packaging is generic and unsealed that it might cause more problems. What are the criteria to be able to take dried food across the border? What is the British English way of referring to a source in-text.  Is it plural because there are two authors, like this:         X and Y (2011) describe ...   Or is it singular because you are referring to a singular source, like this:     X and Y (2011) describes...   So what I am asking is whether you refer to the source or to the authors? A finite, cancellative semigroup is a group Let $G$ be a finite, nonempty set with an operation $*$ such that   $G$ is closed under $*$ and $*$ is associative Given $a,b,c \in G$ with $a*b=a*c$, then $b=c$. Given $a,b,c \in G$ with $b*a=c*a$, then $b=c$.   I want to prove that $G$ is a group, but I don't know how to show that there exists an identity $e\in  G$ such that $e*x=x$ and $x*e=x$ $\forall x \in G$. I also don't know how to show that $\forall$ x $\in G$ there exists a $y \in G$ such that $y*x=e$ and $x*y=e$. How do I do this? Alignment of numbers on the individual bars How do I transfer a file to my server using PuTTY? Does it make sense to combine PCA and LDA? Assume I have a dataset for a supervised statistical classification task, e.g., via a Bayes' classifier. This dataset consists of 20 features and I want to boil it down to 2 features via dimensionality reduction techniques such as Principal Component Analysis (PCA) and/or Linear Discriminant Analysis (LDA).  Both techniques are projecting the data onto a smaller feature subspace: with PCA, I would find the directions (components) that maximize the variance in the dataset (without considering the class labels), and with LDA I would have the components that maximize the between-class separation.  Now, I am wondering if, how, and why these techniques can be combined and if it makes sense.  For example:   transforming the dataset via PCA and projecting it onto a new 2D subspace transforming (the already PCA-transformed) dataset via LDA for max. in-class separation   or    skipping the PCA step and using the top 2 components from a LDA.   or any other combination that makes sense. Copy a large data from sql query result In my sql server 2008, after running the query the data return is very huge say in millions. I tried copying but it gives an exception sql memory error. Can you let us know how can i copy the entire data and paste it into excel.  I don't want to export it to txt file as the data is not getting aligned. So i want to manually copy and paste it into excel. Please let me know the solution for thhis How to find image coordinates of the rendered vertex? I have a simple mesh of a cube.  I would like to know what are the coordinates of each vertex in the rendered image (i.e. for each 3d vertex I'd like to know it's pixel coordinates).  Is there a way to do this?  Clarification:  I'm experimenting with a pose estimation algorithm (i.e. finding out the 3d pose of the object) from a (set of) 2d image(s).  Instead of taking an image of a real object with a real camera I synthetically render the image of a cube using blender.  In this way I know the pose of the object and the intrinsics of the camera, so I can easily validate the results of the pose estimation algorithm. Pose estimation algorithms usually require to provide them with world points on the object and the corresponding image points.  So what I'm looking for is a way to produce a dump of correspondences of the 3d point &lt;--> image point as a byproduct of the rendering procedure. Thanks, Alex I'm trying to run an interactive command through paramiko.  The cmd execution tries to prompt for a password but I do not know how to supply the password through paramiko's exec_command and the execution hangs.  Is there a way to send values to the terminal if a cmd execution expects input interactively?  ssh = paramiko.SSHClient() ssh.connect(server, username=username, password=password) ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command("psql -U factory -d factory -f /tmp/data.sql")   Does anyone know how this can addressed? Thank you. How can I find $f(0)$, $f'(0)$, and $f'(x)$ given that  $f(x+y)=f(x)+f(y)+x^2y+xy^2$  and  $\lim_{x\to0}\frac{f(x)}{x}=1$.