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
1 answer

Is there a standard UNIX way of writing and to stderr unambiguously?

Statement of Problem I have an application (python, if it matters) which parses files and may generate errors during parsing. When this happens, I log where the error occurred to stderr and exit gracefully. As I write locations to stderr, I have to…
sirosen
  • 1,716
  • 13
  • 17
3
votes
3 answers

Status of fixed-size parameter packs

I am currently curious about the progression of the Fixed Size Parameter Packs C++ language feature proposal (n4072). This feature allows for the following to be valid C++ syntax: void Foo( int...[10] iList ); This would allow for various useful…
Thomas Russell
  • 5,870
  • 4
  • 33
  • 68
3
votes
2 answers

CSS3 box-shadow + inset + RGBA

I'm doing some tests with new features of CSS3, but this combination only works in lastest versions of Chrome and Firefox, but not in Safari or Opera: box-shadow: inset 0px -10px 20px 0px rgba(0, 0, 0, 0.5); -webkit-box-shadow: inset 0px…
Htechno
  • 5,901
  • 4
  • 27
  • 37
3
votes
3 answers

Calculating moving average/stdev in SAS?

Hye guys, I included a screenshot to help clarify my problem: http://i40.tinypic.com/mcrnmv.jpg. I'm trying to calculate some kind of moving average and moving standard deviation. The thing is I want to calculate the coefficients of variation…
John
  • 47
  • 1
  • 3
  • 7
3
votes
1 answer

How to use std::fpos?

On the 27.5.4 of the latest C++ standard draft, I find a weird template class std::fpos, but I don't know what it is intended for. (The documentation is vague, less informative, and hard to understand.) I'm writing my own mini-STL for embedded…
xmllmx
  • 39,765
  • 26
  • 162
  • 323
3
votes
1 answer

Why isn't there a default polymorphic cloning operator mechanism in c++?

I mean, a cloning operator, which by default use the copy constructor and new operator to return a new object. So that if the declaration in the base class is virtual, it would automatically provide a polymorphic cloning mechanism (any class should…
galinette
  • 8,896
  • 2
  • 36
  • 87
3
votes
2 answers

Is it legal to have multiple HTTP GET parameters with the name?

Is it "legal", according to the HTTP protocol, to make an HTTP GET request that contains multiple parameters with the same name? For example /controller?name=John&name=Patrick&name=Jack I'm sure different clients and servers react differently,…
Nathan H
  • 48,033
  • 60
  • 165
  • 247
3
votes
2 answers

PHP - Using XML for a config file(s) are elements better than attributes or opposite?

I'm using XML for a config file in PHP (Using SimpleXML), in creating the config file what is more of a standard. Having all values in elements or using the attributes? Elements Example: test-user
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
3
votes
0 answers

What's the PSR-2 standard for associative array indexes (and what's the correct naming approach when pulling directly from a query)

What's the PSR-2 standard for associative array indexes? For consistency I would assume camelCase, however consider a case like this (I'm using Laravel 4+): // In Users table I have fields like this: favorite_color, created_at, etc... $id = 1; $rows…
prograhammer
  • 20,132
  • 13
  • 91
  • 118
3
votes
1 answer

Escaping requirements for the input tag's value attribute

What are the requirements for character escaping in the input tag's value attribute in the HTML markup? Is it just double quotes that need to be escaped? HTML special characters as well? I tried looking through the W3C spec, but I couldn't find any…
Steven
  • 17,796
  • 13
  • 66
  • 118
3
votes
1 answer

Greater/Less Than Comparison in Python

When implementing the rich comparison methods in a class, what should be returned when comparing two different class types? From the documentation it says Instances of a class cannot be ordered with respect to other instances of the same class, or…
Jonathan
  • 589
  • 1
  • 13
  • 23
3
votes
5 answers

java: what are the best techniques for communicating with a batch server?

I've a WEB application (with pure Java servlet) that have some heavy computational work, with database access, that can be done in asynchronous mode. I'm planning to use a dedicated server to execute such batch jobs and I'm wondering which…
Pier Luigi
  • 7,871
  • 9
  • 36
  • 46
3
votes
1 answer

Is there a standard procedure for passing class objects by value?

Is there a standard procedure for passing classes by value? In other words, if I do this: struct Test { int a; double b; } void DoSomething(Test t) { std::cout << t.a << std::endl; std::cout << t.b << std::endl; } //... Test…
cf-
  • 8,598
  • 9
  • 36
  • 58
3
votes
2 answers

simple inquiry about variable modifiers in C

I've always thought I knew C well enough, but I've ALWAYS been unsure whether these two are by standard equivalent: /* ========= */ const int i; const int j; /* as opposed to */ const int i, j; /* ========= */ Whenever I just need to modify a…
Dehbop
  • 159
  • 3
3
votes
1 answer

Change a variable reference after his initialization

In the C++ standard you can read that (8.5.3.2 pag.202) "A reference cannot be changed to refer to another object after initialization." but what about the following code #include #include int main(int argc, const char *…
Salvatore Avanzo
  • 2,656
  • 1
  • 21
  • 30