Is it possible to set session in wordpress. If yes can you please tell how to do it? My sample code is.  &lt;?php session_start();  if(!isset($_SESSION['impression'])) {     $_SESSION['impression'] = 100;   }else {     if($_SESSION['impression']&lt;=0)         $_SESSION['impression'] = 100; }  echo $_SESSION['impression']    = $_SESSION['impression'] -1;  ?&gt;
I'm wondering why WordPress does not support sessions and many people out there claim that putting the following code in functions.php might not be a good idea (it in fact works for me but returns PHP warnings, too):  function cp_admin_init() { if (!session_id()) session_start(); }  add_action(‘init’, ‘cp_admin_init’);   Is it good idea to enable sessions in WordPress? What would be the correct way to do this?
About 'start' and 'begin' Are 'begin' and 'start' interchangeable? Both &quot;This is a new start&quot; and &quot;This is a new beginning&quot; work, right? Then during games, they say &quot;Let's start&quot;, but I never heard &quot;Let's begin&quot;. So is there supposed to be a difference? And then one guy said this &quot;They could not begin to start a conversation&quot;. What is this supposed to mean? Is it correct? How would I be able to get N results for several groups in an oracle query.  For example, given the following table:  |--------+------------+------------| | emp_id | name       | occupation | |--------+------------+------------| |      1 | John Smith | Accountant | |      2 | Jane Doe   | Engineer   | |      3 | Jack Black | Funnyman   | |--------+------------+------------|   There are many more rows with more occupations.  I would like to get three employees (lets say) from each occupation.  Is there a way to do this without using a subquery? Here is the situation that came up:  Player 1 controls a creature enchanted with  and two +1/+1 counters. On Player 2's turn, they cast  to take control of the creature, and then attack with it. The attack triggers the Ordeal, putting another +1/+1 counter on it. Now that it has three counters, it is sacrificed and a player gains 10 life.  Which player sacrifices the enchantment and gains 10 life? The controller of the creature (Player 2) or the player who cast the enchantment (Player 1)? 'setenv' command not working on tcsh shell when called explicitly I can run setenv command just fine in my tcsh shell like this:  echo $0 /usr/bin/tcsh echo $SHELL /usr/bin/tcsh setenv START_TIME `date +%s` echo $START_TIME 1499355967   But, whenever I run it explicitly like shown below, it doesn't work. I need to do this because I have to specify shell when executing it via python subprocess call, otherwise it will call a sh shell as default.  /usr/bin/tcsh -i -f -c 'setenv START_TIME `date +%s`' echo $START_TIME START_TIME: Undefined variable.   What's the problem here? I searched for this issue online, but couldn't find any issue similar to this. This is extremely frustrating. Plotting several 2d functions in a 3d graph I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if pgfplots is actually the right package or I should rely on something else e.g. TikZ.   Since I don't really know where to start, I would appreciate any piece of code that points me in the right direction.    EDIT  Here is some dummy data for the plots.  plot1   plot2   plot3   plot4 0       0       0       0 3.466   2.058   0       0 4.262   2.976   0.001   0 3.822   3.168   0.006   0.008 2.953   2.936   0.019   0.063 2.065   2.492   0.046   0.265 1.332   1.977   0.092   0.734 0.797   1.478   0.164   1.508 0.443   1.045   0.268   2.44 0.228   0.698   0.412   3.219 0.107   0.438   0.598   3.524 0.046   0.256   0.831   3.219 0.017   0.138   1.109   2.44 0.006   0.067   1.429   1.508 0.002   0.029   1.78    0.734 0       0.01    2.141   0.265 0       0.003   2.479   0.063 0       0.001   2.736   0.008 0       0       2.808   0 0       0       2.465   0 0       0       0       0 How to catch creation of DOM elements and manipulate them with jQuery A piecewise $C^1$ curve has Jordan measure zero. $\newcommand{\Reals}{\mathbb{R}}\gamma:[0,1]\to \Reals^2$ is an injective parametrization of a curve $\Gamma$, which is piecewise $C^1$ and the length of the curve is $L(\Gamma_k)&lt;\infty$.   1.1.: Show that for every $n\in N$ there is a decomposition $0=t_0&lt;t_1&lt; \dots &lt;t_n=1$ of $[0,1]$ so that $L(\Gamma_k) = \frac{L}{n}$ for $k=1,\dots ,n$ and $\Gamma_k=\operatorname{Im}(\gamma_k)$, $\gamma_k=\gamma|_{[t_{k-1},t_k]}$.   1.2.: Show that you can cover $\Gamma$ with a system of spheres of radius $\frac{L}{n}$.   1.3.: Use 1.2. and 1.3. to show that $\Gamma$ has Jordan measure zero.   I wasn't there when they discussed when a function has Jordan measure zero  and how those things correlate with this exercise so if someone could give me some hints that would be great. If G is not commutative, then is there always a subgroup that is not a normal subgroup? I have to prove that:     $$\sum_{k=0}^{n} {{m+k} \choose{m}} = { m+n+1 \choose m+1 }$$   I tried to open up the right side with Pascal's definition that: $$ { n \choose k} = {n-1 \choose {k}} + {n-1 \choose {k-1}}$$  Here is what I came up with, and I am sure it is wrong because it does not equal the left side:  $$ {m+n+1 \choose m+1} = {m+n \choose m+1} + {m+n \choose m} = ... ={m+n \choose m+1} + {m+n-1 \choose m} + {m+n-2 \choose m-1} + ... + {m \choose m+1} = \sum_{k=0}^{n} {m+k \choose m+k-n+1 }  $$  Which, again, probably is wrong because it is not equal $\sum_{k=0}^{n} { m+k \choose m}$. Any help is appreciated How to tell whether two graphs are isomorphic? Freeman and Tukey interval If $Y$ is Poisson$(\lambda)$ distributed, how do we obtain this confidence interval for $\lambda$:  $$ \left (\frac{(\sqrt Y+\sqrt{Y + 1}-z_{(α⁄2)} )^2 - 1}{4},\  \frac{(\sqrt Y+\sqrt{Y  +1}+z_{(α⁄2)} )^2 - 1}{4} \right ) $$ I'm trying to search and replace a string in all files matched by grep: grep -n 'foo' * will give me output in the form: [filename]:[line number]:[text]  For each file returned by grep, I'd like to modify the file by replacing foo with bar. Does this double sum $\sum_{m=0}^\infty \sum_{n=0}^\infty \frac{m+n+mn}{2^m(2^m+2^n)}$ converge? Like the ModelBuilder of ArcGIS Desktop to run simultaneous geoprocessing tools, is there any model builder available in QGIS? Get a generic method without using GetMethods I want to get the method System.Linq.Queryable.OrderyBy&lt;T, TKey&gt;(the IQueryable&lt;T&gt; source, Expression&lt;Func&lt;T,TKey&gt;&gt; keySelector) method, but I keep coming up with nulls.  var type = typeof(T); var propertyInfo = type.GetProperty(group.PropertyName); var propertyType = propertyInfo.PropertyType;  var sorterType = typeof(Func&lt;,&gt;).MakeGenericType(type, propertyType); var expressionType = typeof(Expression&lt;&gt;).MakeGenericType(sorterType);  var queryType = typeof(IQueryable&lt;T&gt;);  var orderBy = typeof(System.Linq.Queryable).GetMethod("OrderBy", new[] { queryType, expressionType }); /// is always null.   Does anyone have any insight? I would prefer to not loop through the GetMethods result. Set margins in maketitle Is it possible to change the margins in make title, so they match the margins of the document?  I have created the following modification to the \maketitle. I would like everything to align to at the same left margin.    \documentclass[a4paper]{article} %=============================================== % Title and author \makeatletter \def\@maketitle{%   \newpage   \vspace*{-\topskip}      % remove the initial space    \flushleft Incomplete draft. Please do not cite or quote without premission   \vskip 2em   {}   \begingroup\flushleft    % instead of \begin{center}   \let \footnote \thanks   \hrule height \z@        % to avoid the insertion of lineskip glue     {\LARGE \protect\textbf{\@title} \par}%     \vskip 1.5em     {\large       \lineskip .5em          \@author         \par}%     \vskip 1em     {\normalfont       Last updated on \@date}   \par\endgroup            % instead of \end{center}   \vskip 1.5em             % &lt;--- modify this to adjust the separation } \makeatother %============================================== \title{Physician Information Acquisition In a Dynamic Setting} %\email{rud} \author{ \large {\Large Rud Faden} \\ \textit{\normalfont University of Copenhagen} \\ \textit{{\small \href{mailto:rudfaden@gmail.com}{rudfaden@gmail.com}}} } \date{\today} % no date \usepackage{hyperref} \begin{document} \maketitle \abstract{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui ocia deserunt mollit anim id est laborum.}    \section{First} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \end{document} I want to draw a TikZ matrix with its border and I would like to define the distance between most external matrix nodes and matrix border. Something like a matrix inner sep. If I change inner sep in matrix options declaration, all nodes inside the matrix also change its inner separation.      I know how to do it with fit library. I just want to know if its possible without it. $f$ differentiable except in $1$ point Entire function bounded by a polynomial is a polynomial Suppose that an entire function $f(z)$ satisfies $\left|f(z)\right|\leq k\left|z\right|^n$ for sufficiently large $\left|z\right|$, where $n\in\mathbb{Z^+}$ and $k&gt;0$ is constant. Show that $f$ is a polynomial of degree at most $n$. Let $f:\mathbb R \to \mathbb R$ be a continuous function such that $f(f(f(x)))=x,\forall x \in \mathbb R$ , then is it true that $f(x)=x , \forall x \in \mathbb R$ ? I can see that $f$ is bijective , hence strictly monotone . But I cannot progress further . Please help. Thanks in advance