encodeURIComponent using ISO-8859-1 encoding for a javascript string
How to pass Unicode characters as JSP/Servlet request.getParameter?
Set the default permission when creating a file Why does "stigmata" [often] have penult stress? I have been studying the pronunciation of Greek-derived words in English, and I've found an odd anomaly. There are (at least) two possible pronunciation patterns for plural word-forms that end in -&#8288;mata (which correspond to singular word-forms that end in -&#8288;ma).   Antepenult stress (expected)  It appears that it is always possible to place the stress on the antepenult (third-to-last) syllable, such as:    /ˈlɛmə/, /ˈlɛmətə/  /ˈskiːmə/, /ˈskiːmətə/  /ˌtɛrəˈtoʊmə/, /ˌtɛrəˈtoʊmətə/~/ˌtɛrəˈtɒmətə/  /ˈstɪɡmə/, /ˈstɪɡmətə/   This is what would be expected from  (I believe most or all of these words came through Latin before entering English), since the penultimate "a" in the original Greek words is short.  Maybe Latin vowel quality and stress rules are not very relevant; certainly, few English speakers know about them nowadays. And even with antepenult stress, some of these pronunciations do not seem to follow all of the traditional rules for pronouncing Latin-derived terms in English. I was reminded by some comments in this  that  in antepenult stressed syllables, we would expect tense ("long") vowels to be shortened due to  (TSL), yielding pronunciations like /ˌtɛrəˈtɒmətə/ (which I just noticed is in fact listed in the Oxford English dictionary) and ?/ˈskɛmətə/ (which is not). (Compare to genus~genera /dʒiːnəs/~/dʒɛnərə/, and perhaps opus~opera /oʊpəs/~/ɒpərə/). However, there are other Latinate plural forms that typically don't have trisyllabic laxing (matrices, also I think helices), or where both the lax- and tense-voweled pronunciations coexist (codices, apices), so I guess the apparent lack of it in schemata should not be surprising. (There are even some exceptions to TSL in singular nouns like obesity.)  Penult stress (unexpected)  The other pronunciation seems to exist only for a couple of words, in which the penultimate "a" is commonly stressed and broadened: stigma ~ stigmáta  (listed by both the Merriam-Webster dictionary and the ), and also sometimes schéma ~ schemáta /skiːˈmɑːtə/ (listed only by the ). (Neither the Merriam-Webster dictionary nor the Oxford Learner's Dictionaries list *"lemmáta").  I'm wondering why this pronunciation exists. It's an irregular plural either way, and putting the stress on the penultimate syllable creates a stress change between the singular and the plural forms.  (It's true that all of these words are rare, and some people might pronounce some of their plurals differently. The pronunciations I give here are simply the ones listed in dictionaries.)  The plural form "stigmata" is probably most common in religious or theological contexts (where it refers to the wounds of Christ), so at first I wondered if the penultimate stress was supposed to be closer to the original Greek pronunciation, but according to , the stress is on the antepenult in Greek as well.  So, what's up with this? Did the stress perhaps change in Latin over time, is this a tradition of Greek accentuation that I'm not familiar with, is this a simple matter of ignorance of the original position of the stress that has now become entrenched with time and usage, or is this somehow explainable by established English stress patterns? (For example, do English speakers have some natural preference for a penultimate stress on polysyllabic words?)  If nobody knows of a reason, I suppose I can just put it down to people encountering the word mainly in text, not knowing which syllable to stress, and choosing the penult because it sounds better to them.  (I asked this question a while back on , but nobody knew of any reason.) How do I make a bootable USB from Windows? When should I use a struct rather than a class in C#? When should you use struct and not class in C#? My conceptual model is that structs are used in times when the item is merely a collection of value types.  A way to logically hold them all together into a cohesive whole.  I came across these rules :   A struct should represent a single value. A struct should have a memory footprint less than 16 bytes. A struct should not be changed after creation.   Do these rules work? What does a struct mean semantically? I was looking for a derivation of the expression for the energy density at any point in a static magnetic field. I do know that it is  $$u_B=\dfrac {1}{2 \mu_0}\left|\mathbf{B}\right|^2,$$ I was just wondering if there was a derivation that could be built up the way one derives the energy density, $$u_E=\dfrac {\epsilon_0}{2}\left|\mathbf{E}\right|^2$$ at any point in an electric field, by considering the energy needed to build up a 'source' charge bit by infinitesimal bit.  Whatever proof I have come across seems to bring inductance into the picture -- is there a way of doing it without that? I ask because the corresponding proof for the electric field does not seem to need the definition of capacitance anywhere. What is the VTable Layout and VTable Pointer Location in C++ Objects in GCC 3.x and 4.x? Apparently I inadvertently irked a moderator by creating a tag.  The moderator told me that my tag was "meta" and therefore not appropriate.  Having been a SO user for a long time (and a lurker on MetaSO), it was not clear to me what makes my tag "meta" and why meta tags would be inappropriate.  Many of the questions I see on SO aren't really about the topics in the title or the existing tag list.  For example, , isn't really about C++ or SetWindowText (or the Windows API as tagged).  It's simply somebody who had a bug, couldn't find it, and tried to outsource the debugging.  This seems to be a common category of question on SO.  So I started tagged questions like this with the label "findmybug".  Lots of frequent SO contributors regularly answer questions in this category rather than voting to close them as "Too Localized".  I took that as a cue that I should also try to answer rather than voting to close.  But leaving these questions open and tagged with "c++" and "winapi" even though the question isn't really about C++ or the Windows API seemed misleading.  Someone searching for answers on using SetWindowText from C++ probably isn't making exactly the same mistake and won't find that entry useful.  (In the end, the sample question was closed as "Too Localized", but this doesn't seem common for these types of questions.)  The Tags page says:     A tag is a keyword or label that categorizes your question with other, similar questions. Using the right tags makes it easier for others to find and answer your question.   It seems to me that the "findmybug" tag does group these similar questions together.  So from that perspective, it seems to fit.  Lots of users seem to enjoy answering these types of questions, so it makes sense they'd want a way to find them.  If you want to suggest that all the questions I would tag as "findmybug" should be closed as "Too Localized", that's fine.  But I'm trying to ask the more general question:  What makes a tag meta, and are meta tags inappropriate? Dual boot Ubuntu (14.04) with Windows 10 New figure environment I am writing my PhD thesis. In my manuscript I have Figures in the text and Photographic plates (a figure of figures) in the annexes. The two elements are different and I would like create a new environment of Plate that follows the same structure of the Figure environment. Where can I find the Figure environment to modify it?  The new environment table should have exactly the same structure than the figure environment but replacing the word figure by the word Planche (in French). Let $A,B$ be any two sets. I really think that the statement $|A|\leq|B|$ or $|B|\leq|A|$ is true. Formally:     $$\forall A\forall B[\,|A|\leq|B| \lor\ |B|\leq|A|\,]$$   If this statement is true, what is the proof ? Best lens for taking pictures of surfers Would Gravitational Time Dilation still apply between two gravitational sources? As explained on , when an object is experiencing strong gravitational forces, time passes slower for it. If, in theory, you had two objects exerting the same amount of gravitational pressure on an object in opposite directions, effectively cancelling each other out, would they cancel out the time dilation, or would they compound, making the time dilation more prevalant? Why doesn't my systemd user unit start at boot? The wavefunction $\Psi(x,t)$ for a free particle is given by  $$\Psi(x,t) = A e^{i(kx-\frac{\hbar k}{2m}t)}$$  This wavefunction is non-normalisable. Does this mean that free particles do not exist in nature?  Why then do we use free particles $\psi(\vec{x}) = e^{ikz}$, for example, in scattering theory? Display header and footer in all PDF pages using VF My vf page     &lt;apex:page renderAs="pdf" Controller="testpdf1"&gt;     &lt;head&gt;         &lt;style type="text/css" media="print"&gt;             @page              {                 size: 8.5in 11in;/* width height */             }              @page              {                 @top-center                  {                     content: element(header);                 }                  @bottom-left                  {                     content: element(footer);                 }             }              div.header              {                 padding: 10px;                 position: running(header);             }              div.footer              {                 display: block;                 padding: 5px;                 position: running(footer);             }              .pagenumber:before              {                 content: counter(page);             }              .pagecount:before              {                 content: counter(pages);             }         &lt;/style&gt;     &lt;/head&gt;      &lt;div class="header"&gt;             &lt;div align="right"&gt;Header&lt;/div&gt;     &lt;/div&gt;      &lt;div class="footer"&gt;         &lt;div&gt;Page &lt;span class="pagenumber"/&gt; of &lt;span class="pagecount"/&gt;&lt;/div&gt;     &lt;/div&gt;      &lt;div class="content"&gt;         &lt;p&gt;             &lt;apex:repeat value="{!opp}" var="item"&gt;                 &lt;tr&gt;                     &lt;td class="tableContent"&gt;{!item.Name}&lt;/td&gt;                 &lt;/tr&gt;             &lt;/apex:repeat&gt;         &lt;/p&gt;     &lt;/div&gt; &lt;/apex:page&gt;   Controller  public class testpdf1 {     public list&lt;Account&gt; opp{get;set;}      public testpdf1()     {         opp=[SELECT Name  from Account limit 50];     } }   I am getting all records in pdf format but able to get header in first page only and i am not getting header from second pages how can i display header to all pages. How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel.  Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc. In C# how do I get the list of local computer names like what one gets viewing the Network in windows explorer How do I perform a Perl substitution on a string while keeping the original? Gay rights – does Star Trek ever address this issue? I am aware of the picture of the man wearing the 'dress' from TNG, which promotes gender equality, but are gay rights ever addressed in Star Trek at all? (All seasons accepted.) What does “pull sb. out of the hat” mean? I found the phrase, “pull her out of the hat” in the following sentence of the quote from Frank Bailey, the most relied-upon former aide of Ms.Sarah Palin, whose memoir, “Blind Allegiance to Sarah Palin: A Memoir of Our Tumultuous Years” is due out on Tuesday this week.  “I doubt if there's anything new in this book, just more detailed views of the gruesome story of her rise and fall. What would really be interesting is an account of who made the decisions in the GOP to pull her out of the hat. It certainly wasn't McCain.”  I don’t find the idiom, “pull one out of the hat” in any dictionaries at hand. Does it mean to “pick up” (Sarah Palinfor (vice) presidential candidate) or “remove her from (the candidate seat)? Can somebody teach me the meaning of this phrase?