|
What is the best optimal way of finding whether any element is repeated in a given array?
Answer Snippets (Read the full thread at stackoverflow):
Another.
Other answers mention hashtables, and are actually optimal since it gets the job done in O(n).
|
|
What is the most optimal way to achieve the same as this?
void foo(double floatValue, char* stringResult) { sprintf(stringResult, "%f", floatValue); }
Started by David Dolson on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
You may prefer snprintf.
I'd say sprintf is pretty much the optimal way.
Inserted (not just doubles).
|
|
Hello!
What are optimal settings for Recycling of Application Pools in IIS7 in shared environment?
Thanks in advance
Started by GrZeCh on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
How about using ASP.NET StateService? This solution is reliable and can be set as default?
If you have a heavy traffic site, use... .
So caution on this!
IMHO, keep the defaults.
Tip: When you recycle your app, all your session variables are destroyed.. .
|
Ask your Facebook Friends
|
What is the optimal size of a software development team? or Does size really matter?
It seems to be subjective, but my intention is to know 'What are the metrics' which decides team size?.
Started by LittleBoy on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
The optimal size of a software development team.
Recently Jurgen has posted that the optimal team size is 5, but it is less on areas that have the most impact (think ROI).
Head and Art of Agile).
|
|
Using the Mysql multi insert statement (Inserting several records in one INSERT statement). Is there an optimal number for the number of records I can insert in one go, Or to the data size (bytes)?
Started by Itay Moav on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
U can defined....
You can increase this if the server needs to handle big queries (for example, if you are working with big BLOB columns) .
The limit is to the size of the row , one row query is limited ,
The server's default max_allowed_packet value is 1MB .
|
|
I'm looking for the optimal way to compute a hashcode for a set of bi-dimensional points (so that I can store polygons in a hashtable).
There are some obvious ways to do that, such as concatenating all the points coordinates in a string and its hashcode...
Started by Brann on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
You as optimal solution (if you do not....
It all depends on how big hash can you afford .
There is no optimal way for this job.
Performance will come of performance.
Optimal is dependent on your requirements from the hash computation.
|
|
Personal preferences aside, is there an optimal tab size (2 spaces? 3 spaces? 8 spaces?) for code readability? In the different projects I've worked on, people seem to have vastly different standards. I can't seem to read 2 space indents, but companies...
Started by sotangochips on
, 13 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
I read that 2 spaces is actually optimal, based on a study where programmers were asked to estimate the level of nesting based on indentation, ....
This way everybody can configure their editor to display.
The optimal tab size is "one tab".
|
|
What's the optimal buffer size to use with a stream from HttpWebResponse.GetResponseStream()?
Online examples vary from 256b to as much as 5Kb. What gives? I guess buffer sizes might be situational. If so what are the situations to use what type of buffer...
Started by fung on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Sure, if you use really small buffers, you may have to make a few extra calls down through the layers to get the bytes (though the stream is likely doing at least some buffering -- I don't know what it's defaults are... .
Really, it doesn't matter very much.
|
|
What is the most optimal way to get a string or char* pointer into an istream.
I want to do the following
std::string a = "abc.."; //I know this can be done, not sure if this is most efficient // and not sure about char* pointers std::istringstream istr...
Answer Snippets (Read the full thread at stackoverflow):
If you want to construct an istringstream from it, a char* up to the null character, or all the stuff from an... .
This will work:
std::istringstream is("abc...");
And since istringstream is a istream, you will be able to use your is object as an istream .
|
|
I'm implementing a CSS Sprites setup in my ASP.NET application based on this article..
http://weblogs.asp.net/zowens/archive/2008/03/05/css-sprite-for-asp-net.aspx
In the section "Get the SPRITE already!" ... the author says...
"The only real down side...
Started by ChrisV on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Making the most, finding the optimal solution is....
For a page in a website for me, optimal is spanning the width of the screen, then wrapping - i.e.
However, try looking at this and this.
It depends on your definition of "optimal".
|