When coding for Unix/Linux is it convention to use a trailing slash on path names, or to omit it?
How does Linux handle multiple consecutive path separators (/home////username///file)?
Does "notified by [date]" include the end date? I have read the Rules of a competition. The text of the Rules include a sentence as follows:     As per stated in the Rules the entrants will be notified by May 30th 2010.   Does the sentence above mean that May 30th is included in the term of notification or not? Check out the below program.   try {     for (String data : Files.readAllLines(Paths.get("D:/sample.txt"))){         String[] de = data.split(";");         System.out.println("Length = " + de.length);     } } catch (IOException e) {     e.printStackTrace(); }   Sample.txt:   1;2;3;4 A;B;; a;b;c;   Output:   Length = 4 Length = 2 Length = 3   Why second and third output is giving 2 and 3 instead of 4. In sample.txt file, condition  for 2nd and 3rd line is should give newline(\n or enter) immediately after giving delimiter for the third field. Can anyone help me how to get length as 4 for 2nd and 3rd line without changing the condition of the sample.txt file and how to print the values of de[2] (throws  ArrayIndexOutOfBoundsException)? When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects.   Can anyone help me turn this off and explain what it is please.  Screenshots attached. Can Mjolnir "stick" to anything? I installed jockey-gtk but how do I run it? zuber@zuber-pc:~$ sudo apt-get install jockey-gtk   Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   nvidia-common python-xkit Use 'apt-get autoremove' to remove them. The following NEW packages will be installed:   jockey-gtk 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/3,158 B of archives. After this operation, 53.2 kB of additional disk space will be used. Selecting previously unselected package jockey-gtk. (Reading database ... 156414 files and directories currently installed.) Unpacking jockey-gtk (from .../jockey-gtk_0.9.7-0ubuntu11_all.deb) ... Setting up jockey-gtk (0.9.7-0ubuntu11) ... zuber@zuber-pc:~$ jockey-gtk The program 'jockey-gtk' is currently not installed. You can install it by typing: sudo apt-get install jockey-gtk   And this not only occur with jockey-gtk. I have same problem with synergy(I did not tried with other software). Is it known problem or am I only one? How do I fix it? I have noticed that some users have taken it upon themselves to create  that allow you to see a user's rank (percentile) among SO developers.  I like this.  I was wondering if the owners of the website are planning something like this in the future?  If so, are you planning on making this by tag?  (I care less about where I rank when compared to developers of a different language).  What I'm looking for is something like this:  C#:      User is ranked #XX (Top XX %) ASP.Net: User is ranked #YY (Top YY %) Combine rows / concatenate rows Simplify $\prod_{k=1}^5\tan\frac{k\pi}{11}$ and $\sum_{k=1}^5\tan^2\frac{k\pi}{11}$ My question is:  If $\tan\frac{\pi}{11}\cdot \tan\frac{2\pi}{11}\cdot \tan\frac{3\pi}{11}\cdot \tan\frac{4\pi}{11}\cdot \tan\frac{5\pi}{11} = X$ and $\tan^2\frac{\pi}{11}+\tan^2\frac{2\pi}{11}+\tan^2\frac{3\pi}{11}+\tan^2\frac{4\pi}{11}+\tan^2\frac{5\pi}{11}=Y$ then find $5X^2-Y$.  I couldn't find any way to simplify it. Please help. Thanks. Automatically add vertical space /only/ between two sequential paragraphs I am using KOMA-script scrreprt class.  I know I can use \usepackage{parskip} or \setlength{\parskip}{12pt}, but both of these also affect headings.  Adding \vspace{12pt} manually between all two sequential paragraphs seems to work, but that's anything but convenient. Is there a way to automate it? LaTeX for Microsoft Surface I have my new Microsoft Surface and I was wondering whether it's possible to install pieces of software like MikTeX and TexMaker on this tablet. Does anyone know? Is it possible to run Android apps on Ubuntu? And I don't mean inside an emulator, but natively, as you would with any other application installed using the Ubuntu Software Center. I have a Spring MVC web app which uses Spring Security.  I want to know the username of the currently logged in user.  I'm using the code snippet given below .  Is this the accepted way?    I don't like having a call to a static method inside this controller - that defeats the whole purpose of Spring, IMHO.  Is there a way to configure the app to have the current SecurityContext, or current Authentication, injected instead?      @RequestMapping(method = RequestMethod.GET)   public ModelAndView showResults(final HttpServletRequest request...) {     final String currentUser = SecurityContextHolder.getContext().getAuthentication().getName();     ...   } "EOL while scanning single-quoted string"? (backslash in string) import os xp1 = "\Documents and Settings\" xp2 = os.getenv("USERNAME") print xp1+xp2   Gives me error   File "1.py", line 2  xp1 = "\Documents and Settings\"                                ^ SyntaxError: EOL while scannning single-quoted string   Can you help me please, do you see the problem? How discontinuous can a derivative be? There is a well-known result in elementary analysis due to Darboux which says if $f$ is a differentiable function then $f'$ satisfies the intermediate value property.  To my knowledge, not many "highly" discontinuous Darboux functions are known--the only one I am aware of being the Conway base 13 function--and few (none?) of these are derivatives of differentiable functions.  In fact they generally cannot be since an application of Baire's theorem gives that the set of continuity points of the derivative is dense $G_\delta$.  Is it known how sharp that last result is?  Are there known Darboux functions which are derivatives and are discontinuous on "large" sets in some appropriate sense? Difference in number of communities on main site Your last flag was declined - no it wasn't A regular function can contain a call to itself in its definition, no problem.  I can't figure out how to do it with a lambda function though for the simple reason that the lambda function has no name to refer back to.  Is there a way to do it?  How? Undefined Control Sequence. 1.60 \@writefi There should be infinitely many primes of the form $5+6n$. How do you prove it? The same should be true for $7+6n$. The Sitemap Paradox We use a  on Stack Overflow, but I have mixed feelings about it.  Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata. Using the Sitemap  does not guarantee that web pages are included in search engines, but provides hints for web crawlers to do a better job of crawling your site.  Based on our two years' experience with sitemaps, there's something fundamentally paradoxical about the sitemap:  Sitemaps are intended for sites that are hard to crawl properly. If Google can't successfully crawl your site to find a link, but is able to find it in the sitemap it gives the sitemap link no weight and will not index it!  That's the sitemap paradox -- if your site isn't being properly crawled (for whatever reason), using a sitemap will not help you! Google goes out of their way to make :  &quot;We cannot make any predictions or guarantees about when or if your URLs will be crawled or added to our index&quot;  &quot;We don't guarantee that we'll crawl or index all of your URLs. For example, we won't crawl or index image URLs contained in your Sitemap.&quot;  &quot;submitting a Sitemap doesn't guarantee that all pages of your site will be crawled or included in our search results&quot;   Given that links found in sitemaps are merely recommendations, whereas links found on your own website proper are considered canonical ... it seems the only logical thing to do is avoid having a sitemap and make damn sure that Google and any other search engine can properly spider your site using the plain old standard web pages everyone else sees. By the time you have done that, and are getting spidered nice and thoroughly so Google can see that your own site links to these pages, and would be willing to crawl the links -- uh, why do we need a sitemap, again? The sitemap can be actively harmful, because it distracts you from ensuring that search engine spiders are able to successfully crawl your whole site. &quot;Oh, it doesn't matter if the crawler can see it, we'll just slap those links in the sitemap!&quot; Reality is quite the opposite in our experience. That seems more than a little ironic considering sitemaps were intended for sites that have a very deep collection of links or complex UI that may be hard to spider. In our experience, the sitemap does not help, because if Google can't find the link on your site proper, it won't index it from the sitemap anyway. We've seen this proven time and time again with Stack Overflow questions. Am I wrong? Do sitemaps make sense, and we're somehow just using them incorrectly?