Questions tagged [standards]

Standards are officially published or well agreed upon formats, procedures, or protocols. They allow individuals or organizations to collaborate by setting ground rules or boundaries. Standards often come with a set of preconditions or assumptions, which allow collaborators to take those conditions or assumptions as ground truth.

The concept of "standard" is at least as old as the Roman Empire, where the standard was a rod of wood often decorated with a headpiece or banner and carried at the front of an army's march. This one rod was used to establish a common length for contructing camps and buildings. By using the same length, workers constructing a door could operate independently of other workers constructing a door frame. And when the pieces were brought together, they fit.

Modern standards are often created by jurisdiction-based entities like national standards organizations (like ANSI in the USA) or the International Standards Organization (ISO).

3387 questions
3
votes
2 answers

Naming standard for INCLUDE indexes?

We use a fairly straightforward naming standard for indexes that I can validate programmatically, but I am struggling with naming indexes with INCLUDE columns. If I do it based on a simple formula, it's too easy to build names that are too long.…
Rob Garrison
  • 6,984
  • 4
  • 25
  • 23
3
votes
4 answers

Define an enum to be smaller than one byte / Why is this struct larger than one byte?

I'd like to define an enum to be smaller than one byte while maintaining type safety. Defining an enum as: enum MyEnum : unsigned char { i ,j, k, w }; I can shrink it to one byte, however I'd like to make it use only 2 bits since I will at most…
mrantifreeze
  • 65
  • 1
  • 7
3
votes
2 answers

Browser behavior on 403 Forbidden error

My server returns a 403 forbidden error when a user tries to access a resource that they do not have access to. Along with the header the server also writes a small message describing the error. In Firefox the error message gets displayed nicely and…
Peter D
  • 4,851
  • 2
  • 30
  • 30
3
votes
1 answer

How to specify language for a week input element in HTML5?

Is there any way to display the Spanish text "Semana" instead of "Week", and change the day names to spanish in the html5 input week element? This doesn't work: Neither does setting it in the html main tag. Any…
3
votes
3 answers

Intruding privacy - How does the C++ standard handle it?

Consider the below code snippet. The method Sayhi() is having public access in class Base. Sayhi() has been overridden as a private method by the class Derived. In this way, we can intrude into someone's privacy and C++ has no way to detect it…
Arun
  • 2,087
  • 2
  • 20
  • 33
3
votes
2 answers

Naming classes and resources with the company brand name

I'm currently working on a project that has a number of legacy code elements. In the past they have have been using the brand name in class definitions and resource names. For example (without me using my clients brand name lets use the imaginary…
3
votes
1 answer

Standard ML - Update global variable within a let-in-end expression?

Is there any way to update a variable binded in global scope within a let-in-end expression? For example if I have a global variable: val playerScore = 0; and then the function: fun hit (option:int) = if option = 2 then …
akocham
  • 31
  • 1
  • 2
3
votes
2 answers

Looking for a standalone library for handling HTTP cookies on a personal container in Javascript

Do you know if a Javascript library to handle cookies exists, that is mature and can work without a browser? In other words I only want the cookie logic that is included in the web browsers and HTTP clients and following the current standards, and…
sw.
  • 3,240
  • 2
  • 33
  • 43
3
votes
6 answers

What is the point of `void func() throw(type)`?

I know this is a valid c++ program. What is the point of the throw in the function declarement? AFAIK it does nothing and isnt used for anything. #include void func() throw(std::exception) { } int main() { return 0; }
user34537
3
votes
2 answers

Is compile-time constant expression evaluation ever required by the C standard?

For example, is static int a[1+1]; valid standard C? For some or all versions of the standard? I'm not interested in whether compilers can handle it, but whether it is part of standard C.
Mike Graham
  • 73,987
  • 14
  • 101
  • 130
3
votes
1 answer

Is it absolutely necessary to use tables for HTML emails?

I have to design some HTML emails for my work. It seem obvious that everybody use tables and inline CSS for this. I would use plain text if I would have the choice, but it's not possible in this case. As a front end developer who know a bit about…
smonff
  • 3,399
  • 3
  • 36
  • 46
3
votes
1 answer

Standard Xml parser in android

Is there a standard xml parser in android, where i can put any standard link for the RSS and it will give me the result? i found an example but i must specify the path for the items. Some thing like this link…
Reham
  • 1,916
  • 6
  • 21
  • 45
3
votes
1 answer

Are there any XML standards for charts?

I have worked with many charting and dashboard software packages and have had a difficult time porting charts between software packages. Are their any XML standards for defining charts? I would like to specify a chart in XML and use HTML5 standard…
Dan McCreary
  • 411
  • 3
  • 13
3
votes
2 answers

What is the order returned by descendants-or-self, and how does it work with child axis?

I am reading the standard for XPath and trying to understand how a portion of it works. http://www.w3.org/TR/xpath/ The xpath standard does not seem to call out the order in which descendants-or-self gets evaluated (context node first, or…
Shahar Prish
  • 4,838
  • 3
  • 26
  • 47
3
votes
7 answers

How to make and apply standards for UI development?

I work in a small and young team of developers and we have problems that we are not sure how to solve. On previous projects every developer have been working on tasks that were based on use cases. So, upon setting the system architecture, each team…
Misha N.
  • 3,455
  • 1
  • 28
  • 36