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...
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....
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
I have not been able to find any literature on the subject.
...
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...
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?
...
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?
...
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...
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.
...