qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
175,049 | <p>I could write this, but before I do, I wanted to check to see if there are existing solutions out there since it seems a lot of websites already do this, so I was wondering if there was a quick way to do this.</p>
<p>Also, I am talking about "popout" windows, not "popup" windows. All JavaScript libraries support "... | [
{
"answer_id": 175388,
"author": "Sergey Ilinsky",
"author_id": 23815,
"author_profile": "https://Stackoverflow.com/users/23815",
"pm_score": 1,
"selected": false,
"text": "var oDiv = document.getElementById('mydiv');\nvar oWindow = window.open(\"about:blank\");\n\noWindow.document.body.... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2484/"
] |
175,055 | <p>I am running a series of JUnits using Apache ANT using JDK 1.5.</p>
<p>All JUnits that use an Oracle JDBC driver give the UnsatisfiedLinkError shown below.</p>
<p>What native library is it looking for and how do I solve this? What should the PATH variable contain?</p>
<pre><code>java.lang.UnsatisfiedLinkError: or... | [
{
"answer_id": 175902,
"author": "cagcowboy",
"author_id": 19629,
"author_profile": "https://Stackoverflow.com/users/19629",
"pm_score": 0,
"selected": false,
"text": "java [other java switches + runtime parameters] -Djava.library.path=YOUR_ORACLE_HOME\\bin run-classname\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
175,056 | <p>In a project I am working on, we have an ongoing discussion amongst the dev team - should the production environment be deployed as a checkout from the SVN repository or as an export?</p>
<p>The development environment is obviously a checkout, since it is constantly updated.
For the production, I'm personally for c... | [
{
"answer_id": 1228320,
"author": "Chris",
"author_id": 150401,
"author_profile": "https://Stackoverflow.com/users/150401",
"pm_score": 5,
"selected": true,
"text": "# Disallow browsing of Subversion working copy administrative dirs.\n<DirectoryMatch \"^/.*/\\.svn/\">\n Order deny,all... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10585/"
] |
175,066 | <p>My database contains three tables called <code>Object_Table</code>, <code>Data_Table</code> and <code>Link_Table</code>. The link table just contains two columns, the identity of an object record and an identity of a data record.</p>
<p>I want to copy the data from <code>DATA_TABLE</code> where it is linked to one ... | [
{
"answer_id": 175136,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 5,
"selected": false,
"text": "INSERT IDENTITY OUTPUT OUTPUT INTO"
},
{
"answer_id": 175138,
"author": "Joel Coehoorn",
"author_id": 30... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18107/"
] |
175,091 | <p>I'm trying to host a PHP web site that was given to me. I see this warning:</p>
<blockquote>
<p><strong>Warning:</strong> Unknown: Your script possibly
relies on a session side-effect which
existed until PHP 4.2.3. Please be
advised that the session extension
does not consider global variables as
a sou... | [
{
"answer_id": 175145,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 8,
"selected": true,
"text": "$_SESSION['var1'] = null;\n$var1 = 'something';\n ini_set('session.bug_compat_warn', 0);\nini_set('session.bug_compat_42', 0);\n... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
175,099 | <p>Does anyone have a good algorithm for re-sorting an array of values (already pre-sorted) so that they can be displayed in multiple (N) columns and be read vertically? This would be implemented in .Net but I'd prefer something portable and not some magic function.</p>
<p>A good example of it working is the ASP.Net C... | [
{
"answer_id": 175516,
"author": "Eric",
"author_id": 6367,
"author_profile": "https://Stackoverflow.com/users/6367",
"pm_score": 1,
"selected": false,
"text": "array<String^>^ sArray = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\"};\ndouble Columns = 4;\ndouble dRowCount = Convert::... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25549/"
] |
175,103 | <p>I have a <a href="http://en.wikipedia.org/wiki/Uniform_resource_locator" rel="noreferrer">URL</a>, and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the URL can either end <em>or</em> continue with a "/" and more URL text. I'd like to match URLs like this:</p>... | [
{
"answer_id": 175141,
"author": "Adam Tegen",
"author_id": 4066,
"author_profile": "https://Stackoverflow.com/users/4066",
"pm_score": 7,
"selected": true,
"text": "/(.+)/(\\d{4}-\\d{2}-\\d{2})-(\\d+)(/.*)?$\n (.+) .+ + (\\d{4}-\\d{2}-\\d{2}) \\d{4} [0-9] {4} - - \\d{2} [0-9] {2} - - \\... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/404/"
] |
175,109 | <p>I'm doing some research into using log4net, and I found the <em>IObjectRenderer</em> interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly <code>ToString()</code> implementation. I just started looking at log4net though, and can't seem to find... | [
{
"answer_id": 175111,
"author": "OwenP",
"author_id": 2547,
"author_profile": "https://Stackoverflow.com/users/2547",
"pm_score": 4,
"selected": true,
"text": "using System.IO;\nusing log4net;\nusing log4net.Config;\nusing log4net.ObjectRenderer;\nusing log4net.Util;\n\nnamespace Consol... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2547/"
] |
175,115 | <p>[edit]
So I used one of the javascript tooltips suggested below. I got the tips to show when you stop and hide if you move. The only problem is it works when I do this:</p>
<pre><code>document.onmousemove = (function() {
var onmousestop = function() {
Tip('Click to search here');
document.getE... | [
{
"answer_id": 175188,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 1,
"selected": false,
"text": "document.onmousemove = (function() {\n if($('balloon').visible) {\n //mouse is moving again\n}....//y... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5234/"
] |
175,116 | <p>For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands. </p>
<p>However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able to select certain tests and be able to run or debug them without ... | [
{
"answer_id": 870955,
"author": "Even Mien",
"author_id": 73794,
"author_profile": "https://Stackoverflow.com/users/73794",
"pm_score": 3,
"selected": false,
"text": "ReSharper.ReSharper_UnitTest_ContextDebug ReSharper.ReSharper_UnitTest_ContextProfile ReSharper.ReSharper_UnitTest_Conte... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
175,131 | <p>I am currently working on a project that will store specific financial information about our clients in a MS SQL database. Later, our users need to be able to query the database to return data from the clients based on certain criteria (eg. clients bigger then a certain size, clients in a certain geographical locati... | [
{
"answer_id": 12914876,
"author": "Jom George",
"author_id": 1053355,
"author_profile": "https://Stackoverflow.com/users/1053355",
"pm_score": -1,
"selected": false,
"text": "Declare @SUMAmount decimal(12,3) \n Select @SUMAmount= SUM(ISNULL(@A,0)+ISNULL(@B,0)+ISNULL(@C,0)+ISNULL(@D,0))\... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13846/"
] |
175,153 | <p>I am using SimpleTest, a PHP-based unit testing framework. I am testing new code that will handle storing and retrieving website comments from a database. I am at a loss for how to structure the project to test the database access code.</p>
<p>I am looking for any suggestions as to best practices for testing db cod... | [
{
"answer_id": 175177,
"author": "Jason Cohen",
"author_id": 4926,
"author_profile": "https://Stackoverflow.com/users/4926",
"pm_score": 1,
"selected": false,
"text": "TRUNCATE"
},
{
"answer_id": 189107,
"author": "troelskn",
"author_id": 18180,
"author_profile": "htt... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3238/"
] |
175,170 | <p>What function can I use in Excel VBA to slice an array?</p>
| [
{
"answer_id": 175178,
"author": "Lance Roberts",
"author_id": 13295,
"author_profile": "https://Stackoverflow.com/users/13295",
"pm_score": 7,
"selected": true,
"text": "WorksheetFunction.Index array Public Function GetArraySlice2D(Sarray As Variant, Stype As String, Sindex As Integer, ... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13295/"
] |
175,186 | <p>Let's say I have this type in my application:</p>
<pre><code>public class A {
public int id;
public B b;
public boolean equals(Object another) { return this.id == ((A)another).id; }
public int hashCode() { return 31 * id; //nice prime number }
}
</code></pre>
<p>and a <code>Set<code><A</code>></code> s... | [
{
"answer_id": 175211,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 5,
"selected": false,
"text": "equals hashCode"
},
{
"answer_id": 175212,
"author": "Jason Cohen",
"author_id": 4926,
"author_prof... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2819/"
] |
175,205 | <p>Consider the following code:</p>
<pre><code>$("a").attr("disabled", "disabled");
</code></pre>
<p>In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not effect... | [
{
"answer_id": 175221,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 4,
"selected": true,
"text": "$(\"a\").click(function(event){\n if (this.disabled) {\n event.preventDefault();\n } else {\n // make your AJAX call or w... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19704/"
] |
175,228 | <p>Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious?</p>
<p>For example, imagine I have this class in C++:</p>
<pre><code>
public class SomeClass {
private:
bool mIsVisible;
public:
void draw();
... | [
{
"answer_id": 175233,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 3,
"selected": false,
"text": "show() hide() skinPigment tanMe() makeAlbino()"
},
{
"answer_id": 175467,
"author": "Community",
"au... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2289/"
] |
175,240 | <p>I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format.</p>
<p>What is the best way to convert the entire file format using Python?</p>
| [
{
"answer_id": 175258,
"author": "Pete Karl II",
"author_id": 22491,
"author_profile": "https://Stackoverflow.com/users/22491",
"pm_score": 4,
"selected": false,
"text": "> >>> unicode('hello') u'hello'\n> >>> unicode('hello', 'ascii') u'hello'\n> >>> unicode('hello', 'iso-8859-1') u'hel... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
175,244 | <p>Every so often, I'll have to switch between languages for the majority of the code I write (whether for work or for play). I find that C++ is one of those languages that requires a lot of mental cache space, so if I take a long break from it, then I forget a lot of the details. Even things like adding items to an S... | [
{
"answer_id": 175564,
"author": "Sébastien RoccaSerra",
"author_id": 2797,
"author_profile": "https://Stackoverflow.com/users/2797",
"pm_score": 4,
"selected": false,
"text": "std::swap() const * * const *this Base::operator=(rhs); operator=() operator=() operator=()"
},
{
"answ... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24923/"
] |
175,252 | <p>I am trying to create a custom control that a "gridview" like control but specifcally for business objects that implement certain custom interfaces. </p>
<p>In doing this I have come across the following problem.</p>
<p>I have a control that I have disabled viewstate on (and I don't want to re-enable it) and it ha... | [
{
"answer_id": 533306,
"author": "teedyay",
"author_id": 15825,
"author_profile": "https://Stackoverflow.com/users/15825",
"pm_score": 0,
"selected": false,
"text": "this.ViewState[\"someKey\"] = someValue;\n this.Page.ViewState[\"someKey\"] = someValue;\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9581/"
] |
175,256 | <p>The <a href="http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx" rel="nofollow noreferrer">AssemblyVersion</a> and <a href="http://msdn.microsoft.com/en-us/library/system.reflection.assemblyfileversionattribute.aspx" rel="nofollow noreferrer">AssemblyFileVersion</a> attributes ar... | [
{
"answer_id": 448852,
"author": "Daniel Fortunov",
"author_id": 5975,
"author_profile": "https://Stackoverflow.com/users/5975",
"pm_score": 2,
"selected": false,
"text": "AssemblyFileVersion AssemblyVersion"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5697/"
] |
175,264 | <p>So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup. </p>
<p>I do all of my development on my laptop so i don't always have an internet connection (hence the local SVN), so i was wonder... | [
{
"answer_id": 175282,
"author": "Fernando Barrocal",
"author_id": 2274,
"author_profile": "https://Stackoverflow.com/users/2274",
"pm_score": 3,
"selected": true,
"text": "svn merge"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18811/"
] |
175,296 | <p>I use TortoiseSVN 1.5.3 and VisualSVN 1.5.3 (Subversion 1.5.2)</p>
<p>Suppose that I create a new branch (/branches/branch1) of the trunk(/trunk) then someone (also using TortoiseSVN 1.5.3) merges their branch back into the trunk. </p>
<p>I try to merge from the trunk into the branch (to aquire all changes which m... | [
{
"answer_id": 178004,
"author": "Rory Becker",
"author_id": 11356,
"author_profile": "https://Stackoverflow.com/users/11356",
"pm_score": 2,
"selected": true,
"text": "http://SomeUsername@Myserver:8080/myrepo/trunk\n http://Myserver:8080/myrepo/trunk\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
175,312 | <p>I am writing a software synthesizer and need to generate bandlimited, alias free waveforms in real time at 44.1 kHz samplerate. Sawtooth waveform would do for now, since I can generate a pulse wave by mixing two sawtooths together, one inverted and phase shifted.</p>
<p>So far I've tried the following approaches:</... | [
{
"answer_id": 175808,
"author": "finalman",
"author_id": 20522,
"author_profile": "https://Stackoverflow.com/users/20522",
"pm_score": 2,
"selected": false,
"text": "float getSaw(float phaseChange)\n{\n static float phase = 0.0f;\n phase = fmod(phase + phaseChange, 1.0f);\n ret... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20522/"
] |
175,323 | <p>As I am coding my unit tests, I tend to find that I insert the following lines:</p>
<pre><code>Console.WriteLine("Starting InteropApplication, with runInBackground set to true...");
try
{
InteropApplication application = new InteropApplication(true);
application.Start();
Console.WriteLine("Application s... | [
{
"answer_id": 175456,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 0,
"selected": false,
"text": "public void TestApplicationStart()\n{\n InteropApplication application = new InteropApplication(true);\n application.Start()... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8505/"
] |
175,381 | <p>I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control?</p>
<pre><code><div id="formSpinner">
<img src="images/spinner.gif" />
<p>Saving...</p>
</div>
</code></pre>
| [
{
"answer_id": 175407,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": false,
"text": "<div runat=\"server\" id=\"formSpinner\">\n ...content...\n</div>\n formSpinner.Attributes[\"class\"] = \"class-name\... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25538/"
] |
175,385 | <p>When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach?</p>
| [
{
"answer_id": 175422,
"author": "Dan",
"author_id": 17121,
"author_profile": "https://Stackoverflow.com/users/17121",
"pm_score": 6,
"selected": true,
"text": ":hover a{\n background-image: url(non-hovered-state.png);\n}\na:hover{\n background-image: url(hovered-state.png);\n}\n :... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2470/"
] |
175,415 | <p>What is the best way to get the names of all of the tables in a specific database on SQL Server?</p>
| [
{
"answer_id": 175417,
"author": "Ray",
"author_id": 4872,
"author_profile": "https://Stackoverflow.com/users/4872",
"pm_score": 3,
"selected": false,
"text": "exec sp_msforeachtable 'print ''?'''\n"
},
{
"answer_id": 175423,
"author": "spoulson",
"author_id": 3347,
"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
175,437 | <p>We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names are being used leading to name space conflicts. </p>
<p>Does anyone know o... | [
{
"answer_id": 175552,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 3,
"selected": true,
"text": "foo.this foo.that org.apache.project.component.lower.level.names com.projectX.foo.this com.projectZ.foo.that"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13753/"
] |
175,451 | <p>How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process?</p>
<p>I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that diffs the schema?</p>
<p>Als... | [
{
"answer_id": 175675,
"author": "Swaroop C H",
"author_id": 4869,
"author_profile": "https://Stackoverflow.com/users/4869",
"pm_score": 1,
"selected": false,
"text": "cake schema generate"
},
{
"answer_id": 39343500,
"author": "Nolwennig",
"author_id": 4457531,
"auth... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10585/"
] |
175,454 | <p>I am working on a web application and I have run into the following situation.</p>
<pre><code>Dim a as Object
Dim i as Integer = 0
Try
For i=1 to 5
a = new Object()
'Do stuff '
a = Nothing
Next
Catch
Finally
a = Nothing
End Try
</code></pre>
<p>Do i need to do the a=Not... | [
{
"answer_id": 175465,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "a = Nothing try/finally"
},
{
"answer_id": 175480,
"author": "John Rudy",
"author_id": 14048,
"author... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1001650/"
] |
175,488 | <p>I have a website form that requires a US phone number input for follow up purposes, and this is very necessary in this case. I want try to eliminate users entering junk data <em>330-000-0000</em>. I have seen some options of third parties that validate phone numbers for you, however idk if that is the best option fo... | [
{
"answer_id": 175518,
"author": "GloryFish",
"author_id": 3238,
"author_profile": "https://Stackoverflow.com/users/3238",
"pm_score": 2,
"selected": false,
"text": "function phone_number_is_valid($phone) {\n return (eregi('^(?:\\([2-9]\\d{2}\\)\\ ?|[2-9]\\d{2}(?:\\-?|\\ ?))[2-9]\\d{2... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19226/"
] |
175,505 | <p>I have an application where whenever a file is uploaded to a directory, I have to call SSIS to parse the XML file.</p>
<p>Can I call a SSIS directly from a .NET Windows service?</p>
| [
{
"answer_id": 12881116,
"author": "Hassan Boutougha",
"author_id": 1542767,
"author_profile": "https://Stackoverflow.com/users/1542767",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing Microsoft.SqlServer.Dts.Runtime.Wrapper;\n\nnamespace ConsoleApplicationSSIS\n{\n c... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
175,532 | <p>I am using java language,I have a method that is supposed to return an object if it is found.</p>
<p>If it is not found, should I:</p>
<ol>
<li>return null</li>
<li>throw an exception</li>
<li>other</li>
</ol>
<p>Which is the best practise or idiom?</p>
| [
{
"answer_id": 175574,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 2,
"selected": false,
"text": "Object *findObject(Key &key);\n void findObject(Key &key, Object &found);\n bool findObject(Key &key, Object &found);\n... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9516/"
] |
175,544 | <p>I'm trying to write a tennis reservation system and I got stucked with this problem.
Let's say you have players with their prefs regarding court number, day and hour.
Also every player is ranked so if there is day/hour slot and there are several players
with preferences for this slot the one with top priority should... | [
{
"answer_id": 175585,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 2,
"selected": false,
"text": "sort players by priority, highest to lowest\nstart with empty schedule\nfor player in players:\n for timeslot in player... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25587/"
] |
175,547 | <p>How you fix the following Hibernate error:</p>
<p>What does "Use of the same entity name twice".</p>
| [
{
"answer_id": 175599,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 0,
"selected": false,
"text": "<xml>nicely formatted</xml>\n"
},
{
"answer_id": 23336677,
"author": "Misha Zadorozhnyy",
"author_id": 19153... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
175,554 | <p>I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second.</p>
<p>For example: 10 Days, 5 hours, 13 minutes, 1 second.</p>
| [
{
"answer_id": 175575,
"author": "friol",
"author_id": 23034,
"author_profile": "https://Stackoverflow.com/users/23034",
"pm_score": 6,
"selected": false,
"text": "seconds=(A/1000)%60\nminutes=(A/(1000*60))%60\nhours=(A/(1000*60*60))%24\n %"
},
{
"answer_id": 175576,
"author"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
175,579 | <p>What are they and how do they work?</p>
<p>Context happens to be SQL Server</p>
| [
{
"answer_id": 175630,
"author": "John Nilsson",
"author_id": 24243,
"author_profile": "https://Stackoverflow.com/users/24243",
"pm_score": 4,
"selected": false,
"text": "echo \"test\" | wc\n mkdnod apipe p\nwc apipe\n echo \"test\" > apipe\n"
},
{
"answer_id": 175654,
"autho... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
175,621 | <p>I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but is not necessary. </p>
<p>Is there a Maven plugin to acc... | [
{
"answer_id": 175664,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": true,
"text": "<plugin>\n <groupId>org.apache.maven.plugins</groupId>\n <artifactId>maven-antrun-plugin</artifactId>\n <version>1.2... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12880/"
] |
175,649 | <p>I'm working on a project where I have 2 web services that need the same entity. The 2 web services are on the same server so on the back-end, they share the same classes. </p>
<p>On the front-end side, my code consumes <em>both</em> web services and sees the entities from both services as separate (in different nam... | [
{
"answer_id": 175855,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 3,
"selected": true,
"text": "wsdl.exe wsdl.exe /sharetypes http://localhost/MyService1.asmx?wsdl http://localhost/MyService2.asmx?wsdl\n /sharetypes"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175649",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
175,655 | <p>We recently had a problem where, after a series of commits had occurred, a backend process failed to run. Now, we were good little boys and girls and ran <code>rake test</code> after every check-in but, due to some oddities in Rails' library loading, it only occurred when we ran it directly from Mongrel in productio... | [
{
"answer_id": 175947,
"author": "Orion Edwards",
"author_id": 234,
"author_profile": "https://Stackoverflow.com/users/234",
"pm_score": 3,
"selected": false,
"text": "nil ArgumentError NoMethodError"
},
{
"answer_id": 176006,
"author": "AShelly",
"author_id": 10396,
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2590/"
] |
175,684 | <p>I have currently 200+ GB database that is using the DB2 built in backup to do a daily backup (and hopefully not restore - lol) But since that backup now takes more than 2.5 hours to complete I am looking into a Third party Backup and Restore utility. The version is 8.2 FP 14 But I will be moving soon to 9.1 and I a... | [
{
"answer_id": 199131,
"author": "Antonio Cangiano",
"author_id": 6551,
"author_profile": "https://Stackoverflow.com/users/6551",
"pm_score": 2,
"selected": false,
"text": "db2 backup db mydb /mnt/disk1 /mnt/disk2 /mnt/disk3 ... WITH num_buffers BUFFERS BUFFER buffer-size PARALLELISM n U... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6788/"
] |
175,689 | <p>I know you can use C++ keyword 'explicit' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion of parameters for a class method?</p>
<p>I have two class members, one which takes a bool as a param, the other an unsigned int. When I called t... | [
{
"answer_id": 175759,
"author": "Lev",
"author_id": 7224,
"author_profile": "https://Stackoverflow.com/users/7224",
"pm_score": 4,
"selected": false,
"text": "explicit"
},
{
"answer_id": 175926,
"author": "Patrick Johnmeyer",
"author_id": 363,
"author_profile": "http... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16496/"
] |
175,690 | <p>I know I could just ask, but that would involve bureaucratic entanglements.</p>
| [
{
"answer_id": 175701,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 0,
"selected": false,
"text": "C:\\Documents and Settings\\jj33>nslookup companyname.ad\nServer: palpatine.companyname.ad\nAddress: 172.19.1.3\n\nName: compa... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
175,695 | <p>How can I represent the following in XSD.</p>
<pre><code><price-update>
<![CDATA[
arbitrary data goes here
]]>
</price-update>
</code></pre>
| [
{
"answer_id": 175706,
"author": "Oliver Hallam",
"author_id": 19995,
"author_profile": "https://Stackoverflow.com/users/19995",
"pm_score": 5,
"selected": false,
"text": "<doc>value</doc>\n <doc><![CDATA[value]]></doc>\n"
},
{
"answer_id": 175866,
"author": "James Curran",
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21297/"
] |
175,696 | <p>I'm looking for the class name of the popup/message windows on the iPhone (it's a blueish window that comes up when you have a missed call, or a message comes in for example.)</p>
| [
{
"answer_id": 175700,
"author": "lajos",
"author_id": 3740,
"author_profile": "https://Stackoverflow.com/users/3740",
"pm_score": 4,
"selected": true,
"text": "UIAlertView"
},
{
"answer_id": 178889,
"author": "davidmytton",
"author_id": 2183,
"author_profile": "https... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3740/"
] |
175,717 | <p>This is something that I have never fully grasped in .NET as to the correct application of the .dispose() method.</p>
<p>Say I have something like</p>
<pre><code>Public Class someClass()
sub someMethod
' do some stuff tying up resources
end sub
End Class
public class mainApp
dim _class as new SomeClass... | [
{
"answer_id": 175722,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "Dispose() Using"
},
{
"answer_id": 175731,
"author": "user7116",
"author_id": 7116,
"author_profile"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11802/"
] |
175,723 | <p>I have a form where controls are dynamically added to a Panel. However, when they do so, they are many times added below the fold (bottom of the container). It's nice that the .NET Framework provides this ScrollControlIntoView method, however, for added usability, it would also be nice if there was an easy way to ... | [
{
"answer_id": 175722,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 0,
"selected": false,
"text": "Dispose() Using"
},
{
"answer_id": 175731,
"author": "user7116",
"author_id": 7116,
"author_profile"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21807/"
] |
175,726 | <p>c# windows forms: How do you create new settings at run time so that they are permanently saved as Settings.Default.-- values?</p>
| [
{
"answer_id": 1236190,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "RegistryKey ProgSettings = Registry.CurrentUser.OpenSubKey(\"Software\", true);\nProgSettings.CreateSubKey(\"Your Program set... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
175,733 | <p>I have two tables in my database, called <em>ratings</em> and <em>movies</em>.</p>
<p><strong>Ratings:</strong></p>
<blockquote>
<p><code>| id | movie_id | rating |</code></p>
</blockquote>
<p><strong>Movies:</strong></p>
<blockquote>
<p><code>| id | title |</code></p>
</blockquote>
<p>A typical movie record might b... | [
{
"answer_id": 175743,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": 4,
"selected": true,
"text": "SELECT movies.id, movies.title, COUNT(ratings.id) AS num_ratings \n FROM movies \n LEFT JOIN ratings ON ratings.movi... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/326176/"
] |
175,739 | <p>I'm hoping there's something in the same conceptual space as the old VB6 <code>IsNumeric()</code> function?</p>
| [
{
"answer_id": 175775,
"author": "roenving",
"author_id": 23142,
"author_profile": "https://Stackoverflow.com/users/23142",
"pm_score": 6,
"selected": false,
"text": "var num = \"987238\";\n\nif(num.match(/^-?\\d+$/)){\n //valid integer (positive or negative)\n}else if(num.match(/^\\d+\... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19074/"
] |
175,742 | <p>I want to allocate a 2 D Array in Java Script. </p>
<p>I want do some thing similar to this in JavaScript</p>
<pre><code>typedef struct
{
int itemA,
int itemB,
string testC
} myStruc;
myStruct MyArray [100];
</code></pre>
<p>How to do this ? </p>
| [
{
"answer_id": 175764,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 0,
"selected": false,
"text": "var myArray = new Array(\"someString1\", \"someString2\", \"someString3\", ...);\n \"someString1\" var myArray = new Array(5)... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
175,763 | <p>What are some resources that will help get me up and running quickly with the Excel interop in C#?</p>
| [
{
"answer_id": 176130,
"author": "BKimmel",
"author_id": 13776,
"author_profile": "https://Stackoverflow.com/users/13776",
"pm_score": 3,
"selected": false,
"text": "object missing = System.Reflection.Missing.Value;\nstring somestring = \"string\";\nobject refstring = (object)s;\nwrd.Sel... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25571/"
] |
175,785 | <p>I have a form with a textarea. Users enter a block of text which is stored in a database.</p>
<p>Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: –, ’, “ ,â€</p>
<p>What function should I call on the input string to <em>convert sma... | [
{
"answer_id": 175819,
"author": "Patrick McElhaney",
"author_id": 437,
"author_profile": "https://Stackoverflow.com/users/437",
"pm_score": 1,
"selected": false,
"text": "accept-charset=\"utf-8\""
},
{
"answer_id": 175820,
"author": "Greg",
"author_id": 24181,
"autho... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175785",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3238/"
] |
175,835 | <p>I'm trying add a tab to my web page that looks like this: <img src="https://i.stack.imgur.com/DT3e7.png" alt="alt text"></p>
<p>Using <a href="http://mattberseth.com/blog/2007/09/using_css_image_sprites_with_t.html" rel="nofollow noreferrer">this example</a> as a basis, I've gotten it partially working. My case di... | [
{
"answer_id": 175900,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": true,
"text": "<div style=\"background: url('BlueTabSprite.png') no-repeat; width: 290px; min-width: 120px; max-width: 290px; height: 23px;\"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12601/"
] |
175,836 | <p>When using the .NET WebBrowser control how do you open a link in a new window using the the same session (ie.. do not start a new ASP.NET session on the server), or how do you capture the new window event to open the URL in the same WebBrowser control?</p>
| [
{
"answer_id": 175851,
"author": "Greg Bray",
"author_id": 17373,
"author_profile": "https://Stackoverflow.com/users/17373",
"pm_score": 5,
"selected": true,
"text": "//-------------------------------VB.NET Version:-------------------------------\n\nDim WithEvents Web_V1 As SHDocVwCtl.We... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175836",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17373/"
] |
175,845 | <p>I have a repeater control where in the footer I have a DropDownList. In my code-behind I have:</p>
<pre><code>protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item
|| e.Item.ItemType == ListItemType.AlternatingItem)
{
... | [
{
"answer_id": 176003,
"author": "KyleLanser",
"author_id": 12923,
"author_profile": "https://Stackoverflow.com/users/12923",
"pm_score": 5,
"selected": true,
"text": "<FooterTemplate>\n <asp:DropDownList ID=\"ddlOptions\"\n runat=\"server\" \n AutoPostBack=\"t... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3111/"
] |
175,847 | <p>I am writing a fairly basic script using jQuery. However, the script behaves differently depending on whether I am running it on my local Web server (localhost) or on a production server.</p>
<p>On development, the following code returns the HTML I'm expecting: </p>
<pre><code>$('#objID').siblings('.mAddress').h... | [
{
"answer_id": 176768,
"author": "Bruce Aldridge",
"author_id": 21460,
"author_profile": "https://Stackoverflow.com/users/21460",
"pm_score": 1,
"selected": false,
"text": "<div><p></p><p></p></div>\n $('#objID').find('.mAddress').html();\n $('#objID').children('.mAddress').html();\n $('... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13449/"
] |
175,858 | <p>Has anyone found a way to save a FlowDocument as BAML or other compressed format? I can import XML with images to create a new FlowDocument:</p>
<pre><code><TextRange class instance>.Load(fs, DataFormats.Rtf)
</code></pre>
<p>However, I haven't found a good way to save it in a 'native' compressed format. U... | [
{
"answer_id": 320737,
"author": "Fred",
"author_id": 177,
"author_profile": "https://Stackoverflow.com/users/177",
"pm_score": 0,
"selected": false,
"text": "<TextRange class instance>.Save(fs, DataFormats.Xaml);\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/177/"
] |
175,880 | <p>It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads. </p>
<p>I have done some reading and found a tech article from IBM stating that the usage of Quartz with Spring will cause that. They make the suggestion of using CommnonJ to... | [
{
"answer_id": 17742363,
"author": "PaoloC",
"author_id": 2365724,
"author_profile": "https://Stackoverflow.com/users/2365724",
"pm_score": 3,
"selected": false,
"text": "ctx.lookup(myJndiUrl) <dependency>\n <groupId>org.quartz-scheduler</groupId>\n <artifactId>quartz-commonj</artifact... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8981/"
] |
175,882 | <p>Now there's something I always wondered: how is sleep() implemented ?</p>
<p>If it is all about using an API from the OS, then how is the API made ?</p>
<p>Does it all boil down to using special machine-code on the CPU ? Does that CPU need a special co-processor or other gizmo without which you can't have sleep() ... | [
{
"answer_id": 33639161,
"author": "Ciro Santilli OurBigBook.com",
"author_id": 895245,
"author_profile": "https://Stackoverflow.com/users/895245",
"pm_score": 2,
"selected": false,
"text": "nanosleep git ls-files | grep sleep\n sysdeps/unix/sysv/linux/sleep.c\n sysdeps/unix/sysv/linux/\... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15649/"
] |
175,891 | <p>Lets assume we have this xml: </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure"
xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
<t... | [
{
"answer_id": 175920,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 4,
"selected": true,
"text": "var q = from x in doc.Root.Elements()\n where x.Name.LocalName==\"RegistryErrorList\"\n select x;\n\nvar er... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4795/"
] |
175,892 | <p>I'm trying to resize an embedded object. The issue is that when the mouse hovers over the object, it takes "control" of the mouse, swallowing up movement events. The result being that you can expand the div containing the object, but when you try to shrink it, if the mouse enters the area of the object the resize ... | [
{
"answer_id": 486265,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 3,
"selected": true,
"text": "this working sample wmode transparent <object> <object>"
},
{
"answer_id": 497044,
"author": "Jab",
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
175,951 | <p>Among other text and visual aids on a form submission, post-validation, I'm coloring my input boxes red to signify the interactive area needing attention.</p>
<p>On Chrome (and for Google Toolbar users) the auto-fill feature re-colors my input forms yellow. Here's the complex issue: I want auto-complete allowed on ... | [
{
"answer_id": 175980,
"author": "Ben Hoffstein",
"author_id": 4482,
"author_profile": "https://Stackoverflow.com/users/4482",
"pm_score": 7,
"selected": true,
"text": "<input type=\"text\" name=\"name\" autocomplete=\"off\">\n <form autocomplete=\"off\" ...>\n"
},
{
"answer_id":... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486915/"
] |
175,955 | <p>I am currently trying to import a semi-colon delimited text file into a database in c# using OleDb where I don't know the type (SQL Server, Access, Oracle, MySQL, postgreSQL, etc.) Currently I'm reading in the file as a database using the Jet text reader then creating a prepared insert statement, populating the fie... | [
{
"answer_id": 184234,
"author": "Fry",
"author_id": 23553,
"author_profile": "https://Stackoverflow.com/users/23553",
"pm_score": 1,
"selected": false,
"text": "Dataset.Tables[x].ImportRow(DataRow)\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/175955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23553/"
] |
175,962 | <p>How can I have a dynamic variable setting the amount of rows to return in SQL Server? Below is not valid syntax in SQL Server 2005+:</p>
<pre><code>DECLARE @count int
SET @count = 20
SELECT TOP @count * FROM SomeTable
</code></pre>
| [
{
"answer_id": 175965,
"author": "Brian Kim",
"author_id": 5704,
"author_profile": "https://Stackoverflow.com/users/5704",
"pm_score": 10,
"selected": true,
"text": "SELECT TOP (@count) * FROM SomeTable\n"
},
{
"answer_id": 175978,
"author": "x0n",
"author_id": 6920,
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5769/"
] |
175,982 | <p>I have a copy of emacs that I use on a couple of different (windows) computers from a thumb drive, and I am wondering if it is possible to create something that is sort of the equivalent of a bash alias or symlink within emacs? Something that I could use within find-file is the main thing that i'm looking for, so fo... | [
{
"answer_id": 176194,
"author": "cjm",
"author_id": 8355,
"author_profile": "https://Stackoverflow.com/users/8355",
"pm_score": 5,
"selected": true,
"text": "(set-register ?c '(file . \"c:/data/common.txt\"))\n(set-register ?f '(file . \"c:/data/frequent.txt\"))\n jump-to-register C-x r... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25616/"
] |
175,993 | <p>After making some changes in my models (eg. new field in a model and a new model) what is the best way of reflecting these changes to my populated database? </p>
<hr>
<p>PS: I wanted to see many solutions in one place rated. Apparently more solutions are already listed <a href="https://stackoverflow.com/questions/... | [
{
"answer_id": 209722,
"author": "shacker",
"author_id": 8438,
"author_profile": "https://Stackoverflow.com/users/8438",
"pm_score": 5,
"selected": false,
"text": "python manage.py dumpdata > dump.json python manage.py loaddata dump.json"
},
{
"answer_id": 19586888,
"author":... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12785/"
] |
175,994 | <p>I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself.</p>
<p>I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons?</p>
<p>HTA files have an HTA:APPLICATION tag that allows... | [
{
"answer_id": 176065,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 3,
"selected": false,
"text": "<img src=\"data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1m... | 2008/10/06 | [
"https://Stackoverflow.com/questions/175994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20848/"
] |
176,011 | <p>If you are creating a 1d array, you can implement it as a list, or else use the 'array' module in the standard library. I have always used lists for 1d arrays.</p>
<p>What is the reason or circumstance where I would want to use the array module instead?</p>
<p>Is it for performance and memory optimization, or am I ... | [
{
"answer_id": 176589,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 10,
"selected": true,
"text": "float uint64_t array.array sizeof(one object) * length ioctl fctnl array.array array('B', bytes) bytearray array.array"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16148/"
] |
176,051 | <p>I want to save and store simple mail objects via serializing, but I get always an error and I can't find where it is.</p>
<pre><code>package sotring;
import java.io.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
import com.sun.org.apache.bcel.internal.generic.INEG;
public c... | [
{
"answer_id": 176068,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "public static Message[] getStoredMails(){\n\n try\n {\n\n ObjectInputStream in = new ObjectInputStream(ne... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25128/"
] |
176,058 | <p>I was wondering is there is a fool-proof way to run a program on windows such that I'm <b>guaranteed</b> that <b>no interactive dialogs of any kind</b> are displayed.</p>
<p>I've tried the registry ErrorMode hack, calling _CrtSetReportMode(), etc., but they all have holes in them or require you to modify the progra... | [
{
"answer_id": 176068,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "public static Message[] getStoredMails(){\n\n try\n {\n\n ObjectInputStream in = new ObjectInputStream(ne... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13051/"
] |
176,061 | <p>I'm building an application that is used by several different customers. Each customer has a fair amount of custom business logic, which I have cleverly refactored out into an assembly that gets loaded at runtime. The name of that assembly, along with a number of other customer-specific settings, are stored in the... | [
{
"answer_id": 1371662,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 3,
"selected": true,
"text": "app.config.XXX app.config Settings.cs app.config.XXX bin\\debug\\myprogram.exe.config bin\\release\\myprogram.exe.c... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19403/"
] |
176,062 | <p>I have the following unmanaged C++ code:</p>
<pre><code>MessageBox( NULL, strMessage, "Cool Product", MB_RETRYCANCEL | MB_ICONEXCLAMATION);
</code></pre>
<p>I want to disable the RETRY button for 10 seconds (for example), then enable it.</p>
<p>How can I do this?</p>
| [
{
"answer_id": 176149,
"author": "efotinis",
"author_id": 12320,
"author_profile": "https://Stackoverflow.com/users/12320",
"pm_score": 1,
"selected": false,
"text": "_ _"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
176,084 | <p>When writing the string "¿" out using</p>
<pre><code>System.out.println(new String("¿".getBytes("UTF-8")));
</code></pre>
<p>¿ is written instead of just ¿.</p>
<p>WHY? And how do we fix it?</p>
| [
{
"answer_id": 176154,
"author": "p3t0r",
"author_id": 16685,
"author_profile": "https://Stackoverflow.com/users/16685",
"pm_score": 4,
"selected": true,
"text": "new String(\"¿\".getBytes(\"UTF-8\"), \"UTF-8\");\n getBytes()"
},
{
"answer_id": 176162,
"author": "John Meagher... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9518/"
] |
176,088 | <p>Is it possible to open an HTML page using navigateToURL and specifying a named frame in your HTML document? For instance, if you have an iframe on the page called "Steven", can you call</p>
<pre><code>navigateToURL("someURL","Steven");
</code></pre>
<p>instead of something like</p>
<pre><code>navigateToURL("someU... | [
{
"answer_id": 176108,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 0,
"selected": false,
"text": "navigateToURL(\"javascript:loadFrame(someURL)\");\n function loadFrame(url) {\n documents.frames[1].sr... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25280/"
] |
176,093 | <p>Is there a way to use a Graphics object's 'setClip()' method to clip using a Line-ish shape? Right now I'm trying to use a Polygon shape but I'm having problems simulating the "width" of the line. I basically draw the line, and when I reach the end, I redraw it but this time subtract the line width from y-coordina... | [
{
"answer_id": 176399,
"author": "Tim Frey",
"author_id": 1471,
"author_profile": "https://Stackoverflow.com/users/1471",
"pm_score": 1,
"selected": false,
"text": "BufferedImage mask = g2d.getDeviceConfiguration().createCompatibleImage(width, height, BufferedImage.TRANSLUCENT);\nGraphic... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1471/"
] |
176,106 | <p>I need to be able to validate a string against a list of the possible United States Postal Service state abbreviations, and Google is not offering me any direction. </p>
<p>I know of the obvious solution: and that is to code a horridly huge if (or switch) statement to check and compare against all 50 states, but I ... | [
{
"answer_id": 176127,
"author": "Ben Hoffstein",
"author_id": 4482,
"author_profile": "https://Stackoverflow.com/users/4482",
"pm_score": 3,
"selected": false,
"text": "^(?-i:A[LKSZRAEP]|C[AOT]|D[EC]|F[LM]|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/506/"
] |
176,113 | <p>The project I'm on is using a 3rd party component to build dynamic PDFs in a VB.Net web system called ABCpdf.Net. (not a terrible tool, but not a great one either.)</p>
<p>Every now and then, for reasons I can't fathom, the document object throws a SEHException. Digging futher, it turns out this is caused by a cu... | [
{
"answer_id": 176143,
"author": "Craig Wilson",
"author_id": 25333,
"author_profile": "https://Stackoverflow.com/users/25333",
"pm_score": 1,
"selected": false,
"text": "\nDim doc As New Doc()\n'etc...\n \n Dim doc as Doc\n Using doc As New Doc()\n 'etc...\n End Using\n"
... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19074/"
] |
176,118 | <p>Apparently there's a lot of variety in opinions out there, ranging from, "<strong>Never! Always encapsulate (even if it's with a mere macro!)</strong>" to "<strong>It's no big deal – use them when it's more convenient than not.</strong>"</p>
<p>So.</p>
<p>Specific, concrete reasons (preferably w... | [
{
"answer_id": 176428,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": false,
"text": ".h .h"
},
{
"answer_id": 5052330,
"author": "yingted",
"author_id": 556493,
"author_profile": "https://... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2915/"
] |
176,137 | <p>Does anyone know of a way, in Java, to convert an earth surface position from lat, lon to UTM (say in WGS84)? I'm currently looking at Geotools but unfortunately the solution is not obvious.</p>
| [
{
"answer_id": 176925,
"author": "Steve Kuo",
"author_id": 24396,
"author_profile": "https://Stackoverflow.com/users/24396",
"pm_score": 5,
"selected": true,
"text": "double utmZoneCenterLongitude = ... // Center lon of zone, example: zone 10 = -123\nint zoneNumber = ... ... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
176,150 | <p>I'm working with a combobox in a Swing-based application, and I'm having a hard time figuring out what to do to differentiate between an ItemEvent that is generated from a user event vs one caused by the application. </p>
<p>For instance, Lets say I have a combobox, '<code>combo</code>' and I'm listening for itemSt... | [
{
"answer_id": 177636,
"author": "Rastislav Komara",
"author_id": 22068,
"author_profile": "https://Stackoverflow.com/users/22068",
"pm_score": 3,
"selected": true,
"text": "class ApplicationDataModel {\n\n private Flag current = Flag.RW;\n\n public void setData(ApplicationData dat... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13812/"
] |
176,158 | <p>Is it possible to create an STL-like container, or even just an STL-style iterator, for an existing array of POD-type elements?</p>
<p>For example, suppose I have an array of ints. It would be convenient to be able to call some of the STL functions, such as find_if, count_if, or sort directly on this array... | [
{
"answer_id": 176167,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 2,
"selected": false,
"text": "int a[100];\nfor (int i = 0; i < 100; ++i)\n a[i] = 0;\n boost::array<int,100> a;\nfor (boost::array<int,100>::iterator... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3561/"
] |
176,159 | <p>In most modern IDEs, you can have Debug and Release build configurations, and you can quickly switch between them.</p>
<p>In Delphi 7, this does not seem to be possible. I have to go to Project Settings and toggle optimization and all the debug information stuff manually.</p>
<p>It would be great if there was a pl... | [
{
"answer_id": 176187,
"author": "PatrickvL",
"author_id": 12170,
"author_profile": "https://Stackoverflow.com/users/12170",
"pm_score": 3,
"selected": false,
"text": "{$IFDEF DEBBUG}\n\n{$OPTIMIZATION OFF}\n{$RANGECHECKING ON}\n// etc\n\n{$ELSE}\n\n{$OPTIMIZATION ON}\n{$RANGECHECKING OF... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/369/"
] |
176,171 | <p>I have run in to a bit of a problem and I have done a bit of digging, but struggling to come up with a conclusive answer/fix.</p>
<p>Basically, I have some javascript (created by a 3rd party) that does some whizzbang stuff to page elements to make them look pretty. The code works great on single pages (i.e. no maste... | [
{
"answer_id": 176208,
"author": "roenving",
"author_id": 23142,
"author_profile": "https://Stackoverflow.com/users/23142",
"pm_score": 2,
"selected": false,
"text": "<script type=\"text/javascript\">\n window.onload = function(){\n MakePretty(\"elementID\");\n }\n</script>\n <scrip... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
176,196 | <p>Why is the following displayed different in Linux vs Windows?</p>
<pre><code>System.out.println(new String("¿".getBytes("UTF-8"), "UTF-8"));
</code></pre>
<p>in Windows:</p>
<p>¿</p>
<p>in Linux:</p>
<p>¿</p>
| [
{
"answer_id": 176289,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 2,
"selected": false,
"text": "public static void main(String[] args) throws Exception {\n String s = \"¿\";\n printHex(Charset.defaultCharset(), s);\... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176196",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9518/"
] |
176,213 | <p>I want to write a web application using <a href="http://code.google.com/appengine/" rel="noreferrer">Google App Engine</a> (so the reference language would be <strong>Python</strong>). My application needs a simple search engine, so the users would be able to find data specifying keywords.</p>
<p>For example, if I ... | [
{
"answer_id": 41473754,
"author": "PythonMaster",
"author_id": 7376398,
"author_profile": "https://Stackoverflow.com/users/7376398",
"pm_score": -1,
"selected": false,
"text": "query = input(\"Query: \").strip().lower()#Or raw_input, for python 2\nend = []\nfor item in table:\n if qu... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23034/"
] |
176,255 | <p>What is everyone's favorite way to sanitize user data?</p>
<p>I've been using Javascript, but have recently required something more secure (people can turn it off, after all), so I was looking at Flex, but thought I'd ask the community what they thought.</p>
| [
{
"answer_id": 176337,
"author": "Bill",
"author_id": 24190,
"author_profile": "https://Stackoverflow.com/users/24190",
"pm_score": 1,
"selected": false,
"text": "preg_match('/^[\\w][\\w\\,\\-\\.]*\\@[\\w]+[\\w\\-\\.]*$/', $_GET['email'], $matches);\nif (count($matches) > 0) {\n $_GET['... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14877/"
] |
176,264 | <p>What is the difference between a <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator" rel="noreferrer"><strong>URL</strong></a>, a <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier" rel="noreferrer"><strong>URI</strong></a>, and a <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Name... | [
{
"answer_id": 1984274,
"author": "Greg",
"author_id": 12971,
"author_profile": "https://Stackoverflow.com/users/12971",
"pm_score": 8,
"selected": false,
"text": "urn:isbn:0-486-27557-4 file://hostname/sharename/RomeoAndJuliet.pdf"
},
{
"answer_id": 1984412,
"author": "D.C."... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2041950/"
] |
176,273 | <p>I'm currently working on a server-side product which is a bit complex to deploy on a new server, which makes it an ideal candidate for testing out in a VM. We are already using Hudson as our CI system, and I would really like to be able to deploy a virtual machine image with the latest and greatest software as a bu... | [
{
"answer_id": 180522,
"author": "seisyll",
"author_id": 21815,
"author_profile": "https://Stackoverflow.com/users/21815",
"pm_score": 1,
"selected": false,
"text": "VBoxManage startvm \"Windows 2003 Server\" -type vrdp\n"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176273",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14302/"
] |
176,284 | <p>Im looking for a method (or function) to strip out the domain.ext part of any URL thats fed into the function. The domain extension can be anything (.com, .co.uk, .nl, .whatever), and the URL thats fed into it can be anything from <a href="http://www.domain.com" rel="noreferrer">http://www.domain.com</a> to www.doma... | [
{
"answer_id": 176300,
"author": "davidmytton",
"author_id": 2183,
"author_profile": "https://Stackoverflow.com/users/2183",
"pm_score": 4,
"selected": false,
"text": "$url = 'http://www.example.com';\n$domain = parse_url($url, PHP_URL_HOST);\n$domain = str_replace('www.','',$domain);\n"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
176,295 | <p>I've tried these, and they did not work (Access opens, but it does not wait:</p>
<pre><code>start "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start /WAIT "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start /W "C:\program files\Microsoft Office\Office\MSACCESS.EXE" f... | [
{
"answer_id": 176297,
"author": "pc1oad1etter",
"author_id": 525,
"author_profile": "https://Stackoverflow.com/users/525",
"pm_score": 3,
"selected": true,
"text": "start /WAIT msaccess.exe filename.mdb\n"
},
{
"answer_id": 6817094,
"author": "James whatley",
"author_id"... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/525/"
] |
176,318 | <p>Is there a way to get the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365527%28v=vs.85%29.aspx" rel="nofollow noreferrer">SearchPath</a> API to not search in c:\windows when using the default search path (passing NULL as the first param)? I can't modify the caller to send in a specific path.</... | [
{
"answer_id": 178685,
"author": "akalenuk",
"author_id": 25459,
"author_profile": "https://Stackoverflow.com/users/25459",
"pm_score": 1,
"selected": false,
"text": "SetCurrentDirectory(\"c:\\users\\public\") SearchPath(...)"
},
{
"answer_id": 995174,
"author": "Jason Owen",... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176318",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7893/"
] |
176,331 | <p>I've developed a windows application that uses shared memory---that is---memory mapped files for interprocess communication. I have a windows service that does some processing and periodically writes data to the memory mapped file. I have a separate windows application that reads from the memory mapped file and di... | [
{
"answer_id": 176426,
"author": "1800 INFORMATION",
"author_id": 3146,
"author_profile": "https://Stackoverflow.com/users/3146",
"pm_score": 1,
"selected": false,
"text": "FILE_MAP_ALL_ACCESS"
}
] | 2008/10/06 | [
"https://Stackoverflow.com/questions/176331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25636/"
] |
176,338 | <p>I have an ASP.NET 2.0 [no ajax...yet] web site that will be deployed in compiled form on multiple customer sites. Typically the site will be intranet only. Some customers trust all of their people and don't care about limiting access to the site and/or page functions, others trust no one and want only certain people... | [
{
"answer_id": 176384,
"author": "Jeremy",
"author_id": 9266,
"author_profile": "https://Stackoverflow.com/users/9266",
"pm_score": 2,
"selected": true,
"text": "<authorization>\n <!-- \n <deny users=\"?\" />\n <allow users=\"[comma separated list of users]\"\n ... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9345/"
] |
176,343 | <p>Perl 6 seems to have an explosion of equality operators. What is <code>=:=</code>? What's the difference between <code>leg</code> and <code>cmp</code>? Or <code>eqv</code> and <code>===</code>?</p>
<p>Does anyone have a good summary?</p>
| [
{
"answer_id": 176381,
"author": "moritz",
"author_id": 14132,
"author_profile": "https://Stackoverflow.com/users/14132",
"pm_score": 7,
"selected": true,
"text": "my $x;\nmy @a = 1, 2, 3;\n# $x =:= @a[0] is false\n$x := @a[0];\n# now $x == 1, and $x =:= @a[0] is true\n$x = 4;\n# now @a ... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
176,347 | <p>I read some of the answers on here re: testing views and controllers, and mocking, but I still can't figure out how to test an ASP.NET MVC controller that reads and sets Session values (or any other context based variables.)
How do I provide a (Session) context for my test methods? Is mocking the answer? Anybody hav... | [
{
"answer_id": 176390,
"author": "chadmyers",
"author_id": 10862,
"author_profile": "https://Stackoverflow.com/users/10862",
"pm_score": 4,
"selected": false,
"text": "public interface ISecurityContext\n{\n bool IsAuthenticated { get; }\n IIdentity CurrentIdentity { get; }\n IPr... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17729/"
] |
176,373 | <p>We are trying to make a project template, but the documentation on this is spotty or non-existent.</p>
<p>Doing some reverse-engineering on some template files, we have come up with the following. However, it doen't actually work!</p>
<p>First of all, we have figured out that project templates should be installed... | [
{
"answer_id": 176420,
"author": "bbum",
"author_id": 25646,
"author_profile": "https://Stackoverflow.com/users/25646",
"pm_score": 2,
"selected": false,
"text": " <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25560/"
] |
176,376 | <p>Suppose I have a set of values, stored in a std::set:</p>
<p>{1, 2, 6, 8}</p>
<p>and I have a search key, say, 3. I want to put 3 into a function and get the first value greater than or equal to 3, in this case I would want to get 6.</p>
<p>The find() function provided in map/set/multimap/and set will, of course,... | [
{
"answer_id": 176393,
"author": "gbjbaanb",
"author_id": 13744,
"author_profile": "https://Stackoverflow.com/users/13744",
"pm_score": 2,
"selected": false,
"text": "map<int, int> mymap = { 1,2,6,8 };\nmap<int,int>::iterator i = mymap.upper_bound(3); // returns an iterator to the '6' el... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8123/"
] |
176,379 | <p>SQL Server 2005/2008 Express edition has the limitation of 4 GB per database. As far as I known the database engine considers data only, thus excluding log files, unused space, and index size.</p>
<p>Getting the length of the MDF file should not give the correct database size in terms of SQL Server limitation. My q... | [
{
"answer_id": 176437,
"author": "devio",
"author_id": 21336,
"author_profile": "https://Stackoverflow.com/users/21336",
"pm_score": 4,
"selected": false,
"text": "CREATE TABLE #t (name SYSNAME, rows CHAR(11), reserved VARCHAR(18), \ndata VARCHAR(18), index_size VARCHAR(18), unused VARCH... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23372/"
] |
176,403 | <p>In C++/CLI , you can use native types in a managed class by it is not allowed to hold a member of a native class in a managed class : you need to use pointers in that case.</p>
<p>Here is an example :</p>
<pre><code>class NativeClass
{
....
};
public ref class ManagedClass
{
private:
NativeClass mNativeClass; ... | [
{
"answer_id": 12643978,
"author": "chillitom",
"author_id": 56679,
"author_profile": "https://Stackoverflow.com/users/56679",
"pm_score": 2,
"selected": false,
"text": "#pragma once\n\n#include <memory>\n\ntemplate <class T>\npublic ref class m_shared_ptr sealed\n{\n std::shared_ptr<... | 2008/10/06 | [
"https://Stackoverflow.com/questions/176403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19816/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.