How to replicate background-attachment fixed on iOS
Fixed background image with ios7
Will my passport number change when I renew it? How force Chrome to use google.com search engine without https Chrome's default search engine is .  How we can force chrome to use  without https?  I need a solution that allows proxies to rewrite my URLs, but https currently makes this impossible... Calling PHP functions within HEREDOC strings In PHP, the HEREDOC string declarations are really useful for outputting a block of html.  You can have it parse in variables just by prefixing them with $, but for more complicated syntax (like $var[2][3]), you have to put your expression inside {} braces.  In PHP 5, it is possible to actually make function calls within {} braces inside a HEREDOC string, but you have to go through a bit of work.  The function name itself has to be stored in a variable, and you have to call it like it is a dynamically-named function.  For example:  $fn = 'testfunction'; function testfunction() { return 'ok'; } $string = &lt;&lt;&lt; heredoc plain text and now a function: {$fn()} heredoc;   As you can see, this is a bit more messy than just:  $string = &lt;&lt;&lt; heredoc plain text and now a function: {testfunction()} heredoc;   There are other ways besides the first code example, such as breaking out of the HEREDOC to call the function, or reversing the issue and doing something like:  ?&gt; &lt;!-- directly output html and only breaking into php for the function --&gt; plain text and now a function: &lt;?PHP print testfunction(); ?&gt;   The latter has the disadvantage that the output is directly put into the output stream (unless I'm using output buffering), which might not be what I want.  So, the essence of my question is: is there a more elegant way to approach this?  Edit based on responses: It certainly does seem like some kind of template engine would make my life much easier, but it would require me basically invert my usual PHP style.  Not that that's a bad thing, but it explains my inertia..  I'm up for figuring out ways to make life easier though, so I'm looking into templates now. Deleting files from Remote FTP-Server older than x days i've got a remote FTP server where i store some backups via cronjob.  The Problem is that i only got a little amount of space so im doing incremental backups. I want to keep the backups about 14 days.  I don't have any other access to the server except FTP and i don't now how to delete files older than x days. Every file got a name with a date in it  yxzNamezxy-date-y-m-d.tar.bz2 (datev-20100111.tar.bz2(   Hope to get some help here.  Cheers and thanks for the hopefully coming answeres,  Dennis  /Edit  I'm trying to use the curl thing which is mantioned in an answere with this part of code  curl ftp://$FTP_SERVER --user $FTP_USER:$FTP_PASS --list-only &gt; files.tmp declare -a aFiles let iCount=0 exec &lt; files.tmp while read sLine do         aFiles[$iCount]=$sLine         ((iCount++)) done  echo -e "\n Files: \n\n\n" echo ${aFiles[@]}  echo -e "\nfor ...\n\n\n" for sFile in $aFiles do         echo -e "\nFile:" $sFile done   but the secound loop doesn't give me more than 1 filename  Cheers,  Dennis Apache 2.4 - 403 HTTP status code There are lots of questions tagged  that don't have a  response.  How do we interpret this? Is it because they are declined by default? We just have to wait for a response (the team is very busy)? Is Jeff the only one that reviews this questions?  I suppose the ones that have negative votes may (or may not) be declined by default, but there are quite a few with some to a lot upvotes that should have an official answer. How to find python installation directory on Ubuntu I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path in Ubuntu shell?  Is there any way I can let the shell know/choose at runtime which python version is to be used for further code execution?  Are there any environment variables and search path kind of things in Ubuntu Linux as well? Custom first page with fancyhdr I'm using the package fancyhdr to format my footers and headers, with my name in the header and a n of m pages format for the footer. Like so:  \pagestyle{fancy} \fancyhf{} % clear all header and footer fields \fancyhead[C]{Name} \fancyfoot[C]{\footnotesize Page \thepage\ of \pageref{LastPage}}   By default, the fancy page style only affects the pages after the first page. I know I can set the first page to the fancy page style using \thispagestyle, but I only want the first page to use the footer, not the header. Is there a way to create a custom style that just the first page will use? 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. Wacom Graphics Tablet CTH-480 / CTL-480 Not Detected In Ubuntu 13.10 My Wacom tablet (CTH-480) is not detected by the Wacom Tablet option under settings. The Tablet shows up when I run lsusb but does not show up under settings. Again Thanks. Calculating grid convergence (True North to Grid North) I would like to know how to calculate the grid convergence angle between True North and Grid North for UTM maps. I am using ArcGIS 10.0 (ArcView licence). and have used the  tool from the Cartography toolbox. However, I would like to know how to calculate this angle myself (using Excel) to compare against the ArcGIS result? How can I test whether a command's output is an empty string while not   interfering with buffering?  Example:  command | ??? if [ $? = 0 ] &amp;&amp; [ -n "$output_from_command"]; then    ...   I want the output from the code above to be the same as when running command. semi filled circle Suffixes indicating people and language of country vary by country:  _an: American, German, Italian, Belgian, Australian, Russian, Ukrainian, Korean,  Mexican, Brazilian, Chilean, Argentinean, Indonesian, Malaysian, Iranian, Egyptian, Somalian, Palestinian  _sh: English, British, Polish, Danish, Swedish, Turkish,    _ch: French, Dutch  _ese: Chinese, Taiwanese, Japanese, Vietnamese, Portuguese  _no: Filipino, Latino  _i: Israeli  _: Thai  Among the above, _an seems to outnumber other suffixes.  Are there any simple rule to govern appropriation of suffix turning a country name into adjective, indicating people and language of countries in the world in terms of say, region, race, or cultural background? Or is it just discretional? What is DOCTYPE? Getting the class name of an instance? How do I find out a name of class that created an instance of an object in Python if the function I am doing this from is the base class of which the class of the instance has been derived?  Was thinking maybe  might have helped me out here, but it doesn't seem to give me what I want. And short of parsing the __class__ member, I'm not sure how to get at this information. Can matter really fall through an event horizon? What would happen if two wizards made each other a Horcrux? Would they be invincible? How would you kill one of them? Presentation of SL$(n,\mathbb{Z}_p)$ I know a presentation of the special linear group SL$(2,3)$(). My question is that-     Can we give a presentation for SL$(n,\mathbb{Z}_p)$ in general or in more general can we  give a presentation for SL$(n,\mathbb{F})$,where $\mathbb{F}$ is field.   As J.P. Serre had given presentation for SL$(2,\mathbb{Z})$   $$\mathrm{SL}_2(\mathbb{Z}) = \langle \,S, T \mid S^4 = 1, (ST)^3 = S^2 \,\rangle$$ where, \begin{align}     S &amp;=     \begin{pmatrix}     \phantom{-}0&amp; 1 \\ -1 &amp; 0     \end{pmatrix},     &amp;     T &amp;=      \begin{pmatrix}     1 &amp; 0 \\ 1 &amp; 1     \end{pmatrix}. \end{align} I wants it to be more general. Font characters displayed as squares in Ubuntu 18.04