trailing-character

Unable to make gray eol character by .vimrc

I want to have a gray eol character set by set list listchars=tab:>>,trail:$ where there are no spaces next to the character ":" I get no eol character for the above code if I use no spaces next to ":". I get a green trailing character if I use one space at - - tab:[space]>> -- although I have not set it up explicitly such tha...

Is it always safe to remove a trailing slash from a URL?

I'm storing URLs in a database, and I want to be able to know if two URLs are identical. Generally, a trailing slash at the end doesn't change the response you'd get from a server. (ie. http://www.google.com/ is the same as http://www.google.com) Can I always blindly remove the trailing slash from any URL, without looking at anything? I...

Google thinks my home page IS a trailing slash

I am desperate to know why Google webmaster tools AND analytics are registering my home page as a trailing slash?! There are no crawl errors, 401s, search issues, nothing wrong otherwise. My home page is written with a trailing slash and if a visitor does not include the slash, my site will automatically fetch the / and send them to ht...

Trailing slashes problem

When I type this "http://example.com/Hello%20There/" , it displays the index page wich is : "http://example.com/Hello%20There/index.html" . Well, what I want to do is when the user types "http://example.com/Hello%20There" (so like the first one except it doesn't have a trailing slash). I tried many things and specially regular express...

Mod_Rewrite Trailing Slash Issue Problem/Question

Hello. I am trying to lock a client out of a PHP application I created them but, still allow them a "virtual" access to the doc root using: RewriteCond %{DOCUMENT_ROOT}/ftp/%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}/ftp/%{REQUEST_URI} -d RewriteRule ^(.+) /ftp/$1 [L] This works like a charm when a user goes to: http://domain...

History of trailing comma in programming language grammars

Many programming languages allow trailing commas in their grammar following the last item in a list. Supposedly this was done to simplify automatic code generation, which is understandable. As an example, the following is a perfectly legal array initialization in Java (JLS 10.6 Array Initializers): int[] a = { 1, 2, 3, }; I'm curious...

Why is this c# snippet legal?

Silly question, but why does the following line compile? int[] i = new int[] {1,}; As you can see, I haven't entered in the second element and left a comma there. Still compiles even though you would expect it not to. ...

How to remove trailing symbol for a constant in Rails initializer?

How does one remove trailing character correctly in the following sentence if it's in config/environment.rb file. KEY = ENV['KEY'].delete "\r" It produces the following error: undefined method `delete' for nil:NilClass (NoMethodError) It works well in IRB, but not in environment.rb Solved Aptana Studio 3 stopped to load .bashrc a...

ASP.NET - Trailing Slash and Tilde

I've found what seems like a bizarre problem with IIS 6.0 and .NET 3.5. I always use the tilde for all URLs (eg: ~/mypage.aspx) so if I go to mydomain.com/mypage.aspx, everything works fine. If, however, I add a trailing slash and go to mydomain.com/mypage.aspx/, all links on the page which use the tilde get rendered as mydomain.com/mypa...

Export variable with trailing spaces and quotes..

How can I export a character variable WITH trailing spaces and quotes? eg: data x; format x $quote17.; x='ruby'; put x=; run; (log extract) x="ruby" What is the most efficient way to get the following result? x="ruby " ...

Force trailing slash

I'm trying to force a trailing slash to my URLs, but I can't make it work the way I want. This is my .htaccess file: RewriteEngine on #Force trailing slash RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !index.php RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ /$1/ [L,R=301] #Subdomains RewriteCond %{HTTP_HOST}...