Currnetly I am doing
words = []
words << "philip morris"
words << "Philip morris"
words << "philip Morris"
words << "Philip Morris"
for word in words
doc.search("[text()*='#{word}']")
end
When I was using hpricot I found where to downcase the results within the gem so I could just keep all my searchs lowercase, however nokogiri has ...
I am working with a MySQL database that has capitalized table/field names like Users, Institutions, etc. Because the operating system of the database host is Linux, identifiers (like the table names) are treated as case sensitive. So, failing to capitalize a table name will result in a table does not exist error.
The problem I am trying...
I'm looking to perform case-insensitive search in a Firebird database, without modifying actual queries. In other words, I'd like all my existing "SELECT/WHERE/LIKE" statements to retrieve BOB, Bob, and bob. Does Firebird configuration allow to modify this behavior?
...
I have a new MVC 2 project using ninject 2 for IOC. I have the following global.asax which sets up both NHibernate and Ninject. The code runs fine, ninject pulls out the controllers from the assembly (it does convert them to lowe case strings when it does this - inside the Ninject source).
All my controller URL's are now case sensitive ...
I have been working in a branch for a couple months and am now trying to merge the trunk into the branch, before finally merging my branch into the trunk.
After successfully merging a few revisions, SVN threw an error about the "bin" folder being locked. When I created my branch, the folder was called "Bin", but at this particular revi...
I have a table that originates in an old legacy system that was case senstive, in particular a status column where 's' = 'Schedule import' and 'S' = 'Schedule management'. This table eventually makes its way into a SQL Server 2000 database which I can query against. My query is relatively simple just going for counts...
Select trans_typ...
As a learning exercise, my three functions—ToggleCase, LowerCase and UpperCase—each expect a pointer to an ASCII char string, terminated by the null character; they work as expected. Are there more efficient or faster methods of accomplishing this task? Am I breaking any unspoken rules of good C coding? I've made use of macros because...
Hi,
I have been doing a number of projects in Delphi, which uses the case insensitive language Pascal, and I was wondering what the advantage of case sensitive languages is.
Jason argues that "Case insensitivity introduces much ambiguity". I don't agree. If you realize that the language is case insensitive you know that WHILE means the s...
Hi!
Why those languages are case-sensitive? I've become curious because I was reading the differences between VB.NET and C Sharp, and VB.NET is not case-sensitive. And I think this way is better, because case-sensitive can only be a source of bugs and bad code. Bad code because there's no reason to have variable's names that differ only...
I'm trying to read a file on a samba mount point. I can list the file, and I can stat the file. But I can't open it without unless I have the correct file name case. Unfortunately, I can't programmatically determine the file name case (short of listing the directory, which is too slow).
$ ls /mnt/windows_share/file001.txt
/mnt/windows_...