qid
int64
4
22.2M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
344,018
<p>I have an ASP.NET application which tracks statistics by creating and writing to custom performance counters. Occasionally, I see in the error logs that indicate that the counters have failed to open because they had already been used in the current process. I presume this is due to my .NET appdomain having been r...
[ { "answer_id": 698491, "author": "Ender", "author_id": 84296, "author_profile": "https://Stackoverflow.com/users/84296", "pm_score": 0, "selected": false, "text": "lock (this.lockObject)\n{\n //Create performance counter\n}\n" }, { "answer_id": 1008759, "author": "Alan McBee"...
2008/12/05
[ "https://Stackoverflow.com/questions/344018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7450/" ]
344,047
<p>I want to get at the item that is being data bound, during the ItemDataBound event of an asp:repeater.</p> <p>I tried the following (which was an unaccepted answer in a <a href="https://stackoverflow.com/questions/284420/datagridview-bindinghow-to-color-line-depending-of-the-object-binded#284470">stackoverflow ques...
[ { "answer_id": 344073, "author": "Programmin Tool", "author_id": 21691, "author_profile": "https://Stackoverflow.com/users/21691", "pm_score": 5, "selected": true, "text": "if (e.Item.ItemType == ListItemType.Item ||\n e.Item.ItemType == ListItemType.AlternatingItem)\n{\n //Put stu...
2008/12/05
[ "https://Stackoverflow.com/questions/344047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12597/" ]
344,068
<p>I have a table like so:</p> <pre><code>keyA keyB data </code></pre> <p>keyA and keyB together are unique, are the primary key of my table and make up a clustered index.</p> <p>There are 5 possible values of keyB but an unlimited number of possible values of keyA,. keyB generally increments.</p> <p>For example, t...
[ { "answer_id": 344397, "author": "Michael Haren", "author_id": 29, "author_profile": "https://Stackoverflow.com/users/29", "pm_score": 1, "selected": false, "text": "ORDER BY KeyA, KeyB\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344068", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34632/" ]
344,069
<p>I am unit testing a .NET application (.exe) that uses an app.config file to load configuration properties. The unit test application itself does not have an app.config file. </p> <p>When I try to unit test a method that utilizes any of the configuration properties, they return <em>null</em>. I'm assuming this is...
[ { "answer_id": 344124, "author": "Jeromy Irvine", "author_id": 8223, "author_profile": "https://Stackoverflow.com/users/8223", "pm_score": 7, "selected": true, "text": ".config" }, { "answer_id": 344233, "author": "bryanbcook", "author_id": 30809, "author_profile": "h...
2008/12/05
[ "https://Stackoverflow.com/questions/344069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20133/" ]
344,070
<p>Good day,</p> <p>we just moved from asp.net 1.1 to asp.net 2.0. We are using ajax update panels.</p> <p>In an Apress book (Pro asp.net 2008) , I've read that when you use the updatepanel, you don't reduce the acount of bandwidth sent, because the entire page is still sent. </p> <p>That in mind, I've also read on ...
[ { "answer_id": 344124, "author": "Jeromy Irvine", "author_id": 8223, "author_profile": "https://Stackoverflow.com/users/8223", "pm_score": 7, "selected": true, "text": ".config" }, { "answer_id": 344233, "author": "bryanbcook", "author_id": 30809, "author_profile": "h...
2008/12/05
[ "https://Stackoverflow.com/questions/344070", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42848/" ]
344,072
<p>I have a table with a large amount of information, how do i select just the last months worth? (ie just the last 31 cells in the column?)</p> <p>The data is in the form</p> <pre><code>date1 numbers date2 numbers . . . . . . daten numbers </code></pre> <p>where...
[ { "answer_id": 344123, "author": "CestLaGalere", "author_id": 6684, "author_profile": "https://Stackoverflow.com/users/6684", "pm_score": 1, "selected": false, "text": "LastRow = Sheet.Cells.SpecialCells(Excel.XlCellType.xlCellTypeLastCell).Row\n" }, { "answer_id": 344131, "a...
2008/12/05
[ "https://Stackoverflow.com/questions/344072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,092
<p>I work for a large website. Our marketing department asks us to add ever more web ad tracking pixels to our pages. I have no problem with tracking the effectiveness of ad campaigns, but the servers serving those pixels can be unreliable. I'm sure most of you have seen web pages that refuse to finish loading because ...
[ { "answer_id": 344118, "author": "Stevo", "author_id": 1937, "author_profile": "https://Stackoverflow.com/users/1937", "pm_score": 4, "selected": true, "text": " $(document).ready(function(){\n // Your code here\n });\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43670/" ]
344,095
<p>Is that possible to have a single PHP SOAP server which will handle requests to several classes (services)?</p> <p>If yes, could you please show an example implementation?</p> <p>If not, could you please describe why?</p>
[ { "answer_id": 346571, "author": "gnud", "author_id": 27204, "author_profile": "https://Stackoverflow.com/users/27204", "pm_score": 0, "selected": false, "text": "class ServiceProxy {\n private $map = array();\n\n public function addMethod($name, $callback) {\n if(is_callabl...
2008/12/05
[ "https://Stackoverflow.com/questions/344095", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43668/" ]
344,098
<p>Consider the following table:</p> <pre><code>mysql&gt; select * from phone_numbers; +-------------+------+-----------+ | number | type | person_id | +-------------+------+-----------+ | 17182225465 | home | 1 | | 19172225465 | cell | 1 | | 12129876543 | home | 2 | | 13049876543 | cell |...
[ { "answer_id": 344127, "author": "Tony Andrews", "author_id": 18747, "author_profile": "https://Stackoverflow.com/users/18747", "pm_score": 4, "selected": true, "text": "for each row in phone_numbers h /* Note this is ALL home AND cell phones */\n select c.number from phone_numbers c\n...
2008/12/05
[ "https://Stackoverflow.com/questions/344098", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1094969/" ]
344,101
<p>Wish to simultaneously call a function multiple times. I wish to use threads to call a function which will utilize the machines capability to the fullest. This is a 8 core machine, and my requirement is to use the machine cpu from 10% to 100% or more. </p> <p>My requirement is to use the boost class. Is there any ...
[ { "answer_id": 344522, "author": "James Hopkin", "author_id": 11828, "author_profile": "https://Stackoverflow.com/users/11828", "pm_score": 2, "selected": false, "text": "int threadedAPI1( );\n\nboost::bind(&threadedAPI1,0)\n" }, { "answer_id": 344726, "author": "jalf", "...
2008/12/05
[ "https://Stackoverflow.com/questions/344101", "https://Stackoverflow.com", "https://Stackoverflow.com/users/35416/" ]
344,104
<p>I was wondering which was better:</p> <pre><code>$lookup = array( "a" =&gt; 1, "b" =&gt; 2, "c" =&gt; 3 ); return $lookup[$key]; </code></pre> <p>or</p> <pre><code>if ( $key == "a" ) return 1 else if ( $key == "b" ) return 2 else if ( $key == "c" ) return 3 </code></pre> <p>or maybe just a nice switch...</p> <p...
[ { "answer_id": 344156, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 0, "selected": false, "text": "if()" }, { "answer_id": 344365, "author": "Christopher Lightfoot", "author_id": 24525, "author_profile": "...
2008/12/05
[ "https://Stackoverflow.com/questions/344104", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24525/" ]
344,117
<p>Is there any way to get a String[] with the roles a user has in the JSP or Servlet?</p> <p>I know about request.isUserInRole("role1") but I also want to know all the roles of the user.</p> <p>I searched the servlet source and it seems this is not possible, but this seems odd to me.</p> <p>So... any ideas?</p>
[ { "answer_id": 344153, "author": "Steve McLeod", "author_id": 2959, "author_profile": "https://Stackoverflow.com/users/2959", "pm_score": 4, "selected": false, "text": " System.out.println(\"type = \" + request.getUserPrincipal().getClass());\n" }, { "answer_id": 344223, "...
2008/12/05
[ "https://Stackoverflow.com/questions/344117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43671/" ]
344,128
<p>I'm pulling back a Date and a Time from a database. They are stored in separate fields, but I would like to combine them into a java.util.Date object that reflects the date/time appropriately.</p> <p>Here is my original approach, but it is flawed. I always end up with a Date/Time that is 6 hours off what it should ...
[ { "answer_id": 344165, "author": "Paul Tomblin", "author_id": 3333, "author_profile": "https://Stackoverflow.com/users/3333", "pm_score": 4, "selected": true, "text": " Calendar dCal = Calendar.getInstance();\n dCal.setTime(date);\n Calendar tCal = Calendar.getInstance();\n tCal.setT...
2008/12/05
[ "https://Stackoverflow.com/questions/344128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1310/" ]
344,161
<p>Using WMI VB scripting, I would like to create/attach multiple child processes to a parent process, such as the explorer process.</p> <p>When an app is started by clicking on it, it becomes a child process of the explorer process. The same is true for all apps that are loaded when Windows starts up.</p> <p>If you ...
[ { "answer_id": 71476435, "author": "Spokes", "author_id": 3411895, "author_profile": "https://Stackoverflow.com/users/3411895", "pm_score": 0, "selected": false, "text": "dim shell = wscript.createObject(\"wscript.shell\")\nshell.run(<path-to-application>\\excel.exe)\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344161", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43244/" ]
344,162
<p>I have a bunch of old classic ASP pages, many of which show database data in tables. None of the pages have any sorting functionality built in: you are at the mercy of whatever ORDER BY clause the original developer saw fit to use.</p> <p>I'm working on a quick fix to tack on sorting via client-side javascript. I...
[ { "answer_id": 344204, "author": "Jonathan Lonowski", "author_id": 15031, "author_profile": "https://Stackoverflow.com/users/15031", "pm_score": 6, "selected": true, "text": "cssText" }, { "answer_id": 344336, "author": "Tomalak", "author_id": 18771, "author_profile":...
2008/12/05
[ "https://Stackoverflow.com/questions/344162", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3043/" ]
344,168
<p>I have a page that allows users to enter a lot of information about them (metadata) they can then click on a icon which opens a modal window containing a googlemap which allows them to add locations, and a title for that location.</p> <p>Using mootools I can pass the value of a form field back to the original form,...
[ { "answer_id": 344408, "author": "Elocution Safari", "author_id": 43670, "author_profile": "https://Stackoverflow.com/users/43670", "pm_score": 3, "selected": true, "text": "var usersLocations = {\"locations\": [\n {\"type\": \"point\", \"coords\": [100,200]},\n {\"type\": ...
2008/12/05
[ "https://Stackoverflow.com/questions/344168", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28241/" ]
344,171
<p>As we know that, with compute function of datatable we can get sum of columns. But I want to get sum of a row of datatable. I will explain with a example:</p> <p>I have a datatable like image below: With compute function we can get the sum of each column (product). Such as for product1, 2 + 12 + 50 + 13= 77.</p> ...
[ { "answer_id": 344215, "author": "Galwegian", "author_id": 3201, "author_profile": "https://Stackoverflow.com/users/3201", "pm_score": 2, "selected": false, "text": "\"Quantity * UnitPrice\"" }, { "answer_id": 344279, "author": "Jason Jackson", "author_id": 13103, "au...
2008/12/05
[ "https://Stackoverflow.com/questions/344171", "https://Stackoverflow.com", "https://Stackoverflow.com/users/439507/" ]
344,199
<p>I know how to do a regular php mysql search and display the results. However, because of the nature of what I'm trying to accomplish I need to be able to sort by relevancy. Let me explain this better:</p> <p>Normal Query "apple iphone applications" will search the database using %apple iphone application%, but if t...
[ { "answer_id": 344213, "author": "Filip Ekberg", "author_id": 39106, "author_profile": "https://Stackoverflow.com/users/39106", "pm_score": 3, "selected": false, "text": "select title, match (title,content) against (”internet”) as score \nfrom cont \nwhere match (title,content) against (...
2008/12/05
[ "https://Stackoverflow.com/questions/344199", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26823/" ]
344,203
<p>What is the maximum number of threads that can be created by a process under Linux?</p> <p>How (if possible) can this value be modified?</p>
[ { "answer_id": 344264, "author": "Vincent Van Den Berghe", "author_id": 39259, "author_profile": "https://Stackoverflow.com/users/39259", "pm_score": 4, "selected": false, "text": "cat /proc/sys/kernel/threads-max\n" }, { "answer_id": 344292, "author": "Robert Gamble", "a...
2008/12/05
[ "https://Stackoverflow.com/questions/344203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,210
<p>I'm using the ASP.net cache in a web project, and I'm writing a "status" page for it which shows the items in the cache, and as many statistics about the cache as I can find. Is there any way that I can get the total size (in bytes) of the cached data? The size of each item would be even better. I want to display th...
[ { "answer_id": 344329, "author": "Ryan Cook", "author_id": 43029, "author_profile": "https://Stackoverflow.com/users/43029", "pm_score": 5, "selected": true, "text": "Cache.EffectivePrivateBytesLimit" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344210", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16872/" ]
344,212
<p>Ok I need to change the value of a hidden field in a gridview and here is what I have so far:</p> <pre><code>for(var i = 0; i &lt; gv_Proofs.rows.length; i++) { var tbl_Cell = gv_Proofs.rows[i].cells[0]; var sdiFound = false; for(var x = 0; x &lt; tbl_Cell.childNodes.length; x++) { if(tbl_C...
[ { "answer_id": 344266, "author": "Mike Robinson", "author_id": 43687, "author_profile": "https://Stackoverflow.com/users/43687", "pm_score": 0, "selected": false, "text": "<%= lbl_SDI.ClientID %>\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2486/" ]
344,236
<p>I have yet another managed C++ KeyValuePair question where I know what to do in C#, but am having a hard time translating to managed C++. Here is the code that does what I want to do in C#:</p> <pre><code>KeyValuePair&lt;String, String&gt; KVP = new KeyValuePair&lt;string, string&gt;("this", "that"); </code></pre> ...
[ { "answer_id": 344331, "author": "Excel Kobayashi", "author_id": 42911, "author_profile": "https://Stackoverflow.com/users/42911", "pm_score": 3, "selected": true, "text": "KeyValuePair< String ^, String ^> k(gcnew String(\"Foo\"), gcnew String(\"Bar\"));" }, { "answer_id": 34437...
2008/12/05
[ "https://Stackoverflow.com/questions/344236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2831/" ]
344,257
<p>I want to create tag in subversion. On the command line I have tried the following:</p> <p><strong>svn copy <a href="http://myserver.mycompany.com:8080/svn/SVN_Main/trunk" rel="nofollow noreferrer">http://myserver.mycompany.com:8080/svn/SVN_Main/trunk</a> <a href="http://myserver.mycompany.com:8080/svn/SVN_Main/tag...
[ { "answer_id": 344330, "author": "derobert", "author_id": 27727, "author_profile": "https://Stackoverflow.com/users/27727", "pm_score": 1, "selected": false, "text": "-r" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43688/" ]
344,263
<p>I want to pass the params collection from the controller to the model to parse filtering and sorting conditions. Does having a method in the model that takes the params from the controller break MVC?</p>
[ { "answer_id": 344483, "author": "Daniel Lucraft", "author_id": 11951, "author_profile": "https://Stackoverflow.com/users/11951", "pm_score": 2, "selected": false, "text": "class Model < ActiveRecord::Base\n def update_from_params(params)\n ....\n end\nend\n\nclass ModelsController ...
2008/12/05
[ "https://Stackoverflow.com/questions/344263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,273
<p>I have a SQL Report that insists on printing an extra blank page at the end, even though all the report items should fit on one page. I tried shortening the elements on the page that is spilling over, but no matter how much I compress them, or how much blank space is left on the first page, SRS still thinks it need...
[ { "answer_id": 28583841, "author": "Biruk Tilahun", "author_id": 4098056, "author_profile": "https://Stackoverflow.com/users/4098056", "pm_score": 0, "selected": false, "text": "ConsumeContainerWhitespace" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,280
<p>I'm currently writing an app for a Windows Mobile 5.0 app and it seems to possess some firewall-esqe feature where I need to permit the running of any deployed executable. Is there some kind of registry key I can use to turn this off during development as it's frustrating having to babysit the device.</p>
[ { "answer_id": 28583841, "author": "Biruk Tilahun", "author_id": 4098056, "author_profile": "https://Stackoverflow.com/users/4098056", "pm_score": 0, "selected": false, "text": "ConsumeContainerWhitespace" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1143/" ]
344,315
<p>I am trying to test a class that manages data access in the database (you know, CRUD, essentially). The DB library we're using happens to have an API wherein you first get the table object by a static call:</p> <pre><code>function getFoo($id) { $MyTableRepresentation = DB_DataObject::factory("mytable"); $MyTabl...
[ { "answer_id": 344531, "author": "Eran Galperin", "author_id": 10585, "author_profile": "https://Stackoverflow.com/users/10585", "pm_score": 0, "selected": false, "text": " public function setUp() {\n $mockDb = new MockDb();\n DB_DataObject::setAdapter($mockDb);\n }\n" }, {...
2008/12/05
[ "https://Stackoverflow.com/questions/344315", "https://Stackoverflow.com", "https://Stackoverflow.com/users/577/" ]
344,317
<p>On a Unix system, where does gcc look for header files?</p> <p>I spent a little time this morning looking for some system header files, so I thought this would be good information to have here.</p>
[ { "answer_id": 344321, "author": "Bill the Lizard", "author_id": 1288, "author_profile": "https://Stackoverflow.com/users/1288", "pm_score": 4, "selected": false, "text": " /usr/local/include\n libdir/gcc/target/version/include\n /usr/target/include\n /usr/include\n" }, { "answer...
2008/12/05
[ "https://Stackoverflow.com/questions/344317", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1288/" ]
344,325
<p>For testing purposes I need to get my Outlook 2003 addin (vb.net) disabled so that it can only be reactivated through the help menu or by deleting the resilency key from within the registry.</p> <p>I tried to achieve this by creating an unhandled invalid cast exception during the startup eventhandler but this does ...
[ { "answer_id": 368884, "author": "user20389", "author_id": 20389, "author_profile": "https://Stackoverflow.com/users/20389", "pm_score": 0, "selected": false, "text": "System.Threading.Thread.Sleep(10000)" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/25428/" ]
344,327
<p>I am doing some simple sanity validation on various types. The current test I'm working on is checking to make sure their properties are populated. In this case, populated is defined as not null, having a length greater than zero (if a string), or not equal to 0 (if an integer).</p> <p>The "tricky" part of this tes...
[ { "answer_id": 344340, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": true, "text": "var matchingProperties = pi.Where(exactNames.Contains(pi.Name) ||\n partialNames.Any(name => pi....
2008/12/05
[ "https://Stackoverflow.com/questions/344327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43699/" ]
344,343
<p>I'm looking for digital low pass filter code/library/class for a .net windows forms project, preferably written in c, c++ or c#. I probably need to set the number of poles, coefficients, windowing, that sort of thing. I can't use any of the gpl'd code that's available, and don't know what else is out there. Any sugg...
[ { "answer_id": 344362, "author": "Keith Sirmons", "author_id": 1048, "author_profile": "https://Stackoverflow.com/users/1048", "pm_score": 5, "selected": true, "text": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Filter\n{\npublic class ButterworthLo...
2008/12/05
[ "https://Stackoverflow.com/questions/344343", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28343/" ]
344,350
<p>There is a column in a database that is of type INT (Sql server).</p> <p>This int value is used at a bit flag, so I will be AND'ing and OR'ing on it.</p> <p>I have to pass a parameter into my sproc, and that parameter will represent a specific flag item.</p> <p><b>I would normally use an enumeration and pass the ...
[ { "answer_id": 344423, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 2, "selected": false, "text": "CREATE PROCEDURE BitBang(@Flag AS VARCHAR(50), @Id AS INT)\nAS\nBEGIN\n DECLARE @Bit INT\n\n SET @BIT = CASE @Flag\n ...
2008/12/05
[ "https://Stackoverflow.com/questions/344350", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
344,363
<p>I have a base class that has a private static member:</p> <pre><code>class Base { private static Base m_instance = new Base(); public static Base Instance { get { return m_instance; } } } </code></pre> <p>And I want to derive multiple classes from this:</p> <pre><code>class DerivedA : Base...
[ { "answer_id": 344376, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": false, "text": "private static Dictionary<Type, Base> instances = new Dictionary<Type, Base>();\npublic static T GetInstance<T>() where T : Ba...
2008/12/05
[ "https://Stackoverflow.com/questions/344363", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18202/" ]
344,372
<p>just now the dba let me connect to the database using Sql Server Management Studio, this is how i noticed that the default database for the tfs setup and service users is master, is this ok?, is this why I'm having this error?, Let me post part of the log and the properties of the Setup user to confirm that the use...
[ { "answer_id": 344376, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": false, "text": "private static Dictionary<Type, Base> instances = new Dictionary<Type, Base>();\npublic static T GetInstance<T>() where T : Ba...
2008/12/05
[ "https://Stackoverflow.com/questions/344372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15058/" ]
344,380
<p>In <code>java.util.Calendar</code>, January is defined as month 0, not month 1. Is there any specific reason to that ?</p> <p>I have seen many people getting confused about that...</p>
[ { "answer_id": 344393, "author": "Powerlord", "author_id": 15880, "author_profile": "https://Stackoverflow.com/users/15880", "pm_score": -1, "selected": false, "text": "Calendar.JANUARY" }, { "answer_id": 344400, "author": "Jon Skeet", "author_id": 22656, "author_prof...
2008/12/05
[ "https://Stackoverflow.com/questions/344380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11618/" ]
344,419
<p>In HTML, I can find a file starting from the <strong>web server's</strong> root folder by beginning the filepath with &quot;/&quot;. Like:</p> <pre><code>/images/some_image.jpg </code></pre> <p>I can put that path in any file in any subdirectory, and it will point to the right image.</p> <p>With PHP, I tried somethi...
[ { "answer_id": 344445, "author": "Rob Prouse", "author_id": 30827, "author_profile": "https://Stackoverflow.com/users/30827", "pm_score": 7, "selected": true, "text": "define( 'ROOT_DIR', dirname(__FILE__) );\n" }, { "answer_id": 344464, "author": "gnud", "author_id": 272...
2008/12/05
[ "https://Stackoverflow.com/questions/344419", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4376/" ]
344,421
<p>Some people have suggested that when doing an estimate one should make a lower and upper range on the expected time to delivery. The few project tools I have seen, seem to demand one fixed date. Are there any tools that support this concept of a estimation range?</p>
[ { "answer_id": 344680, "author": "BIBD", "author_id": 685, "author_profile": "https://Stackoverflow.com/users/685", "pm_score": 2, "selected": false, "text": "computed_result = (b + 4e + w)/6\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7734/" ]
344,428
<p>How do I access 'a' below?</p> <pre><code>var test = function () { return { 'a' : 1, 'b' : this.a + 1 //doesn't work }; }; </code></pre>
[ { "answer_id": 344453, "author": "Tomalak", "author_id": 18771, "author_profile": "https://Stackoverflow.com/users/18771", "pm_score": 3, "selected": false, "text": "var test = function () {\n var o = {};\n o['a'] = 1;\n o['b'] = o['a'] + 1;\n return o;\n};\n" }, { "answer_id...
2008/12/05
[ "https://Stackoverflow.com/questions/344428", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,430
<p>I have an aspx page where i am Processing a large number of records from a table and doing some manipulation.after each manipuation,(each record),I have a Response.Write("Record : "+rec); Response.Flush()</p> <p>I have set Response.Buffer property to false. It is working fine But If i want to render the output as ...
[ { "answer_id": 344456, "author": "Timothy Lee Russell", "author_id": 12919, "author_profile": "https://Stackoverflow.com/users/12919", "pm_score": 0, "selected": false, "text": ".column1 { width: 40px; }\n.column2 { width: 40px; }\n\nResponse.Write(\"<div id=\\\"column1\\\">some text</di...
2008/12/05
[ "https://Stackoverflow.com/questions/344430", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40521/" ]
344,440
<p>I have a general exception handler, Application_error in my global.asax where I'm trying to isolate all the uncaught exceptions on all my many pages. I don't want to use Page_error to catch exception because it's inefficient to call that on so many pages. So where in the exception can I find what page actually cause...
[ { "answer_id": 344463, "author": "jlew", "author_id": 7450, "author_profile": "https://Stackoverflow.com/users/7450", "pm_score": 6, "selected": true, "text": "HttpContext con = HttpContext.Current;\ncon.Request.Url.ToString()\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344440", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8456/" ]
344,451
<p>I'm using jQuery in conjunction with the <a href="http://malsup.com/jquery/form/" rel="nofollow noreferrer">form plugin</a> and I'd like to intercept the form data before submission and make changes. </p> <p>The form plugin has a property called beforeSubmit that should do this, but I seem to be having trouble gett...
[ { "answer_id": 344918, "author": "Ariel", "author_id": 24654, "author_profile": "https://Stackoverflow.com/users/24654", "pm_score": 3, "selected": true, "text": "<script type=\"text/javascript\">\n $(document).ready(function() {\n var options = {\n beforeSubmit: showData\n }...
2008/12/05
[ "https://Stackoverflow.com/questions/344451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1249/" ]
344,460
<p>I am trying to put the stuff within parentheses into the value of a src attribute in an img tag:</p> <pre><code>while(&lt;TOCFILE&gt;) { $toc_line = $_; $toc_line =~ s/&lt;inlineFig.*?(\.\.\/pics\/ch09_inline99_*?\.jpg)*?&lt;\/inlineFig&gt;/&lt;img src="${1}" alt="" \/\&gt;/g; $new_toc_file .= $toc_line...
[ { "answer_id": 344577, "author": "bart", "author_id": 19966, "author_profile": "https://Stackoverflow.com/users/19966", "pm_score": 4, "selected": false, "text": "inline99_*?\\.jpg\n ^^^ \n" }, { "answer_id": 344650, "author": "Ape-inago", "author_id": 42082, "...
2008/12/05
[ "https://Stackoverflow.com/questions/344460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,468
<p>When I get a vanilla Windows system, there's a bunch of stuff I change to make it more developer-friendly.</p> <p>Some of it I remember every time, other stuff I only do as and when.</p> <p>Examples:</p> <ul> <li>Show extensions of all file types</li> <li>Make hidden and system file visible</li> <li>Turn off Wind...
[ { "answer_id": 344506, "author": "PhiLho", "author_id": 15459, "author_profile": "https://Stackoverflow.com/users/15459", "pm_score": 5, "selected": false, "text": "regsvr32 /u zipfldr.dll" }, { "answer_id": 344767, "author": "Sam Hasler", "author_id": 2541, "author_p...
2008/12/05
[ "https://Stackoverflow.com/questions/344468", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1737/" ]
344,478
<p>Can LINQ to SQL query using <strong>NOT IN</strong>? </p> <p>e.g., SELECT au_lname, state FROM authors WHERE state NOT IN ('CA', 'IN', 'MD')</p>
[ { "answer_id": 344498, "author": "Galwegian", "author_id": 3201, "author_profile": "https://Stackoverflow.com/users/3201", "pm_score": 3, "selected": false, "text": "NorthwindDataContext dc = new NorthwindDataContext();\ndc.Log = Console.Out;\nvar query =\n from c in dc.Customers\n ...
2008/12/05
[ "https://Stackoverflow.com/questions/344478", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1316/" ]
344,479
<p>Is it possible to get the expiry <code>DateTime</code> of an <code>HttpRuntime.Cache</code> object?</p> <p>If so, what would be the best approach?</p>
[ { "answer_id": 350374, "author": "Tom Jelen", "author_id": 28399, "author_profile": "https://Stackoverflow.com/users/28399", "pm_score": 6, "selected": true, "text": "private DateTime GetCacheUtcExpiryDateTime(string cacheKey)\n{\n object cacheEntry = Cache.GetType().GetMethod(\"Get\"...
2008/12/05
[ "https://Stackoverflow.com/questions/344479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343/" ]
344,503
<pre><code>class MyBase { protected object PropertyOfBase { get; set; } } class MyType : MyBase { void MyMethod(MyBase parameter) { // I am looking for: object p = parameter.PropertyOfBase; // error CS1540: Cannot access protected member 'MyBase.PropertyOfBase' via a qualifier of type 'MyB...
[ { "answer_id": 344668, "author": "Jay Bazuzi", "author_id": 5314, "author_profile": "https://Stackoverflow.com/users/5314", "pm_score": 3, "selected": false, "text": "class Other : MyBase { }\n\nnew MyType().MyMethod(new Other());\n" }, { "answer_id": 11028991, "author": "Med...
2008/12/05
[ "https://Stackoverflow.com/questions/344503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31505/" ]
344,509
<p>Trying to get this example working from <a href="http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx" rel="nofollow noreferrer">http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx</a></p> <p>However, I can't seem to get the namespace or syntax right for ...
[ { "answer_id": 344610, "author": "John Z", "author_id": 43430, "author_profile": "https://Stackoverflow.com/users/43430", "pm_score": 2, "selected": false, "text": "private delegate void Process();\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22451/" ]
344,519
<p>I am trying to filter an IEnumerable object of the duplicate values, so I would like to get the distinct values from it, for example, lets say that it holds days:</p> <p>monday tuesday wednesday wednesday</p> <p>I would like to filter it and return:</p> <p>monday tuesday wednesday</p> <p>What is the most effici...
[ { "answer_id": 344536, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": true, "text": "Dictionary<object, object> list = new Dictionary<object, object>();\nforeach (object o in enumerable)\n if (!list.ContainsKe...
2008/12/05
[ "https://Stackoverflow.com/questions/344519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7952/" ]
344,533
<p>I'm struggling to understand Dependency Properties in Silverlight 2. Does anybody have a good explanation or link that clearly explains the DependencyObject and/or DependencyProperty?</p>
[ { "answer_id": 344536, "author": "mmx", "author_id": 33708, "author_profile": "https://Stackoverflow.com/users/33708", "pm_score": 3, "selected": true, "text": "Dictionary<object, object> list = new Dictionary<object, object>();\nforeach (object o in enumerable)\n if (!list.ContainsKe...
2008/12/05
[ "https://Stackoverflow.com/questions/344533", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1463/" ]
344,557
<p>Why is garbage collection required for tail call optimization? Is it because if you allocate memory in a function which you then want to do a tail call on, there'd be no way to do the tail call and regain that memory? (So the stack would have to be saved so that, after the tail call, the memory could be reclaimed.)<...
[ { "answer_id": 346761, "author": "Claudiu", "author_id": 15055, "author_profile": "https://Stackoverflow.com/users/15055", "pm_score": 2, "selected": false, "text": "list *result = filter(make900MBlist(), funcptr);\n" }, { "answer_id": 363702, "author": "dsimcha", "author...
2008/12/05
[ "https://Stackoverflow.com/questions/344557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15055/" ]
344,559
<p>I have a directory full (~10<sup>3</sup>, 10<sup>4</sup>) of XML files from which I need to extract the contents of several fields. I've tested different xml parsers, and since I don't need to validate the contents (expensive) I was thinking of simply using xml.parsers.expat (the fastest one) to go through the file...
[ { "answer_id": 349472, "author": "Torsten Marek", "author_id": 9567, "author_profile": "https://Stackoverflow.com/users/9567", "pm_score": 2, "selected": false, "text": "iterparse" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/280/" ]
344,588
<p>The title pretty much says it all. :-) I have lots of virtual hosts and I want to put a single rewriting block at the top of the httpd.conf file that rewrites URLs no matter which virtual host the request might be directed to. How the heck do I do this?</p> <p>I found <a href="http://www.webmasterworld.com/forum...
[ { "answer_id": 378802, "author": "Jeremy Bourque", "author_id": 2192597, "author_profile": "https://Stackoverflow.com/users/2192597", "pm_score": 3, "selected": false, "text": "include" }, { "answer_id": 1772829, "author": "Travis Wilson", "author_id": 8735, "author_p...
2008/12/05
[ "https://Stackoverflow.com/questions/344588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16609/" ]
344,590
<p>I am creating a WCF service hosted within IIS7 on Windows Vista SP1. I am getting the following error:</p> <p>The certificate 'CN=SignedByLocalHost' must have a private key that is capable of key exchange. The process must have access rights for the private key. </p> <p>It looks like I would need to give the host ...
[ { "answer_id": 344643, "author": "JoshBerke", "author_id": 26160, "author_profile": "https://Stackoverflow.com/users/26160", "pm_score": 3, "selected": false, "text": "All Tasks / Manage Private Keys" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26160/" ]
344,591
<p>I have build server inside our domain (and it needs to be because it also talks to other boxes in the domain), and a webserver that is in the DMZ.</p> <p>As part of our build scripts, I would like to deploy websites to the webserver in the DMZ, using the Nant copy task. The problem is, that Nant is invoked from Te...
[ { "answer_id": 347775, "author": "Scott Saad", "author_id": 4916, "author_profile": "https://Stackoverflow.com/users/4916", "pm_score": 3, "selected": true, "text": "<scp" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344591", "https://Stackoverflow.com", "https://Stackoverflow.com/users/24954/" ]
344,607
<p>I have recently started working with Unified Communication Managed API 2.0 (UCMA) and Office Communication Server(OCS) 2007. I have a need in my app that I have to create custom presence for my users? Has anyone of you guys done this before and can point me in right direction?</p> <p>There is not much documentation...
[ { "answer_id": 347775, "author": "Scott Saad", "author_id": 4916, "author_profile": "https://Stackoverflow.com/users/4916", "pm_score": 3, "selected": true, "text": "<scp" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43007/" ]
344,608
<p>This question relates to an ASP.NET website, originally developed in VS 2005 and now in VS 2008.</p> <p>This website uses two unmanaged external DLLs which are not .NET and I do not have the source code to compile them and have to use them as is.</p> <p>This website runs fine from within Visual Studio, locating an...
[ { "answer_id": 4598747, "author": "Matt Woodard", "author_id": 179187, "author_profile": "https://Stackoverflow.com/users/179187", "pm_score": 5, "selected": false, "text": "System.Environment.SetEnvironmentVariable(\"Path\", searchPath + \";\" + oldPath)\n" }, { "answer_id": 342...
2008/12/05
[ "https://Stackoverflow.com/questions/344608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/27569/" ]
344,630
<p>I have an enumeration value marked with the following attribute. The second parameter instructs the compiler to error whenever the value is used. I want this behavior for anyone that implements my library, but I need to use this enumeration value within my library. How do I tell the compiler to ignore the Obsolet...
[ { "answer_id": 344635, "author": "Jon Skeet", "author_id": 22656, "author_profile": "https://Stackoverflow.com/users/22656", "pm_score": 3, "selected": true, "text": "private const Choices BackwardsCompatibleThree = (Choices) 3;\n" }, { "answer_id": 344666, "author": "Ryan Co...
2008/12/05
[ "https://Stackoverflow.com/questions/344630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/28736/" ]
344,657
<p>I'm trying to learn about trees by implementing one from scratch. In this case I'd like to do it in C# Java or C++. (without using built in methods)</p> <p>So each node will store a character and there will be a maximum of 26 nodes per node.</p> <p>What data structure would I use to contain the pointers to each o...
[ { "answer_id": 344827, "author": "Bill K", "author_id": 12943, "author_profile": "https://Stackoverflow.com/users/12943", "pm_score": 1, "selected": false, "text": "nextNode=nodes[c-'a'];\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43734/" ]
344,665
<p>I have a table like this:</p> <pre><code> Column | Type | Modifiers ---------+------+----------- country | text | food_id | int | eaten | date | </code></pre> <p>And for each country, I want to get the food that is eaten most often. The best I can think of (I'm using postgres) is:</p> <pre><code>CREAT...
[ { "answer_id": 344713, "author": "John MacIntyre", "author_id": 29043, "author_profile": "https://Stackoverflow.com/users/29043", "pm_score": 2, "selected": false, "text": "select country, food_id, count(*) cnt \ninto #tempTbl \nfrom mytable \ngroup by country, food_id\n\nselect country,...
2008/12/05
[ "https://Stackoverflow.com/questions/344665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34382/" ]
344,672
<p>What is the algorithm for storing the pixels in a spiral in JS?</p>
[ { "answer_id": 344945, "author": "tvanfosson", "author_id": 12950, "author_profile": "https://Stackoverflow.com/users/12950", "pm_score": 4, "selected": true, "text": "var Spiral = function(a) {\n this.initialize(a);\n}\n\nSpiral.prototype = {\n _a: 0.5,\n\n constructor: Spiral,...
2008/12/05
[ "https://Stackoverflow.com/questions/344672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18149/" ]
344,697
<p>I have a site with the following robots.txt in the root:</p> <pre><code>User-agent: * Disabled: / User-agent: Googlebot Disabled: / User-agent: Googlebot-Image Disallow: / </code></pre> <p>And pages within this site are getting scanned by Googlebots all day long. Is there something wrong with my file or with G...
[ { "answer_id": 344700, "author": "Sean Carpenter", "author_id": 729, "author_profile": "https://Stackoverflow.com/users/729", "pm_score": 6, "selected": true, "text": "Disallow:" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/29493/" ]
344,705
<p>I'm thinking of choosing Adobe AIR as the client-side implementation technology for an upcoming project. (The previous choice was C# and WPF, but I've been really impressed with Flash/Flex/AIR lately.)</p> <p>But one of the most important features of my product will be its plugin architecture, allowing third party ...
[ { "answer_id": 349767, "author": "hasseg", "author_id": 4111, "author_profile": "https://Stackoverflow.com/users/4111", "pm_score": 4, "selected": true, "text": "ModuleManager" }, { "answer_id": 476125, "author": "RogerV", "author_id": 48048, "author_profile": "https:...
2008/12/05
[ "https://Stackoverflow.com/questions/344705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22979/" ]
344,714
<p>!!! This is not a duplicate question since the solutions offered in the other topics didn't work for me.</p> <p>When I try to commit:</p> <p>Error: Working copy 'D:\Webs\Drupal 6' locked<br> Error: Please execute the "Cleanup" command.</p> <p>When I try to do a cleanup:</p> <p>Cleanup failed to process the follo...
[ { "answer_id": 344745, "author": "derobert", "author_id": 27727, "author_profile": "https://Stackoverflow.com/users/27727", "pm_score": 2, "selected": false, "text": "D:\\Webs\\Drupal 6" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,715
<p>I'm writing some code that id like to be able to work with any window, such as a window created through the windows API, MFC, wxWidgets, etc.</p> <p>The problem is that for some things I need to use the same thread that created the window, which in many cases is just sat in a message loop.</p> <p>My first thought ...
[ { "answer_id": 344738, "author": "John Z", "author_id": 43430, "author_profile": "https://Stackoverflow.com/users/43430", "pm_score": 3, "selected": true, "text": "// Subclass the edit control. \nwpOrigEditProc = (WNDPROC) SetWindowLong(hwndEdit, GWL_WNDPROC, (LONG)EditSubclassProc); \n\...
2008/12/05
[ "https://Stackoverflow.com/questions/344715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6266/" ]
344,737
<p>I have a XML Structure that looks like this.</p> <pre><code>&lt;sales&gt; &lt;item name="Games" sku="MIC28306200" iCat="28" sTime="11/26/2008 8:41:12 AM" price="1.00" desc="Item Name" /&gt; &lt;item name="Games" sku="MIC28307100" iCat="28" sTime="11/26/2008 8:42:12 AM" price="1.00" desc=...
[ { "answer_id": 344764, "author": "jlew", "author_id": 7450, "author_profile": "https://Stackoverflow.com/users/7450", "pm_score": 3, "selected": true, "text": " class Program\n {\n static void Main(string[] args)\n {\n XPathDocument saleResults...
2008/12/05
[ "https://Stackoverflow.com/questions/344737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/30408/" ]
344,741
<p>I am looking to create an expression tree by parsing xml using C#. The xml would be like the following:</p> <pre><code>&lt;Expression&gt; &lt;If&gt; &lt;Condition&gt; &lt;GreaterThan&gt; &lt;X&gt; &lt;Y&gt; &lt;/GreaterThan&gt; &lt;/Condition&gt; &lt;Expression /&gt; &lt;If&gt; &lt;Else&gt...
[ { "answer_id": 344811, "author": "Mark Cidade", "author_id": 1659, "author_profile": "https://Stackoverflow.com/users/1659", "pm_score": 4, "selected": true, "text": "using System.Linq.Expressions; //in System.Core.dll\n\nExpression BuildExpr(XmlNode xmlNode)\n { switch(xmlNode.Name)\n ...
2008/12/05
[ "https://Stackoverflow.com/questions/344741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21586/" ]
344,744
<p>The DB load on my site is getting really high so it is time for me to cache common queries that are being called 1000s of times an hour where the results are not changing. So for instance on my city model I do the following: </p> <pre><code>def self.fetch(id) Rails.cache.fetch("city_#{id}") { City.find(id) } ...
[ { "answer_id": 344854, "author": "mwilliams", "author_id": 23909, "author_profile": "https://Stackoverflow.com/users/23909", "pm_score": 0, "selected": false, "text": "class Product < ActiveRecord::Base\n extend ActiveSupport::Memoizable\n\n belongs_to :category\n\n def filesize(num =...
2008/12/05
[ "https://Stackoverflow.com/questions/344744", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43744/" ]
344,748
<p>I'm trying to do something like </p> <pre><code>URL clientks = com.messaging.SubscriptionManager.class.getResource( "client.ks" ); String path = clientks.toURI().getPath(); System.setProperty( "javax.net.ssl.keyStore", path); </code></pre> <p>Where client.ks is a file stored in com/messaging in the jar file that I...
[ { "answer_id": 344782, "author": "Jason Day", "author_id": 737, "author_profile": "https://Stackoverflow.com/users/737", "pm_score": 3, "selected": false, "text": "InputStream" }, { "answer_id": 17352927, "author": "user2529737", "author_id": 2529737, "author_profile"...
2008/12/05
[ "https://Stackoverflow.com/questions/344748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7949/" ]
344,753
<p>i am trying to do something with the PIL Image library in django, but i experience some problems.</p> <p>I do like this:</p> <p><code> import Image </code></p> <p>And then I do like this</p> <p><code> images = map(Image.open, glob.glob(os.path.join(dirpath, '*.thumb.jpg'))) </code></p> <p>But when i try to run ...
[ { "answer_id": 344791, "author": "Manuel Ceron", "author_id": 23657, "author_profile": "https://Stackoverflow.com/users/23657", "pm_score": 0, "selected": false, "text": "from PIL import Image\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/42546/" ]
344,777
<p>I'm trying to add two folders to my eclipse project's classpath, let's say Folder A and Folder B. B is inside A. Whenever I add A to the classpath</p> <pre><code>&lt;classpathentry kind="lib" path="/A"/&gt; </code></pre> <p>it works just fine, but I need to be able to access the files in B as well. Whenever I t...
[ { "answer_id": 8398181, "author": "michaelliu", "author_id": 726894, "author_profile": "https://Stackoverflow.com/users/726894", "pm_score": 2, "selected": false, "text": "<classpathentry kind=\"lib\" path=\"/A\" excluding=\"B/\"/>\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1459442/" ]
344,784
<p>I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get configuration information to the Enterprise Library in the context of my cust...
[ { "answer_id": 362029, "author": "w4g3n3r", "author_id": 36745, "author_profile": "https://Stackoverflow.com/users/36745", "pm_score": 0, "selected": false, "text": "Const msiMessageTypeInfo = &H04000000\nConst msiMessageTypeFatalExit = &H00000000\nConst msiMessageTypeError = &H01000000\...
2008/12/05
[ "https://Stackoverflow.com/questions/344784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7450/" ]
344,789
<p>I want to install PEAR on PHP 5, so I can use Spreadsheet_Excel_Writer.</p> <p>I don`t know how to install it on my ISP nor my personal MacBook.</p> <p>Thoughts for both?</p>
[ { "answer_id": 344830, "author": "jlleblanc", "author_id": 586, "author_profile": "https://Stackoverflow.com/users/586", "pm_score": 2, "selected": false, "text": "pear install Spreadsheet_Excel_Writer\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344789", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,797
<p>What is the best solution to build several CDT C++ projects from the command line? The projects have references and so it is not possible to just build single projects.</p>
[ { "answer_id": 962610, "author": "James Blackburn", "author_id": 115144, "author_profile": "https://Stackoverflow.com/users/115144", "pm_score": 6, "selected": false, "text": "eclipse -nosplash \n -application org.eclipse.cdt.managedbuilder.core.headlessbuild \n -import {[u...
2008/12/05
[ "https://Stackoverflow.com/questions/344797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,801
<p>Deletion operations seems to be the slowest in a YUI datatable. I have a datatable with > 300 rows. I need to delete selected rows. I tried removing the selected records from the <code>recordset</code> and then calling <code>table.render()</code> .. While this is okay, can it be made better?</p>
[ { "answer_id": 346747, "author": "Evan Anderson", "author_id": 40764, "author_profile": "https://Stackoverflow.com/users/40764", "pm_score": 2, "selected": false, "text": "var selected = theDataTable.getSelectedRows();\nvar rset = theDataTable.getRecordSet();\n\nfor (var x = 0; x < selec...
2008/12/05
[ "https://Stackoverflow.com/questions/344801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,823
<p>On various pages throughout my PHP web site and in various nested directories I want to include a specific file at a path relative to the root.</p> <p>What single command can I put on both of these pages...</p> <pre>http://www.example.com/pageone.php</pre> <pre>http://www.example.com/somedirectory/pagetwo.php</pr...
[ { "answer_id": 344831, "author": "Stefan Mai", "author_id": 13257, "author_profile": "https://Stackoverflow.com/users/13257", "pm_score": 1, "selected": false, "text": "include 'includes/analytics.php';\n" }, { "answer_id": 344848, "author": "Greg", "author_id": 24181, ...
2008/12/05
[ "https://Stackoverflow.com/questions/344823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/83/" ]
344,826
<p>Today I'm starting a little project to create a Django based school administration program. I'm currently designing the models and their corresponding relationships. Being rather new to Django and relational databases in general, I would like some input.</p> <p>Before I show you the current model layout, you need t...
[ { "answer_id": 345403, "author": "Justin Voss", "author_id": 5616, "author_profile": "https://Stackoverflow.com/users/5616", "pm_score": 0, "selected": false, "text": "from django.db import models\n\nSEX_CHOICES = (\n ('M', 'Male'),\n ('F', 'Female')\n)\n\nETHNICITY_CHOICES = (\n ...
2008/12/05
[ "https://Stackoverflow.com/questions/344826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33383/" ]
344,828
<p>Basically I am trying to retrieve a list of stored procedure parameters using Linq to SQL? Is there a way to do this?</p>
[ { "answer_id": 345403, "author": "Justin Voss", "author_id": 5616, "author_profile": "https://Stackoverflow.com/users/5616", "pm_score": 0, "selected": false, "text": "from django.db import models\n\nSEX_CHOICES = (\n ('M', 'Male'),\n ('F', 'Female')\n)\n\nETHNICITY_CHOICES = (\n ...
2008/12/05
[ "https://Stackoverflow.com/questions/344828", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9382/" ]
344,829
<p>I got a core that looks very different from the ones I usually get - most of the threads are in __kernel_vsyscall() :</p> <pre><code> 9 process 11334 0xffffe410 in __kernel_vsyscall () 8 process 11453 0xffffe410 in __kernel_vsyscall () 7 process 11454 0xffffe410 in __kernel_vsyscall () 6 process 11455 0x...
[ { "answer_id": 344841, "author": "coppro", "author_id": 16855, "author_profile": "https://Stackoverflow.com/users/16855", "pm_score": 6, "selected": true, "text": "__kernel_vsyscal" }, { "answer_id": 347355, "author": "Community", "author_id": -1, "author_profile": "h...
2008/12/05
[ "https://Stackoverflow.com/questions/344829", "https://Stackoverflow.com", "https://Stackoverflow.com/users/779/" ]
344,845
<p>I am regularly required to compare data sent to me in Excel spreadsheets with data that lives in SQL Server. I know that you can connect SQL Server to spreadsheets but it always seemed clunky</p> <p>This is really a post to show off my solution but I would love to hear other peoples ideas.</p>
[ { "answer_id": 344846, "author": "wcm", "author_id": 2173, "author_profile": "https://Stackoverflow.com/users/2173", "pm_score": 3, "selected": true, "text": "Sub CreateOpenXML()\n\n Dim cols, rows As Long\n cols = Selection.Columns.Count\n rows = Selection.rows.Count\n Dim H...
2008/12/05
[ "https://Stackoverflow.com/questions/344845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2173/" ]
344,851
<p>I added a <code>get_absolute_url</code> function to one of my models.</p> <pre><code>def get_absolute_url(self): return '/foo/bar' </code></pre> <p>The admin site picks it up and adds a "view on site" link to the detail page for that object (when I put a real URL there instead of "/foo/bar").</p> <p>The prob...
[ { "answer_id": 11420955, "author": "supervacuo", "author_id": 399367, "author_profile": "https://Stackoverflow.com/users/399367", "pm_score": 2, "selected": false, "text": "sites" }, { "answer_id": 54986923, "author": "Xerion", "author_id": 92436, "author_profile": "h...
2008/12/05
[ "https://Stackoverflow.com/questions/344851", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
344,856
<p>I have a form action that needs to have its value set from a variable. I need to set the variable once and it will be reflected many times throughout the DOM.</p> <p>So:</p> <p>variable = "somthing.html"; ... </p>
[ { "answer_id": 344869, "author": "Mitchel Sellers", "author_id": 13279, "author_profile": "https://Stackoverflow.com/users/13279", "pm_score": 2, "selected": false, "text": "var variableName = \"myform.htm\";\n\nthis.form.action = variableName;\n" }, { "answer_id": 344885, "a...
2008/12/05
[ "https://Stackoverflow.com/questions/344856", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4444/" ]
344,860
<p>Let's say I have the three following lists</p> <p>A1<br> A2<br> A3 </p> <p>B1<br> B2</p> <p>C1<br> C2<br> C3<br> C4<br> C5 </p> <p>I'd like to combine them into a single list, with the items from each list as evenly distributed as possible sorta like this:</p> <p>C1<br> A1<br> C2<br> B1<br> C3<br> A2<br> C4<b...
[ { "answer_id": 344896, "author": "nlucaroni", "author_id": 157, "author_profile": "https://Stackoverflow.com/users/157", "pm_score": 1, "selected": false, "text": "- filter lists into three categories\n - lists of length 1\n - first half of the elements of lists with > 1 elements\n...
2008/12/05
[ "https://Stackoverflow.com/questions/344860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1786/" ]
344,881
<p>I'm doing some straight up asynchronous calls from javascript using the XMLHTTPRequest object. On success, with certain return values, I would like to do an asynchonous post back on an update panel and run some server side methods. This is about how I'm implementing it now:</p> <pre><code>&lt;script language="java...
[ { "answer_id": 344903, "author": "Aaron Powell", "author_id": 11388, "author_profile": "https://Stackoverflow.com/users/11388", "pm_score": 3, "selected": true, "text": "__doPostBack('eventTarget','eventArguments');\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18893/" ]
344,906
<p>I thought it is a very simple task to export data in a view from SQL Server 2005 to a fixed width text file. But the wizard is a pain. The format is not correct. Does anybody know how to deal with it? or any better way to do that?</p>
[ { "answer_id": 345058, "author": "jerryhung", "author_id": 37568, "author_profile": "https://Stackoverflow.com/users/37568", "pm_score": 4, "selected": true, "text": "bcp \"SELECT * FROM AdventureWorks.Person.Contact\" queryout Contacts.txt -c -T\n" }, { "answer_id": 345542, ...
2008/12/05
[ "https://Stackoverflow.com/questions/344906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31689/" ]
344,908
<p>In a web-based application that uses the Model-View-Controller design pattern, the logic relating to processing form submissions seems to belong somewhere in between the Model layer and the Controller layer. This is especially true in the case of a complex form (i.e. where form processing goes well beyond simple CRU...
[ { "answer_id": 2635553, "author": "Samnan", "author_id": 296542, "author_profile": "https://Stackoverflow.com/users/296542", "pm_score": 2, "selected": false, "text": "class User_controller\n{\n\n function login()\n {\n $form = new LoginForm(); // this is the class you would...
2008/12/05
[ "https://Stackoverflow.com/questions/344908", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1103/" ]
344,924
<p>I did this in the past, and can't remember the correct command (I think I was using instring or soemthign?)</p> <p>I want to list all the windows services running that have the word 'sql' in them.</p> <p>Listing all the windows services is:</p> <pre><code>Get-Service </code></pre> <p>Is there a instring function...
[ { "answer_id": 344933, "author": "Steven Murawski", "author_id": 1233, "author_profile": "https://Stackoverflow.com/users/1233", "pm_score": 6, "selected": true, "text": "Get-Service -Name *sql*\n" }, { "answer_id": 11266713, "author": "Nisanth.KV", "author_id": 1456981, ...
2008/12/05
[ "https://Stackoverflow.com/questions/344924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/39677/" ]
344,928
<p>I am working on an ASP.NET web application that is required to bring up a popup on a roolover. I am using the "OnMouseOver" event and it works as expected. The problem is that the event is on a "hair trigger"; even a casual passage of the mouse over the control brings up the popup (which then must be manually dism...
[ { "answer_id": 344940, "author": "Community", "author_id": -1, "author_profile": "https://Stackoverflow.com/users/-1", "pm_score": 3, "selected": true, "text": "onmouseover" }, { "answer_id": 345022, "author": "JonStonecash", "author_id": 23862, "author_profile": "htt...
2008/12/05
[ "https://Stackoverflow.com/questions/344928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/23862/" ]
344,934
<p>I'd like one of my table rows to be a button that takes up an entire row of my UITableView. I figured the best way to go about this is to instantiate a UIButton, and give it the same frame size as an instance of UITableViewCell, and add that as a subview to the cell. I'm almost there, but quite a few pixels off to n...
[ { "answer_id": 345062, "author": "Ryan Townshend", "author_id": 24707, "author_profile": "https://Stackoverflow.com/users/24707", "pm_score": 4, "selected": false, "text": "[[[self tableView] cellForRowAtIndexPath:indexPath] setSelected:YES animated:YES];\n[self doStuff];\n[[[self tableV...
2008/12/05
[ "https://Stackoverflow.com/questions/344934", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40882/" ]
344,961
<p>I'm trying to remember how the math is worked out to compute the remainder of an XOR algorithm in Cyclical Redundancy Checks to verify the remainder bits of a network message.</p> <p>I shouldn't have tossed that text book.</p> <p>This is easily done in code, but how is it worked out by hand?</p> <p>I know it look...
[ { "answer_id": 5977379, "author": "Anant Rao", "author_id": 750480, "author_profile": "https://Stackoverflow.com/users/750480", "pm_score": 3, "selected": false, "text": "1010 | 101101000\n 1010\n 0001 this result is 1011 XOR 1010 = 0001\n 1010\n 1010\n ...
2008/12/05
[ "https://Stackoverflow.com/questions/344961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/34183/" ]
344,963
<p>I'm trying to use the freeware <a href="http://www.nontube.com/products/multiple-find-and-replace/" rel="nofollow noreferrer">Multiple Find And Replace 1.00</a> suggested in <a href="https://stackoverflow.com/questions/268045/multi-line-search-and-replace-tool#272325">this question</a>.</p> <p><a href="http://www.n...
[ { "answer_id": 344974, "author": "Cory Foy", "author_id": 4083, "author_profile": "https://Stackoverflow.com/users/4083", "pm_score": 2, "selected": false, "text": "dir /S /B *.php" }, { "answer_id": 344980, "author": "Brett", "author_id": 43778, "author_profile": "ht...
2008/12/05
[ "https://Stackoverflow.com/questions/344963", "https://Stackoverflow.com", "https://Stackoverflow.com/users/83/" ]
344,964
<p>I have a binary field in my database that is hard to describe in a UI using a single "Is XXXX?"-type checkbox. I'd rather use a pair of radio buttons (e.g. "Do it the Foo way" and "Do it the Bar way"), but right now all the other fields on my form are data-bound to a business object. I'd like to data-bind the pair...
[ { "answer_id": 345568, "author": "Guge", "author_id": 37771, "author_profile": "https://Stackoverflow.com/users/37771", "pm_score": 2, "selected": true, "text": "IIF(Foo=true, false, true)" }, { "answer_id": 378662, "author": "Community", "author_id": -1, "author_prof...
2008/12/05
[ "https://Stackoverflow.com/questions/344964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26286/" ]
344,966
<p>I want to override the bad default tabbing scheme in emacs so that it will work like most other editors (eclipse, notepad++). I want to set it so that regardless of mode, tab will insert a tab, and pressing enter will keep me at my current tab depth.</p> <p>I tried this, but it does nothing:</p> <pre><code>(global...
[ { "answer_id": 344970, "author": "J Cooper", "author_id": 38803, "author_profile": "https://Stackoverflow.com/users/38803", "pm_score": 1, "selected": false, "text": "C-j" }, { "answer_id": 345291, "author": "ShreevatsaR", "author_id": 4958, "author_profile": "https:/...
2008/12/05
[ "https://Stackoverflow.com/questions/344966", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40397/" ]
344,969
<p>I have a JQueryDialog with a text field, an OK button and a cancel button.</p> <p>I want to be able to hit the enter key after filling in the text fields and have it do the same action as when I click the OK button.</p>
[ { "answer_id": 345005, "author": "Jason Day", "author_id": 737, "author_profile": "https://Stackoverflow.com/users/737", "pm_score": 6, "selected": true, "text": "getRootPane().setDefaultButton(okButton)" }, { "answer_id": 1308758, "author": "John Yeary", "author_id": 160...
2008/12/05
[ "https://Stackoverflow.com/questions/344969", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32899/" ]
344,973
<p>I would like to have alternate behavior during a print stylesheet on a web page. Something along the lines of:</p> <blockquote> <p>If this page is being printed, don't bother calling SWFObject to summon an .swf into existence. Just leave the HTML that the Flash will replace.</p> </blockquote> <p>I've tri...
[ { "answer_id": 345011, "author": "Joel Coehoorn", "author_id": 3043, "author_profile": "https://Stackoverflow.com/users/3043", "pm_score": 4, "selected": true, "text": "display:none;" }, { "answer_id": 345012, "author": "Victor", "author_id": 42518, "author_profile": ...
2008/12/05
[ "https://Stackoverflow.com/questions/344973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12694/" ]
344,987
<p>In VisualBasic.Net When I activate a picture box and then draw something on it, it draws and then immediately goes blank. Works fine when I re-draw it, but almost always messes up the first time I draw on it. This has happenned with several different programs, and the help file is no help.</p>
[ { "answer_id": 344995, "author": "Andrew Rollings", "author_id": 40410, "author_profile": "https://Stackoverflow.com/users/40410", "pm_score": 1, "selected": false, "text": "DoubleBuffered" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
344,998
<p>Can we access div tags of user control in Master page? I am trying to change the background color for each one of the div tags on some event.</p>
[ { "answer_id": 345193, "author": "Jared", "author_id": 3442, "author_profile": "https://Stackoverflow.com/users/3442", "pm_score": 1, "selected": false, "text": "Control myControl = this.Page.Master.FindControl(\"[Your name here]\");\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/344998", "https://Stackoverflow.com", "https://Stackoverflow.com/users/21918/" ]
345,003
<p>I know that new-ing something in one module and delete-ing it in another can often cause problems in VC++. Problems with different runtimes. Mixing modules with staticly linked runtimes and/or dynamically linked versioning mismatches both can screw stuff up if I recall correctly.</p> <p><strong>However, is it safe ...
[ { "answer_id": 345079, "author": "dalle", "author_id": 19100, "author_profile": "https://Stackoverflow.com/users/19100", "pm_score": 2, "selected": false, "text": "std" }, { "answer_id": 345474, "author": "Tim Lesher", "author_id": 14942, "author_profile": "https://St...
2008/12/05
[ "https://Stackoverflow.com/questions/345003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3655/" ]
345,009
<p>I'm building a demo app in WPF, which is new to me. I'm currently displaying text in a FlowDocument, and need to print it.</p> <p>The code I'm using looks like this:</p> <pre><code> PrintDialog pd = new PrintDialog(); fd.PageHeight = pd.PrintableAreaHeight; fd.PageWidth = pd.PrintableAreaWi...
[ { "answer_id": 853461, "author": "Cheeso", "author_id": 48082, "author_profile": "https://Stackoverflow.com/users/48082", "pm_score": 6, "selected": true, "text": " private void DoThePrint(System.Windows.Documents.FlowDocument document)\n {\n // Clone the source document's c...
2008/12/05
[ "https://Stackoverflow.com/questions/345009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1338/" ]
345,010
<p>Does combining an Enterprise Messaging solution with Web Services result in a real performance gain over simple HTTP requests over sockets?</p> <p>(if implementation details will help, interested in JMS with a SOAP webservice)</p>
[ { "answer_id": 853461, "author": "Cheeso", "author_id": 48082, "author_profile": "https://Stackoverflow.com/users/48082", "pm_score": 6, "selected": true, "text": " private void DoThePrint(System.Windows.Documents.FlowDocument document)\n {\n // Clone the source document's c...
2008/12/05
[ "https://Stackoverflow.com/questions/345010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2362/" ]
345,021
<p>Our organization provides a variety of services to our clients (e.g., web hosting, tech support, custom programming, etc...). There's a page on our website that lists all available services and their corresponding prices. This was static data, but my boss wants it all pulled from a database instead.</p> <p>There ar...
[ { "answer_id": 1155482, "author": "HLGEM", "author_id": 9034, "author_profile": "https://Stackoverflow.com/users/9034", "pm_score": 2, "selected": false, "text": "Price Unit Display\n10.00 item null\n100.00 box null\nnull null \"Call for Pricing\"\n" } ]
2008/12/05
[ "https://Stackoverflow.com/questions/345021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/32998/" ]