qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
141,169 | <p>So I have a weird situation here... I have an System.Web.UI.WebControls.WebParts.EditorPart class. It renders a "Search" button, when you click this button, it's clickHandler method does a DB search, and dynamically creates a LinkButton for each row it returns, sets the CommandName and CommandArgument properties and... | [
{
"answer_id": 201301,
"author": "Adrian Clark",
"author_id": 148,
"author_profile": "https://Stackoverflow.com/users/148",
"pm_score": 2,
"selected": false,
"text": "LoadViewState() LoadViewState() SaveViewState() private string searchQuery = null;\n\nprivate void SearchButton(object se... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19086/"
] |
141,201 | <p>I'd like the canonical way to do this. My Google searches have come up short. I have one ActiveRecord model that should map to a different database than the rest of the application. I would like to store the new configurations in the database.yml file as well.</p>
<p>I understand that establish_connection should... | [
{
"answer_id": 141314,
"author": "Terry G Lorber",
"author_id": 809,
"author_profile": "https://Stackoverflow.com/users/809",
"pm_score": 3,
"selected": false,
"text": "class Foo < ActiveRecord::Base\n establish_connection \"foo_#{ENV['RAILS_ENV']}\"\nend\n"
},
{
"answer_id": ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/809/"
] |
141,203 | <p>I'm trying to grok the purpose of .NET's SecureString. From MSDN:</p>
<blockquote>
<p>An instance of the System.String class is both immutable and, when no longer needed, cannot be programmatically scheduled for garbage collection; that is, the instance is read-only after it is created and it is not possible to pre... | [
{
"answer_id": 141393,
"author": "Chris Wenham",
"author_id": 5548,
"author_profile": "https://Stackoverflow.com/users/5548",
"pm_score": 7,
"selected": false,
"text": "SecureString System.Windows.Controls.PasswordBox PasswordBox::SecurePassword System.Diagnostics.ProcessStartInfo::Passw... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2258/"
] |
141,204 | <p>I use a pattern that looks something like this often. I'm wondering if this is alright or if there is a best practice that I am not applying here.</p>
<p>Specifically I'm wondering; in the case that an exception is thrown is the code that I have in the finally block enough to ensure that the connection is closed a... | [
{
"answer_id": 141215,
"author": "Sklivvz",
"author_id": 7028,
"author_profile": "https://Stackoverflow.com/users/7028",
"pm_score": 7,
"selected": true,
"text": "using (SqlConnection conn = new SqlConnection (...))\n{\n // Whatever happens in here, the connection is \n // disposed... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
141,212 | <p>I'm working on a form that will display links to open different types of reports. This system has different types of users, so the users should only be able to see the links to the types of reports they can access.</p>
<p>Currently, the way I have this set up is that I have an ArrayList of LinkLabels, but the prob... | [
{
"answer_id": 141286,
"author": "Craig Eddy",
"author_id": 5557,
"author_profile": "https://Stackoverflow.com/users/5557",
"pm_score": 0,
"selected": false,
"text": "Report r = m_TheTable[sender] as Report;\nif( r != null ) r.DoSomething();\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141212",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4827/"
] |
141,232 | <p>I'm working on a project with a rather large Oracle database (although my question applies equally well to other databases). We have a web interface which allows users to search on almost any possible combination of fields.</p>
<p>To make these searches go fast, we're adding indexes to the fields and combinations ... | [
{
"answer_id": 142156,
"author": "Mike McAllister",
"author_id": 16247,
"author_profile": "https://Stackoverflow.com/users/16247",
"pm_score": 5,
"selected": false,
"text": "alter index my_index_name monitoring usage;\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1694/"
] |
141,241 | <p>I've seen reference in some C# posted questions to a "using" clause.
Does java have the equivalent?</p>
| [
{
"answer_id": 141267,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": 6,
"selected": true,
"text": "try(InputStream is1 = new FileInputStream(\"/tmp/foo\");\n InputStream is2 = new FileInputStream(\"/tmp/bar\")) {\n... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
141,247 | <p>How have you tweaked the MATLAB environment to better suit your needs? One tweak per answer.</p>
| [
{
"answer_id": 218481,
"author": "Matt",
"author_id": 15368,
"author_profile": "https://Stackoverflow.com/users/15368",
"pm_score": 3,
"selected": false,
"text": "-nodesktop -nojvm"
},
{
"answer_id": 1329626,
"author": "Andrew Janke",
"author_id": 105904,
"author_prof... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6688/"
] |
141,251 | <p>This is really annoying, we've switched our client downloads page to a different site and want to send a link out with our installer. When the link is created and overwrites the existing file, the metadata in windows XP still points to the same place even though the contents of the .url shows the correct address. I... | [
{
"answer_id": 144213,
"author": "DougN",
"author_id": 7442,
"author_profile": "https://Stackoverflow.com/users/7442",
"pm_score": 1,
"selected": false,
"text": "[DEFAULT]\nBASEURL=http://www.xxxx.com/Help\n[InternetShortcut]\nURL=http://www.xxxx.com/Help\nModified=60D0EDADF1CAC5014B\n"
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1765/"
] |
141,262 | <p>I downloaded Hex Workshop, and I was told to read a .dbc file.</p>
<blockquote>
<p>It should contain 28,315 if you read
offset 0x04 and 0x05</p>
</blockquote>
<p>I am unsure how to do this? What does 0x04 mean?</p>
| [
{
"answer_id": 141275,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 1,
"selected": false,
"text": "calc.exe"
},
{
"answer_id": 141287,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "htt... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20256/"
] |
141,280 | <p>What's the best and most efficient way to count keywords in JavaScript? Basically, I'd like to take a string and get the top N words or phrases that occur in the string, mainly for the use of suggesting tags. I'm looking more for conceptual hints or links to real-life examples than actual code, but I certainly would... | [
{
"answer_id": 141323,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 2,
"selected": false,
"text": "wordArray var keywordRegistry = {};\n\nfor(var i = 0; i < wordArray.length; i++) {\n if(keywordRegistry.hasOwnProper... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13281/"
] |
141,284 | <p>What is the difference between using the <code>Runnable</code> and <code>Callable</code> interfaces when designing a concurrent thread in Java, why would you choose one over the other?</p>
| [
{
"answer_id": 2149017,
"author": "amoran",
"author_id": 256478,
"author_profile": "https://Stackoverflow.com/users/256478",
"pm_score": 5,
"selected": false,
"text": "Callable<V> V Runnable Callable<V> Runnable Runnable Runnable Callable Runnable"
},
{
"answer_id": 3952292,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22061/"
] |
141,288 | <p>Is it possible to use the Flex Framework and Components, without using MXML? I know ActionScript pretty decently, and don't feel like messing around with some new XML language just to get some simple UI in there. Can anyone provide an example consisting of an .as file which can be compiled (ideally via FlashDevelop,... | [
{
"answer_id": 141522,
"author": "Borek Bernard",
"author_id": 21728,
"author_profile": "https://Stackoverflow.com/users/21728",
"pm_score": 3,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mx:Application xmlns:mx=\"http://www.adobe.com/2006/mxml\" layout=\"abs... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14569/"
] |
141,291 | <p>I want to be able to list only the directories inside some folder.
This means I don't want filenames listed, nor do I want additional sub-folders.</p>
<p>Let's see if an example helps. In the current directory we have:</p>
<pre><code>>>> os.listdir(os.getcwd())
['cx_Oracle-doc', 'DLLs', 'Doc', 'include', ... | [
{
"answer_id": 141313,
"author": "Mark Roddy",
"author_id": 9940,
"author_profile": "https://Stackoverflow.com/users/9940",
"pm_score": 4,
"selected": false,
"text": "directories=[d for d in os.listdir(os.getcwd()) if os.path.isdir(d)]\n"
},
{
"answer_id": 141317,
"author": "... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708/"
] |
141,302 | <p>Is there a way to check if a file has been opened by ReWrite in Delphi? </p>
<p>Code would go something like this:</p>
<pre><code>AssignFile(textfile, 'somefile.txt');
if not textFile.IsOpen then
Rewrite(textFile);
</code></pre>
| [
{
"answer_id": 141339,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 5,
"selected": true,
"text": "55216 = closed\n55217 = open read\n55218 = open write\n\nfmClosed = $D7B0;\nfmInput = $D7B1;\nfmOutput = $D7B2;\nfmIn... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1075/"
] |
141,315 | <p>Is there a way to check to see if a date/time is valid you would think these would be easy to check:</p>
<pre><code>$date = '0000-00-00';
$time = '00:00:00';
$dateTime = $date . ' ' . $time;
if(strtotime($dateTime)) {
// why is this valid?
}
</code></pre>
<p>what really gets me is this:</p>
<pre><code>echo d... | [
{
"answer_id": 141341,
"author": "ConroyP",
"author_id": 2287,
"author_profile": "https://Stackoverflow.com/users/2287",
"pm_score": 2,
"selected": false,
"text": "strtotime mktime(), localtime(), strtotime() /**\n * Converts strings of the format \"YYYY-MM-DD HH:MM:SS\" into php dates\n... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
141,332 | <p>I'm writing some server code that talks to a client process via STDIN. I'm trying to write a snippet of perl code that asynchronously receives responses from the client's STDOUT. The blocking version of the code might look like this:</p>
<pre><code>sub _read_from_client
{
my ($file_handle) = @_;
while (my $li... | [
{
"answer_id": 141770,
"author": "xdg",
"author_id": 11800,
"author_profile": "https://Stackoverflow.com/users/11800",
"pm_score": 4,
"selected": true,
"text": "ioctl($socket, 0x8004667e, 1);\n"
},
{
"answer_id": 143138,
"author": "Corion",
"author_id": 21731,
"author... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7045/"
] |
141,337 | <p>Designing a new system from scratch. I'll be using the STL to store lists and maps of certain long-live objects.</p>
<p>Question: Should I ensure my objects have copy constructors and store copies of objects within my STL containers, or is it generally better to manage the life & scope myself and just store t... | [
{
"answer_id": 141366,
"author": "Branan",
"author_id": 13894,
"author_profile": "https://Stackoverflow.com/users/13894",
"pm_score": 4,
"selected": false,
"text": "boost::shared_ptr std::shared_ptr"
},
{
"answer_id": 141490,
"author": "Nick Haddad",
"author_id": 2813,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13022/"
] |
141,344 | <p>How does one check if a directory is already present in the PATH environment variable? Here's a start. All I've managed to do with the code below, though, is echo the first directory in %PATH%. Since this is a FOR loop you'd think it would enumerate all the directories in %PATH%, but it only gets the first one.</p>
... | [
{
"answer_id": 141385,
"author": "Randy",
"author_id": 9361,
"author_profile": "https://Stackoverflow.com/users/9361",
"pm_score": 5,
"selected": false,
"text": "echo ;%PATH%; | find /C /I \";<string>;\"\n"
},
{
"answer_id": 142381,
"author": "Adam Mitz",
"author_id": 257... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16605/"
] |
141,345 | <p>I have a xsl file that is grabbing variables from xml and they seem to not be able to see each other. I know it is a scope issue, I just do not know what I am doing wrong.</p>
<pre><code><xsl:template match="one">
<xsl:variable name="varOne" select="@count" />
</xsl:template>
<xsl:template ma... | [
{
"answer_id": 141403,
"author": "Swati",
"author_id": 12682,
"author_profile": "https://Stackoverflow.com/users/12682",
"pm_score": 3,
"selected": true,
"text": "<!-- You may want to use absolute path -->\n<xsl:variable name=\"varOne\" select=\"one/@count\" />\n\n<xsl:template match=\"o... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16354/"
] |
141,348 | <p>I am working on a form widget for users to enter a time of day into a text input (for a calendar application). Using JavaScript (we are using jQuery FWIW), I want to find the best way to parse the text that the user enters into a JavaScript <code>Date()</code> object so I can easily perform comparisons and other thi... | [
{
"answer_id": 141504,
"author": "John Resig",
"author_id": 6524,
"author_profile": "https://Stackoverflow.com/users/6524",
"pm_score": 7,
"selected": true,
"text": "function parseTime( t ) {\n var d = new Date();\n var time = t.match( /(\\d+)(?::(\\d\\d))?\\s*(p?)/ );\n d.setHours... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18986/"
] |
141,351 | <p>My production system occasionally exhibits a memory leak I have not been able to reproduce in a development environment. I've used a <a href="https://stackoverflow.com/questions/110259/python-memory-profiler">Python memory profiler</a> (specifically, Heapy) with some success in the development environment, but it c... | [
{
"answer_id": 142138,
"author": "joeld",
"author_id": 19104,
"author_profile": "https://Stackoverflow.com/users/19104",
"pm_score": 2,
"selected": false,
"text": "x = SomeObject()\n... later ...\noldRefCount = sys.getrefcount( x )\nsuspiciousFunction( x )\nif (oldRefCount != sys.getrefc... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9585/"
] |
141,360 | <p>I came across this topic today while investigating something very strange. Doing certain things in our Flex app can cause the number of frames rendered to rocket, from 12fps to ~30fps: loaded animations start playing at high speed and the GUI starts to lock up.</p>
<p>Since everything I've read on Flex/Flash hammer... | [
{
"answer_id": 143204,
"author": "fenomas",
"author_id": 10651,
"author_profile": "https://Stackoverflow.com/users/10651",
"pm_score": 1,
"selected": false,
"text": "updateAfterEvent() ENTER_FRAME invalidate()"
},
{
"answer_id": 143830,
"author": "fenomas",
"author_id": 1... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13220/"
] |
141,368 | <p>Given two datetimes. What is the best way to calculate the number of working hours between them. Considering the working hours are Mon 8 - 5.30, and Tue-Fri 8.30 - 5.30, and that potentially any day could be a public holiday.</p>
<p>This is my effort, seem hideously inefficient but in terms of the number of iterati... | [
{
"answer_id": 141392,
"author": "Airsource Ltd",
"author_id": 18017,
"author_profile": "https://Stackoverflow.com/users/18017",
"pm_score": 2,
"selected": false,
"text": "// Normalise start and end \nwhile start.day is weekend or holiday, start.day++, start.time = 0.00am\n if star... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/230/"
] |
141,370 | <p>What is the best way to specify a property name when using INotifyPropertyChanged? </p>
<p>Most examples hardcode the property name as an argument on the PropertyChanged Event. I was thinking about using MethodBase.GetCurrentMethod.Name.Substring(4) but am a little uneasy about the reflection overhead.</p>
| [
{
"answer_id": 142403,
"author": "Ian Oakes",
"author_id": 21606,
"author_profile": "https://Stackoverflow.com/users/21606",
"pm_score": 1,
"selected": false,
"text": "protected void OnPropertyChanged()\n{\n OnPropertyChanged(PropertyName);\n}\n\nprotected string PropertyName\n{\n ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22813/"
] |
141,372 | <p>Emacs has a useful <code>transpose-words</code> command which lets one exchange the word before the cursor with the word after the cursor, preserving punctuation.</p>
<p>For example, ‘<code>stack |overflow</code>’ + M-t = ‘<code>overflow stack|</code>’ (‘<code>|</code>’ is the cursor position).</p>
<p><code><a&... | [
{
"answer_id": 141485,
"author": "Mark Biek",
"author_id": 305,
"author_profile": "https://Stackoverflow.com/users/305",
"pm_score": 3,
"selected": false,
"text": "dw wP\n 2dw bhP\n map L dwwP\nmap M 2dwbhP \n"
},
{
"answer_id": 141824,
"author": "camflan",
"author_id": 2... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21055/"
] |
141,388 | <p>Our resident Flex expert is out for the day and I thought this would be a good chance to test this site out. I have a dropdown with a dataProvider that is working fine:</p>
<pre><code><ep:ComboBox id="dead_reason" selectedValue="{_data.dead_reason}"
dataProvider="{_data.staticData.dead_reason}"
labelFiel... | [
{
"answer_id": 141408,
"author": "bill d",
"author_id": 1798,
"author_profile": "https://Stackoverflow.com/users/1798",
"pm_score": 2,
"selected": false,
"text": "<mx:Repeater dataProvider=\"{_data.staticData.dead_reason}\">\n <mx:RadioButton groupName=\"reasons\" ...>\n</mx:Repeater>\... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141388",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
141,399 | <p>I'm pretty new to both C++ and Block Cipher encryption, and I am currently in the process of writing a decryption function for AES (16 byte seed / 16 byte blocks). All is going well, but my total data size is not always a multiple of my block size. I'm wondering what the best way to handle leftover data at the end o... | [
{
"answer_id": 141410,
"author": "Purfideas",
"author_id": 4615,
"author_profile": "https://Stackoverflow.com/users/4615",
"pm_score": 0,
"selected": false,
"text": " 01\n 02 02\n 03 03 03\n 04 04 04 04\n 05 05 05 05 05\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
141,411 | <p>I installed Tomcat 6.0.18 on a windows server 2003 box and it will not start as a service.
I'm running it with jdk 1.6.0_07.</p>
<p>It runs when I start it with tomcat6.exe.</p>
<p>I got a vague error in the System Event Log on Windows.</p>
<p>The Apache Tomcat 6 service terminated with service-specific error 0 (... | [
{
"answer_id": 10008471,
"author": "lrkwz",
"author_id": 509565,
"author_profile": "https://Stackoverflow.com/users/509565",
"pm_score": 2,
"selected": false,
"text": "service install tomcat-6.0.35 \n tomcat6w //ES/tomcat-6.0.35\n C:\\Program Files(x86)\\Java\\jre\\bin\\client\\jvm.dll"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
141,422 | <p>Using assorted matrix math, I've solved a system of equations resulting in coefficients for a polynomial of degree 'n'</p>
<pre><code>Ax^(n-1) + Bx^(n-2) + ... + Z
</code></pre>
<p>I then evaulate the polynomial over a given x range, essentially I'm rendering the polynomial curve. Now here's the catch. I've done t... | [
{
"answer_id": 141493,
"author": "Laplie Anderson",
"author_id": 14204,
"author_profile": "https://Stackoverflow.com/users/14204",
"pm_score": 0,
"selected": false,
"text": "y = Ax^(n-1) + Bx^(n-2) + ... + Z\n 5x = x' and 10y = y'\n y' = 2Ax'^(n-1) + 2Bx'^(n-2) + ... + 10Z\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/287/"
] |
141,432 | <p>I have created a brand new project in XCode and have the following in my AppDelegate.py file:</p>
<pre><code>from Foundation import *
from AppKit import *
class MyApplicationAppDelegate(NSObject):
def applicationDidFinishLaunching_(self, sender):
NSLog("Application did finish launching.")
stat... | [
{
"answer_id": 142162,
"author": "Chris Lundie",
"author_id": 20685,
"author_profile": "https://Stackoverflow.com/users/20685",
"pm_score": 4,
"selected": true,
"text": "MyApplicationAppDelegate statusItem.retain()"
},
{
"answer_id": 4379633,
"author": "brandon",
"author_... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2183/"
] |
141,441 | <p>In JavaScript is it wrong to use a try-catch block and ignore the error rather than test many attributes in the block for null?</p>
<pre><code>try{
if(myInfo.person.name == newInfo.person.name
&& myInfo.person.address.street == newInfo.person.address.street
&& myInfo.person.address.z... | [
{
"answer_id": 141481,
"author": "moonshadow",
"author_id": 11834,
"author_profile": "https://Stackoverflow.com/users/11834",
"pm_score": 2,
"selected": false,
"text": "if( myInfo && newInfo \n && myInfo.person && newInfo.person\n && myInfo.person.address && newInfo.person.ad... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22816/"
] |
141,449 | <p>How do I create a file-like object (same duck type as File) with the contents of a string?</p>
| [
{
"answer_id": 141451,
"author": "Daryl Spitzer",
"author_id": 4766,
"author_profile": "https://Stackoverflow.com/users/4766",
"pm_score": 8,
"selected": true,
"text": ">>> from cStringIO import StringIO\n>>> f = StringIO('foo')\n>>> f.read()\n'foo'\n io f = io.StringIO('foo')\n"
},
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4766/"
] |
141,450 | <p>I have a select element in a form, and I want to display something only if the dropdown is not visible. Things I have tried:</p>
<ul>
<li>Watching for click events, where odd clicks mean the dropdown is visible and even clicks mean the dropdown isn't. Misses other ways the dropdown could disappear (pressing escap... | [
{
"answer_id": 142285,
"author": "Nick Sergeant",
"author_id": 22468,
"author_profile": "https://Stackoverflow.com/users/22468",
"pm_score": -1,
"selected": false,
"text": "$('something').css('display')\n"
},
{
"answer_id": 142490,
"author": "Community",
"author_id": -1,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10290/"
] |
141,452 | <p>I've got a nice little class built that acts as a cache. Each item has an expiration TimeSpan or DateTime. Each time an attempt to access an item in the cache is made, the item's expiration is checked, and if it's expired, the item is removed from the cache and nothing is returned.</p>
<p>That's great for objects t... | [
{
"answer_id": 141483,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 1,
"selected": false,
"text": "private DateTime nextFlush;\npublic object getItem(object key)\n{\n DateTime now = DateTime.Now\n if (now > nextFlush)\n {\... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11574/"
] |
141,467 | <p>I could probably write this myself, but the specific way I'm trying to accomplish it is throwing me off. I'm trying to write a generic extension method similar to the others introduced in .NET 3.5 that will take a nested IEnumerable of IEnumerables (and so on) and flatten it into one IEnumerable. Anyone have any i... | [
{
"answer_id": 141495,
"author": "Torbjörn Gyllebring",
"author_id": 21182,
"author_profile": "https://Stackoverflow.com/users/21182",
"pm_score": 0,
"selected": false,
"text": "static class EnumerableExtensions\n{\n public static IEnumerable<T> Flatten<T>(this IEnumerable<IEnumerable... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18049/"
] |
141,487 | <pre><code>class Foo(models.Model):
title = models.CharField(max_length=20)
slug = models.SlugField()
</code></pre>
<p>Is there a built-in way to get the slug field to autopopulate based on the title? Perhaps in the Admin and outside of the Admin.</p>
| [
{
"answer_id": 141505,
"author": "Nick Sergeant",
"author_id": 22468,
"author_profile": "https://Stackoverflow.com/users/22468",
"pm_score": 2,
"selected": false,
"text": "slug = models.SlugField(prepopulate_from=('title',))\n"
},
{
"answer_id": 141554,
"author": "camflan",
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22306/"
] |
141,498 | <p>Java has some very good open source static analysis tools such as <a href="http://findbugs.sf.net/" rel="nofollow noreferrer">FindBugs</a>, <a href="http://checkstyle.sf.net/" rel="nofollow noreferrer">Checkstyle</a> and <a href="http://pmd.sf.net/" rel="nofollow noreferrer">PMD</a>. Those tools are easy to use, ve... | [
{
"answer_id": 141564,
"author": "Onorio Catenacci",
"author_id": 2820,
"author_profile": "https://Stackoverflow.com/users/2820",
"pm_score": 2,
"selected": false,
"text": "brew install splint\n"
},
{
"answer_id": 143202,
"author": "user15071",
"author_id": 15071,
"au... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22807/"
] |
141,499 | <p>I'm not sure if this even exists or not, so I figured I would tap the wisdom of others.. </p>
<p>I was wondering if there are any Java libraries out there that can be used to validate a SQL query's syntax. I know that there are many deviations from common SQL spec, so it would probably only work against something l... | [
{
"answer_id": 141713,
"author": "Constantin",
"author_id": 20310,
"author_profile": "https://Stackoverflow.com/users/20310",
"pm_score": 1,
"selected": false,
"text": "org.apache.derby.impl.sql"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13812/"
] |
141,513 | <p>I personally use <a href="http://php.net/var_dump" rel="nofollow noreferrer"><code>var_dump</code></a>, but lots of people like <a href="http://php.net/print_r" rel="nofollow noreferrer"><code>print_r</code></a>. </p>
<p>What does everyone use? Pros and Cons?</p>
<p>Does someone have a special home brew function o... | [
{
"answer_id": 141516,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 3,
"selected": false,
"text": "print_r() var_dump $obj = (object) array(1, 2, 3);\n\n// output of var_dump:\nobject(stdClass)#1 (3) {\n [0]=>\n int(1)\n [1... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
141,519 | <p>We have a pair of applications. One is written in C# and uses something like:</p>
<pre><code> string s = "alpha\r\nbeta\r\ngamma\r\ndelta";
// Actually there's wrapper code here to make sure this works.
System.Windows.Forms.Clipboard.SetDataObject(s, true);
</code></pre>
<p>To put a list of items onto the clipb... | [
{
"answer_id": 141516,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 3,
"selected": false,
"text": "print_r() var_dump $obj = (object) array(1, 2, 3);\n\n// output of var_dump:\nobject(stdClass)#1 (3) {\n [0]=>\n int(1)\n [1... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8173/"
] |
141,525 | <p>I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators)...</p>
<p>At a core level, what does bit-shifting (<code><<</code>, <code>>></code>, <code>>>></code>) do, what problems can it help solve, and what gotchas... | [
{
"answer_id": 141576,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 8,
"selected": false,
"text": "0110110\n 1101100\n memoryOffset = (row * 320) + column\n (row * 320) = (row * 256) + (row * 64)\n (row * 320) = (row << 8) ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14048/"
] |
141,545 | <p>Let's say I have a class that has a member called data which is a list. </p>
<p>I want to be able to initialize the class with, for example, a filename (which contains data to initialize the list) or with an actual list.</p>
<p>What's your technique for doing this?</p>
<p>Do you just check the type by looking at... | [
{
"answer_id": 141565,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": false,
"text": "def __init__ (self, filename):\n if isinstance (filename, basestring):\n # filename is a string\n else:\n... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1179/"
] |
141,560 | <p>I have a loop that looks something like this:</p>
<pre><code>for (int i = 0; i < max; i++) {
String myString = ...;
float myNum = Float.parseFloat(myString);
myFloats[i] = myNum;
}
</code></pre>
<p>This is the main content of a method whose sole purpose is to return the array of floats. I want this ... | [
{
"answer_id": 141589,
"author": "Ray Hayes",
"author_id": 7093,
"author_profile": "https://Stackoverflow.com/users/7093",
"pm_score": 6,
"selected": false,
"text": "class Parsing\n{\n public static Float MyParseFloat(string inputValue)\n {\n try\n {\n retu... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13531/"
] |
141,562 | <p>I can select all the distinct values in a column in the following ways:</p>
<ul>
<li><code>SELECT DISTINCT column_name FROM table_name;</code></li>
<li><code>SELECT column_name FROM table_name GROUP BY column_name;</code></li>
</ul>
<p>But how do I get the row count from that query? Is a subquery required?</p>
| [
{
"answer_id": 141573,
"author": "Wayne",
"author_id": 8236,
"author_profile": "https://Stackoverflow.com/users/8236",
"pm_score": 4,
"selected": false,
"text": "select Count(distinct columnName) as columnNameCount from tableName \n"
},
{
"answer_id": 141574,
"author": "Noah ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3757/"
] |
141,598 | <p>I'm wondering what the best practices are for storing a relational data structure in XML. Particulary, I am wondering about best practices for enforcing node order. For example, say I have three objects: <code>School</code>, <code>Course</code>, and <code>Student</code>, which are defined as follows:</p>
<pre><code... | [
{
"answer_id": 141665,
"author": "tpower",
"author_id": 18107,
"author_profile": "https://Stackoverflow.com/users/18107",
"pm_score": 0,
"selected": false,
"text": "Courses Students"
},
{
"answer_id": 141677,
"author": "Pete Karl II",
"author_id": 22491,
"author_profi... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/317/"
] |
141,599 | <p>What I would like is be able to generate a simple report that is the output of svn log for a certain date range. Specifically, all the changes since 'yesterday'. </p>
<p>Is there an easy way to accomplish this in Subversion besides grep-ing the svn log output for the timestamp?</p>
<p>Example:</p>
<pre><code>sv... | [
{
"answer_id": 141619,
"author": "Zsolt Botykai",
"author_id": 11621,
"author_profile": "https://Stackoverflow.com/users/11621",
"pm_score": 7,
"selected": true,
"text": "svn log <url> -r\n {2008-09-19}:{2008-09-26}"
},
{
"answer_id": 141631,
"author": "Rob",
"author_id"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1341/"
] |
141,606 | <p>Say that I write an article or document about a certain topic, but the content is meant for readers with certain prior knowledge about the topic. To help people who don't have the "required" background information, I would like to add a note to the top of the page with an explanation and possibly a link to some refe... | [
{
"answer_id": 141616,
"author": "Paul Mrozowski",
"author_id": 3656,
"author_profile": "https://Stackoverflow.com/users/3656",
"pm_score": 3,
"selected": true,
"text": "<html>\n<body>\n <div id=\"dynContent\">\n </div>\n Rest of the content here.\n</body>\n<script language='javascri... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1709/"
] |
141,611 | <p>I have an Enum like this</p>
<pre><code>package com.example;
public enum CoverageEnum {
COUNTRY,
REGIONAL,
COUNTY
}
</code></pre>
<p>I would like to iterate over these constants in JSP without using scriptlet code. I know I can do it with scriptlet code like this:</p>
<pre><code><c:forEach var="t... | [
{
"answer_id": 141658,
"author": "Garth Gilmour",
"author_id": 2635682,
"author_profile": "https://Stackoverflow.com/users/2635682",
"pm_score": 3,
"selected": false,
"text": "<c:forEach var=\"type\" items=\"${myprefix:getValues()}\">\n public static <T extends Enum<T>> Enum<T>[] getValu... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
141,612 | <p>I'm working on database designs for a project management system as personal project and I've hit a snag.</p>
<p>I want to implement a ticket system and I want the tickets to look like the <a href="http://trac.edgewall.org/ticket/6436" rel="noreferrer">tickets in Trac</a>. What structure would I use to replicate thi... | [
{
"answer_id": 141634,
"author": "dacracot",
"author_id": 13930,
"author_profile": "https://Stackoverflow.com/users/13930",
"pm_score": 2,
"selected": false,
"text": " CREATE OR REPLACE TRIGGER history$yourTable\n BEFORE UPDATE ON yourTable\n FOR EACH ROW\n BEGIN\n... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16204/"
] |
141,620 | <p>i am working on a simple web app which has a user model and role model (among others), and an admin section that contains many controllers. i would like to use a before_filter to check that the user of the user in the session has a 'can_access_admin' flag.</p>
<p>i have this code in the application.rb:</p>
<p>def ... | [
{
"answer_id": 141721,
"author": "MatthewFord",
"author_id": 21596,
"author_profile": "https://Stackoverflow.com/users/21596",
"pm_score": 4,
"selected": true,
"text": "@user = User.find(session[:user])\n"
},
{
"answer_id": 142365,
"author": "Ian Terrell",
"author_id": 92... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18811/"
] |
141,626 | <p>I've got a windows form in Visual Studio 2008 using .NET 3.5 which has a WebBrowser control on it. I need to analyse the form's PostData in the Navigating event handler before the request is sent. Is there a way to get to it?</p>
<p>The old win32 browser control had a Before_Navigate event which had PostData as o... | [
{
"answer_id": 144354,
"author": "mdb",
"author_id": 8562,
"author_profile": "https://Stackoverflow.com/users/8562",
"pm_score": 4,
"selected": true,
"text": "Dim ie = DirectCast(WebBrowser1.ActiveXInstance, SHDocVw.InternetExplorer)\nAddHandler ie.BeforeNavigate2, AddressOf WebBrowser_B... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
141,630 | <p>If I drag and drop a selection of a webpage from Firefox to HTML-Kit, HTML-Kit asks me whether I want to paste as text or HTML. If I select "text," I get this:</p>
<pre><code>Version:0.9
StartHTML:00000147
EndHTML:00000516
StartFragment:00000181
EndFragment:00000480
SourceURL:http://en.wikipedia.org/wiki/Herodotus
... | [
{
"answer_id": 57678502,
"author": "Markus",
"author_id": 1332129,
"author_profile": "https://Stackoverflow.com/users/1332129",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Runtime.InteropServices;\nusing System.Text;\n\n//---------------------------------------... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4965/"
] |
141,641 | <p>I've been working with Perl long enough that many of its idiosyncracies have become second nature to me. When new programmers join our group, they frequently have little to no experience with Perl, and it's usually my task to train them (to the extent necessary). I'd like to know what to focus on when training a p... | [
{
"answer_id": 141676,
"author": "Ben",
"author_id": 16424,
"author_profile": "https://Stackoverflow.com/users/16424",
"pm_score": 2,
"selected": false,
"text": "next unless \"$_\" !~ /^#/;\n"
},
{
"answer_id": 141698,
"author": "Jon Ericson",
"author_id": 1438,
"auth... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21632/"
] |
141,642 | <p>Where X is any programming language (C#, Javascript, Lisp, Perl, Ruby, Scheme, etc) which supports some flavour of closures. </p>
<p>Some limitations are mentioned in the <a href="http://ivan.truemesh.com/archives/000411.html" rel="noreferrer">Closures in Python</a> (compared to Ruby's closures), but the article i... | [
{
"answer_id": 141670,
"author": "John Millikin",
"author_id": 3560,
"author_profile": "https://Stackoverflow.com/users/3560",
"pm_score": 3,
"selected": false,
"text": "def outer ():\n x = 1\n def inner ():\n print x\n x = 2\n return inner\nouter () ()\n"
},
{... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4279/"
] |
141,650 | <p>I've seen <a href="https://stackoverflow.com/questions/129877/how-do-i-write-a-generic-memoize-function">the other post about this</a>, but is there a clean way of doing this in Haskell?</p>
<p>As a 2nd part, can it also be done without making the function monadic?</p>
| [
{
"answer_id": 142269,
"author": "mattiast",
"author_id": 8272,
"author_profile": "https://Stackoverflow.com/users/8272",
"pm_score": 1,
"selected": false,
"text": "memo f = let values = map f [0..]\n in \\n -> values !! n\n"
},
{
"answer_id": 142280,
"author": "Jonathan ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12887/"
] |
141,682 | <p>I'm trying to test if a given default constraint exists. I don't want to use the sysobjects table, but the more standard INFORMATION_SCHEMA.</p>
<p>I've used this to check for tables and primary key constraints before, but I don't see default constraints anywhere.</p>
<p>Are they not there? (I'm using MS SQL Serve... | [
{
"answer_id": 142229,
"author": "Milen A. Radev",
"author_id": 15785,
"author_profile": "https://Stackoverflow.com/users/15785",
"pm_score": 0,
"selected": false,
"text": "\"ALTER TABLE xxx ALTER COLUMN yyy SET DEFAULT...\""
},
{
"answer_id": 142625,
"author": "devio",
"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9052/"
] |
141,693 | <p>Two main ways to deploy a J2EE/Java Web app (in a very simplistic sense):</p>
<h2>Deploy assembled artifacts to production box</h2>
<p>Here, we create the <code>.war</code> (or whatever) elsewhere, configure it for production (possibly creating numerous artifacts for numerous boxes) and place the resulting artifac... | [
{
"answer_id": 176402,
"author": "Mike Pone",
"author_id": 16404,
"author_profile": "https://Stackoverflow.com/users/16404",
"pm_score": 0,
"selected": false,
"text": "<replace file=\"${BUILDS.ROOT}/DefaultWebApp/WEB-INF/classes/log4j.xml\" token=\"@@@\" value=\"${LOG4J.WEBSPHERE.LOGS}\"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3029/"
] |
141,701 | <p>How do I tar a list of files and folders (all in the same directory) with the exclusion of a single directory (which contains a huge amount of data)</p>
| [
{
"answer_id": 141722,
"author": "Zsolt Botykai",
"author_id": 11621,
"author_profile": "https://Stackoverflow.com/users/11621",
"pm_score": 3,
"selected": false,
"text": "tar --exclude=PATTERN xvzf nameof.tar.gz ./*"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22837/"
] |
141,707 | <p>I have a <a href="http://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux" rel="noreferrer">RHEL</a> box that I need to put under a moderate and variable amount of CPU load (50%-75%).</p>
<p>What is the best way to go about this? Is there a program that can do this that I am not aware of? I am happy to write some C c... | [
{
"answer_id": 141743,
"author": "ya8282",
"author_id": 22811,
"author_profile": "https://Stackoverflow.com/users/22811",
"pm_score": 0,
"selected": false,
"text": "renice #!/bin/bash\nwhile true ; do\ntrue\ndone\n"
},
{
"answer_id": 19227582,
"author": "mat48",
"author_i... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141707",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/757/"
] |
141,718 | <p>I have a multi-user ASP.NET app running against SQL Server and want to have StoredProcA create a #temptable temp table - not a table variable - to insert some data, then branch to StoredProcB, StoredProcC, and StoredProcD to manipulate the data in #temptable per business rules. </p>
<p>The web app uses connection p... | [
{
"answer_id": 141754,
"author": "Curt Hagenlocher",
"author_id": 533,
"author_profile": "https://Stackoverflow.com/users/533",
"pm_score": 2,
"selected": false,
"text": "#temptable"
},
{
"answer_id": 141821,
"author": "Mark Brackett",
"author_id": 2199,
"author_profi... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12260/"
] |
141,720 | <p>How do you compare two instances of structs for equality in standard C?</p>
| [
{
"answer_id": 141791,
"author": "Sufian",
"author_id": 9241,
"author_profile": "https://Stackoverflow.com/users/9241",
"pm_score": 7,
"selected": false,
"text": "memcmp(&a, &b, sizeof(struct foo)) calloc memset memcmp"
},
{
"answer_id": 141800,
"author": "Community",
"au... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8683/"
] |
141,734 | <p>If I do not specify the following in my web.xml file:</p>
<pre><code><session-config>
<session-timeout>10</session-timeout>
</session-config>
</code></pre>
<p>What will be my default session timeout? (I am running Tomcat 6.0)</p>
| [
{
"answer_id": 142372,
"author": "Kevin Hakanson",
"author_id": 22514,
"author_profile": "https://Stackoverflow.com/users/22514",
"pm_score": 3,
"selected": false,
"text": "HttpSession"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/318/"
] |
141,775 | <p>I inherited an application where display:none was used to control conditional display of input elements based the values of other input elements.</p>
<p>The way this was handled is by running some pretty ugly code to evaluate field values and reset the display property in the during page load. Every time.</p>
<p>I... | [
{
"answer_id": 15564963,
"author": "hfarazm",
"author_id": 1786755,
"author_profile": "https://Stackoverflow.com/users/1786755",
"pm_score": 0,
"selected": false,
"text": "opacity:0;\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20132/"
] |
141,779 | <p>The problem/comic in question: <a href="http://xkcd.com/287/" rel="nofollow noreferrer">http://xkcd.com/287/</a></p>
<p><img src="https://imgs.xkcd.com/comics/np_complete.png" alt="General solutions get you a 50% tip"></p>
<p>I'm not sure this is the best way to do it, but here's what I've come up with so far. I'm... | [
{
"answer_id": 141909,
"author": "Adam Tuttle",
"author_id": 751,
"author_profile": "https://Stackoverflow.com/users/751",
"pm_score": 0,
"selected": false,
"text": "<cffunction name=\"testCombo\" returntype=\"numeric\">\n <cfargument name=\"currentCombo\" type=\"string\" required=\"t... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/751/"
] |
141,780 | <p>Okay, I am sure this is simple but it is driving me nuts. I recently went to work on a program where I have had to step back in time a bit and use Redhat 9. When I'm typing on the command line from a standard xterm running KornShell (ksh), and I reach the end of the line the screen slides to the right (cutting off t... | [
{
"answer_id": 143070,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 0,
"selected": false,
"text": "'\\''"
},
{
"answer_id": 152867,
"author": "tzot",
"author_id": 6899,
"author_profile": "http... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22810/"
] |
141,802 | <p>I have a Python application in a strange state. I don't want to do live debugging of the process. Can I dump it to a file and examine its state later? I know I've restored corefiles of C programs in gdb later, but I don't know how to examine a Python application in a useful way from gdb.</p>
<p>(This is a variat... | [
{
"answer_id": 12690278,
"author": "HoverHell",
"author_id": 62821,
"author_profile": "https://Stackoverflow.com/users/62821",
"pm_score": 1,
"selected": false,
"text": "dir() getattr()"
},
{
"answer_id": 73086039,
"author": "Eduardo",
"author_id": 709975,
"author_pro... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9585/"
] |
141,808 | <p>I have a micro-mini-search engine that highlights the search terms in my rails app. The search ignores accents and the highlight is case insensitive. Almost perfect.
But, for instance if I have a record with the text "pão de queijo" and searches for "pao de queijo" the record <strong>is</strong> returned but the iex... | [
{
"answer_id": 1922265,
"author": "johno",
"author_id": 233852,
"author_profile": "https://Stackoverflow.com/users/233852",
"pm_score": 3,
"selected": true,
"text": " # Highlights one or more +phrases+ everywhere in +text+ by inserting it into\n # a <tt>:highlighter</tt> string. The hi... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19224/"
] |
141,810 | <p>I have a corrupt database. If I open it in MS Access, MS Access offers to repair it, and it succeeds.</p>
<p>How can I do that with code? On a machine where MS Access is not installed.</p>
<p>I know from trying it that JRO.JetEngine.CompactDatabase does NOT work.</p>
<p>In other words, I want to do what Access... | [
{
"answer_id": 141857,
"author": "micahwittman",
"author_id": 11181,
"author_profile": "https://Stackoverflow.com/users/11181",
"pm_score": 1,
"selected": false,
"text": "/compact\n"
},
{
"answer_id": 141882,
"author": "BIBD",
"author_id": 685,
"author_profile": "http... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
141,820 | <p>I know a Haskell module name, but I can't figure out in what package it is defined. This is bad because I can't compile without a package exposing this module.</p>
<p>Specificaly it is Text.Regex that I can't locate, but I would like to know how to solve that problem in general.</p>
| [
{
"answer_id": 5970428,
"author": "hammar",
"author_id": 98117,
"author_profile": "https://Stackoverflow.com/users/98117",
"pm_score": 2,
"selected": false,
"text": "cabal build Main.hs:1:8:\n Could not find module `Text.Regex':\n It is a member of the hidden package `regex-compa... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5978/"
] |
141,828 | <p>I just did a <strong>delete from table</strong></p>
<p>How do I roll back or undelete the rows??</p>
| [
{
"answer_id": 141840,
"author": "Wes P",
"author_id": 13611,
"author_profile": "https://Stackoverflow.com/users/13611",
"pm_score": 4,
"selected": true,
"text": "begin transaction commit rollback"
},
{
"answer_id": 141849,
"author": "Oli",
"author_id": 15296,
"author... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3522/"
] |
141,855 | <p><strong>Motivation</strong></p>
<p>I'd like to find a way to take an arbitrary color and lighten it a few shades, so that I can programatically create a nice gradient from the one color to a lighter version. The gradient will be used as a background in a UI.</p>
<p><strong>Possibility 1</strong></p>
<p>Obviously ... | [
{
"answer_id": 141867,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 5,
"selected": false,
"text": "public static Color Lighten(Color inColor, double inAmount)\n{\n return Color.FromArgb(\n inColor.A,\n (int) Math.Min(25... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9960/"
] |
141,864 | <p>I need help understanding some C++ operator overload statements. The class is declared like this: </p>
<pre><code>template <class key_t, class ipdc_t>
class ipdc_map_template_t : public ipdc_lockable_t
{
...
typedef map<key_t,
ipdc_t*,
less<key_t>> map_t;
...
<... | [
{
"answer_id": 141893,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 2,
"selected": false,
"text": " typedef ipdc_map_template_t<int,std::string> MyMap;\n MyMap mymap;\n\n for(MyMap::iterator iter = mymap.begin();... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19719/"
] |
141,875 | <p>What is the simplest (shortest, fewest rules, and no warnings) way to parse both valid dates and numbers in the same grammar? My problem is that a lexer rule to match a valid month (1-12) will match any occurrence of 1-12. So if I just want to match a number, I need a parse rule like:</p>
<pre><code>number: (MONTH|... | [
{
"answer_id": 142009,
"author": "Douglas Mayle",
"author_id": 8458,
"author_profile": "https://Stackoverflow.com/users/8458",
"pm_score": 4,
"selected": true,
"text": "INT: '0'..'9'+;\n DATENUM: '0' '1'..'9';\nINT: '0' | SIGN? '1'..'9' '0'..'9'*;\n date: INT '/' INT ( '/' INT )?\n date:... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12034/"
] |
141,876 | <p>Platform: Windows XP
Development Platform: VB6</p>
<p>When trying to set an application title via the Project Properties dialog on the Make tab, it seems to silently cut off the title at a set number of characters. Also tried this via the App.Title property and it seems to suffer from the same problem. I wouldn't... | [
{
"answer_id": 142214,
"author": "Mike Spross",
"author_id": 17862,
"author_profile": "https://Stackoverflow.com/users/17862",
"pm_score": 2,
"selected": false,
"text": "Private Sub Form_Load()\n App.Title = String(41, \"X\")\n MsgBox Len(App.Title)\nEnd Sub\n Dim nTitleBarTextWidt... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2820/"
] |
141,878 | <p>The following snippet is supposed to take the value of PROJECT (defined in the Makefile)
and create an include file name. For example, if PROJECT=classifier, then it should at the end generate classifier_ir.h for PROJECTINCSTR</p>
<p>I find that this code works as long as I am not trying to use an underscore in the... | [
{
"answer_id": 141930,
"author": "Torbjörn Gyllebring",
"author_id": 21182,
"author_profile": "https://Stackoverflow.com/users/21182",
"pm_score": 4,
"selected": true,
"text": "#define QMAKESTR(x) #x\n#define MAKESTR(x) QMAKESTR(x)\n#define SMASH(x,y) x##y\n#define MAKEINC(x) SMASH(x,_ir... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22781/"
] |
141,885 | <p>Is there a nice way to dependency inject using a jsp taglib?</p>
<p>either using ejb 3.0, spring, or guice...</p>
<p>I have a lot of services/pojos that I would like to use in my taglibs</p>
| [
{
"answer_id": 20874815,
"author": "Capn Sparrow",
"author_id": 1140456,
"author_profile": "https://Stackoverflow.com/users/1140456",
"pm_score": 0,
"selected": false,
"text": "public class GuiceServletConfig extends GuiceServletContextListener {\n\n@Override\nprotected Injector getInjec... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20641/"
] |
141,888 | <p>This must be a classic .NET question for anyone migrating from Java. </p>
<p>.NET does not seem to have a direct equivalent to java.io.StreamTokenizer, however the JLCA provides a SupportClass that attempts to implement it. I believe the JLCA also provides a Tokenizer SupportClass that takes a String as the sourc... | [
{
"answer_id": 141892,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 0,
"selected": false,
"text": "string.Split(...)"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18051/"
] |
141,913 | <p>I'm parsing XML results from an API call using PHP and xpath. </p>
<pre><code> $dom = new DOMDocument();
$dom->loadXML($response->getBody());
$xpath = new DOMXPath($dom);
$xpath->registerNamespace("a", "http://www.example.com");
$hrefs = $xpath->query('//a:Books/text()', $dom);
for ($i = 0; $i ... | [
{
"answer_id": 141933,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 0,
"selected": false,
"text": "$xpath->query('concat(//a:Books/text(), //a:Books/@DeweyDecimal)', $dom);\n"
},
{
"answer_id": 143029,
"autho... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2863/"
] |
141,939 | <p>I'm building a shared library with g++ 3.3.4. I cannot link to the library because I am getting </p>
<pre><code>./BcdFile.RHEL70.so: undefined symbol: _ZNSt8_Rb_treeIjjSt9_IdentityIjESt4lessIjESaIjEE13insert_uniqueERKj
</code></pre>
<p>Which c++filt describes as </p>
<pre><code>std::_Rb_tree<unsigned int, unsi... | [
{
"answer_id": 141957,
"author": "Branan",
"author_id": 13894,
"author_profile": "https://Stackoverflow.com/users/13894",
"pm_score": 1,
"selected": false,
"text": "std::_Rb_Tree map libstdc++ libstdc++ map hash_map"
},
{
"answer_id": 141977,
"author": "Dima",
"author_id"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17209/"
] |
141,970 | <p>I'm experimenting with generics and I'm trying to create structure similar to Dataset class.<br>
I have following code</p>
<pre><code>public struct Column<T>
{
T value;
T originalValue;
public bool HasChanges
{
get { return !value.Equals(originalValue); }
}
public void Accept... | [
{
"answer_id": 142253,
"author": "Derek Park",
"author_id": 872,
"author_profile": "https://Stackoverflow.com/users/872",
"pm_score": 1,
"selected": false,
"text": "Column IColumn IColumn AcceptChanges() HasChanges() Column Column public class Record\n{\n public enum ColumnNames { ID ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22569/"
] |
141,973 | <p>Is there a way to get the key (or id) value of a db.ReferenceProperty, without dereferencing the actual entity it points to? I have been digging around - it looks like the key is stored as the property name preceeded with an _, but I have been unable to get any code working. Examples would be much appreciated. Th... | [
{
"answer_id": 164870,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "class Comment(db.Model):\n series = db.ReferenceProperty(reference_class=Series);\n\n def series_id(self):\n retur... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/96/"
] |
141,975 | <p>How do the full text search systems of PostgreSQL and MySQL compare? Is any clearly better than the oder? In which way are they different?</p>
| [
{
"answer_id": 147433,
"author": "Gavin M. Roy",
"author_id": 13203,
"author_profile": "https://Stackoverflow.com/users/13203",
"pm_score": 3,
"selected": false,
"text": "SELECT title\nFROM pgweb\nWHERE to_tsvector(body) @@ to_tsquery('friend');\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/141975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
141,993 | <p>I'm trying to write an automated test of an application that basically translates a custom message format into an XML message and sends it out the other end. I've got a good set of input/output message pairs so all I need to do is send the input messages in and listen for the XML message to come out the other end.<... | [
{
"answer_id": 142167,
"author": "Tom",
"author_id": 22850,
"author_profile": "https://Stackoverflow.com/users/22850",
"pm_score": 9,
"selected": true,
"text": "public class SomeTest extends XMLTestCase {\n @Test\n public void test() {\n String xml1 = ...\n String xml2 = ...\n\n ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/141993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247/"
] |
142,000 | <p>I've got a page with a normal form with a submit button and some jQuery which binds to the form submit event and overrides it with <code>e.preventDefault()</code> and runs an AJAX command. This works fine when the submit button is clicked but when a link with <code>onclick='document.formName.submit();'</code> is cli... | [
{
"answer_id": 142075,
"author": "user16624",
"author_id": 16624,
"author_profile": "https://Stackoverflow.com/users/16624",
"pm_score": 1,
"selected": false,
"text": "this._form.bind('submit', Delegate.create(this, function(e) {\n e.preventDefault();\n this._searchFadeOut();\n ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16624/"
] |
142,003 | <p>I have a scenario. (Windows Forms, C#, .NET)</p>
<ol>
<li>There is a main form which hosts some user control.</li>
<li>The user control does some heavy data operation, such that if I directly call the <code>UserControl_Load</code> method the UI become nonresponsive for the duration for load method execution.</li>
<l... | [
{
"answer_id": 142064,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": false,
"text": "Invoke BeginInvoke BackgroundWorker Control.Invoke Control.BeginInvoke BackgroundWorker BackgroundWorker"
},
{
"... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142003",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22858/"
] |
142,007 | <p>Is there a way to force a Samba process to close a given file without killing it?</p>
<p>Samba opens a process for each client connection, and sometimes I see it holds open files far longer than needed. Usually i just kill the process, and the (windows) client will reopen it the next time it access the share; but ... | [
{
"answer_id": 588984,
"author": "Beep beep",
"author_id": 257954,
"author_profile": "https://Stackoverflow.com/users/257954",
"pm_score": 4,
"selected": true,
"text": "lsof|grep -i <file_name> kill -9 <pid>"
},
{
"answer_id": 589553,
"author": "X-Istence",
"author_id": 1... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11649/"
] |
142,010 | <p>Say I have the following XML...</p>
<pre><code><root>
<base>
<tent key="1" color="red"/>
<tent key="2" color="yellow"/>
<tent key="3" color="blue"/>
</base>
<bucket>
<tent key="1"/>
<tent key="3"/>
</bucket>
</root>
</code... | [
{
"answer_id": 142067,
"author": "Garth Gilmour",
"author_id": 2635682,
"author_profile": "https://Stackoverflow.com/users/2635682",
"pm_score": 2,
"selected": false,
"text": "/root/base/tent[/root/bucket/tent/@key = @key ]/@color\n"
},
{
"answer_id": 144505,
"author": "JeniT... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
142,016 | <p>I'm looking for a piece of code that can tell me the offset of a field within a structure without allocating an instance of the structure.</p>
<p>IE: given</p>
<pre><code>struct mstct {
int myfield;
int myfield2;
};
</code></pre>
<p>I could write:</p>
<pre><code>mstct thing;
printf("offset %lu\n", (unsig... | [
{
"answer_id": 142023,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 7,
"selected": true,
"text": "#define OFFSETOF(type, field) ((unsigned long) &(((type *) 0)->field))\n"
},
{
"answer_id": 142049,
"au... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4777/"
] |
142,042 | <p>I want to attach an xslt stylesheet to an XML document that I build with XMLBuilder. This is done with a Processing Instruction that looks like</p>
<pre><code><?xml-stylesheet type='text/xsl' href='/stylesheets/style.xslt' ?>
</code></pre>
<p>Normally, I'd use the <code>instruct!</code> method, but <code>:x... | [
{
"answer_id": 142158,
"author": "Mike Berrow",
"author_id": 17251,
"author_profile": "https://Stackoverflow.com/users/17251",
"pm_score": 3,
"selected": false,
"text": "xm.instruct! 'xml-stylesheet', {:href=>'/stylesheets/style.xslt', :type=>'text/xsl'}\n xm.instruct! :xml, {:encoding=>... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10026/"
] |
142,058 | <p>I am trying to use VBScript to do an XSLT transform on an XML object.<br>
The XSL file I'm translating includes the <code><xsl:import href="script.xsl"/></code> directive. If I use the absolute URL (<code>http://localhost/mysite/script.xsl</code>), it imports the style sheet fine; however, if I use the relativ... | [
{
"answer_id": 142102,
"author": "Jon Schneider",
"author_id": 12484,
"author_profile": "https://Stackoverflow.com/users/12484",
"pm_score": 0,
"selected": false,
"text": "<xsl:import href=\"mysite/script.xsl\"/>\n"
},
{
"answer_id": 164461,
"author": "dacracot",
"author_... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/80/"
] |
142,071 | <p>I am looking for an app that will let me type in code ON my cellphone. I don't need to compile or anything, and its not to program for the cellphone. Just something nice to have when an idea pops in my head.</p>
<p>Am I completely overlooking a simple code editor for Symbian S60v3 phones? </p>
<p>I am looking for ... | [
{
"answer_id": 1394097,
"author": "sbabybird",
"author_id": 88450,
"author_profile": "https://Stackoverflow.com/users/88450",
"pm_score": 1,
"selected": false,
"text": "ped-s60"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/142071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2855/"
] |
142,090 | <p>I'm looking to create an ValidationRule class that validates properties on an entity type object. I'd really like to set the name of the property to inspect, and then give the class a delegate or a lambda expression that will be evaluated at runtime when the object runs its IsValid() method. Does anyone have a sni... | [
{
"answer_id": 142112,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 2,
"selected": false,
"text": "class ValidationRule {\n public delegate bool Validator();\n\n private Validator _v;\n\n public ValidationRule(... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
142,110 | <p>Basically I want to know how to set center alignment for a cell using VBScript...</p>
<p>I've been googling it and can't seem to find anything that helps.</p>
| [
{
"answer_id": 142170,
"author": "mistrmark",
"author_id": 19242,
"author_profile": "https://Stackoverflow.com/users/19242",
"pm_score": 1,
"selected": false,
"text": "'Select a Cell Range\nRange(\"D4\").Select\n\n'Set the horizontal and vertical alignment\nWith Selection\n .Horizonta... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
142,121 | <p>I have a class that processes a 2 xml files and produces a text file. </p>
<p>I would like to write a bunch of unit / integration tests that can individually pass or fail for this class that do the following:</p>
<ol>
<li>For input A and B, generate the output.</li>
<li>Compare the contents of the generated file ... | [
{
"answer_id": 142312,
"author": "Adam Tegen",
"author_id": 4066,
"author_profile": "https://Stackoverflow.com/users/4066",
"pm_score": 4,
"selected": true,
"text": "using NUnit.Framework.Extensions;\n\n[RowTest]\n[Row(\"x1.xml\", \"x2.xml\", \"x-expected.xml\")]\n[Row(\"y1.xml\", \"y2.x... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
142,142 | <p>Is there a query in SQL Server 2005 I can use to get the server's IP or name?</p>
| [
{
"answer_id": 142144,
"author": "Pseudo Masochist",
"author_id": 8529,
"author_profile": "https://Stackoverflow.com/users/8529",
"pm_score": 3,
"selected": false,
"text": "select @@servername\n"
},
{
"answer_id": 142146,
"author": "Michał Piaskowski",
"author_id": 1534,
... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
142,147 | <p>I'm an experienced programmer but just starting out with Flash/Actionscript. I'm working on a project that for certain reasons requires me to use Actionscript 2 rather than 3.</p>
<p>When I run the following (I just put it in frame one of a new flash project), the output is a 3 rather than a 1 ? I need it to be a 1... | [
{
"answer_id": 142224,
"author": "gltovar",
"author_id": 2855,
"author_profile": "https://Stackoverflow.com/users/2855",
"pm_score": 0,
"selected": false,
"text": "var fs:Array = new Array();\n\nfor (var i = 0; i < 3; i++){\n\n var ii = i + 1; \n fs[i] = function(){\n tr... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
142,151 | <p>How do I locate resources on the classpath in java?
Specifically stuff that ends in .hbm.xml.</p>
<p>My goal is to get a List of all resources on the classpath that end with ".hbm.xml".</p>
| [
{
"answer_id": 9282106,
"author": "Maxim Veksler",
"author_id": 48062,
"author_profile": "https://Stackoverflow.com/users/48062",
"pm_score": 1,
"selected": false,
"text": "findClasses ClassLoaderUtil public class ClassLoaderUtil {\n /**\n * Recursive method used to find all class... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
142,223 | <p>What factors indicate that a project's solution should not be coded in a dynamic language?</p>
| [
{
"answer_id": 142410,
"author": "alps123",
"author_id": 22337,
"author_profile": "https://Stackoverflow.com/users/22337",
"pm_score": 0,
"selected": false,
"text": "@contents = <FILE>;\n"
}
] | 2008/09/26 | [
"https://Stackoverflow.com/questions/142223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
142,239 | <p>We're building an app that stores "hours of operation" for various businesses. What is the easiest way to represent this data so you can easily check if an item is open?</p>
<p>Some options:</p>
<ul>
<li>Segment out blocks (every 15 minutes) that you can mark "open/closed". Checking involves seeing if the "open" b... | [
{
"answer_id": 142460,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": false,
"text": "BusinessID | weekDay | OpenTime | CloseTime \n---------------------------------------------\n 1 1 9 ... | 2008/09/26 | [
"https://Stackoverflow.com/questions/142239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/109/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.