disappearing form hits?
How do I make an HTML text box show a hint when empty?
Can the Next/Prev Post links be ordered by menu order or by a meta key? I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary.  The next/prev post links (generated by next_post_link, previous_post_link, or posts_nav_link all navigate by chronology. While I understand this default behaviour, I don't understand how to change it. I found that it maps through to adjacent_post_link in link-template.php, but then it starts to seem fairly hard-coded. Is it recommended to re-write this from scratch to replace it, or is there a better solution. Coprime cofactors of n'th powers are n'th powers, up to associates, for Gaussian integers & UFD I'm trying to do the following exercise from Neukirch's Algebraic Number Theory (exercise 2, $\S 1$, chapter 1):  Show that, in the ring $\mathbb{Z}[i]$, the relation $\alpha\beta=\varepsilon\gamma^n$, for $\alpha,\beta$ relatively prime numbers and $\varepsilon$ a unit, implies $\alpha=\varepsilon^{\prime}\xi^n$ and $\beta=\varepsilon^{\prime\prime}\eta^n$, with $\varepsilon^{\prime},\varepsilon^{\prime\prime}$ units.  My attempt: once $\alpha$ and $\beta$ are relatively prime, $\alpha\nmid\beta$ and $\beta\nmid\alpha$. Therefore $N(\alpha)$ and $N(\beta)$ are relatively prime too (where $N(a+ib)=a^2+b^2$). Therefore,  $$N(\alpha\beta)=N(\alpha)N(\beta)=N(\varepsilon)N(\gamma^n)=N(\gamma)^n=(p_1\cdot\ldots\cdot p_r)^n=p_1^n\cdot\ldots\cdot p_r^n$$  And once $N(\alpha)$ and $N(\beta)$ are relatively prime, we have (if necessary, we reorder the $p_i$'s):  $$N(\alpha)=p_1^n\cdot\ldots\cdot p_k^n=(p_1\cdot\ldots\cdot p_k)^n=N(\xi)^n=N(\xi^n)$$ and $$N(\beta)=p_{k+1}^n\cdot\ldots\cdot p_r^n=(p_{k+1}\cdot\ldots\cdot p_r)^n=N(\eta)^n=N(\eta^n)$$  And the result follows.  But I'm not sure about one step. It is $\alpha$ and $\beta$ relatively prime $\Rightarrow$ $N(\alpha)$ and $N(\beta)$ relatively prime. I know that if $\alpha|\beta$ then $N(\alpha)|N(\beta)$, but the previous assertion is not necesseraly true, and if it is, and don't know how to prove it. If it is true, the result follows, unless I made something wrong in the rest of the proof.  That's it. If you know another way of doing the exercise, please show me. Markdown in chat fails for multi-line messages Standard error of a ratio I have a linear regression and two estimates, say A and B and their standard errors. I need to find the standard error of a ratio A/B [or A/(1-B)].  I guess the main problem is that I don't know the correlation between A and B. I also guess that makes this unsolvable, since the correlation plays a major role. Is this correct?  If I knew it, what would be the way to calculate the standard error? I was working on historical data looking for anomalous patterns that we would not expect to occur at random. I'd like to create a scheme to analyze data and markets to test for statistical significance and consistency over time.  Question : Are there some tools we could use to evaluate the nonrandomness of a database? What do we use usually to say that something is random or not (statistically)? Figure we work with change in some value over time. Install suspension forks on non-suspension bike How to upload a file to a WCF Service? I've build a WCF Service to accept a file and write it to disk. The front-end consists of a page with SWFUpload which is handling the upload on the client side. Apparently, SWFUpload posts the data with a Content Type of: multipart/form-data.  I would think this ok but on the Service side I get an error. The error is "ProtocolException" expecting text/xml. I've tried different message encodings in the bindings but nothing seems to work.  How can I get this file uploaded using multipart/form-data? I wanted to try out different desktop environments so I installed XFCE, KDE, GNOME, etc on top of Unity in Ubuntu 12.04  After a while I decided that I didn't like those other DEs and would stick to Unity. So I changed my default DE to Unity by configuring gdm.  sudo dpkg-reconfigure gdm   Now I am able to choose my DE at login time and all of DEs are working properly.   But the strange thing is that my boot up screen says 'lubuntu', my login screen is KDE, and my desktop is Unity.   How and why is this happening? Why didn't my gdm configuration have any effect? Does login and boot up screen need to be configured separately from the DE?  There are other similar questions here but they are not the same as this one. I do not want to remove the other enviroments I'm quite happy with having a list of DEs to select from. I want to know how to set proper defaults. Why is everybody so concerned about etc/passwd? Covariance of a variable and a linear combination of other variables Let $X,A,B,C,D$ be time-series variables and the covariance between any two pairs of these are known.  Suppose we want to find $\textrm{cov}(X,aA + bB + cC + dD)$, where $a,b,c,d$ are constants.  Is there any way of doing this without expanding out $E[(X-E[X])(aA+......)]$? How do you make a test class for custom controller? My search results involves this but trying to apply it in my test class only create too many error that I don't understand.  public static testMethod void testMyController() {     PageReference pageRef = Page.success;//Observe how we set the Page here     Test.setCurrentPage(pageRef);   . Does my test class need those line of codes when my controller class is only very simple.  public class ClientInfo_VFcontroller{     public Org_Info__c orgInfo {get; set;}     public ClientInfo_VFcontroller(){         orgInfo = new Org_Info__c();     }     public PageReference save(){         insert orgInfo;         orgInfo = null;         ScheduleRetrieve.ScheduleRetrieve();         return null;     } } Execute bash commands over SSH while staying in interactive mode afterwards Probably it is a weird thing I would like to achieve but: I would like to SSH to a remote host and then execute some bash commands like "alias" automatically to use them afterwards in an interactive mode. The remote host does not allow the personal environment.    Is this possible? Would "expect" do it? Or is there any other way to achieve this? Basically I would like to have my bashrc without modifying any files on the remote host. The Quotation Mark character in TeXworks editor has vanished Now, my version of TeXworks is 0.4.5r.1280 and I can't have the " character on the keyboard.    I have ``  or '' instead. Why?  And It's the same with Alt+034. I'm very disappointed with that. How to prove that you have significant ties with family in your home country? Can a warlock use one of their Thirsting Blade attacks to grapple or shove? Find and replace multiple values within selected cells I want to run a find and replace on multiple values within a range in excel with values from 2 columns: A with the original word; B with the translation. I already found the VBA code to get this working for 50%, but this code runs it on the whole worskheet.  Ideally I would like to be able to run it on just the range I selected. An added bonus would be if I could also select the lookup range.  This is what I'm using this far. Thanks for your help!  Sub abbrev()             Dim abvtab() As Variant             Dim ltsheet As Worksheet             Dim datasheet As Worksheet             Dim lt As Range              'Change Lookup to the sheet name with your lookup table.             Set ltsheet = Sheets("Lookup")              'Change Data to the sheet name with your data.             Set datasheet = Sheets("Data")              'Change A2 to the top left cell (not the header) in your lookup table.             'Change B2 to top right cell.             Set lt = ltsheet.Range("A1", ltsheet.Range("B1").End(xlDown))              abvtab = lt              For i = 1 To UBound(abvtab)                 datasheet.Cells.Replace What:=abvtab(i, 1), Replacement:=abvtab(i, 2), LookAt:=xlPart, _                     SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _                     ReplaceFormat:=False             Next i End Sub Why can't I use a type argument in a type parameter with multiple bounds? So, I understand that the following doesn't work, but why doesn't it work?  interface Adapter&lt;E&gt; {}  class Adaptulator&lt;I&gt; {     &lt;E, A extends I &amp; Adapter&lt;E&gt;&gt; void add(Class&lt;E&gt; extl, Class&lt;A&gt; intl) {         addAdapterFactory(new AdapterFactory&lt;E, A&gt;(extl, intl));     } }   The add() method gives me a compile error, "Cannot specify any additional bound Adapter&lt;E&gt; when first bound is a type parameter" (in Eclipse), or "Type parameter cannot be followed by other bounds" (in IDEA), take your pick.  Clearly you're just Not Allowed to use the type parameter I there, before the &amp;, and that's that. (And before you ask, it doesn't work if you switch 'em, because there's no guarantee that I isn't a concrete class.) But why not? I've looked through Angelika Langer's FAQ and can't find an answer.  Generally when some generics limitation seems arbitrary, it's because you've created a situation where the type system can't actually enforce correctness. But I don't see what case would break what I'm trying to do here. I'd say maybe it has something to do with method dispatch after type erasure, but there's only one add() method, so it's not like there's any ambiguity...  Can someone demonstrate the problem for me? Accelerating particles to speeds infinitesimally close to the speed of light? Left pedal coming loose On my bike, which I just built out of spare parts, the left pedal seems to constantly be coming loose. It seems to come out about 5m every time I ride ~10km.  It's an old cotter pin crank, and the pedal is a left pedal (there's an L stamped into the end of the screw that goes into the crank). The pedal has a crack in one side of the axle compartment, but I don't think that would affect it.  I thought that these pedals had left-hand threads so that the action of pedalling would work to tighten the screw? If so, why would this be happening, and is there anything I can do about it short of replacing the crank and pedal? If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.