is there any software, like lint for C, to check shell scripts ?  check    the syntax the compatibility with bash ksh etc...   online web service or installable as program  I don't want to run and debug. I am looking for static analisys, as lint for C.
I'm having some problems with some scripts in bash, about errors and unexpected behaviors. I would like to investigate the causes of the problems so I can apply fixes. Is there a way I can turn some kind of "debug-mode" for bash, to get more information?
Two of my friends are getting married. They're both huge Doctor Who geeks, and actually met through a DW RPG. Their wedding invitation contained a very subtle DW reference (you wouldn't have been able to tell unless you were very familiar with the show yourself.)   Doctor Who's been running long enough that there are quite a few nice quotes for basically every occasion in life. I was hoping someone would know a nice wedding-related one, or maybe one about love, that I could include in a wedding card? Preparing for metric dominance: alternatives to idioms using imperial units Related to , are there any metric alternatives to these idioms:        He inches closer to her.   a. meters? - too far   b. centimeters? - too weird   c. scoots? - don't use units     By then, she was miles away from him.   a. far away? - again, don't use units   b. kilometers away? - maybe   c. light-years away? - probably better, preserving the hyperbole     This is an amazing foot-long sandwich.   a. half-a-meter-long? - not accurate   b. dong-long? - even less accurate. It rhymes, though   c. about-a-third-of-a-meter-long? - pretty accurate, but not very marketable     I went the whole nine yards.   a. the whole 8.23 meters? - ...No   b. all the way? - again, don't use units   An ounce of common sense is worth a pound of theory.   a. A gram/a tonne? - preserve the weight comparison, but even more hyperbolic   b. A little/a lot? - again, don't use units        Any suggestions? I mean, I've never seen any idioms using obsolete units like ,  or , but I'm sure there were some when they were in common usage. Yes, the plot is pretty weird. There is this "star" (whose incarnation is a woman dressed in white) and some random guy who falls in love with her. There's the arc of "if you cross a specific border you'll die" which applies to our lady "star". Well, I also remember that they have some kind of a tubular case, and when one opens it, lightning files out.  I watched the film somewhere around 2010, it's in English and when I try to remember it, I get the vibe of a mediocre Hollywood fantasy romance. After my , I've now got a new suggestion: down votes should not have any side effect in meta.  By side effects, I mean something like banning me from asking questions due to too many down votes, which I am experiencing right now:     states that I am permanently banned unless I improve my standing by posting some quality answers.  Seriously, I'm new to the site, and thus I'm not capable of posting quality answers on Meta.  So my only refuge was to create a new account. I think this check for previously downvoted posts should be disabled on Meta. What software is focused on reviewing and organizing images? Validity of maximising log-likelihood for maximum likelihood estimation For reasons owing to mathematical convenience, when finding MLEs (maximum likelihood estimates), it is often the log-likelihood function---as opposed to the standard likelihood function---which is maximised.  From what I've gathered, this approach is deemed valid as a result of the monotonically increasing nature of the (natural) logarithm function.  My understanding of a monotonically increasing function is: for all $x$ and $y$ (defined on a subset of the reals), if $x \leq y$ then $f(x) \leq f(y)$.  This, however, does not appear to be the case for all log-likelihood functions; for example: for the log-likelihood $\text{Gamma}(3, 5)$ function, if $x = 0.15$ and $y = 0.46$, then $f(x) = -0.59$ and $f(y) = -1.19$.  Clearly, I've misunderstood this concept. Fundamentally, I guess I'm asking can somebody (preferably mathematically) demonstrate why:  $$ \hat{\theta} = \text{argmax} \text{ } L(\theta) = \text{argmax} \text{ } \text{log} \text{ } L(\theta) $$  where $\hat{\theta}$ is the MLE for a given likelihood function. Java Object Reuse Should Java Objects be reused as often as it can be reused ? Or should we reuse it only when they are "heavyweight", ie have OS resources associated with it ?  All old articles on the internet talk about object reuse and object pooling as much as possible, but I have read recent articles that say new Object() is highly optimized now ( 10 instructions ) and Object reuse is not as big a deal as it used to be.  What is the current best practice and how are you people doing it ? Suppose $\lim \limits_{n \to ∞} a_n=L$. Prove that $\lim\limits_{n \to ∞} \frac{a_1+a_2+\cdots+a_n}{n}=L$ Possible Duplicate:          As answered in  I want to use git diff --color=always filename | less -r to get a colored output of my git diffs. Since I use this a lot it would be nice to set up an alias for this. But how to include the filename in this command?  I tried the following without success:  alias gdiff='git diff --color=always $1 | less -r'   Typing gdiff example.php displays the content of example.php with less but ignores the diff part.  Any ideas? Troubleshooting "Windows cannot be installed to this disk. The selected disk has an MBR partition table" How can I see my progress for different badges? After installing Adobe PDF reader, it opens files with the .PDF file extension. Ones' default web browser opens .html files and notepad opens .txt files, etc.  Where exactly in the registry are these filetype - program associations stored in the registry?   In other words, how does Windows know with which software/program it must open a certain file(type)? Understanding linear regression In class we've seen that $a$ (the weights) must satisfy $$X^T (y-Xa) =0$$  Here $X$ is a $(n\times d)$ matrix (so we have $n$ samples in $\mathbb R^d$)  let's denote the residuals $r = y-Xa$. In our class notes, it is written that     The normal equations require the residuals to be orthogonal to each of the columns of $X$.   Why?     Therefore, the solution of the linear regression is a projection of $y$ onto the subspace spanned by $v_1 , \ldots , v_d$ (the columns of $X$)   Can you please explain this? How are unmarketable market orders (other side of the order book is empty) matched with incoming orders? Why is LaTeX3 taking so long to come out? I feel as though I have been hearing about the LaTeX3 project for a very long time.   Why is it taking so long for it to come into fruition? Are there major technical difficulties, or is it purely a lack of developers that is causing a bottleneck? I'm from Western Pennsylvania. Until I moved away, I never realized that when I omitted the to be from phrases like needs to be cleaned, my usage was different than what most English speakers are accustomed to. Is it wrong? Prove that if $k\mid m,$ then $Z_m$ has a subgroup of order $k.$ Prove that if $k\mid m$, then $Z_m$ has a subgroup of order $k.$  Ok, so this doesn't look like too hard of a problem. So do I just show that it is closed under multiplication and inverse? I just don't know how I would do that with a problem like this. Can anyone help me get started please? I get “signal out of range” displayed on screen after boot up from fresh Ubuntu installation, if flashes grup in corner for half a sec then it goes to “No Input Signal”, anyone got a clue how to get the grub to load in diffrent resolution with out have access to the file system?   if not i guess my only option is to boot from the cd and edit som files to get grub to load in diffrent resolution?   as it is now i cant get access to grub menu, and i cant get access to login screen, all will give me “No Input Signal”, anyone worked around this? Triangular Factorials I came across a statement online and have been looking for a proof :  It states that 1, 6 and 120 are the only numbers which are both triangular and factorials.  Is there any way I can prove this? This claim looks too 'big' and I've tried to prove it but  I couldn't. Can anyone help me to prove this? Apt/Synaptic needs to reinstall package but can't find the archive for it Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits.