How to make gray spaces disappear?
short view distance in 3d view?
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. What is a good focal length for street photography? With a long lens you don´t disturb people but you are left "out of the scene", while with a short focal lens you are "inside the scene" but you may disturb people. What is a better alternative for street photography? Does moving leave the object in a usable state? Handle .bib in subfiles I have a problem very similar to the question being asked in  . My .bib is references in main.tex. When compiling main, everything works like a charm. Working on the subfiles, I have two issues though (which are most likely related):   I can't access the bib with auto-completion When compiling the subfile, it doesn't insert the citations.   I tried including  \bibliographystyle{plainnat} \bibliography{mybib}   in the subfiles, which also worked smoothly. Obviously, the bibs are included in every chapter of the document when compiling main.tex, then. I tried setting a global boolean in main.tex:  \newboolean{printBibInSubfiles} \setboolean{printBibInSubfiles}{false}    and in the subfiles:  \ifthenelse{\boolean{printBibInSubfiles}}    {}    {\bibliographystyle{plainnat}     \bibliography{../betterbib.bib}}    For some reason, then setting the boolean to false, the "bibliography"-header was printed in the subfiles as well as for the main file, but there was no output of citations under any of the "bibliography"-headers. Furthermore, compiling only the subfiles didn't work correctly.  My document structure is the following:  main.tex:  \begin[document] ... \subfile{sub/dataprocessing} ... \bibliographystyle{plainnat} \bibliography{mybib} \end{document}   the subfiles:  \documentclass[../main.tex]{subfiles} \begin{document} ... \cite{Random2014} ... \end{document}   After all this explanation: the only thing I want is to access the .bib from the subfiles without having to manually uncommenting something when compiling the main file. Any takers?  PS: Obviously, I also tried the solution provided in "" but couldn't get it to work. I don't know whether that would solve my problem anyway, since I don't have the \printbibliography-issue of the thread opener. Gravitational potential at a point in a gravitational field is defined as work done per unit mass in bringing a small test mass from infinity to the point.  I know that:   By integration, we find that gravitation potential is negative. The maximum value of gravitational potential which is at infinity distance is 0, therefore minimum value should be negative.   But, what I do not understand is force is in the same direction as displacement so why work done is not positive? I want to work with unsigned 8-bit variables in C++.  Either unsigned char or uint8_t do the trick as far as the arithmetic is concerned (which is expected, since AFAIK uint8_t is just an alias for unsigned char, or so the debugger presents it.  The problem is that if I print out the variables using ostream in C++ it treats it as char.  If I have:  unsigned char a = 0; unsigned char b = 0xff; cout &lt;&lt; "a is " &lt;&lt; hex &lt;&lt; a &lt;&lt;"; b is " &lt;&lt; hex &lt;&lt; b &lt;&lt; endl;   then the output is:  a is ^@; b is 377   instead of   a is 0; b is ff   I tried using uint8_t, but as I mentioned before, that's typedef'ed to unsigned char, so it does the same.  How can I print my variables correctly?  Edit: I do this in many places throughout my code.  Is there any way I can do this without casting to int each time I want to print? Restricting a user to a certain directory on SSH login I am having trouble restricting a user to a fixed directory when they connect with SSH  I want the user restricted to /var/www/home  however I connected myself and they are free to move about the system  I set the home directory to /var/www/home so they go there upon login however this doesnt restrict them.  I have tried a few things from suggestions in Google but nothing so far seems to work / do what I want  For example I have changed the chmod of www to 755 and root owned but still no effect If you True Polymorph a zombie you create via Finger of Death, does it remain under your command? When you kill a humanoid with Finger of Death, it creates a zombie that is permanently under your command.  If you then True Polymorph that zombie, replacing its statistics with another creature's, does the creature remain under your control?  Related: Custom date format with jQuery validation plugin How can I specify a custom date formate to be validated with the  for jQuery? In Java, how do I call a base class's method from the overriding method in a derived class? I have two Java classes: B, which extends another class A, as follows :  class A {     public void myMethod() { /* ... */ } }  class B extends A {     public void myMethod() { /* Another code */ } }   I would like to call the A.myMethod() from B.myMethod(). I am coming from the , and I don't know how to do this basic thing in Java. I have two tables A &amp; B. Table A id | name | num  Table B id | date | roll  id in table B is a foreign key which relates to the id in table A. I want to get the contents of table B where id is given and also along with that data, I need the name whose id is given from table A. NOTE: cannot use multiple queries separated by commas; need to do both the SELECTs in one query. I am in the process of updating my CV. Since I often get labeled as "the bioinformatician" I get to play with many different languages and technologies, and similarly what people expect from a bioinformatician varies from person to person. So I figured it would be a good idea to indicate how much I feel I know in respective fields/languages.  Inspired by , I came to wonder whether or not its acceptable to have self-assessed ratings of your technical skills, such as: proficiency programming languages, familiarity with relevant software etc.   My own feeling is that such ratings are useful to indicate what you feel most confident or comfortable with. It would also be useful to show any potential future employer the level of competence you have in different fields. If you think about it a bit, it is common to have some type of rating for the languages one speaks, so I think an analogue to programming language proficiency should not be that alienating.  On the other hand there is the risk of rendering your CV like, as a friend of mine put it, a role-playing game character sheet.   Is it common to have such ratings on skills? Are there any potential problems with it?   Edit: What I was thinking is a small listing something like: Handling data in a PHP JSON Object Trends data from Twitter Search API in JSON.  Grabbing the file using:  $jsonurl = "http://search.twitter.com/trends.json"; $json = file_get_contents($jsonurl,0,null,null); $json_output = json_decode($json);   How do I work with data from this object. As an array? Only really need to extract data from the [name] values.  JSON object contains:  stdClass Object (     [trends] =&gt; Array         (             [0] =&gt; stdClass Object                 (                     [name] =&gt; Vote                     [url] =&gt; http://search.twitter.com/search?q=Vote                 )              [1] =&gt; stdClass Object                 (                     [name] =&gt; Halloween                     [url] =&gt; http://search.twitter.com/search?q=Halloween                 )              [2] =&gt; stdClass Object                 (                     [name] =&gt; Starbucks                     [url] =&gt; http://search.twitter.com/search?q=Starbucks                 )              [3] =&gt; stdClass Object                 (                     [name] =&gt; #flylady                     [url] =&gt; http://search.twitter.com/search?q=%23flylady                 )              [4] =&gt; stdClass Object                 (                     [name] =&gt; #votereport                     [url] =&gt; http://search.twitter.com/search?q=%23votereport                 )              [5] =&gt; stdClass Object                 (                     [name] =&gt; Election Day                     [url] =&gt; http://search.twitter.com/search?q=%22Election+Day%22                 )              [6] =&gt; stdClass Object                 (                     [name] =&gt; #PubCon                     [url] =&gt; http://search.twitter.com/search?q=%23PubCon                 )              [7] =&gt; stdClass Object                 (                     [name] =&gt; #defrag08                     [url] =&gt; http://search.twitter.com/search?q=%23defrag08                 )              [8] =&gt; stdClass Object                 (                     [name] =&gt; Melbourne Cup                     [url] =&gt; http://search.twitter.com/search?q=%22Melbourne+Cup%22                 )              [9] =&gt; stdClass Object                 (                     [name] =&gt; Cheney                     [url] =&gt; http://search.twitter.com/search?q=Cheney                 )          )      [as_of] =&gt; Mon, 03 Nov 2008 21:49:36 +0000 ) Minimal Sufficient Statistic for location family In Casella &amp; Berger Statistical Inference,in exercise 6.8, we're asked to prove that, for any distribution belonging to the location family, the order statistics are minimal sufficient.  How does one prove this? I have no idea on how to tackle this exercise.  Any help would be appreciated. I use Windows 10 with the same Microsoft account on 3 different computers, each one with a different physical keyboard layout: ITA, UK, DE.  In "Control panel - Clock and International settings - Language" I have ITA as display language with ITA/DE/UK keyboard layouts, followed by ENG(US) with only UK layout.  In the same window I opened "Advanced settings" where I set an override (second drop-down list) to the default ("the first one on the list") language/keyboard: that would be ITA/ITA, while I want (on this computer) ITA/DE.  However, when now I log in in the other computers, I get ITA/DE there as well, while each computer should have a different one, being the physical keyboards different: ITA/DE here, ITA/UK on the second one and ITA/ITA on the third one.  If I change one, they all change. And if I don't apply the override, the issue seems to be the same.  Basically the last used language AND keyboard settings are stored on the cloud and applied wherever I log in.  How to set Windows 10 to remember, PER computer, the last used language/keyboard layout settings, without having that setting follow me? Getting "System program problem detected" pops up regularly after upgrade I want to get that fancy LaTeX symbol to put in one of my documents but I cannot find it anywhere.  All searching for things like latex symbol have not resulted in the symbol but other symbols. There is a restriction on setting your birthday:     Oops! There was a problem updating your profile:   - Birthday must be after 1920/01/01   I realize the number of 90 year old users is small, but shouldn't the restriction be a bit more relaxed, such as larger than any ?  Either 120 or 150 seems appropriate.  For example, my grandfather turns 90 next year (and just barely misses the current cutoff), but I can't imagine he's the only one around that age who is computer literate and still active enough to be interested in (the increasingly broad range of) SE sites.  I don't think he has contributed yet (mostly because of the comment restriction, I'd see him commenting before asking or answering), but I have emailed him with links that I know he's read.  Incidentally, the error message is wrong: birthday must be after 1919/12/31 and using the next day is accepted. Why am I seeing a bomb icon on my files and folders in Ubuntu? Taylor series $\frac{z^2+z}{(z-1)^2}$ at $z=-1$