standards

Block Level Elements inside Inline elements [duplicate]

删除回忆录丶 提交于 2019-11-26 21:16:25
问题 This question already has an answer here: Is it wrong to change a block element to inline with CSS if it contains another block element? 9 answers The W3C Validator tells me I can't put block-level elements inside inline elements. Makes sense... but what if I'm using CSS to change that block-level element into an inline element? And what if I'm using CSS to convert an inline element into a block-level element (when inside another inline element)? The Validator doesn't pick up on this

Address standardization within a database

限于喜欢 提交于 2019-11-26 20:59:19
Working in MS Access 2013. Have a ton of locations/addresses which need to be standardized. Examples include addresses like: 500 W Main St 500 West Main St 500 West Main Street You get the point. I've considered running a query that pulls all records where the left(7) or something characters exist more than once in the database, but there are obvious flaws in that logic. Is there a function or query or anything else that would help me generate a list of records whose addresses may exist multiple times, in slightly different fashions? John Cappelletti This is a tricky business ... equal parts

How to send NULL in HTTP query string?

若如初见. 提交于 2019-11-26 20:56:35
问题 I'm developing an API that can accept the main three data types as values to query string parameters: boolean , string & numeric ( integer or float ). By default, everything is retrieved a string (I don't think there's a way around that), but the parameters are configured with a type so that I convert them to the proper type. I now need to start accepting NULL as a value, for all three data types, but I'm not sure what is the best way to do so. Some people seem to accept no value as NULL (

How are you using C++11 today? [closed]

[亡魂溺海] 提交于 2019-11-26 20:48:18
问题 This is a question in two parts, the first is the most important and concerns now: Are you following the design and evolution of C++11? What blogs, newsgroups, committee papers, and other resources do you follow? Even where you're not using any new features, how have they affected your current choices? What new features are you using now, either in production or otherwise? The second part is a follow-up, concerning the new standard once it is final: Do you expect to use it immediately? What

Standard Library Containers with additional optional template parameters?

*爱你&永不变心* 提交于 2019-11-26 20:46:46
Having read the claim multiple times in articles - I want to add this question to Stackoverflow, and ask the community - is the following code portable? template<template<typename T, typename Alloc> class C> void f() { /* some code goes here ... */ } int main() { f<std::vector>(); } Is the implementation that supplies std::vector really allowed to have additional, defaulted template parameters beyond the two well known ones? This would render the above code ill-formed, as it assumes two template parameters. See the last paragraph in this article for an example of such a claim. I found the

Can a conforming C implementation #define NULL to be something wacky

主宰稳场 提交于 2019-11-26 20:42:00
I'm asking because of the discussion that's been provoked in this thread . Trying to have a serious back-and-forth discussion using comments under other people's replies is not easy or fun. So I'd like to hear what our C experts think without being restricted to 500 characters at a time. The C standard has precious few words to say about NULL and null pointer constants. There's only two relevant sections that I can find. First: 3.2.2.3 Pointers An integral constant expression with the value 0, or such an expression cast to type void * , is called a null pointer constant. If a null pointer

Is an empty initializer list valid C code?

我们两清 提交于 2019-11-26 20:35:45
It is common to use {0} to initialize a struct or an array but consider the case when the first field isn't a scalar type. If the first field of struct Person is another struct or array, then this line will result in an error ( error: missing braces around initializer ). struct Person person = {0}; At least GCC allows me to use an empty initializer list to accomplish the same thing struct Person person = {}; But is this valid C code? Also: Is this line guaranteed to give the same behavior, i.e. a zero-initialized struct ? struct Person person; interjay No, an empty initializer list is not

Why default return value of main is 0 and not EXIT_SUCCESS?

巧了我就是萌 提交于 2019-11-26 20:34:01
问题 The ISO 1998 c++ standard specifies that not explicitly using a return statement in the main is equivalent to use return 0 . But what if an implementation has a different standard "no error" code, for example -1 ? Why not use the standard macro EXIT_SUCCESS that would be replaced either by 0 or -1 or any other value depending on the implementation? C++ seems to force the semantic of the program, which is not the role of a language which should only describe how the program behaves. Moreover

Hex representation of a color with alpha channel?

走远了吗. 提交于 2019-11-26 20:18:17
Is there a W3 or any other noteworthy standard on how to represent a color (including alpha channel) in hex format? Is it #RGBA or #ARGB ? In CSS 3, to quote from the spec, "there is no hexadecimal notation for an RGBA value" (see CSS Level 3 spec ). Instead you can the use rgba() functional notation with decimals or percentages, e.g. rgba(255, 0, 0, 0.5) would be 50% transparent red. RGB channels are 0-255 or 0%-100%, alpha is 0-1. In CSS 4*, you can specify the alpha channel using the 7th and 8th characters of an 8 digit hex colour, or 4th character of a 4 digit hex colour (see CSS Level 4

Does a dot have to be escaped in a character class (square brackets) of a regular expression?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 20:11:51
A dot . in a regular expression matches any single character. In order for regex to match a dot, the dot has to be escaped: \. It has been pointed out to me that inside square brackets [] a dot does not have to be escaped. For example, the expression: [.]{3} would match ... string. Doesn't it, really? And if so, is it true for all regex standards? lilactiger89 In a character class (square brackets) any character except ^ , - , ] or \ is a literal. This website is a brilliant reference and has lots of info on the nuances of different regex flavours. http://www.regular-expressions.info