standards

Equivalence of <limits> and <climits>

Is this guaranteed to be always true: std::numeric_limits<int>::max() == INT_MAX What does C++ standard say about it? I could not find any reference in the standard that would explicitly state this, but I keep reading that those should be equivalent. What about C99 types that are not in C++98 standard for compilers that implement bot...

Trying to standardize exports

I am trying to standardize my exports file. I need to remove all spaces and tabs between the first two fields and replace them with two tabs. I am using VI. So I want to change /vol/vol1/home1/xxx -rw=admin:app:admhosts to /vol/vol1/home1/xxx -rw=admin:app:admhosts making the space equil to To two TABS. I am using VI....

Reason for CSS property precedence?

I actually know how the browsers tend to render the following examples (results based on Opera 9.5 and Firefox 3.0), but I don't understand the reason behind them. Take this example, <style type="text/css"> #outer{color:red;} .inner{color:blue;} </style> <div id="outer" class="outer"> <div id="inner" class="inner"> <span>test...

MSVC++: Strangeness with unsigned ints and overflow

I've got the following code: #include <iostream> using namespace std; int main(int argc, char *argv[]) { string a = "a"; for(unsigned int i=a.length()-1; i+1 >= 1; --i) { if(i >= a.length()) { cerr << (signed int)i << "?" << endl; return 0; } } } If I compile in MSVC with full optimizations...

Standard Documents or Software to write Test Scenarios (or functional tests)

Are there standard documents around to write Test Scenarios (or functional tests/ acceptance tests)? Maybe software to input the scenarios and check them if passed... Now we use Word or Excel to do this but having a system to track the results of previous test scenarios would be usefull. thx, Lieven Cardoen ps: The tests are pure func...

How would you get a list of all the applications at your company?

Hi Everyone, (Updated: I've moved this over to ServerFault) I'm responsible for maintaining a list of all the applications in my company (about 250). The range is from HR systems that track 80k employees, to manufacturing-type systems responsible for hundreds of millions of dollars of revenue, to web applications with a small user bas...

As a private person, how do I develop a free standard without being sued by patent trolls?

I want to develop a free standard (free as in non-proprietary) along with a free reference implementation. Please understand that I don't want to go into depth of my idea (yet). It is, though, a serous idea. I've been now working nearly a year during my spare time on the specification and started with a reference implementation. Do I n...

Where should validation logic be implemented?

When developing my interfaces (contracts) and the concrete implementations of them, both the data models as well as repositories, I find myself questioning where the validation logic should go. Part of me (which tends to win out) says that the class itself should be responsible for it's own validation (string max length, date buffers, e...

What standards does your team enforce for a major-version code deployment?

I'm curious as to what sort of standards other teams make sure is in place before code ships (or deploys) out the door in major releases. I'm not looking for specific answers to each, but here's an idea of what I'm trying to get an idea of. For server-based apps, do you ensure monitoring is in place? To what degree...just that it resp...

Is it normal for a website to return HTTP Code 200 for a Page not Found(404) Page?

I was doing some testing with some sites (that I will not mention), and they are returning 200 code when they are page not found pages. Is this against any web development standard? This is the code that I am using to see the return code of a URL: System.out.println(new String("getRespCode=" + urlConnection.getResponseCode() + ", Http...

Standard methods of debugging

What's your standard way of debugging a problem? This might seem like a pretty broad question with some of you replying 'It depends on the problem' but I think a lot of us debug by instinct and haven't actually tried wording our process. That's why we say 'it depends'. I was sort of forced to word my process recently because a few devel...

Is there a standard definition of what constitutes a version(revision) change

I am currently in bureaucratic hell at my company and need to define what constitutes the different levels of software change to our test programs. We have a rough practice that we follow internally, but I am looking for a standard (if it exists) to reference in our Quality system. I recognize that systems may vary greatly between deve...

Proper way to change individual list item bullets

I have css like this: .done {list-style-image:url('images/tick.gif')} .notdone {list-style-image:url('images/cross.gif')} And html like this: <ul> <li class="done">Done</li> <li class="notdone">Not Done</li> </ul> Works great on IE6 and FF. Each li item has a different image for the bullet. But all of the docs I see on list-styl...

Is it legal to write to std::string?

In std::string there are only const members to fetch the data like c_str(). However I can get a reference to the first element of the string via operator[] and I can write to it. For example, if I have function: void toupper(char *first,char *last_plus_one); I can write directly to vector getting a pointer to the first element: vect...

Is there DTMF API or standard that includes letters as well as standard numeric values?

I have not been able to find any literature on the subject. ...

Re-Inventing the wheel - Is it that bad?

Duplicate of: What considerations should be made before reinventing the wheel? I find myself enjoying very much designing infrastructure components like: Source code control, Plugins mechanism, Document management, Application shell and even scripting language (see: www.SceneMax.com). On the other side people in my team say they do...

Is it possible to Validate ASP.NET pages as valid HTML before compile

Following my question here I run the suggested Tidy Program which came back with a whole load of errors regarding the tool not recognising ASP tags. Is it possible for a tool to validate ASP.NET pages before compile/delivery via a browser? ...

Should I use char** argv or char* argv[] in C?

I'm just learning C and was wondering which one of these I should use in my main method. Is there any difference? Edit: So which one is more common to use? ...

Why do no databases fully support ANSI or ISO SQL standards?

If I were designing a oil refinery, I wouldn't expect that materials from different vendors would not comply with published standards in subtle yet important ways. Pipework, valves and other components from one supplier would come with flanges and wall thicknesses to ANSI standards, as would the same parts from any other supplier. Inte...

Standardized Job Descriptions

Here's a question that I'm sure almost every one of you have come across in your careers unless you are still working for the first company you ever worked for. In IT, most job descriptions seem to be made up. A Senior Systems Analyst at company A seems to do something very different from that same Senior Systems Analyst at company B. ...