case-sensitive

How can this method to convert a name to proper case be improved?

I am writing a basic function to convert millions of names, in a one-time batch process, from their current uppercase form to a proper mixed case. I came up with the following function: public string ConvertToProperNameCase(string input) { char[] chars = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(input.ToLower()).ToCharArray()...

Apache rewrite_mod: RewriteRule path and query string

I currently have a website with a standard web interface on index.php, and I made an iPhone-friendly version in iphone.php. Both pages handle the same arguments. It works fine when I manually go to .../iphone.php, but I'd like to rewrite anything on .../path/ and .../path/index.php to iphone.php if %{HTTP_USER_AGENT} contains mobile, an...

Is case sensitive ID for IE avoidable if using YUI 2.8 ?

I'm using YAHOO.util.Dom.get in IE. It seems to be case sensitive and YUI (2.8) can't seem to deal with. FF lets you get ID's without case sensitivity issues. I was wondering if there is a way to also do it in IE. This link says there is a problem. But has YUI been able to get around this ? ...

case sensititivity with users controller on certain hosting

We generally use two different hosting services. On one, everything works ticketyboo, as it does on my local dev servers. On the other server, however, I am having this problem: I can't access the users controller like this: http://www.example.com/users/login But I can like this: http://www.example.com/Users/login ** note the capitali...

Is it beneficial to development to use a case-sensitive file system?

Is there any benefit to developing on a case sensitive file system? I recently heard that Adobe products do not run on case sensitive file systems. Is developing on a case-sensitive file system the simplest way to avoid such problems? ...

How to checkout a case sensitive SVN source code branch to a case insensitive system?

I am working on a Macbook system , which is formatted as a case insensitive system. The issue is that, I need to check out a SVN branch which has some case sensitive files in it. Example: inbuilt-file.c InBuilt-File.c How do I checkout this branch when both the files are in the same folder? When I try and checkout, it gives me an err...

git mv and only change case of directory

While I found similar question I didn't find an answer to my problem When I try to rename the directory from FOO to foo via git mv FOO foo I get fatal: renaming 'FOO' failed: Invalid argument OK. So I try git mv FOO foo2 && git mv foo2 foo But when I try to commit via git commit . I get # On branch master # Untracked files: # (...

Cross-platform build UNC share (Windows->Linux) - possible to be case-sensitive on CIFS share?

To optimize builds between Windows and Linux (Ubuntu 10.04), I've got a UNC share of the source tree that is shared between systems, and all build output goes to local disk on each system. This mostly works great, as source updates and changes can quickly be tested on both systems, but there's one annoying limitation I can't find a way ...

MySQL case sensitive foreign key for textual data

I have ISO 639-2 language codes (eng, fre, hin, etc.) in english as primary key in my master table. This column is foreign key in may other tables. Now my issue is even though my master have only lower case values, due to human error some values were added in other tables with language id in mixed cases. Even though there was foreign key...

Case sensitive and insensitive in the same pattern

hi guys, thanks to the help with my previous homework question Regex to match tags like <A>, <BB>, <CCC> but not <ABC>, but now i have another homework question. i need to match tags like <LOL>, <LOLOLOL> (3 uppercase letters, with repeatable last two letters), but not <lol> (need to be uppercase). using the technique from the previou...

Case sensitive UriMapper issue in Silverlight 3

In Navigation API of Silverlight 3 the UriMapper class is case sensitive. For the following uri mapping <nav:Frame Source="/Home"> <nav:Frame.UriMapper> <uriMapper:UriMapper> <uriMapper:UriMapping Uri="" MappedUri="/Views/HomePage.xaml"/> <uriMapper:UriMapping Uri="/entity/{code}" Mapped...

What is the purpose of case sensitivity in languages?

Possible Duplicates: Is there any advantage of being a case-sensitive programming language? Why are many languages case sensitive? Something I have always wondered, is why are languages designed to be case sensitive? My pea brain can't fathom any possible reason why it is helpful. But I'm sure there is one out there. And ...

How can I test if an enum is defined or not whilst ignoring case?

The following generic static method takes a string and returns an enum. It nicely ignores case since I set the ignoreCase parameter to true. However, I also want to test if the enum exists, but the enum.IsDefined method to do this doesn't seem to have an ignoreCase parameter. How can I test if the enum is defined or not and at the sa...

git status reports modified files in a freshly cloned repo

Solved It seems the remote repo contains two files named the same, except for the first letter. This caused a file overwrite on my system, which led to the issue below. Update It seems it has nothing to do with newlines, but I can't yet find an explanation. Here's what happens. git status reports FileStartingWithCapitalLetter.php has...

In bash, can the file operator (-f) be case-insensitive?

I'm doing the following: if [ -f $FILE ] ; then echo "File exists" fi But I want the -f to be case-insensitive. That is, if FILE is /etc/somefile, I want -f to recognize /Etc/SomeFile. I can partially work around it with glob: shopt -s nocaseglob TARG='/etc/somefile' MATCH=$TARG* #assume it returns only one match if [[ -f...

Case-insensitive query that supports multiple search words

I'm trying to perform a case-insensitive query. I would generally use __icontains, but since it doesn't support the .split() method, I'm stuck to using __in instead: def search(request): query = request.GET.get('q', '') query = query.lower() product_results = [] category_results = [] if query: product_result...

sql constraint for checking for two uppercase letters followed by numeric values

i have the following sql check and it accepts values that are supposed to be two uppercase letters followed by 3 numeric values. CREATE TABLE Project( projectID NCHAR(5) NOT NULL PRIMARY KEY, CHECK(projectID LIKE '[A-Z][A-Z][0-9][0-9][0-9]'), projectName NVARCHAR(20) NOT N...

Javascript: highlight substring keeping original case but searching in case insensitive mode

Hi everybody, I'm trying to write a "suggestion search box" and I cannot find a solution that allows to highlight a substring with javascript keeping the original case. For example if I search for "ca" I search server side in a case insensitive mode and I have the following results: Calculator calendar ESCAPE I would like to view t...

PHP similar_text case sensitive

Ok I am comparing strings using similar_text() but the result is being affected by the fact that it is case sensitive. Is there a way to turn this off somehow in php.ini or something? ...

Visual Studio 2005 creates output directories in lowercase

I am using a standard operating environment which involves Visual Studio 2005 running on Windows XP. The source for the solution is managed in Linux, but edited and compiled using Visual Studio on a Windows computer via a network share. The problem I am facing is that if I change the output directory of certain projects of my solution,...