"Post contains improperly formatted code" - Cannot find any misformatted code
Reference style links validating as improperly formatted code
I am unable to print documents using my HP printer. However, I am able to print test pages.  What I tried:  I have tried removing and re-installing the printer from the system settings but I can only print once (the first task). Then all the following tasks get stuck at the "Rendering Completed" status.  I additionally tried restarting the computer which leads in the same task mentioned above.  Moreover, I logged into the CUPS system ( 1.6.2) from http://localhost:631  From there, I removed the printer, restarted it and re-installed with no sucess.  System Specifications:  System : Ubuntu GNOME 13.04  Memory: 3.9 GB  CPU : AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ × 2   OS-type : 32 bit  Graphics: Gallium 0.4 on NVA3  Printer: HP Deskjet 2050 j510 Series  IP Adress: localhost  I had no problems with my previous OS which was Pinguy OS 11.04 ( a distro based on Ubuntu 11.04) and it's the first time I use my printer at this OS.  Screenshots:   My printer stuck at "Rendering Completed" status.     From the CUPS web interface; you can see that "Rendering Completed" is stuck at the state of the print process.  **EDIT:**I tried printing from the pdf.js pdf viewer of firefox: I wait for about 5 minutes for a 10 pages document to print, the document is printed like faded and sort of in bold font (I accuse rendering for that). Then the status of the printer gets stuck at 'Rendering Completed' but I can print later on. Again, for the next prints I wait for 5 minutes minimum ( I wait for the 'Rendering....' bar to fill ) and the printing is weird. Making Ctrl+C copy text in gnome-terminal? Is it possible for me to make Ctrl+C perform a copy command if there is highlighted text in the terminal? Otherwise, it should retain its normal behavior.  (If there is a terminal that can do this other than gnome-terminal, that's probably fine too.) How can I test for POSIX compliance of shell scripts? Considering that POSIX is the closest thing to a common standard among all unices, I'm interested in knowing if there's a shell that supports it exclusively. While most modern shells provide support for POSIX (and will run POSIX compliant scripts without any problem), they don't do a good job at pointing out non compliant features.  Is there any shell that implements POSIX and POSIX only, in such a way that it'd throw an error for any non compliant feature?  EDIT I want to clarify that I'm not asking for general tips for writing portable shell scripts. The related question mentionned in the comments already covered this. I thought of this question when I found out that bash has a --posix option but only to discover that it only affects some intialization behaviors which is not exactly what I'm looking for. Do you know a good way to compare PDF files side-by-side and show the modifications between the two?  I'm looking for Windows software to accomplish this. It would be great if you can post both free and not-free products. How do I install Guest Additions in a VirtualBox VM? Script failing with "command not found: ^M" When I try to run the following script in zsh, via the command /bin/zsh ~/.set_color_scheme.sh I get the following error:  command not found: ^M   The script has u+x permissions and it used to work on another machine that also had zsh. Any clues why?   Note: This question is related to  (where I am trying to adapt the script for tcsh)  #!/bin/zsh # Contents of set_color_scheme.sh  export LS_COLORS=$( \ ( grep '\w' | grep -v '^#' | sed 's/#.\+//' | perl -lane 'printf "%s=%s:", shift @F, join ";", @F;' ) &lt;&lt;&lt; "  # HUMAN_FORMATTED_DATA # list one per line  # these are basic filesystem items no 00          # normal fi 00          # file di 01 34       # directory ln 00 36       # link pi 40 33       # pipe so 00 35       # bd 40 33 01 cd 40 33 01 or 01 05 37 41 mi 01 05 37 41 ex 00 91       # executable ow 01 34       # other writables   *.cmd 00 32 *.exe 00 32  # archive, compressed things etc *.gz  00 90 *.bz2 00 90 *.bz  00 90 *.tz  00 90 *.rpm 00 90 *.rar 00 90 *.zip 00 90 *.iso 00 90   *.cpio 00 31    # perl &amp; CODE *.c      33 *.h      33 *.sh     33 *.t      33 *.pm     33 *.pl     33 *.cgi    33 *.pod    33 *.PL     33 *.js     33 *.php    33 #*.xs  # strikethrough *.off 00 9 *.bak 00 9 *.old 00 9   # documents misc, html webstuff # really TEXT *.htm    94 *.html   94 *.txt    94 *.text   94 *.css    94   # MOVIE *.avi    96 *.wmv    96 *.mpeg   96 *.mpg    96 *.mov    96 *.AVI    96 *.WMV    96 *.mkv    96  # images &amp; pdf *.jpg    96 *.jpeg   96 *.png    96 *.xcf    96 *.JPG    96 *.gif    96 *.svg    96 *.eps 00 96 *.pdf 00 96 *.PDF 00 96 *.ps  00 96  *.ai  00 91 # adobe ill *.doc 00 91 # msword   # data, such as .db, .csv *.csv    95 *.dsv    95 *.db     95 *.sql    95 *.meta   95 # CONFS *.xml    95 *.yaml   95 *.yml    95 *.conf   95 # [a-z0-9]*rc ") I hear a lot of people saying that neutrino is the lightest subatomic particle but according to me a photon must be the lightest as nothing can travel faster than light because it gets heavier and heavier and bends time. Suppose we have a ball floating in liquid A. Then we pour a liquid B on top of the ball (Assuming that the liquid is poured such that the ball doesn't oscillate) . The ball rises up. Why?  According to me, the liquid on top (liquid B) will exert a force downward on the ball and it should go lower. The particles in the liquid B will exert an normal force which is acting downwards on the ball. How can adding liquid B make it rise up, that is, provide an upward force?  Taking a specific case, density of B > density of ball > density of A   what would happen? How to set the chapter style in report class? I want to set chapters to look like 'bigger' sections.  Now in the report class I have a style like:     Chapter 1      Introduction      1.1. Section   What I want to achieve is:        Introduction         1.1. Section   I don't want to change the document class. Quantum mechanics scattering theory How can I make a div not larger than its contents? Making a Comment on a page without being on that page? I have a built a Wordpress site that enables comments on pages and I am using them as reviews, what I would like to do is for someone to be able to make a comment on a page without being on that page.    On the link above, the top right, there is a link that says have your say about a university, it would be good to have a HTML form and then a dropdown box of all the child pages of university-guide; which is where all the universities are stored, and then I can put my comments.php file into this.  So my HTML form appears and when a page is picked from a dropdown box, the comment will then be assigned to that page.  Any help or direction?    New Question for Toscho:  Below is your tweaked plugin to fit into my website, as you can see I have added the select option yearSelect and need this to appear when the comments appear. How would I go about doing this? - Could you provide ay help please?      &lt;?php /* Plugin Name: haveyoursay */  /**  * Call the form in your template with:  * do_action( 'wpse_67527_comment_form' );  */ add_action( 'wpse_67527_comment_form', 'wpse_67527_comment_form' );  /**  * Create a review form.  *  * @return void  */ function wpse_67527_comment_form() {     $select_id = 'page_select';     $url = 'http' . ( is_ssl() ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];     $url = esc_url( $url );     ?&gt; &lt;form action="&lt;?php echo site_url( '/wp-comments-post.php' ); ?&gt;" method="post"&gt; &lt;h3&gt;Leave us your student perspective &lt;img src="/wp-content/themes/blue-and-grey/images/hmepage-tri.png"&gt;&lt;/h3&gt;     &lt;p&gt;         &lt;label for="author"&gt;&lt;?php _e( 'Name' ); ?&gt;&lt;/label&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;         &lt;input id="author" name="author" type="text" size="40" /&gt;     &lt;/p&gt;     &lt;p&gt;         &lt;label for="email"&gt;&lt;?php _e( 'Email' ); ?&gt;&lt;/label&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;         &lt;input id="email" name="email" type="text" size="40" /&gt;     &lt;/p&gt;     &lt;p&gt;         &lt;label for="&lt;?php echo $select_id; ?&gt;"&gt;             &lt;div class="clear"&gt;&lt;/div&gt;             Pick a university from the list: &amp;nbsp;&amp;nbsp;         &lt;/label&gt;         &lt;?php         // Ordered by page name automatically         wp_dropdown_pages(             array (                 'name' =&gt; 'comment_post_ID',                 'id'   =&gt; $select_id,                 'child_of' =&gt; 2,             )         );         ?&gt;       &lt;/p&gt;     &lt;div class="clear"&gt;&lt;/div&gt;     &lt;p style="margin:10px 0px 0px 0px;"&gt;Please select your year of study: &amp;nbsp;&amp;nbsp;     &lt;select name="yearSelect"&gt;     &lt;option value="1st"&gt;First Year&lt;/option&gt;     &lt;option value="2nd"&gt;Second Year&lt;/option&gt;     &lt;option value="2nd"&gt;Third Year&lt;/option&gt;     &lt;/select&gt;     &lt;/p&gt;     &lt;br /&gt;     &lt;p&gt;         &lt;textarea name="comment" cols="45" rows="8"&gt;&lt;/textarea&gt;     &lt;/p&gt;     &lt;p&gt;         &lt;?php         wp_nonce_field( 'unfiltered-html-comment_' . get_the_ID(), '_wp_unfiltered_html_comment_disabled', FALSE );         ?&gt;         &lt;input type="hidden" name="redirect_to" value="&lt;?php echo $url; ?&gt;" /&gt;         &lt;input type="submit" style="margin:15px 0px 0px 0px; padding:4px 10px;" /&gt;     &lt;/p&gt; &lt;/form&gt;     &lt;?php }  add_filter( 'comment_post_redirect', 'wpse_67527_redirect' );  /**  * Strip '#comment-number' from redirect url.  *  * @param  string $url  * @return string  */ function wpse_67527_redirect( $url ) {     $parts = explode( '#', $url );     return $parts[0]; } ?&gt; One image per overlay? Remove linux version 3.19.31 Discoveryd Alternative to Replace mDNSResponder Argument? This is a direct follow-on to . , I'd add the "-AlwaysAppendSearchDomains" argument to the mDNSResponder plist file so that all local resolver lookups added the search domains, regardless of whether there was a period in the label to be looked up. For example, whether I try to ssh to hostname foo.bar or foo, the search domain of baz.com should be tried, not only for the latter case, as was (and is) the default behavior.   Now, it looks like the mDNSResponder is gone, replaced with discoveryd. I cannot find a similar option to get it to always appending the search domain. Suggestions? I'd rather not go the route of using a non-default local resolver, but I'd consider it as an option. For now, I'll just type in the long FQDNs, but I'd really rather not.  Thanks, Pete Why do we use residuals to test the assumptions on errors in regression? Suppose that we have a model $Y_i = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \dots + \beta_kX_{ik} + \epsilon_i$.  Regression has a number of assumptions, such as that the errors $\epsilon_i$ should be normally distributed with mean zero and constant variance. I have been taught to check these assumptions using a normal QQ plot to test for normality of the residuals $e_i = Y_i - \hat{Y}_i$ and a residuals vs. fitted plot to check that the residuals vary around zero with constant variance.  However, these tests are all on the residuals, not the errors.  From what I understand, the errors are defined as the deviation of each observation from their 'true' mean value. So, we can write $\epsilon_i = Y_i - \mathbb{E}[Y_i]$. These errors cannot be observed by us. *  My question is this: how good of a job do the residuals do in mimicking the errors?   If the assumptions appear to be satisfied on the residuals, does this mean they are satisfied on the errors too? Are there other (better) ways to test the assumptions, like fitting the model to a testing dataset and getting the residuals from there?    * Furthermore, does this not require that the model is specified correctly? That is, that the response really does have a relationship with the predictors $X_1, X_2,$ etc. in the way specified by the model.  If we are missing some predictors (say, $X_{k+1}\ \text{to}\ X_p$), then the expectation $\mathbb{E}[Y_i] = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \dots + \beta_kX_{ik}$ would not even be the true mean, and further analysis on an incorrect model seems pointless.  How do we check whether the model is a correct one? deals with various ways of rewarding the finding of duplicates, a tough and increasingly necessary janitorial task.  Here's a concrete suggestion:   Reward the finder of a duplicate with +10 points if the question gets closed as a dupe. If multiple duplicates are found, reward all finders whose suggestion was voted for at least once by another user. (The limitation is to avoid gaming by making frivolous suggestions when it's obvious that a question is going to get closed as a duplicate.) Reward each following closevoter who picks one of the previously suggested dupes with +2 points if the question gets closed. Punish everyone involved (dupe-finders and dupe-voters) with -5 points, and revoke all rep gained from the dupe-voting, if a question closed as duplicate gets reopened.   A punishment for mis-voting is going to be controversial but in my eyes, it is absolutely essential. Finding a good dupe is a work of love: You need to make sure you understand the OP's question, and you need to scan every potential duplicate for whether it really contains an answer that will help the OP. Everyone dupe-votes carelessly from time to time, so the threat of punishment needs to be present to keep everyone on their toes, just as the threat of downvoting does when you post an answer.  If you think +10 is too high a reward: Consider that finding a duplicate can often be more work than writing an answer, and a correct answer usually nets you at least 10 points, if not much more.   If you think -5 is too much of a punishment: -2 might work as well, although I really think there should be a harsh punishment on an unfair dupe-closing. That car is way better than any car any of us have/has ever driven.      None of us know/knows which direction Ron's house is (in).    I have two questions here.   In both the cases, are we to use the singular verb, or the plural? In the end of the second sentence, is using the preposition where it's been used, necessary? Would it be okay if it had no prepositions in it? A coin is tossed three times. The probability of zero heads is 1/8 and the probability of zero tails is 1/8. What is the probability that there is at least one head and at least one tail?  So, if P(zero heads)= 1/8 , then that should be the same of p(all tails)?  We would use the complement rule and Multiplication Rule?   P(at least one head) = 1 - P(no heads) = 1 - 1/8= 7/8 P(at least one tail) = 1 - P(no tails) = 1 - 1/8= 7/8  would I multiply the two values? I am reading Tom Apostol's Analysis and come across this theorem.   Should $a \leq b$ if $a\leq b+\epsilon$ for all $\epsilon &gt;0$?   I don't doubt the proof in the book but I don't understand the intuition or geometric explanation behind this. Could somebody shed some light on this equation? I just started studying analysis on my own.$\ \ $