case-sensitive

On which operating systems or browsers are CSS font-family names case-sensitive

为君一笑 提交于 2019-11-28 11:10:13
According to sitepoint ( a source I typically highly trust ) when specifying font-family names some Operating Systems/Browsers may be case-sensitive . I've typically always used mixed-case values but I'm wondering if lower-case values will work just the same? I don't have an overwhelming preference either way - but I'd hate for a page to render differently because I typed a lower-case "v" vs. "V" somewhere in a CSS file. e.g. are there any known cases where 2 divs with the foo and bar classes below would actually render with a different font? div.foo{ font-family:Verdana, Arial, Helvetica; }

How can I convert Unicode to uppercase to print it?

混江龙づ霸主 提交于 2019-11-28 10:40:02
I have this: >>> print 'example' example >>> print 'exámple' exámple >>> print 'exámple'.upper() EXáMPLE What I need to do to print: EXÁMPLE (Where the 'a' gets its accute accent, but in uppercase.) I'm using Python 2.6. I think it's as simple as not converting to ASCII first. >>> print u'exámple'.upper() EXÁMPLE In python 2.x, just convert the string to unicode before calling upper(). Using your code, which is in utf-8 format on this webpage: >>> s = 'exámple' >>> s 'ex\xc3\xa1mple' # my terminal is not utf8. c3a1 is the UTF-8 hex for á >>> s.decode('utf-8').upper() u'EX\xc1MPLE' # c1 is the

Reverse case of all alphabetic characters in C# string

ⅰ亾dé卋堺 提交于 2019-11-28 10:14:01
What is the simplest way to reverse the case of all alphabetic characters in a C# string? For example "aBc1$;" should become "AbC1$;" I could easily write a method that does this, but I am hoping there is a library call that I don't know about that would make this easier. I would also like to avoid having a list of all known alphabetic characters and comparing each character to what is in the list. Maybe this can be done with regular expressions, but I don't know them very well. Thanks. Thanks for the help. I created a string extension method for this that is mostly inspired by Anthony Pegram

Does sqlserver collation mean column names must be correct case? And how to deal with that

痞子三分冷 提交于 2019-11-28 09:21:45
问题 In SQL Server (2000 or 2005) is it possible to set the database or server collation so that identifier names (tables, columns, etc) need to be in the correct case? If so, is that true of all case-sensitive collations or is it a separate setting? (I've always thought of case-sensitivity applying to data, not to names of objects). Presumably this would break an application if its stored procs and queries weren't written with consistent case? Is there a way to deal with this without having to

How do I use jQuery to ignore case when selecting?

匆匆过客 提交于 2019-11-28 08:23:27
I'm currently attempting to disable a link using the following jQuery selector: $("a[href$=/sites/abcd/sectors]").removeAttr("href"); The problem is that sometimes the href might not always be lower case on the page. When this happens the selector no longer matches. Does anyone know how to get around this? Can I change the behaviour this once to ignore case? I ran into this myself. I switched the logic a bit to allow me to compare it without case. It requires a little more work, but at least it works. $('a').each(function(i,n) { var href = $(n).attr("href"); href = href.toLowerCase(); if (href

In VBA get rid of the case sensitivity when comparing words?

流过昼夜 提交于 2019-11-28 08:04:37
I am working on an VBA program which would allow the user to type an address and find the location by matching elements of the address with a database. Unfortunately, I am having a recurrent problem with the case sensitivity. For example, when I am using this code : For i = 11 To lRowB Range("B" & i).Activate myResult = IsNumeric(Application.Match(ActiveCell.Value, manilaListRange, 0)) It is gonna compare the value of the active cell to a list of words from my database. Problem is, if in my active cell the word is "miami" or "MIAMI" and only "Miami" is in the database, it won't work... Other

OData query $filter conditions and case-sensitivity

对着背影说爱祢 提交于 2019-11-28 06:53:48
Does OData specify whether filter conditions on string fields are to be evaluated case-sensitively or case-insensitively? Example: (from the docs) /Suppliers?$filter=Address/City eq 'Redmond' Is this expected to be case-sensitive or not? If I want to offer both options, how can this be expressed? There is a tolower() function that can be used like: /Suppliers?$filter=tolower(Address/City) eq 'redmond' or /Suppliers?$filter=tolower(Address/City) eq tolower('Redmond') Isn't there a more concise way to express case-insensitive matching? The "eq" operator is supposed to be case sensitive. Usage of

Liquibase/PostgreSQL: how to preserve table case correctly?

こ雲淡風輕ζ 提交于 2019-11-28 05:01:52
问题 I'm using Liquibase 3.1.1 to create tables in PostgreSQL 9.1. For example: <changeSet id="1" author="bob"> <createTable tableName="BATCHES"> <!-- .. -- > </createTable> </changeSet> However, the table gets created with a lowercase name: # select * from "BATCHES"; ERROR: relation "BATCHES" does not exist Is there any way to have Liquibase generate DDL that preserves the case of the table (and column etc) names that I specify in the change log? 回答1: You can use the objectQuotingStrategy="QUOTE

jquery .append() case sensitive element

眉间皱痕 提交于 2019-11-28 04:58:31
问题 Hi I need to create xml from data in form to send it to webservice. The problem is that .append() is case insensitive, so .append('<EDO />') will create <edo> . But xml is case sensitive, so is there a way how to solve this? And I've chosen to use domObject instead of string, because this way I don't have to write endtags, what would be very difficult in my scenario. 回答1: Try using $.parseXML() to create the XML element: yourObject.append($.parseXML("<EDO />").documentElement); 回答2: Finally

ORDER BY … COLLATE in SQL Server

此生再无相见时 提交于 2019-11-28 03:44:19
问题 Under SQL Server. A table contains some text with different cases. I want to sort them case-sensitive and thought that a COLLATE in the ORDER BY would do it. It doesn't. Why? CREATE TABLE T1 (C1 VARCHAR(20)) INSERT INTO T1 (C1) VALUES ('aaa1'), ('AAB2'), ('aba3') SELECT * FROM T1 ORDER BY C1 COLLATE Latin1_General_CS_AS SELECT * FROM T1 ORDER BY C1 COLLATE Latin1_General_CI_AS Both queries return the same, even if the first one is "CS" for case-sensitive aaa1 AAB2 aba3 (in the first case, I