How to use join() function in a Smarty template?
How to convert an array into comma separated strings in smarty template?
Deleting external/auxiliary files? Is there an image editor like Windows' Paint for OS X? I tried out several image editors mentioned on  but some of them (like  and ) were very disappointing. These apps were too simple and low level.  What do you suggest for a (preferably free) image editor on OS X?  P.S: I was using  on Linux and also know that it was released for OS X too, but I want to find new good applications. Convergence of $\int_0^\infty \sin(t)/t^\gamma \mathrm{d}t$ For what values of $\gamma\geq 0$ does the improper integral $$\int_0^\infty \frac{\sin(t)}{t^\gamma} \mathrm{d}t$$ converge?   In order to avoid two "critical points" $0$ and $+\infty$ I've thought that it would be easier to test the convergence of the sum (is this coherent?): $$ \int_0^1 \frac{\sin(t)}{t^\gamma}\mathrm{d}t + \int_1^\infty \frac{\sin(t)}{t^\gamma}\mathrm{d}t. $$ For the second integral, it converges if $\gamma &gt; 1$ (comparision) and also converges if $0 &lt;\gamma \leq 1$. I'm stuck on proving the last part and the fact that the first integral converges for $\gamma &lt; 2$. Any help would be appreciated. Thanks in advance.  PD: I've checked the answers for  but I would not like to solve this integral using $(n\pi,(n+1)\pi)$ intervals. In ideal gas model,  is the measure of average kinetic energy of the gas molecules. If by some means the gas particles are accelerated to a very high speed in one direction, KE certainly increased, can we say the gas becomes hotter? Do we need to distinguish the random vibration KE and KE in one direction?  Furthermore, if we accelerate a block of metal with ultrasonic vibrator so that the metal is vibrating in very high speed with cyclic motion, can we say the metal is hot when it is moving but suddenly become much cooler when the vibration stop? Do paths in Adobe Photoshop have to be closed? I am working to convert a png to a vector graphic.  I am outlining the image using the pen tool.  Photoshop insists that the pen tool produce closed loops in order for me to use the "Stroke path..." tool.  Why is this? Manganese has more unpaired electrons than Iron so why is Iron ferromagnetic Manganese paramagnetic? Manganese has five unpaired electrons, but Iron has four, then why is Iron ferromagnetic and Manganese paramagnetic? What's that property I'm missing? Finding the limit of $\frac{Q(n)}{P(n)}$ where $Q,P$ are polynomials Suppose that $$Q(x)=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots+a_{1}x+a_{0} $$and $$P(x)=b_{m}x^{m}+b_{m-1}x^{m-1}+\cdots+b_{1}x+b_{0}.$$ How do I find $$\lim_{x\rightarrow\infty}\frac{Q(x)}{P(x)}$$ and what does the sequence $$\frac{Q(k)}{P(k)}$$ converge to?  For example, how would I find what the sequence $$\frac{8k^2+2k-100}{3k^2+2k+1}$$ converges to?  Or what is $$\lim_{x\rightarrow\infty}\frac{3x+5}{-2x+9}?$$   This is being asked in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: . Show sub reasons in close review queue Currently close vote review queue shows the top level close reason in the header, but some close reasons, for instance, off topic have very different sub reasons. For instance, "demonstrate minimal understanding" is different from "This question belongs on a different site in the stack exchange network".  It would be nice if sub close reasons were also shown. How do I get HTML5 h.264 Video working on Firefox? According the the , h.264 video should now be working in Linux.  It does also say the appropriate gstreamer plug-ins need to be installed.  Does anyone know what these are?    I used this  and the  to verify that h.264 support works in Google Chrome on my Ubuntu 12.04 64-bit, but does not work on Firefox 26. Is there a way to show statistic info? What should I do if I lost money in a scam? I live in New Jersey and my son wanted to order some toys from this guy who said he makes them in his house and he could give him the best deal, but before he could send these toys he needed my 16 year old son to put $200 into his bank account. The guy then gave my son his wells Fargo bank account info and told him as soon he deposits the money he will ship his toys. Well, that never happened.  My son called the guy up and he told my son, “I’m only the middle guy, and my boss is in Nigeria and you need to put another $200 in my account because now I have to ship the toys from elsewhere.” So my son deposited another 200 dollars into this guys bank account.  My son has sent these jerks a total of $650. Is there anything I can do to these individuals? At this point even if I don’t get the money back it’s okay but I don’t want this happening to other kids and I want to teach these guys a lesson that you’re not above the law. The guy is still calling my son up saying that he is pissed off that he didn’t get more money.  What can I do now? Reading a 5 Band resistor with Gold as a middle band? Can anyone read the resistor that the arrow is pointing to?  From what I know you can not have a gold band as a number and if I am reading it correctly it has a tolerance of 0 which does not seem right. Prove that $\lambda = 0$ is an eigenvalue if and only if A is singular. show that $$\lim_{n\to \infty}\sin{(n^m)}$$  divergent,where $m\in N^{+}$  I have kown $$\lim_{n\to\infty}\sin{n^2}$$  to be divergent and dense in $[-1,1]$. This is very  famous problem,the problem is first is post $AMM$( The American Mathematical Monthly,1970-1975) problem,and after some years  $AMM$ post $\sin{(n^{14})}$ in $[-1,1]$ was dense? and this is open problem.so I Guess  $$\sin{(n^m)}$$ is dense in $[-1,1]$. I am developing my first 2D game in Unity and I have come across what seems an important question.  How do I handle data between scenes?  There seems to be different answers to this:   Someone mention using , while other people told me this should be used to store other things like screen brightness and so on. Someone told me that the best way was to make sure to write everything into a savegame everytime that I changed scenes, and to make sure that when the new scene loads, get the info from the savegame again. This seemed to me wasteful in performance. Was I wrong? The other solution, which is the one I have implemented so far is to have a global game object that isn't destroyed between scenes, handling all the data between scenes. So when the game starts, I load a Start Scene where this object is loaded. After this ends, it loads the first real game scene, usually a main menu.   This is my implementation:  using UnityEngine; using UnityEngine.UI; using System.Collections;  public class GameController : MonoBehaviour {      // Make global     public static GameController Instance {         get;         set;     }      void Awake () {         DontDestroyOnLoad (transform.gameObject);         Instance = this;     }      void Start() {         //Load first game scene (probably main menu)         Application.LoadLevel(2);     }      // Data persisted between scenes     public int exp = 0;     public int armor = 0;     public int weapon = 0;     //... }   This object can be handled on my other classes like this:  private GameController gameController = GameController.Instance;   While this has worked so far, it presents me with one big problem: If I want to load directly a scene, let's say for instance the final level of the game, I can't load it directly, since that scene does not contain this global game object.  Am I handling this problem the wrong way? Are there better practices for this kind of challenge? I would love to hear your opinions, thoughts and suggestions on this issue.  Thanks On the existence of a continuous bijection $f\colon [0,1]\to [0,1]\times [0,1]$ Let $f$ be a continuous function on $[0,1]$ such that $f([0,1])=[0,1]\times[0,1].$ Then show that $f$ is not one-one.  Hints will be appreciated. How to delete a file with a path too long to be deleted I was working with some computer vision source code I found and didn't realize that it creates a cache file that has a VERY LONG name and now I can't delete the 2 of them. I tried to rename it to a shorter name but I can't do anything to the file, I also tried to restart my computer and see if it would just go away. The error message says:  Destination Path Too Long. The file name(s) would be too long for the destination folder. You can shorten file name and try again, or try a location that has a shorter path.   How can I delete the files in this case? What's wrong with this .desktop file? Show that $a(-1) = (-1)a = -a $. In a ring $R$ with identity 1, show that $$a(-1) = (-1)a = -a \qquad\forall\, a \in R$$ I have started with $a + (-a) = 0$ but cant proceed from here. I've always been one to simply use:  List&lt;String&gt; names = new ArrayList&lt;&gt;();   I use the interface as the type name for portability, so that when I ask questions such as these I can rework my code.    When should  be used over  and vice-versa?