qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
34,506 | <p>Is there anyway to have a sort of virtual static member in C++?</p>
<p>For example:</p>
<pre><code>class BaseClass {
public:
BaseClass(const string& name) : _name(name) {}
string GetName() const { return _name; }
virtual void UseClass() = 0;
private:
const string _name;
... | [
{
"answer_id": 34591,
"author": "Hershi",
"author_id": 1596,
"author_profile": "https://Stackoverflow.com/users/1596",
"pm_score": 2,
"selected": false,
"text": "class BaseClass {\n public:\n BaseClass(const Descriptor& desc) : _desc(desc) {}\n string GetName() const { r... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3373/"
] |
34,509 | <p>We have a large database on which we have DB side pagination. This is quick, returning a page of 50 rows from millions of records in a small fraction of a second.</p>
<p>Users can define their own sort, basically choosing what column to sort by. Columns are dynamic - some have numeric values, some dates and some t... | [
{
"answer_id": 35382,
"author": "Grzegorz Gierlik",
"author_id": 1483,
"author_profile": "https://Stackoverflow.com/users/1483",
"pm_score": -1,
"selected": false,
"text": "ROW_NUMBER() OVER (ORDER BY dbo.human_sort(field_name) ASC)\n"
},
{
"answer_id": 523012,
"author": "Jaz... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/905/"
] |
34,510 | <p>When writing multithreaded applications, one of the most common problems experienced is race conditions.</p>
<p>My questions to the community are:</p>
<ul>
<li>What is the race condition?</li>
<li>How do you detect them?</li>
<li>How do you handle them?</li>
<li>Finally, how do you prevent them from occurring?</li>
... | [
{
"answer_id": 34537,
"author": "Steve Gury",
"author_id": 1578,
"author_profile": "https://Stackoverflow.com/users/1578",
"pm_score": 5,
"selected": false,
"text": "if( object.a != 0 )\n object.avg = total / object.a\n object.a = 0\n a = 0"
},
{
"answer_id": 34550,
"autho... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1931/"
] |
34,512 | <p>When writing multi-threaded applications, one of the most common problems experienced are deadlocks. </p>
<p>My questions to the community are:</p>
<ol>
<li><p>What is a deadlock? </p></li>
<li><p>How do you detect them? </p></li>
<li><p>Do you handle them? </p></li>
<li><p>And finally, how do you prevent them f... | [
{
"answer_id": 34546,
"author": "17 of 26",
"author_id": 2284,
"author_profile": "https://Stackoverflow.com/users/2284",
"pm_score": 4,
"selected": false,
"text": "Thread 1 Thread 2\n\nLock1->Lock(); Lock2->Lock();\nWaitForLock2(); WaitForLock1(); <-- Oops!... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1931/"
] |
34,516 | <p>Is there a standard convention (like phpdoc or python's docstring) for commenting C# code so that class documentation can be automatically generated from the source code?</p>
| [
{
"answer_id": 34530,
"author": "jason saldo",
"author_id": 1293,
"author_profile": "https://Stackoverflow.com/users/1293",
"pm_score": 2,
"selected": false,
"text": "/// <summary>\n///\n/// </summary>\n/// <param name=\"strFilePath\"></param>\n"
},
{
"answer_id": 34533,
"aut... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
34,518 | <p>How do you sort an array of strings <a href="http://blog.codinghorror.com/sorting-for-humans-natural-sort-order/" rel="nofollow noreferrer">naturally</a> in different programming languages? Post your implementation and what language it is in in the answer.</p>
| [
{
"answer_id": 34528,
"author": "Marius",
"author_id": 1585,
"author_profile": "https://Stackoverflow.com/users/1585",
"pm_score": 3,
"selected": false,
"text": "Array.prototype.alphanumSort = function(caseInsensitive) {\n for (var z = 0, t; t = this[z]; z++) {\n this[z] = [], x = 0,... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1585/"
] |
34,519 | <p>A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community: </p>
<p>What is a semaphore and how do you use it?</p>
| [
{
"answer_id": 40410,
"author": "mweerden",
"author_id": 4285,
"author_profile": "https://Stackoverflow.com/users/4285",
"pm_score": 3,
"selected": false,
"text": "V P V P P P"
},
{
"answer_id": 40473,
"author": "Patrik Svensson",
"author_id": 936,
"author_profile": "... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1931/"
] |
34,524 | <p>A mutex is a programming concept that is frequently used to solve multi-threading problems. My question to the community: </p>
<p>What is a mutex and how do you use it?</p>
| [
{
"answer_id": 34574,
"author": "Anthony Mastrean",
"author_id": 3619,
"author_profile": "https://Stackoverflow.com/users/3619",
"pm_score": 5,
"selected": false,
"text": "private static readonly Object instanceLock = new Object();\nprivate static MySingleton instance;\npublic static MyS... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34524",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1931/"
] |
34,536 | <p>This most be the second most simple rollover effect, still I don't find any simple solution.</p>
<p><strong>Wanted:</strong> I have a list of items and a corresponding list of slides (DIVs). After loading, the first list item should be selected (bold) and the first slide should be visible. When the user hovers over... | [
{
"answer_id": 34617,
"author": "travis",
"author_id": 1414,
"author_profile": "https://Stackoverflow.com/users/1414",
"pm_score": 3,
"selected": false,
"text": "<script type=\"text/javascript\" src=\"http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js\"></script>\n<script type=\"te... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3377/"
] |
34,565 | <p>Additionally, how can I format it as a string padded with zeros?</p>
| [
{
"answer_id": 34582,
"author": "quackingduck",
"author_id": 3624,
"author_profile": "https://Stackoverflow.com/users/3624",
"pm_score": 7,
"selected": false,
"text": "rand(10 ** 10)\n '%010d' % rand(10 ** 10)\n rjust rand(10 ** 10).to_s.rjust(10,'0') \n"
},
{
"answer_id": 17567... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3624/"
] |
34,571 | <p>How do I use JUnit to test a class that has internal private methods, fields or nested classes?</p>
<p>It seems bad to change the access modifier for a method just to be able to run a test.</p>
| [
{
"answer_id": 34658,
"author": "Cem Catikkas",
"author_id": 3087,
"author_profile": "https://Stackoverflow.com/users/3087",
"pm_score": 12,
"selected": true,
"text": "private private static private private static private static final Method method = TargetClass.getDeclaredMethod(methodN... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3098/"
] |
34,579 | <p>I've recently been working with a MySQL database, and using MySQL workbench to design the Database.</p>
<p>When I use the export to SQL function, so I can actually get the layout in to the Database, I get:</p>
<blockquote>
<p>"Error 1005: Cannot create table"</p>
</blockquote>
<p>This appears to be related to F... | [
{
"answer_id": 34713,
"author": "Tom Mayfield",
"author_id": 2314,
"author_profile": "https://Stackoverflow.com/users/2314",
"pm_score": 3,
"selected": false,
"text": "SHOW ENGINE INNODB STATUS;\n"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/34579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/655/"
] |
34,581 | <p>I expected the two <code>span</code> tags in the following sample to display next to each other, instead they display one below the other. If I set the <code>width</code> of the class <code>span</code>.right to 49% they display next to each other. I am not able to figure out why the right span is pushed down like th... | [
{
"answer_id": 34587,
"author": "Teifion",
"author_id": 1384652,
"author_profile": "https://Stackoverflow.com/users/1384652",
"pm_score": 3,
"selected": true,
"text": "float: left;\n"
},
{
"answer_id": 34853,
"author": "rams",
"author_id": 3635,
"author_profile": "htt... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3635/"
] |
34,588 | <p>When running my application I sometimes get an error about <code>too many files open</code>.</p>
<p>Running <code>ulimit -a</code> reports that the limit is 1024. How do I increase the limit above 1024? </p>
<p><strong>Edit</strong>
<code>ulimit -n 2048</code> results in a permission error.</p>
| [
{
"answer_id": 34645,
"author": "hoyhoy",
"author_id": 3499,
"author_profile": "https://Stackoverflow.com/users/3499",
"pm_score": 8,
"selected": true,
"text": "ulimit -n 2048 set rlim_fd_max = 166384\nset rlim_fd_cur = 8192\n kern.maxfilesperproc=166384\nkern.maxfiles=8192\n"
},
{
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535/"
] |
34,595 | <p>What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. As a rule of thumb to avoid collisions my professor said that:</p>
<pre><code>function Hash(key)
return key mod PrimeNumber
end... | [
{
"answer_id": 626599,
"author": "Nick Van Brunt",
"author_id": 30470,
"author_profile": "https://Stackoverflow.com/users/30470",
"pm_score": 3,
"selected": false,
"text": "unsigned fnv_hash_1a_32 ( void *key, int len ) {\n unsigned char *p = key;\n unsigned h = 0x811c9dc5;\n in... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3485/"
] |
34,635 | <p>I think the file that is produced is an .asm file, any idea how to produce this in Visual Studio when you do a build?</p>
| [
{
"answer_id": 34651,
"author": "Shog9",
"author_id": 811,
"author_profile": "https://Stackoverflow.com/users/811",
"pm_score": 4,
"selected": true,
"text": "Configuration Properties -> C/C++ -> Output Files No Listing"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/34635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1952/"
] |
34,638 | <p>The system I am currently working on requires some role-based security, which is well catered for in the Java EE stack. The system intends to be a framework for business domain experts to write their code on top of.</p>
<p>However, there is also a requirement for data <code>security</code>. That is, what informatio... | [
{
"answer_id": 37755,
"author": "Brian Matthews",
"author_id": 1969,
"author_profile": "https://Stackoverflow.com/users/1969",
"pm_score": 1,
"selected": false,
"text": "load() get()"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/34638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3295/"
] |
34,655 | <p>I would like to have an <code>iframe</code> take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ?</p>
<p>Are there any workarounds?</p>
| [
{
"answer_id": 34663,
"author": "Daniel Jennings",
"author_id": 3641,
"author_profile": "https://Stackoverflow.com/users/3641",
"pm_score": 0,
"selected": false,
"text": "body {\n overflow-x: hidden;\n overflow-y: hidden;\n} \n"
},
{
"answer_id": 34686,
"author": "ceejayoz"... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1983/"
] |
34,661 | <p>I have an application that sends messages to an external web service. I build and deploy this application using <a href="http://msdn.microsoft.com/en-us/library/wea2sca5(VS.80).aspx" rel="nofollow noreferrer">MSBuild</a> and <a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NE... | [
{
"answer_id": 177926,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 1,
"selected": false,
"text": "IService Data GetData() Data var testService = mockery.NewMock<IService>();\nExpect\n .Once\n .On(testService)\n... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298/"
] |
34,664 | <p>Has anyone found a useful solution to the DesignMode problem when developing controls?</p>
<p>The issue is that if you nest controls then DesignMode only works for the first level. The second and lower levels DesignMode will always return FALSE.</p>
<p>The standard hack has been to look at the name of the process... | [
{
"answer_id": 34741,
"author": "Craig",
"author_id": 2894,
"author_profile": "https://Stackoverflow.com/users/2894",
"pm_score": 1,
"selected": false,
"text": " public bool RealDesignMode()\n {\n if (Parent is MyBaseUserControl)\n {\n return (DesignMode ? true : (MyBase... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2862/"
] |
34,669 | <p>I have a recursive algorithm which steps through a string, character by character, and parses it to create a tree-like structure. I want to be able to keep track of the character index the parser is currently at (for error messages as much as anything else) but am not keen on implementing something like a tuple to ... | [
{
"answer_id": 34689,
"author": "Andrew Harmel-Law",
"author_id": 2455,
"author_profile": "https://Stackoverflow.com/users/2455",
"pm_score": 2,
"selected": false,
"text": "int[] counter = {0};\n public List<Thing> doIt (String aString, int[] counter) { ... }\n counter[0]++;\n"
},
{
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2455/"
] |
34,674 | <p>You can use a standard dot notation or a method call in Objective-C to access a property of an object in Objective-C.</p>
<pre><code>myObject.property = YES;
</code></pre>
<p>or</p>
<pre><code>[myObject setProperty:YES];
</code></pre>
<p>Is there a difference in performance (in terms of accessing the property)? ... | [
{
"answer_id": 35636,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 5,
"selected": true,
"text": "@interface Foo : NSObject\n@property BOOL bar;\n@end\n\nFoo *foo = [[Foo alloc] init];\nfoo.bar = YES;\n[foo setBar:YES];\n... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1987/"
] |
34,687 | <p>When I try to do any svn command and supply the <code>--username</code> and/or <code>--password</code> options, it prompts me for my password anyways, and always will attempt to use my current user instead of the one specified by <code>--username</code>. Neither <code>--no-auth-cache</code> nor <code>--non-interacti... | [
{
"answer_id": 34755,
"author": "Tom Mayfield",
"author_id": 2314,
"author_profile": "https://Stackoverflow.com/users/2314",
"pm_score": 0,
"selected": false,
"text": "--no-auth-cache svn update"
},
{
"answer_id": 34911,
"author": "crashmstr",
"author_id": 1441,
"auth... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3625/"
] |
34,705 | <p>We have an application with a good amount of jQuery JSON calls to server side code. Because of this, we have a large amount of binding code to parse responses and bind the appropriate values to the form. This is a two part question.</p>
<ol>
<li><p>What is the reccomended approach for dealing with a large number of... | [
{
"answer_id": 4629484,
"author": "ordnungswidrig",
"author_id": 9069,
"author_profile": "https://Stackoverflow.com/users/9069",
"pm_score": 0,
"selected": false,
"text": "form1validate\nform1aftersubmit\nform2validate\nform2aftersubmit\n (function() {\n var foo = 1;\n})();\n\n(function... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2993/"
] |
34,708 | <p>A few months back I was tasked with implementing a unique and random code for our web application. The code would have to be user friendly and as small as possible, but still be essentially random (so users couldn't easily predict the next code in the sequence).</p>
<p>It ended up generating values that looked som... | [
{
"answer_id": 34727,
"author": "Joshua Turner",
"author_id": 820,
"author_profile": "https://Stackoverflow.com/users/820",
"pm_score": 3,
"selected": false,
"text": "byte[] randomBytes = new byte[4];\nRNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();\nrng.GetBytes(randomByt... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1931/"
] |
34,712 | <p>I have some UI in VB 2005 that looks great in XP Style, but goes hideous in Classic Style.</p>
<p>Any ideas about how to detect which mode the user is in and re-format the forms on the fly?</p>
<hr>
<p>Post Answer Edit:</p>
<p>Thanks Daniel, looks like this will work. I'm using the first solution you posted with... | [
{
"answer_id": 34729,
"author": "Daniel Jennings",
"author_id": 3641,
"author_profile": "https://Stackoverflow.com/users/3641",
"pm_score": 3,
"selected": true,
"text": "[DllImport(\"dwmapi.dll\", PreserveSig = false)]\npublic static extern bool DwmIsCompositionEnabled();\n"
},
{
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34712",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3648/"
] |
34,717 | <p>Is it possible to embed an audio object (mp3, wma, whatever) in a web-enabled InfoPath form ? </p>
<p>If it is, how do you do it ?</p>
| [
{
"answer_id": 34891,
"author": "Jason Z",
"author_id": 2470,
"author_profile": "https://Stackoverflow.com/users/2470",
"pm_score": 1,
"selected": false,
"text": "public void FormEvents_Loading(object sender, LoadingEventArgs e)\n{\n string imgPath = \"http://yoursite/yourimage.jpeg\"... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1753/"
] |
34,732 | <p>How do I list the symbols being exported from a .so file? If possible, I'd also like to know their source (e.g. if they are pulled in from a static library).</p>
<p>I'm using gcc 4.0.2, if that makes a difference.</p>
| [
{
"answer_id": 34758,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "nm -g objcopy nm -g"
},
{
"answer_id": 34796,
"author": "Steve Gury",
"author_id": 1578,
"author_p... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3051/"
] |
34,734 | <p>I've tried two different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of two ways:</p>
<ol>
<li>I have tried bringing the projects I... | [
{
"answer_id": 34764,
"author": "Dale Ragan",
"author_id": 1117,
"author_profile": "https://Stackoverflow.com/users/1117",
"pm_score": 1,
"selected": false,
"text": "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\\AssemblyFolders\\ComapnyName]\n@=\"C:\\\\CentralLocation\"\n"
}... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1284/"
] |
34,735 | <p>I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical <a href="http://no.farnell.com/1520815/passives/product.us0?sku=alps-ec12d1524401" rel="noreferrer">ALPS encoder</a>, and I'm using <a href="http://www.atmel.com/dyn/resources/prod_documents/doc2545.p... | [
{
"answer_id": 257613,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "/* into 0 service rutine */\nif(CHB)\n{\n if(flagB)\n Count++;\n FlagB=0;\n}\nelse\n{\n if(FlagB)\n count--:\n FlagB=0... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1585/"
] |
34,768 | <p>I have recently installed .net 3.5 SP1. When I deployed a compiled web site that contained a form with its action set:</p>
<pre><code><form id="theForm" runat="server" action="post.aspx">
</code></pre>
<p>I received this error.<br>
Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(Syste... | [
{
"answer_id": 34776,
"author": "Daniel Jennings",
"author_id": 3641,
"author_profile": "https://Stackoverflow.com/users/3641",
"pm_score": 1,
"selected": false,
"text": "public String Action { set { DoStuff(); } }\n"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/34768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2903/"
] |
34,784 | <p>What is a good setup for .hgignore file when working with Visual Studio 2008?</p>
<p>I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it.</p>
<p>I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't inclu... | [
{
"answer_id": 34805,
"author": "Daniel Jennings",
"author_id": 3641,
"author_profile": "https://Stackoverflow.com/users/3641",
"pm_score": 5,
"selected": false,
"text": "*.csproj.user /obj/* /bin/* *.ncb *.suo"
},
{
"answer_id": 226447,
"author": "jm.",
"author_id": 814,... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/925/"
] |
34,790 | <p>The <code>datepicker</code> function only works on the first input box that is created.</p>
<p>I'm trying to duplicate a datepicker by cloning the <code>div</code> that is containing it.</p>
<pre><code><a href="#" id="dupMe">click</a>
<div id="template">
input-text <input type="text" value="... | [
{
"answer_id": 34807,
"author": "Dave Ward",
"author_id": 60,
"author_profile": "https://Stackoverflow.com/users/60",
"pm_score": 4,
"selected": false,
"text": "<input type=\"text\" id=\"BeginDate\" class=\"calendar\" />\n<input type=\"text\" id=\"EndDate\" class=\"calendar\" />\n docume... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1842864/"
] |
34,798 | <p>I have a gridview that is within an updatepanel for a modal popup I have on a page.<br>
The issue is that the entire page refreshes every time I click an imagebutton that is within my gridview. This causes my entire page to load and since I have grayed out the rest of the page so that the user cannot click on it thi... | [
{
"answer_id": 35082,
"author": "David Basarab",
"author_id": 2469,
"author_profile": "https://Stackoverflow.com/users/2469",
"pm_score": 0,
"selected": false,
"text": " <base target=\"_self\" /> \n"
},
{
"answer_id": 35189,
"author": "Steven Williams",
"author_id": 329... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2486/"
] |
34,802 | <p>I'm trying to write a custom WPF ValidationRule to enforce that a certain property is unique within the context of a given collection. For example: I am editing a collection of custom objects bound to a ListView and I need to ensure that the Name property of each object in the collection is unique. Does anyone know ... | [
{
"answer_id": 34885,
"author": "Daniel Jennings",
"author_id": 3641,
"author_profile": "https://Stackoverflow.com/users/3641",
"pm_score": 3,
"selected": true,
"text": "class YourCollectionType : DependencyObject {\n\n [PROPERTY DEPENDENCY OF ObservableCollection<YourType> NAMED: Bou... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/317/"
] |
34,806 | <p>I have a little dilemma that maybe you can help me sort out. </p>
<p>I've been working today in modifying ASP.NET's Membership to add a level of indirection. Basically, ASP.NET's Membership supports Users and Roles, leaving all authorization rules to be based on whether a user belongs to a Role or not. </p>
<p>Wha... | [
{
"answer_id": 34832,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 2,
"selected": true,
"text": "class Base {\n public final constructor(name) {\n constructor(name, null)\n end\n\n public abstract constructor(n... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1782/"
] |
34,818 | <p>In terms of performance and optimizations:</p>
<ul>
<li>When constructing a table in SQL Server, does it matter what order I put the columns in?</li>
<li>Does it matter if my primary key is the first column?</li>
<li>When constructing a multi-field index, does it matter if the columns are adjacent?</li>
<li>Using A... | [
{
"answer_id": 2732820,
"author": "egrunin",
"author_id": 147463,
"author_profile": "https://Stackoverflow.com/users/147463",
"pm_score": -1,
"selected": false,
"text": "image text ntext"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/34818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
34,848 | <p>When using a <code>Zend_Form</code>, the only way to validate that an input is not left blank is to do</p>
<pre><code>$element->setRequired(true);
</code></pre>
<p>If this is not set and the element is blank, it appears to me that validation is not run on the element.</p>
<p>If I do use <code>setRequired()</co... | [
{
"answer_id": 35894,
"author": "crono",
"author_id": 1462,
"author_profile": "https://Stackoverflow.com/users/1462",
"pm_score": 3,
"selected": true,
"text": "$name = new Zend_Form_Element_Text('name');\n$name->setLabel('Full Name: ')\n ->setRequired(true)\n ->addFilter('StripTa... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1349865/"
] |
34,868 | <p>In the PHP manual, to show the syntax for functions with optional parameters, they use brackets around each set of dependent optional parameter. For example, for the <a href="http://php.net/date" rel="noreferrer"><code>date()</code></a> function, the manual reads:</p>
<pre><code>string date ( string $format [, int ... | [
{
"answer_id": 34869,
"author": "Jeff Winkworth",
"author_id": 1306,
"author_profile": "https://Stackoverflow.com/users/1306",
"pm_score": 9,
"selected": true,
"text": "= function dosomething($var1, $var2, $var3 = 'somevalue'){\n // Rest of function here...\n}\n"
},
{
"answer_... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2687/"
] |
34,879 | <p>I need debug some old code that uses a Hashtable to store response from various threads.</p>
<p>I need a way to go through the entire Hashtable and print out both keys and the data in the Hastable.</p>
<p>How can this be done?</p>
| [
{
"answer_id": 34884,
"author": "Ben Scheirman",
"author_id": 3381,
"author_profile": "https://Stackoverflow.com/users/3381",
"pm_score": 6,
"selected": true,
"text": "foreach(string key in hashTable.Keys)\n{\n Console.WriteLine(String.Format(\"{0}: {1}\", key, hashTable[key]));\n}\n"
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2469/"
] |
34,913 | <p>I'm experimenting with Linq and am having trouble figuring out grouping. I've gone through several tutorials but for some reason can't figure this out.</p>
<p>As an example, say I have a table (SiteStats) with multiple website IDs that stores a count of how many visitors by type have accessed each site in total and... | [
{
"answer_id": 34951,
"author": "Tom Mayfield",
"author_id": 2314,
"author_profile": "https://Stackoverflow.com/users/2314",
"pm_score": 2,
"selected": false,
"text": "public class Site\n{\n static void Main()\n {\n List<Site> sites = new List<Site>()\n {\n ... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2034/"
] |
34,914 | <p>The manual page for <code>XML::Parser::Style::Objects</code> is horrible. A simple hello world style program would really be helpful.</p>
<p>I really wanted to do something like this: (not real code of course)</p>
<pre><code>use XML::Parser;
my $p = XML::Parser->new(Style => 'Objects', Pkg => 'MyNode');
... | [
{
"answer_id": 35467,
"author": "Pat",
"author_id": 238,
"author_profile": "https://Stackoverflow.com/users/238",
"pm_score": 2,
"selected": true,
"text": "use XML::Parser;\n\npackage MyNode::inner;\n sub doSomething {\n my $self = shift;\n print \"This is an inner node cont... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3657/"
] |
34,920 | <p>What is the best way to create a lock on a file in Perl?</p>
<p>Is it best to flock on the file or to create a lock file to place a lock on and check for a lock on the lock file?</p>
| [
{
"answer_id": 34933,
"author": "Chris Bunch",
"author_id": 422,
"author_profile": "https://Stackoverflow.com/users/422",
"pm_score": 6,
"selected": true,
"text": "use Fcntl ':flock'; # Import LOCK_* constants\n\n# We will use this file path in error messages and function calls.\n# Don't... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1539/"
] |
34,925 | <p>I've seen quite a few posts on changes in .NET 3.5 SP1, but stumbled into one that I've yet to see documentation for yesterday. I had code working just fine on my machine, from VS, msbuild command line, everything, but it failed on the build server (running .NET 3.5 RTM).</p>
<pre><code>[XmlRoot("foo")]
public cla... | [
{
"answer_id": 35223,
"author": "TonyB",
"author_id": 3543,
"author_profile": "https://Stackoverflow.com/users/3543",
"pm_score": 3,
"selected": true,
"text": "<system.xml.serialization> \n <xmlSerializer tempFilesLocation=\"c:\\\\foo\"/> \n</system.xml.serialization> \n"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/34925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2314/"
] |
34,926 | <p>my <b>SSRS DataSet</b> returns a field with HTML, e.g.</p>
<pre><code><b>blah blah </b><i> blah </i>.
</code></pre>
<p>how do i strip all the HTML tags? has to be done with <b>inline</b> VB.NET</p>
<p>Changing the data in the table is not an option.</p>
<p><strong>Solution found</strong> ... | [
{
"answer_id": 35012,
"author": "roman m",
"author_id": 3661,
"author_profile": "https://Stackoverflow.com/users/3661",
"pm_score": 5,
"selected": true,
"text": "= System.Text.RegularExpressions.Regex.Replace(StringWithHTMLtoStrip, \"<[^>]+>\",\"\")"
},
{
"answer_id": 23781709,
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3661/"
] |
34,938 | <p>I have an if statement with two conditions (separated by an OR operator), one of the conditions covers +70% of situations and takes far less time to process/execute than the second condition, so in the interests of speed I only want the second condition to be processed if the first condition evaluates to false.</p>
... | [
{
"answer_id": 34954,
"author": "Mats Fredriksson",
"author_id": 2973,
"author_profile": "https://Stackoverflow.com/users/2973",
"pm_score": 4,
"selected": true,
"text": "a || b();\n if(!a)\n b();\n a && b();\n if(a)\n b();\n"
},
{
"answer_id": 34961,
"author": "Farinha... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2083/"
] |
34,955 | <p>When building projects in C++, I've found debugging linking errors to be tricky, especially when picking up other people's code. What strategies do people use for debugging and fixing linking errors?</p>
| [
{
"answer_id": 41043,
"author": "Joe Schneider",
"author_id": 1541,
"author_profile": "https://Stackoverflow.com/users/1541",
"pm_score": 6,
"selected": true,
"text": "ByteComparator.obj : error LNK2019: unresolved external symbol \"int __cdecl does_not_exist(void)\" (?does_not_exist@@YA... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3575/"
] |
34,975 | <p>The company I work for is starting to have issues with their current branching model and I was wondering what different kinds of branching strategies the community has been exposed to?</p>
<p>Are there any good ones for different situations? What does your company use? What are the advantages and disadvantages of... | [
{
"answer_id": 59510,
"author": "Andrew Burns",
"author_id": 3683,
"author_profile": "https://Stackoverflow.com/users/3683",
"pm_score": 3,
"selected": false,
"text": "/trunk\n/branches\n/sandbox\n/vendor\n/ccnet\n"
},
{
"answer_id": 2461043,
"author": "bo bo",
"author_id... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2328/"
] |
34,977 | <p>I have a protocol that requires a length field up to 32-bits, and it must be
generated at runtime to describe how many bytes are in a given packet.</p>
<p>The code below is kind of ugly but I am wondering if this can be refactored to
be slightly more efficient or easily understandable. The problem is that the
code... | [
{
"answer_id": 35027,
"author": "Daniel Jennings",
"author_id": 3641,
"author_profile": "https://Stackoverflow.com/users/3641",
"pm_score": 0,
"selected": false,
"text": "{\n extern char byte_stream[];\n int bytes = offset_in_packet;\n int n = length_of_packet; /* Under 4 billio... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3663/"
] |
34,987 | <p>I am trying to iterate over all the elements of a static array of strings in the best possible way. I want to be able to declare it on one line and easily add/remove elements from it without having to keep track of the number. Sounds really simple, doesn't it?</p>
<p>Possible non-solutions:</p>
<pre><code>vector&l... | [
{
"answer_id": 35006,
"author": "Will Dean",
"author_id": 987,
"author_profile": "https://Stackoverflow.com/users/987",
"pm_score": 5,
"selected": false,
"text": "arraysize #define arraysize(ar) (sizeof(ar) / sizeof(ar[0]))\n"
},
{
"answer_id": 35182,
"author": "Shadow2531",... | 2008/08/29 | [
"https://Stackoverflow.com/questions/34987",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/779/"
] |
35,002 | <p><strong>Is there anything built into the core C# libraries that can give me an immutable Dictionary?</strong> </p>
<p>Something along the lines of <em>Java's</em>:</p>
<pre><code>Collections.unmodifiableMap(myMap);
</code></pre>
<p>And just to clarify, I am not looking to stop the keys / values themselves from b... | [
{
"answer_id": 35144,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 2,
"selected": false,
"text": "var dict = new Dictionary<string, string>();\n\ndict.Add(\"Hello\", \"World\");\ndict.Add(\"The\", \"Quick\");\ndict.Add(\"Br... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1853/"
] |
35,007 | <p>Every time I create an object that has a collection property I go back and forth on the best way to do it?</p>
<ol>
<li>public property with a getter that
returns a reference to private variable</li>
<li>explicit get_ObjList and set_ObjList
methods that return and create new or cloned
objects every time</li>
<li>ex... | [
{
"answer_id": 35065,
"author": "Quibblesome",
"author_id": 1143,
"author_profile": "https://Stackoverflow.com/users/1143",
"pm_score": 2,
"selected": false,
"text": "public ReadOnlyCollection<SomeClass> Collection\n{\n get\n {\n return new ReadOnlyCollection<SomeClass>(myL... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2582/"
] |
35,011 | <p>I've got a whole directory of dll's I need to register to the GAC. I'd like to avoid registering each file explicitly- but it appears that gacutil has no "register directory" option. Anyone have a fast/simple solution?</p>
| [
{
"answer_id": 35057,
"author": "Euro Micelli",
"author_id": 2230,
"author_profile": "https://Stackoverflow.com/users/2230",
"pm_score": 6,
"selected": true,
"text": "FOR %a IN (C:\\MyFolderWithAssemblies\\*.dll) DO GACUTIL /i %a\n"
},
{
"answer_id": 35064,
"author": "Daniel ... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/667/"
] |
35,026 | <p>I need to convert a named instance of SQL server 2005, to a default instance.</p>
<p>Is there a way to do this without a reinstall?</p>
<hr>
<p>The problem is, 2 out of 6 of the developers, installed with a named instance. So its becoming a pain changing connection strings for the other 4 of us. I am looking for ... | [
{
"answer_id": 11921896,
"author": "Zasz",
"author_id": 626084,
"author_profile": "https://Stackoverflow.com/users/626084",
"pm_score": 9,
"selected": false,
"text": "SQL Server Configuration Manager SQL Server Network Configuration Protocols for INSTANCENAME TCP/IP Enabled TCP/IP Proper... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1220/"
] |
35,037 | <p>I have a directory with PDF files that I need to create an index for. It is a PHP page with a list of links:</p>
<pre><code><A HREF="path to file">filename</A>
</code></pre>
<p>The filenames can be complicated:</p>
<pre><code>LVD 2-1133 - Ändring av dumpningslina (1984-11-20).pdf
</code></pre>
<p>Wha... | [
{
"answer_id": 35046,
"author": "Andy",
"author_id": 1993,
"author_profile": "https://Stackoverflow.com/users/1993",
"pm_score": 0,
"selected": false,
"text": "\n <?php\n echo urlencode(\"åäö\"); \n ?>\n \n %E5%E4%F6\n"
},
{
"answer_id": 35048,
"author": "An... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2703/"
] |
35,047 | <p>Perhaps the biggest risk in pushing new functionality to live lies with the database modifications required by the new code. In Rails, I believe they have 'migrations', in which you can programmatically make changes to your development host, and then make the same changes live along with the code that uses the revis... | [
{
"answer_id": 35440,
"author": "yukondude",
"author_id": 726,
"author_profile": "https://Stackoverflow.com/users/726",
"pm_score": 3,
"selected": false,
"text": "000-clean.sql # wipe out everything in the DB\n001-schema.sql # create the initial DB objects\n002-fk.sql ... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/137/"
] |
35,050 | <p>After the suggestion to use a library for <a href="https://stackoverflow.com/questions/34486/what-more-is-needed-for-ajax-than-this-function">my ajax needs</a> I am going to use one, the problem is that there are so many and I've no idea how to even begin telling them apart.</p>
<p>Thus, can anybody <br />
A) Give ... | [
{
"answer_id": 35101,
"author": "Neall",
"author_id": 619,
"author_profile": "https://Stackoverflow.com/users/619",
"pm_score": 2,
"selected": false,
"text": "function clickedme(event) {\n alert('Someone clicked me!');\n}\n$('#clickdivs div').click(clickedme);\n <div id=\"clickdivs\">\n... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
35,070 | <p>What's the best way to programmatically merge a .reg file into the registry? This is for unit testing; the .reg file is a test artifact which will be added then removed at the start and end of testing.</p>
<p>Or, if there's a better way to unit test against the registry...</p>
| [
{
"answer_id": 35092,
"author": "Javache",
"author_id": 1074,
"author_profile": "https://Stackoverflow.com/users/1074",
"pm_score": 2,
"selected": false,
"text": "regedit.exe regedit.exe \"mytest.reg\""
},
{
"answer_id": 35162,
"author": "Matt Dillard",
"author_id": 863,
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1683/"
] |
35,076 | <p>I'm working with a SQL Server 2000 database that likely has a few dozen tables that are no longer accessed. I'd like to clear out the data that we no longer need to be maintaining, but I'm not sure how to identify which tables to remove.</p>
<p>The database is shared by several different applications, so I can't b... | [
{
"answer_id": 35100,
"author": "Ricardo Reyes",
"author_id": 3399,
"author_profile": "https://Stackoverflow.com/users/3399",
"pm_score": 4,
"selected": true,
"text": "select * from ...\n"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/35076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3344/"
] |
35,102 | <p>In emacs, I've read the following code snippet in <code>simple.el</code>:</p>
<pre><code>(frame-parameter frame 'buried-buffer-list)
</code></pre>
<p>What is the exact meaning of the <code>'buried-buffer-list</code> parameter?
What it is used for?</p>
| [
{
"answer_id": 35100,
"author": "Ricardo Reyes",
"author_id": 3399,
"author_profile": "https://Stackoverflow.com/users/3399",
"pm_score": 4,
"selected": true,
"text": "select * from ...\n"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/35102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3673/"
] |
35,103 | <p>I'd like to bind a configuration file to my executable. I'd like to do this by storing an MD5 hash of the file inside the executable. This should keep anyone but the executable from modifying the file.</p>
<p>Essentially if someone modifies this file outside of the program the program should fail to load it again.<... | [
{
"answer_id": 35116,
"author": "Jim McKeeth",
"author_id": 255,
"author_profile": "https://Stackoverflow.com/users/255",
"pm_score": 5,
"selected": true,
"text": "write(MD5(SecretKey + ConfigFileText));\n"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/35103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2191/"
] |
35,106 | <p>I've found <a href="http://msdn.microsoft.com/en-us/library/system.web.configuration.scriptingjsonserializationsection.scriptingjsonserializationsection.aspx" rel="noreferrer"><code>ScriptingJsonSerializationSection</code></a> but I'm not sure how to use it. I could write a function to convert the object to a JSON s... | [
{
"answer_id": 35125,
"author": "TonyB",
"author_id": 3543,
"author_profile": "https://Stackoverflow.com/users/3543",
"pm_score": 5,
"selected": true,
"text": "Dim jsonSerialiser As New System.Web.Script.Serialization.JavaScriptSerializer\nDim jsonString as String = jsonSerialiser.Serial... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1414/"
] |
35,123 | <p>What did I do wrong?</p>
<p>Here is an excerpt from my code:</p>
<pre><code>public void createPartControl(Composite parent) {
parent.setLayout(new FillLayout());
ScrolledComposite scrollBox = new ScrolledComposite(parent, SWT.V_SCROLL);
scrollBox.setExpandHorizontal(true);
mParent = new Composite(scrollBox... | [
{
"answer_id": 36306,
"author": "Jacob Schoen",
"author_id": 3340,
"author_profile": "https://Stackoverflow.com/users/3340",
"pm_score": 2,
"selected": false,
"text": "mParent.layout();\n mParent.setSize(mParent.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));\n public void createPartContro... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35123",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3657/"
] |
35,167 | <p>I know that the following is true</p>
<pre><code>int i = 17; //binary 10001
int j = i << 1; //decimal 34, binary 100010
</code></pre>
<p>But, if you shift too far, the bits fall off the end. Where this happens is a matter of the size of integer you are working with.</p>
<p>Is there a way to perform a shift... | [
{
"answer_id": 35172,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 7,
"selected": true,
"text": "uint i = 17;\nuint j = i << 1 | i >> 31;\n /*some unsigned numeric type*/ input = 17;\nvar result = input << n | inpu... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2470/"
] |
35,178 | <p>I am working on a C++ code base that was recently moved from X/Motif to Qt. I am trying to write a Perl script that will replace all occurrences of Boolean (from X) with bool. The script just does a simple replacement. </p>
<pre><code>s/\bBoolean\b/bool/g
</code></pre>
<p>There are a few conditions. </p>
<p>... | [
{
"answer_id": 35198,
"author": "John Meagher",
"author_id": 3535,
"author_profile": "https://Stackoverflow.com/users/3535",
"pm_score": 0,
"selected": false,
"text": "s/[^:]\\bBoolean\\b(?!\")/bool/g\n"
},
{
"answer_id": 35203,
"author": "Daniel Jennings",
"author_id": 3... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2897/"
] |
35,185 | <p>What would be the best algorithm for finding a number that occurs only once in a list which has all other numbers occurring exactly twice.</p>
<p>So, in the list of integers (lets take it as an array) each integer repeats exactly twice, except one. To find that one, what is the best algorithm.</p>
| [
{
"answer_id": 35195,
"author": "csmba",
"author_id": 350,
"author_profile": "https://Stackoverflow.com/users/350",
"pm_score": 4,
"selected": false,
"text": "if(HT.Contains(item)) -> HT.Remove(item)\nelse\nht.add(item)\n"
},
{
"answer_id": 35235,
"author": "hoyhoy",
"aut... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/380/"
] |
35,186 | <p>I'm getting a <code>NoSuchMethodError</code> error when running my Java program. What's wrong and how do I fix it?</p>
| [
{
"answer_id": 35350,
"author": "rcreswick",
"author_id": 3446,
"author_profile": "https://Stackoverflow.com/users/3446",
"pm_score": 3,
"selected": false,
"text": "Class.getDeclaredMethod(\"someMethodName\", .....) getDeclaredMethod NoSuchMethodException TestUtilities"
},
{
"ans... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535/"
] |
35,194 | <p>Have you guys had any experiences (positive or negative) by placing your source code/solution on a network drive for Visual Studio 2005 or 2008? Please note I am not referring to placing your actual source control system on that drive, but rather your working folder.</p>
<p>Thanks</p>
| [
{
"answer_id": 35350,
"author": "rcreswick",
"author_id": 3446,
"author_profile": "https://Stackoverflow.com/users/3446",
"pm_score": 3,
"selected": false,
"text": "Class.getDeclaredMethod(\"someMethodName\", .....) getDeclaredMethod NoSuchMethodException TestUtilities"
},
{
"ans... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2343/"
] |
35,208 | <p>I have a page with many forms in panels and usercontrols, and a requiredfield validator I just added to one form is preventing all of my other forms from submitting. what's the rule that I'm not following?</p>
| [
{
"answer_id": 35226,
"author": "Jonathan S.",
"author_id": 2034,
"author_profile": "https://Stackoverflow.com/users/2034",
"pm_score": 4,
"selected": true,
"text": "<asp:TextBox ID=\"txt1\" ValidationGroup=\"Group1\" ruant=\"server\" />\n<asp:RequiredFieldValidator ID=\"rfv1\" ... Valid... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2462/"
] |
35,211 | <p>The compiler usually chokes when an event doesn't appear beside a <code>+=</code> or a <code>-=</code>, so I'm not sure if this is possible.</p>
<p>I want to be able to identify an event by using an Expression tree, so I can create an event watcher for a test. The syntax would look something like this:</p>
<pre><c... | [
{
"answer_id": 36255,
"author": "Curt Hagenlocher",
"author_id": 533,
"author_profile": "https://Stackoverflow.com/users/533",
"pm_score": 2,
"selected": false,
"text": "public event DelegateType EventName;\n"
},
{
"answer_id": 37315,
"author": "Emperor XLII",
"author_id"... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
35,224 | <p>I have a Flex <code>ComboBox</code> that gets populated by a <code>dataprovider</code> all is well...</p>
<p>I would now like to add a default " -- select a item --" option at the 0 index, how can I do this and still use a <code>dataprovider</code>? I have not seen any examples of such, but I can't imagine this bei... | [
{
"answer_id": 35261,
"author": "Matt Dillard",
"author_id": 863,
"author_profile": "https://Stackoverflow.com/users/863",
"pm_score": 1,
"selected": false,
"text": "mx.BindingUtils.ChangeWatcher"
},
{
"answer_id": 35883,
"author": "Theo",
"author_id": 1109,
"author_p... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
35,240 | <p>I used the jQuery Form plugin for asynchronous form submission. For forms that contain files, it copies the form to a hidden iframe, submits it, and copies back the iframe's contents. The problem is that I can't figure out how to find what HTTP status code was returned by the server. For example, if the server retur... | [
{
"answer_id": 1847965,
"author": "Coyod",
"author_id": 223888,
"author_profile": "https://Stackoverflow.com/users/223888",
"pm_score": 4,
"selected": false,
"text": "<script type=\"text/javascript\">\n\n var uploadStarted = false;\n function OnUploadStart(){ \n u... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3560/"
] |
35,286 | <p>I want to escape a DOS filename so I can use it with sed. I have a DOS batch file something like this:</p>
<pre><code>set FILENAME=%~f1
sed 's/Some Pattern/%FILENAME%/' inputfile
</code></pre>
<p>(Note: <code>%~f1</code> - expands <code>%1</code> to a Fully qualified path name - <code>C:\utils\MyFile.txt</code>)<... | [
{
"answer_id": 35386,
"author": "Jeremy",
"author_id": 3657,
"author_profile": "https://Stackoverflow.com/users/3657",
"pm_score": 3,
"selected": true,
"text": "Some Pattern set FILENAME=%~f1\necho s/Some Pattern/%FILENAME%/ | sed -e \"s/\\\\/\\\\\\\\/g\" >sedcmd.tmp\nsed -f sedcmd.tmp i... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2541/"
] |
35,301 | <p>I have always used <code>||</code> (two pipes) in OR expressions, both in C# and PHP. Occasionally I see a single pipe used: <code>|</code>. What is the difference between those two usages? Are there any caveats when using one over the other or are they interchangeable?</p>
| [
{
"answer_id": 35313,
"author": "Evan Shaw",
"author_id": 510,
"author_profile": "https://Stackoverflow.com/users/510",
"pm_score": 6,
"selected": false,
"text": "condition1 || condition2\n A = 01010101\nB = 10101010\nA | B = 11111111\n\nA = 00000001\nB = 00010000\nA | B = 00010001\n\nA ... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3238/"
] |
35,317 | <p>When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly. Once I dismiss the box, everything is fine. So I really don't care if some process died. How do I get Vista to shut up about it?</p>
<hr>
<p>Specifically, the message reads:</p>
<p... | [
{
"answer_id": 1203513,
"author": "Marsh Ray",
"author_id": 116270,
"author_profile": "https://Stackoverflow.com/users/116270",
"pm_score": 0,
"selected": false,
"text": "http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/35317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
35,320 | <p>In the code below I am using a recursive CTE(Common Table Expression) in SQL Server 2005 to try and find the top level parent of a basic hierarchical structure. The rule of this hierarchy is that every CustID has a ParentID and if the CustID has no parent then the ParentID = CustID and it is the highest level.</p>
... | [
{
"answer_id": 35425,
"author": "Trevor Abell",
"author_id": 2916,
"author_profile": "https://Stackoverflow.com/users/2916",
"pm_score": 1,
"selected": false,
"text": "SELECT TOP 1 FROM cteLevelOne ORDER BY CustID DESC\n"
},
{
"answer_id": 35557,
"author": "AlexCuse",
"au... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3677/"
] |
35,322 | <p>I'm writing an app using asp.net-mvc deploying to iis6. I'm using forms authentication. Usually when a user tries to access a resource without proper authorization I want them to be redirected to a login page. FormsAuth does this for me easy enough.</p>
<p>Problem: Now I have an action being accessed by a console a... | [
{
"answer_id": 35341,
"author": "Andy",
"author_id": 1993,
"author_profile": "https://Stackoverflow.com/users/1993",
"pm_score": -1,
"selected": false,
"text": "\n HttpContext.Current.Response.StatusCode = 401;\n"
},
{
"answer_id": 35352,
"author": "Dale Ragan",
"autho... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
35,333 | <p>I'm compiling a simple .c in visual c++ with Compile as C Code (/TC)
and i get this compiler error </p>
<blockquote>
<p>error C2143: syntax error : missing ';' before 'type'</p>
</blockquote>
<p>on a line that calls for a simple struct </p>
<pre><code> struct foo test;
</code></pre>
<p>same goes for using the ... | [
{
"answer_id": 35336,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 1,
"selected": false,
"text": "#include"
},
{
"answer_id": 35362,
"author": "17 of 26",
"author_id": 2284,
"author_profile": "https:/... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2566/"
] |
35,366 | <p>I'm working on a database for a small web app at my school using <code>SQL Server 2005</code>.<br>
I see a couple of schools of thought on the issue of <code>varchar</code> vs <code>nvarchar</code>:</p>
<ol>
<li>Use <code>varchar</code> unless you deal with a lot of internationalized data, then use <code>nvarchar</... | [
{
"answer_id": 5538424,
"author": "J.A",
"author_id": 691070,
"author_profile": "https://Stackoverflow.com/users/691070",
"pm_score": 3,
"selected": false,
"text": "nvarchar varchar nvarchar"
},
{
"answer_id": 15019201,
"author": "Kjetil Klaussen",
"author_id": 15599,
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
35,372 | <p>I am trying to build an website for my college's magazine. I used the "views" module to show a block of static content I created on the front page.</p>
<p>My question is: how can I edit the theme's css so it changes the way that block of static content is displayed?</p>
<p>For reference, <a href="http://www.histor... | [
{
"answer_id": 36743,
"author": "Daniel James",
"author_id": 2434,
"author_profile": "https://Stackoverflow.com/users/2434",
"pm_score": 2,
"selected": false,
"text": "sites/all/ themes mytheme sites/all/themes/mytheme/ mytheme.info name = My Theme\nversion = 0.1\ncore = 6.x\nbase theme ... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/802/"
] |
35,380 | <p>I need to to print natural nos. 1,2,...n such that the parent process prints all odd numbers and the child process prints all even numbers, and all of this needs to be done using POSIX signals. How would I go about accomplishing this?</p>
<p>The output should be:</p>
<p>Parent : 1<br>
Child : 2<br>
Parent : 3<br>... | [
{
"answer_id": 171502,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 2,
"selected": false,
"text": "#include <stdio.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include <signal.h>\n#include <stdlib.h>\n\n#define... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2727/"
] |
35,429 | <p>I was given a C++ project that was compiled using MS Visual Studio .net 2003 C++ compiler, and a .mak file that was used to compile it. I am able to build it from the command line using nmake project.mak, but the compiler complains that afxres.h was not found. I did a little searching around and the afxres.h is in... | [
{
"answer_id": 35521,
"author": "Erin Dees",
"author_id": 3462,
"author_profile": "https://Stackoverflow.com/users/3462",
"pm_score": 2,
"selected": false,
"text": "vars C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\vsvars32.bat"
}
] | 2008/08/29 | [
"https://Stackoverflow.com/questions/35429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3690/"
] |
35,463 | <p>Some code that rounds up the division to demonstrate (C-syntax):</p>
<pre><code>#define SINT64 long long int
#define SINT32 long int
SINT64 divRound(SINT64 dividend, SINT64 divisor)
{
SINT32 quotient1 = dividend / divisor;
SINT32 modResult = dividend % divisor;
SINT32 multResult = modResult * 2;
SINT32 qu... | [
{
"answer_id": 35468,
"author": "Mat Noguchi",
"author_id": 1799,
"author_profile": "https://Stackoverflow.com/users/1799",
"pm_score": 0,
"selected": false,
"text": "ldiv"
},
{
"answer_id": 35472,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://S... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
35,480 | <p>I'm currently working on a large implementation of Class::DBI for an existing database structure, and am running into a problem with clearing the cache from Class::DBI. This is a mod_perl implementation, so an instance of a class can be quite old between times that it is accessed.
From the man pages I found two opt... | [
{
"answer_id": 35529,
"author": "John Siracusa",
"author_id": 164,
"author_profile": "https://Stackoverflow.com/users/164",
"pm_score": 4,
"selected": true,
"text": "$Class::DBI::Weaken_Is_Available = 0;\n"
},
{
"answer_id": 47599,
"author": "Sean",
"author_id": 4919,
... | 2008/08/29 | [
"https://Stackoverflow.com/questions/35480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3421/"
] |
35,485 | <p>I want to be able to get an estimate of how much code & static data is used by my C++ program?</p>
<p>Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime?</p>
<p>Will objdump & readelf help?</p>
| [
{
"answer_id": 35508,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 1,
"selected": false,
"text": "readelf -S .text .data .rodata"
},
{
"answer_id": 35738,
"author": "Mark Harrison",
"author_id": 116,
"au... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1841/"
] |
35,486 | <p>What is the best way to create fluid width/height rounded corners with jQuery?</p>
<hr>
<p>That plugin doesn't keep the height the same. I have a 10px high div that I want to round the corners on, when I use that script it adds about 10px onto whats there.</p>
| [
{
"answer_id": 35510,
"author": "Martin Clarke",
"author_id": 2422,
"author_profile": "https://Stackoverflow.com/users/2422",
"pm_score": 4,
"selected": false,
"text": "$(this).corner();\n"
},
{
"answer_id": 676396,
"author": "Keyslinger",
"author_id": 80857,
"author_... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2066/"
] |
35,491 | <p>I want to be able to get an estimate of how much code & static data is used by my C++ program?</p>
<p>Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime?</p>
<p>Will otool help?</p>
| [
{
"answer_id": 35583,
"author": "Mike Haboustak",
"author_id": 2146,
"author_profile": "https://Stackoverflow.com/users/2146",
"pm_score": 2,
"selected": false,
"text": "otool -s __DATA __data MyApp.bundle/Contents/MacOS/MyApp\notool -s __TEXT __text MyApp.bundle/Contents/MacOS/MyApp\n"... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1841/"
] |
35,494 | <p>I'm looking to run Redmine, a Ruby on Rails app, on a VPS windows box. The only thing I can really think of is running a virtual Linux machine and hosting it from there. If that is my only option, am I going to run into problems running a virtual machine inside of a virtual machine?</p>
<p>Also, this will be an i... | [
{
"answer_id": 35596,
"author": "cpm",
"author_id": 3674,
"author_profile": "https://Stackoverflow.com/users/3674",
"pm_score": 4,
"selected": true,
"text": "mongrel_rails service::install -h"
}
] | 2008/08/30 | [
"https://Stackoverflow.com/questions/35494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2066/"
] |
35,499 | <p>In the project I am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to support emoticons, avatars, or stuff like th... | [
{
"answer_id": 35587,
"author": "Toran Billups",
"author_id": 2701,
"author_profile": "https://Stackoverflow.com/users/2701",
"pm_score": 1,
"selected": false,
"text": "function Comet(key) {\n\n var random = key;\n var title = 'Comet';\n var connection = false;\n var iframediv = fals... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3695/"
] |
35,507 | <p>I have been working with Struts for some time, but for a project I am finishing I was asked to separate Templates (velocity .vm files), configs (struts.xml, persistence.xml) from main WAR file.</p>
<p>I have all in default structure like: </p>
<pre>
application
|-- <i><b>META-INF</b></i> -- Some... | [
{
"answer_id": 197980,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "velocity.properties file.resource.loader.path"
},
{
"answer_id": 234746,
"author": "RayOK",
"author_id": 31246... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2274/"
] |
35,530 | <p>Graphics and audio editing and processing software often contain functions called "High-Pass Filter" and "Low-Pass Filter". Exactly what do these do, and what are the algorithms for implementing them?</p>
| [
{
"answer_id": 82372,
"author": "Hallgrim",
"author_id": 15454,
"author_profile": "https://Stackoverflow.com/users/15454",
"pm_score": 5,
"selected": false,
"text": "double[] signal = (some 1d signal);\ndouble[] filter = [0.25 0.25 0.25 0.25]; // box-car filter\ndouble[] result = new dou... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1175/"
] |
35,537 | <p>Is there an easy way to set the zoom level for a windows form in C#? In VBA there was a zoom property of the form.</p>
| [
{
"answer_id": 296054,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "float scaleX = ((float)Screen.PrimaryScreen.WorkingArea.Width / 1024);\nfloat scaleY = ((float)Screen.PrimaryScreen.WorkingAre... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3270/"
] |
35,538 | <p>What's the best way to go about validating that a document follows some version of HTML (prefereably that I can specify)? I'd like to be able to know where the failures occur, as in a web-based validator, except in a native Python app.</p>
| [
{
"answer_id": 35543,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 5,
"selected": true,
"text": "from lxml import etree\nfrom StringIO import StringIO\netree.parse(StringIO(html), etree.HTMLParser(recover=False))\n"
... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
35,541 | <p>Doug McCune had created something that was exactly what I needed (<a href="http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/" rel="nofollow noreferrer">http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/</a>) but alas - it was for AIR be... | [
{
"answer_id": 35552,
"author": "hoyhoy",
"author_id": 3499,
"author_profile": "https://Stackoverflow.com/users/3499",
"pm_score": 0,
"selected": false,
"text": "find . -type f -exec cat {} \\; | wc -l"
},
{
"answer_id": 35787,
"author": "Theo",
"author_id": 1109,
"au... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3435/"
] |
35,548 | <p>I use this tool called <a href="http://www.lazycplusplus.com/" rel="nofollow noreferrer">Lazy C++</a> which breaks a single C++ .lzz file into a .h and .cpp file. I want <a href="http://makepp.sourceforge.net/" rel="nofollow noreferrer">Makepp</a> to expect both of these files to exist after my rule for building .lz... | [
{
"answer_id": 35592,
"author": "Tynan",
"author_id": 3548,
"author_profile": "https://Stackoverflow.com/users/3548",
"pm_score": 3,
"selected": true,
"text": "build: foo.h foo.cpp\n g++ $(CFLAGS) foo.cpp -o $(LFLAGS) foo\n\nfoo.h foo.cpp: foo.lzz\n lzz foo.lzz\n"
},
{
"answe... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
35,563 | <p>Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying. </p>
<p>Steps to reproduce: Open Terminal.app, reverse-search to a longish command. Hit <ctrl&... | [
{
"answer_id": 35588,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "<down><up>"
}
] | 2008/08/30 | [
"https://Stackoverflow.com/questions/35563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3499/"
] |
35,599 | <p>I'll admit that I don't know the inner workings of the unix operating system, so I was hoping someone could shed some light on this topic.</p>
<p>Why is the Unix file system better than the windows file system?</p>
<p>Would grep work just as well on Windows, or is there something fundamentally different that makes... | [
{
"answer_id": 35616,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 4,
"selected": false,
"text": "unlink grep"
},
{
"answer_id": 10664449,
"author": "mtk",
"author_id": 1135954,
"author_profile": "htt... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1368/"
] |
35,634 | <p>Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location).</p>
| [
{
"answer_id": 35635,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 5,
"selected": true,
"text": "a.equal? b"
},
{
"answer_id": 39062,
"author": "wvdschel",
"author_id": 2018,
"author_profile": "htt... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
35,670 | <p>I am ready to start using SVN, but I have NO (as in the money required for free beer) experience with source control. I have installed subversion on my server (that was easy, 'apt-get install subversion') but now I don't know what to do, how to configure it, or how to use it.<br /><br />What suggestions do you have... | [
{
"answer_id": 35676,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 2,
"selected": false,
"text": "svnserve mod_dav_svn"
}
] | 2008/08/30 | [
"https://Stackoverflow.com/questions/35670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
35,699 | <p>I'm trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can't grow the left div to match the height of the right one. My right div typically has a lot of content. </p>
<p>Here's a paired down example of my template to illustrate the problem.</p>
<pre><code><div style="... | [
{
"answer_id": 35711,
"author": "DevelopingChris",
"author_id": 1220,
"author_profile": "https://Stackoverflow.com/users/1220",
"pm_score": 3,
"selected": false,
"text": "<div style=\"border-left:solid 1px black;border-bottom:solid 1px black;\">\n <div style=\"float:left; width: 150px; ... | 2008/08/30 | [
"https://Stackoverflow.com/questions/35699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3499/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.