.htaccess remove .php extension from URL
Remove .php extension with .htaccess
Recommendations on a free library to be used for zipping files I need to zip and password-protect a file. Is there a good (free) library for this?  This needs to be opened by a third party, so the password protection needs to work with standard tools. Reference sObject Fields dynamically from a string value Is it possible to reference the fields of an sObject (opportunity in this example) dynamically from a string value? For example, take the following code:  for(Opportunity o: oppList) {       for(String s : strList) {            // I'd like to set the opportunity field values based on the string             // value that contains the API name of the opportunity field       }  }  So, the variable strList contains the opportunity API field names. I'm trying to clear some fields on the opportunity in a before update trigger, but I have to access the field names dynamically in the strList. Why should we typedef a struct so often in C? How do you use plural or singular form of an adjective? So I was taught that you should almost always use singular form of an adjective instead of plural form. But recently, I've seen people using plural form and it sounds quite weird and I don't know if it is correct.  For example,   "Salary tax" instead of "Salaries tax" "Office supplies" instead of "Offices supplies" "Product demo" instead of "Product demo"   In the above cases, the word "Salary" is used as an adjective to describe the type of "tax", so it will be in singular form. But I saw people using salaries tax and not sure if it is grammatical.  So my question is if there are any general rules on how to use the singular/plural form of an adjective? Arriving at a different port of entry in the same state in USA? I am a girl in my early twenties traveling to USA from India and in my visa application I have provided the contact address for a relative in San Francisco, and their invitation letter. I would like to visit LA first. Will I face problems during immigration if I land in LA (with an immediate on wards ticket to SF)? I dont plan to get on the flight from LA to SFO.  Initially I was planning to fly to SFO from India and then fly to LA immediately after completing immigration at SFO airport. How to Combine two Normal Maps? I made a high poly model and then baked its textures onto a low poly model. Now I want to give another normal map's details to the model. How can this be done? Which one is correct: '3 hour journey' or a '3-hour journey'? Which one of the following is correct (bold part)?      It took us quite a long time to get here. It was 3 hour journey.   or     It took us quite a long time to get here. It was a 3-hour journey. How do I backup and restore SMS Messages? How do I backup and restore SMS Messages? Adding new ROLES and USERS through REST in GeoServer I use GeoServer stable version 2.14.1 and get error messages when trying to add new roles and users via REST. I suspect that the GeoServer REST documentation is buggy. When I call the REST interface of my GeoServer instance, I can see that the roles are accessible through the URI http://localhost:8080/geoserver/rest/security/roles. Users are under the URI http://localhost:8080/geoserver/rest/security/usergroup/users. I can query both resources via GET request, but adding new resources via POST or PUT will not work. A POST request to create new roles ends up with status code 405 (Method not allowed). After trying to create new users comes the status code 500 (Internal Server Error). For this, the GeoServer-REST documentation has been referencing the paths  /roles/roles/{role}  for new roles () or  /usergroup/users/  for new users () since several GeoServer versions. But when I use them, this always ends with Status code 404 (Not Found). How can I add new roles and users through REST in GeoServer? The workarround from @implssv in  does not work for me. Does tourist visa (90 days) apply after a long-term visa ends in Schengen countries? Local hyperlinks broken after PDF processing with Ghostscript I usually compress my tex PDFs with ghostscript:  pdflatex -shell-escape file.tex  gs -sDEVICE=pdfwrite        \    -dCompatibilityLevel=1.4   \    -dPDFSETTINGS=/prepress      \    -dNOPAUSE -dQUIET -dBATCH      \    -sOutputFile=file_compressed.pdf \     file.pdf   Normally that works well, but if I have relative links to local files, the links don't work afterwards.  Minimal example:  \documentclass{beamer} \usepackage{hyperref}  \begin{document}     \begin{frame}         \href{run:./audio.mp3}{test}     \end{frame} \end{document}   The link works in file.pdf but not in file_compressed.pdf. Is there any pdflatex or ghostscript setting that retains the link in the compressed version?  I use Acrobate Reader 10.1.14 for viewing, Ghostscript 9.10 and pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014) on OS X 10.9.5.    Update: The breakage of hyperlinks had nothing to do with compressing the PDFs. The breakage happened for all re-processing of PDFs containing hyperlinks in its input PDF. A word with a wide range of meanings Is there a better alternative to ambiguous for a word with a wide range of meanings, difficult to find, because they become different in connection with person's opinion. I know and I have proved more than once that the set of irrational numbers ($\mathbb{I}$) is uncountable, but now I'm given to solve this problem:   Show that $|\mathbb{I}|=|\mathbb{R}|$,  How can I do that?  Do I need to assume the Continuum Hypothesis in order to that statement to be true?  Thanks Control a property with no socket (color ramp swatch, etc) from a Group Node input? A group $G$ with a subgroup $H$ of index $n$ has a normal subgroup $K\subset H$ whose index in $G$ divides $n!$ An insurance company supposes that the number of accidents that each of its policyholders will have this year is Poisson distributed, with a mean depending on the policyholder: the Poisson mean Λ of a randomly chosen person has a Gamma distribution with the Γ(2, 1)-density function fΛ(λ) = λe−λ (λ > 0). Find the expected value of Λ for a policyholder having x accidents this year (x = 0, 1, 2, . . .).  I am not sure how to incorporate the gamma parameters. So far I have found P(X = n|Λ = λ) = Poisson(λ) and fΛ(λ)= Exp(λ) so by integrating P(X = n|Λ = λ)fΛ(λ) then letting the integral of Gamma (n + 2, 2) equate to 1, I have worked out P(X = n) = (n + 1)/2^(n+2). How do you find the expected value of Λ from that? I have seen that a Gamma-Poison mix has E(X) = αβ which would give 2 but I have tried integrating fΛ(λ) and can't seem to get 2. Suppose the gcd (a,b) = 1 and c divides a + b. Prove that gcd (a,c) = 1 = gcd (b,c) I am lost.   So far...  If $\gcd (a,b) = 1$, by Bezout's Formula  $ax + by = 1$  If $c|(a+b)$, then $cf = a+b$  Then,  $a (x-y) + cfy = 1$   $b(yx) + cfx = 1$  Am I on the right track? Any suggestions? My site as of right now is a static website. I am planning on having a 'recent blog posts' section on it, with permalink to the main blog post/blog. example:   http://site.com/blog   I was wondering, because of having a recent blog posts section on the homepage, should I just have the entire website powered by WordPress and just add the homepage (and other pages, such as contact) as a word press 'page', and call recent blog posts on it?  If I do it that way, am I still able to have the blog in /blog?  I was also thinking of just adding the whole WordPress files to the /blog directory and call recent blog posts from the static file...  I am new to Wordpress, so I am a bit confessed here.  What is the best option? Will  be supported on the Android App in the future? I visit A51 rather frequently and I would like to see it in the App. A cop vs a superhuman criminal I read the story over ten years ago while I was still trying to learn English, so I can only vaguely remember that the story is about a cop trying to track down a criminal who had superhuman abilities. Some of his abilities were pyrokinesis, using his mind to form a golem from earth and roam around while he stays in the room and stopping time. Eventually the cop was able to catch the criminal and shot him dead.   If anyone could identify the book I would be very grateful. I'd love to read it for nostalgic purposes.