qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
94,331 | <p>I use the recent Ganymede release of Eclipse, specifically the distro for Java EE and web developers. I have installed a few additional plugins (e.g. Subclipse, Spring, FindBugs) and removed all the Mylyn plugins. </p>
<p>I don't do anything particularly heavy-duty within Eclipse such as starting an app server or c... | [
{
"answer_id": 101193,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "C:\\[jdk1.6.0_0x path]\\bin\\jconsole.exe\n"
},
{
"answer_id": 101995,
"author": "GKelly",
"author_id": 18744,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
94,342 | <p>I have a string which contain tags in the form <code>< tag ></code>. Is there an easy way for me to programmatically replace instances of these tags with special ascii characters? e.g. replace a tag like <code>"< tab >"</code> with the ascii equivelent of <code>'/t'</code>?</p>
| [
{
"answer_id": 94366,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 5,
"selected": true,
"text": "string s = \"...<tab>...\";\ns = s.Replace(\"<tab>\", \"\\t\");\n"
},
{
"answer_id": 94367,
"author": "Burkhard"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
94,361 | <p>What are the best practices for using Java's <code>@Override</code> annotation and why? </p>
<p>It seems like it would be overkill to mark every single overridden method with the <code>@Override</code> annotation. Are there certain programming situations that call for using the <code>@Override</code> and others... | [
{
"answer_id": 94386,
"author": "jjnguy",
"author_id": 2598,
"author_profile": "https://Stackoverflow.com/users/2598",
"pm_score": 5,
"selected": false,
"text": "tostring() toString()"
},
{
"answer_id": 94388,
"author": "Greg Mattes",
"author_id": 13940,
"author_profi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6180/"
] |
94,372 | <p>I am building a quiz and i need to calculate the total time taken to do the quiz.
and i need to display the time taken in HH::MM::SS..any pointers?</p>
| [
{
"answer_id": 94427,
"author": "Brian",
"author_id": 1750627,
"author_profile": "https://Stackoverflow.com/users/1750627",
"pm_score": 3,
"selected": true,
"text": "var nStart:Number = new Date().time;\n\n// Some time passes\n\nvar nMillisElapsed:Number = new Date().time - nStart;\n\nva... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16458/"
] |
94,382 | <p>I'm using gvim on Windows.</p>
<p>In my _vimrc I've added:</p>
<pre><code>set shell=powershell.exe
set shellcmdflag=-c
set shellpipe=>
set shellredir=>
function! Test()
echo system("dir -name")
endfunction
command! -nargs=0 Test :call Test()
</code></pre>
<p>If I execute this function (:Test) I see nons... | [
{
"answer_id": 94697,
"author": "Mark Schill",
"author_id": 9482,
"author_profile": "https://Stackoverflow.com/users/9482",
"pm_score": 2,
"selected": false,
"text": "\"dir \\*vim\\*\"\n \" -command { dir \\*vim\\* }\"\n"
},
{
"answer_id": 101743,
"author": "David Mohundro",... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4407/"
] |
94,410 | <p>I'm considering using Castle Windsor's Interceptors to cache data for helping scale an asp.net site.</p>
<p>Does anyone have any thoughts/experience with doing this?</p>
<p>Minor clarification:
My intention was to use Windsor to intercept 'expensive' calls and delegate to MemCacheD or Velocity (or another distribu... | [
{
"answer_id": 26620863,
"author": "Jakob",
"author_id": 1809290,
"author_profile": "https://Stackoverflow.com/users/1809290",
"pm_score": 0,
"selected": false,
"text": "var container = new WindsorContainer();\ncontainer.Register(Component.For<CacheInterceptor>()\n .Instance(new CacheIn... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17824/"
] |
94,420 | <p>So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls.</p>
<p>It seems date controls within Infopath 2007 screw with rendering somehow. To test, ... | [
{
"answer_id": 26620863,
"author": "Jakob",
"author_id": 1809290,
"author_profile": "https://Stackoverflow.com/users/1809290",
"pm_score": 0,
"selected": false,
"text": "var container = new WindsorContainer();\ncontainer.Register(Component.For<CacheInterceptor>()\n .Instance(new CacheIn... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13959/"
] |
94,445 | <p>I'm generating a self-signed SSL certificate to protect my server's admin section, and I keep getting this message from OpenSSL:</p>
<blockquote>
<p>unable to write 'random state'</p>
</blockquote>
<p>What does this mean?</p>
<p>This is on an Ubuntu server. I have upgraded libssl to fix <a href="http://www.ubun... | [
{
"answer_id": 94458,
"author": "Ville Laurikari",
"author_id": 7446,
"author_profile": "https://Stackoverflow.com/users/7446",
"pm_score": 10,
"selected": true,
"text": "sudo rm ~/.rnd\n"
},
{
"answer_id": 6484589,
"author": "Jusuf",
"author_id": 816211,
"author_prof... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17965/"
] |
94,456 | <p>I have an instance of a <code>System.Drawing.Bitmap</code> and would like to make it available to my WPF app in the form of a <code>System.Windows.Media.Imaging.BitmapImage</code>.</p>
<p>What would be the best approach for this?</p>
| [
{
"answer_id": 96470,
"author": "Kevin",
"author_id": 2723,
"author_profile": "https://Stackoverflow.com/users/2723",
"pm_score": 7,
"selected": true,
"text": "ScreenCapture = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(\n bmp.GetHbitmap(), \n IntPtr.Zero, \n Syste... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2723/"
] |
94,488 | <p>More specifically, when the exception contains custom objects which may or may not themselves be serializable.</p>
<p>Take this example:</p>
<pre><code>public class MyException : Exception
{
private readonly string resourceName;
private readonly IList<string> validationErrors;
public MyException... | [
{
"answer_id": 94625,
"author": "Adrian Clark",
"author_id": 148,
"author_profile": "https://Stackoverflow.com/users/148",
"pm_score": 5,
"selected": false,
"text": "GetObjectData [Serializable]\npublic class MyException : Exception\n{\n private readonly string resourceName;\n priv... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5975/"
] |
94,490 | <p>I need to read selected files, matching on the file name, from a remote zip archive using Python. I don't want to save the full zip to a temporary file (it's not that large, so I can handle everything in memory).</p>
<p>I've already written the code and it works, and I'm answering this myself so I can search for it... | [
{
"answer_id": 94491,
"author": "Marcel Levy",
"author_id": 676,
"author_profile": "https://Stackoverflow.com/users/676",
"pm_score": 4,
"selected": true,
"text": "import urllib2, cStringIO, zipfile\n\ntry:\n remotezip = urllib2.urlopen(url)\n zipinmemory = cStringIO.StringIO(remot... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/676/"
] |
94,502 | <p>I have a simple database table called "Entries":</p>
<pre><code>class CreateEntries < ActiveRecord::Migration
def self.up
create_table :entries do |t|
t.string :firstName
t.string :lastName
#etc.
t.timestamps
end
end
def self.down
drop_table :entries
end
end
</code></... | [
{
"answer_id": 94520,
"author": "kch",
"author_id": 13989,
"author_profile": "https://Stackoverflow.com/users/13989",
"pm_score": 3,
"selected": false,
"text": "gem install fastercsv\ngem install spreadsheet-excel\n FasterCSV.generate(:col_sep => \";\", :row_sep => \"\\r\\n\") { |csv| ..... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4540/"
] |
94,528 | <p>In other words may one use <code>/<tag[^>]*>.*?<\/tag>/</code> regex to match the <code>tag</code> html element which does not contain nested <code>tag</code> elements?</p>
<p>For example (lt.html):</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/stric... | [
{
"answer_id": 94544,
"author": "Per Hornshøj-Schierbeck",
"author_id": 11619,
"author_profile": "https://Stackoverflow.com/users/11619",
"pm_score": 0,
"selected": false,
"text": "yeah except /<tag[^>]*>.*?<\\/tag>/\n"
},
{
"answer_id": 94559,
"author": "Jim",
"author_id... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4279/"
] |
94,542 | <p>I have a handful of projects that all use one project for the data model. Each of these projects has its own applicationContext.xml file with a bunch of repetitive data stuff within it.</p>
<p>I'd like to have a modelContext.xml file and another for my ui.xml, etc.</p>
<p>Can I do this?</p>
| [
{
"answer_id": 94586,
"author": "enricopulatzo",
"author_id": 9883,
"author_profile": "https://Stackoverflow.com/users/9883",
"pm_score": 2,
"selected": false,
"text": "<import resource=\"services.xml\"/>\n"
},
{
"answer_id": 94588,
"author": "Nicholas Trandem",
"author_i... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
94,556 | <p>We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. </p>
<p>We are using mvn... | [
{
"answer_id": 94586,
"author": "enricopulatzo",
"author_id": 9883,
"author_profile": "https://Stackoverflow.com/users/9883",
"pm_score": 2,
"selected": false,
"text": "<import resource=\"services.xml\"/>\n"
},
{
"answer_id": 94588,
"author": "Nicholas Trandem",
"author_i... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/765/"
] |
94,582 | <p>Say I have some javascript that if run in a browser would be typed like this...</p>
<pre><code><script type="text/javascript"
src="http://someplace.net/stuff.ashx"></script>
<script type="text/javascript">
var stuff = null;
stuff = new TheStuff('myStuff');
</script>
</code></pre>
... | [
{
"answer_id": 96911,
"author": "Stephen Deken",
"author_id": 7154,
"author_profile": "https://Stackoverflow.com/users/7154",
"pm_score": 2,
"selected": false,
"text": "ScriptEngine ScriptEngine ScriptEngine Reader URL url = new URL( \"http://someplace.net/stuff.ashx\" );\nInputStreamRea... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17978/"
] |
94,591 | <p>I can never remember the number. I need a memory rule.</p>
| [
{
"answer_id": 94645,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 4,
"selected": false,
"text": "Console.WriteLine(Int32.MaxValue);\n"
},
{
"answer_id": 94646,
"author": "Adrian Clark",
"author_id": 148,
"aut... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94591",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15054/"
] |
94,592 | <p>Sometimes it might be useful, but mostly just looking cool or impressive to visualize log files (anything from http requests and to bandwith usage to cups of coffee drunk per day).
I know about <a href="http://www.visitorville.com/" rel="noreferrer">Visitorville</a> which I think look a bit silly, and then there's ... | [
{
"answer_id": 16763271,
"author": "sdaau",
"author_id": 277826,
"author_profile": "https://Stackoverflow.com/users/277826",
"pm_score": 2,
"selected": false,
"text": "matplotlib stdin"
},
{
"answer_id": 17211281,
"author": "Lloyd",
"author_id": 1029644,
"author_profi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17542/"
] |
94,594 | <p>I'm implementing a simple service using datagrams over unix local sockets (AF_UNIX address family, i.e. <strong>not UDP</strong>). The server is bound to a public address, and it receives requests just fine. Unfortunately, when it comes to answering back, <code>sendto</code> fails unless the client is bound too. ... | [
{
"answer_id": 95090,
"author": "Nick Stinemates",
"author_id": 4960,
"author_profile": "https://Stackoverflow.com/users/4960",
"pm_score": -1,
"selected": false,
"text": "from socket import *\nimport time\nclass Listener:\n def __init__(self, port):\n self.port = port\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12274/"
] |
94,610 | <p>I have a Silverlight 2 application that is consuming a WCF service. As such, it uses asynchronous callbacks for all the calls to the methods of the service. If the service is not running, or it crashes, or the network goes down, etc before or during one of these calls, an exception is generated as you would expect... | [
{
"answer_id": 636512,
"author": "Braulio",
"author_id": 76922,
"author_profile": "https://Stackoverflow.com/users/76922",
"pm_score": 0,
"selected": false,
"text": "Braulio\n"
},
{
"answer_id": 637612,
"author": "Community",
"author_id": -1,
"author_profile": "https:... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17986/"
] |
94,612 | <p>To elaborate ..
a) A table (BIGTABLE) has a capacity to hold a million rows with a primary Key as the ID. (random and unique)
b) What algorithm can be used to arrive at an ID that has not been used so far. This number will be used to insert another row into table BIGTABLE.</p>
<p>Updated the question with more deta... | [
{
"answer_id": 94666,
"author": "John Meagher",
"author_id": 3535,
"author_profile": "https://Stackoverflow.com/users/3535",
"pm_score": 2,
"selected": false,
"text": "int id;\ndo {\n id = generateRandomId();\n} while (doesIdAlreadyExist(id));\ndoSomethingWithNewId(id); \n"
},
{
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17987/"
] |
94,667 | <p>How can I bind an array parameter in the HQL editor of the HibernateTools plugin?
The query parameter type list does not include arrays or collections.</p>
<p>For example:<br>
<code>Select * from Foo f where f.a in (:listOfValues)</code>.<br>
How can I bind an array to that listOfValues?</p>
| [
{
"answer_id": 119294,
"author": "boutta",
"author_id": 15108,
"author_profile": "https://Stackoverflow.com/users/15108",
"pm_score": 1,
"selected": false,
"text": "select * from Foo f where f.a in f.list\n"
},
{
"answer_id": 6833770,
"author": "Shaun Stone",
"author_id":... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12905/"
] |
94,674 | <p>How come this doesn't work (operating on an empty select list <code><select id="requestTypes"></select></code></p>
<pre><code>$(function() {
$.getJSON("/RequestX/GetRequestTypes/", showRequestTypes);
}
);
function showRequestTypes(data, textStatus) {
$.each(data,
... | [
{
"answer_id": 94686,
"author": "John Sheehan",
"author_id": 1786,
"author_profile": "https://Stackoverflow.com/users/1786",
"pm_score": 3,
"selected": false,
"text": " var dropdownList = $(\"#requestTypes\")[0];\n"
},
{
"answer_id": 94716,
"author": "Jim",
"author_id": 8... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17729/"
] |
94,684 | <p>We are trying to integrate tests in our daily builds using TestComplete, so far we have a machine dedicated for testing and our build script copies to this machine everything TestComplete needs for its tests (Application, Database, Test script project and source files, etc).</p>
<p>Basically we can open the TestCom... | [
{
"answer_id": 258000,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "Set wshShell = CreateObject(\"WScript.Shell\")\nwshShell.Run(\"\"\"C:\\Program Files\\Automated QA\\TestComplete 6\\Bin\\TestC... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/727/"
] |
94,689 | <p>I am new to asp and have a deadline in the next few days.
i receive the following xml from within a webservice response.</p>
<pre><code>print("<?xml version="1.0" encoding="UTF-8"?>
<user_data>
<execution_status>0</execution_status>
<row_count>1</row_count>
<txn_id>stuetd67... | [
{
"answer_id": 94712,
"author": "Ilya Kochetov",
"author_id": 15329,
"author_profile": "https://Stackoverflow.com/users/15329",
"pm_score": 4,
"selected": true,
"text": "Dim oXML, oNode, sKey, sValue\n\nSet oXML = Server.CreateObject(\"MSXML2.DomDocument.6.0\") 'creating the parser objec... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94689",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11612/"
] |
94,696 | <p>I know it happens sometime before Load, but during what event exactly?</p>
| [
{
"answer_id": 21776865,
"author": "Liam",
"author_id": 542251,
"author_profile": "https://Stackoverflow.com/users/542251",
"pm_score": 3,
"selected": false,
"text": "LoadViewState"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/94696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9991/"
] |
94,747 | <p>What would be a good offline alternative of the online <a href="http://www.lipsum.com/feed/html" rel="noreferrer">Lipsum generator</a>? It's frustrating when I'm not online and need some placeholder text for testing purpose. A CLI utility would be ideal, so that I can tailor the output to fit my needs.</p>
| [
{
"answer_id": 94785,
"author": "Jim",
"author_id": 8427,
"author_profile": "https://Stackoverflow.com/users/8427",
"pm_score": 1,
"selected": false,
"text": "{% lorem %}"
},
{
"answer_id": 94798,
"author": "shadit",
"author_id": 9925,
"author_profile": "https://Stack... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1897/"
] |
94,755 | <p>What is the best way (in C++) to set up a container allowing for double-indexing? Specifically, I have a list of objects, each indexed by a key (possibly multiple per key). This implies a multimap. The problem with this, however, is that it means a possibly worse-than-linear lookup to find the location of an object.... | [
{
"answer_id": 94979,
"author": "Commodore Jaeger",
"author_id": 4659,
"author_profile": "https://Stackoverflow.com/users/4659",
"pm_score": 4,
"selected": true,
"text": "std::multimap<Key, Object *> std::map<Object *, Key> std::multimap Object Key"
},
{
"answer_id": 95251,
"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16855/"
] |
94,757 | <p>I have a web application where there are number of Ajax components which refresh themselves every so often inside a page (it's a dashboard of sorts).</p>
<p>Now, I want to add functionality to the page so that when there is no Internet connectivity, the current content of the page doesn't change and a message appea... | [
{
"answer_id": 94808,
"author": "Dan",
"author_id": 17121,
"author_profile": "https://Stackoverflow.com/users/17121",
"pm_score": 4,
"selected": false,
"text": "navigator.onLine\n if (navigator.onLine) {\n updatePage();\n} else {\n displayOfflineWarning();\n}\n"
},
{
"answe... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/380/"
] |
94,767 | <p>I'm attempting to debug my web application with FireFox3. However, when a JSON feed comes from my application, Firefox wants to open up the "application/json" in a new program. Is there a way to configure FireFox3 to handle JSON like regular text files and open up the JSON in the current tab?</p>
<p>Thanks.</p>
| [
{
"answer_id": 815578,
"author": "Tarnay Kálmán",
"author_id": 55267,
"author_profile": "https://Stackoverflow.com/users/55267",
"pm_score": 4,
"selected": false,
"text": "\"application/json\" \"application/json\""
},
{
"answer_id": 8889271,
"author": "Robert I. Jr.",
"au... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10333/"
] |
94,779 | <p>I am working on a client proposal and they will need to upgrade their network infrastructure to support hosting an ASP.NET application. Essentially, I need to estimate peak usage for a system with a known quantity of users (currently 250). A simple answer like "you'll need a dedicated T1 line" would probably suffice... | [
{
"answer_id": 815578,
"author": "Tarnay Kálmán",
"author_id": 55267,
"author_profile": "https://Stackoverflow.com/users/55267",
"pm_score": 4,
"selected": false,
"text": "\"application/json\" \"application/json\""
},
{
"answer_id": 8889271,
"author": "Robert I. Jr.",
"au... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7301/"
] |
94,794 | <p>Compared to </p>
<ul>
<li>Simple memory access</li>
<li>Disk access</li>
<li>Memory access on another computer(on the same network)</li>
<li>Disk access on another computer(on the same network)</li>
</ul>
<p>in C++ on windows.</p>
| [
{
"answer_id": 2382542,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": " for (int i = 0; i < iMax; i++)\n {\n //gives about 5.94 seconds to do a billion loops, \n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15054/"
] |
94,809 | <p>I want to log on to a server inside my program using Windows authentication of the current user logged in. I thought that perhaps I could use </p>
<p>System.Security.Principal.WindowsIdentity.GetCurrent().Name</p>
<p>but while that does give a name, I do not see how I can find out the password of the user to enter... | [
{
"answer_id": 94839,
"author": "Doug Moore",
"author_id": 13179,
"author_profile": "https://Stackoverflow.com/users/13179",
"pm_score": 1,
"selected": false,
"text": " <system.web>\n <authentication mode=\"Windows\" />\n <identity impersonate=\"true\"/>\n </system>\n"
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
94,860 | <p>I have searched the forum, and google for this topic. Most of the articles are talking about using JSON to call the controller/action on the server and do ajax effect on the result.</p>
<p>I am trying to use some very basic JQuery features, like the JQuery UI/Tabs, and JQuery UI/Block for a dialog window. I cannot ... | [
{
"answer_id": 423576,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 1,
"selected": false,
"text": " public static string Script(this HtmlHelper html, string path)\n {\n var filePath = VirtualPathUtility.... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
94,884 | <p>The system I work on here was written before .net 2.0 and didn't have the benefit of generics. It was eventually updated to 2.0, but none of the code was refactored due to time constraints. There are a number of places where the code uses ArraysLists etc. that store things as objects. </p>
<p>From performance pe... | [
{
"answer_id": 95753,
"author": "torial",
"author_id": 13990,
"author_profile": "https://Stackoverflow.com/users/13990",
"pm_score": 3,
"selected": false,
"text": "Public Sub Run(ByVal strToProcess As String) Implements IPerfStub.Run\n Dim genList As New ArrayList\n\n For Each ch A... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1942/"
] |
94,906 | <p>I'm running a SQL query on SQL Server 2005, and in addition to 2 columns being queried from the database, I'd also like to return 1 column of random numbers along with them. I tried this:</p>
<pre><code>select column1, column2, floor(rand() * 10000) as column3
from table1
</code></pre>
<p>Which kinda works, but t... | [
{
"answer_id": 94951,
"author": "Adam",
"author_id": 13320,
"author_profile": "https://Stackoverflow.com/users/13320",
"pm_score": 1,
"selected": false,
"text": "CREATE VIEW vRandNumber\nAS\nSELECT RAND() as RandNumber\n CREATE FUNCTION RandNumber()\nRETURNS float\nAS\n BEGIN\n RETURN ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8409/"
] |
94,912 | <p>We currently have code like this:</p>
<pre><code>Dim xDoc = XDocument.Load(myXMLFilePath)
</code></pre>
<p>The only way we know how to do it currently is by using a file path and impersonation (since this file is on a secured network path).</p>
<p>I've looked at <a href="http://msdn.microsoft.com/en-us/library/sy... | [
{
"answer_id": 94993,
"author": "Domenic",
"author_id": 3191,
"author_profile": "https://Stackoverflow.com/users/3191",
"pm_score": 2,
"selected": false,
"text": "XDocument.Load"
},
{
"answer_id": 9182657,
"author": "Shawinder Sekhon",
"author_id": 823800,
"author_pro... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7072/"
] |
94,930 | <p>I have a table with game scores, allowing multiple rows per account id: <code>scores (id, score, accountid)</code>. I want a list of the top 10 scorer ids and their scores.</p>
<p>Can you provide an sql statement to select the top 10 scores, but only one score per account id? </p>
<p>Thanks!</p>
| [
{
"answer_id": 94958,
"author": "Danimal",
"author_id": 2757,
"author_profile": "https://Stackoverflow.com/users/2757",
"pm_score": 2,
"selected": false,
"text": "select top 10 username, \n max(score) \nfrom usertable \ngroup by username \norder by max(score) desc\n"
},
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13636/"
] |
94,932 | <p>Our CF server occasionally stops processing mail. This is problematic, as many of our clients depend on it. </p>
<p>We found suggestions online that mention zero-byte files in the undeliverable folder, so I created a task that removes them every three minutes. However, the stoppage has occurred again.</p>
<p>I ... | [
{
"answer_id": 528530,
"author": "Ben Doom",
"author_id": 12267,
"author_profile": "https://Stackoverflow.com/users/12267",
"pm_score": 5,
"selected": true,
"text": "<cfdirectory action=\"list\" directory=\"c:\\coldfusion8\\mail\\spool\\\" name=\"spool\" sort=\"datelastmodified\">\n<cfse... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12267/"
] |
94,934 | <p>I'd like to create a "universal" debug logging function that inspects the JS namespace for well-known logging libraries.</p>
<p>For example, currently, it supports Firebug's console.log:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippe... | [
{
"answer_id": 94944,
"author": "Teifion",
"author_id": 1384652,
"author_profile": "https://Stackoverflow.com/users/1384652",
"pm_score": -1,
"selected": false,
"text": "alert('Some message/variables');\n"
},
{
"answer_id": 94996,
"author": "dgvid",
"author_id": 9897,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4465/"
] |
94,935 | <p>Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it is faster) or what besides that is different about</p>
<pre><code>for i in range(0, 20):
for i in xrange(0, 20):
</code></pre>
| [
{
"answer_id": 94953,
"author": "Oko",
"author_id": 9402,
"author_profile": "https://Stackoverflow.com/users/9402",
"pm_score": -1,
"selected": false,
"text": "range xrange"
},
{
"answer_id": 94962,
"author": "Charles",
"author_id": 18031,
"author_profile": "https://S... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
94,975 | <p>I've read in one of my AI books that popular algorithms (A-Star, Dijkstra) for path-finding in simulation or games is also used to solve the well-known "15-puzzle".</p>
<p>Can anyone give me some pointers on how I would reduce the 15-puzzle to a graph of nodes and edges so that I could apply one of these algorithms... | [
{
"answer_id": 9990636,
"author": "satnhak",
"author_id": 323316,
"author_profile": "https://Stackoverflow.com/users/323316",
"pm_score": 2,
"selected": false,
"text": "n x n n > 3 n (n^2)! (n^2 − 1) n^3"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/94975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
94,977 | <p>In C# and in Java (and possibly other languages as well), variables declared in a "try" block are not in scope in the corresponding "catch" or "finally" blocks. For example, the following code does not compile:</p>
<pre><code>try {
String s = "test";
// (more code...)
}
catch {
Console.Out.WriteLine(s); //J... | [
{
"answer_id": 95015,
"author": "EndangeredMassa",
"author_id": 106,
"author_profile": "https://Stackoverflow.com/users/106",
"pm_score": 2,
"selected": false,
"text": "try\n dim i as integer = 10 / 0 ''// Throw an exception\n dim s as string = \"hi\"\ncatch (e)\n console.writel... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12484/"
] |
94,997 | <p>Suppose you have a program which reads from a socket. How do you keep the download rate below a certain given threshold?</p>
| [
{
"answer_id": 95058,
"author": "Branan",
"author_id": 13894,
"author_profile": "https://Stackoverflow.com/users/13894",
"pm_score": 1,
"selected": false,
"text": "ReadFixedRate() {\n while(Data_Exists()) {\n t = GetTime();\n ReadBlock();\n while(t + delay > GetTime()) {\n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/94997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9107/"
] |
95,007 | <p>I've been mystified by the R quantile function all day. </p>
<p>I have an intuitive notion of how quantiles work, and an M.S. in stats, but boy oh boy, the documentation for it is confusing to me. </p>
<p>From the docs:</p>
<blockquote>
<p>Q[i](p) = (1 - gamma) x[j] + gamma
x[j+1],</p>
</blockquote>
<p>I'm... | [
{
"answer_id": 1463249,
"author": "AFoglia",
"author_id": 79513,
"author_profile": "https://Stackoverflow.com/users/79513",
"pm_score": 7,
"selected": true,
"text": "j = int(pn+m) Q[i](p) p m m Q[i] m m[i] m m p(k) p p(k) p k m p p m = alpha + p * (1 - alpha - beta) p k x[k] p Q[i](p) p ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15842/"
] |
95,061 | <p>How can I tell Activerecord to not load blob columns unless explicitly asked for? There are some pretty large blobs in my legacy DB that must be excluded for 'normal' Objects.</p>
| [
{
"answer_id": 95413,
"author": "Mike Tunnicliffe",
"author_id": 13956,
"author_profile": "https://Stackoverflow.com/users/13956",
"pm_score": 2,
"selected": false,
"text": "MyModel.find(id, :select => 'every, attribute, except, the, blobs')\n MyModel.find(id, :select => (MyModel.column_... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,074 | <p>I have noticed that setting row height in DataGridView control is slow. Is there a way to make it faster?</p>
| [
{
"answer_id": 95362,
"author": "ImJustPondering",
"author_id": 17940,
"author_profile": "https://Stackoverflow.com/users/17940",
"pm_score": 0,
"selected": false,
"text": " // my test to specify a size for a datagridview row\n dataGridView1.Columns.Add(new DataGridViewText... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18046/"
] |
95,077 | <p>What is the best way to store string data across postback. I need to store an ID and name for multiple entities. I was thinking of using a datatable in viewstate, but would that make viewstate grow too large? I can't use a database yet because I'll be inserting a record that those other records need to be related... | [
{
"answer_id": 101205,
"author": "rohancragg",
"author_id": 5351,
"author_profile": "https://Stackoverflow.com/users/5351",
"pm_score": 0,
"selected": false,
"text": "Dictionary<int, string> myValues = new Dictionary<int, string>();\nmyValues.Add(1, \"Apple\");\nmaValues.Add(2, \"Pear\")... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16891/"
] |
95,089 | <p>Trying the easy approach:</p>
<blockquote>
<p>sqlite2 mydb.db .dump | sqlite3 mydb-new.db</p>
</blockquote>
<p>I got this error:</p>
<blockquote>
<p>SQL error near line 84802: no such column: Ð</p>
</blockquote>
<p>In that line the script is this:</p>
<blockquote>
<p>INSERT INTO vehiculo VALUES(127548,'21... | [
{
"answer_id": 548310,
"author": "Kyle Brantley",
"author_id": 66329,
"author_profile": "https://Stackoverflow.com/users/66329",
"pm_score": 2,
"selected": false,
"text": "$ sqlite3 v2database.db\nsqlite> .quit\n$\n"
},
{
"answer_id": 1193101,
"author": "ygrek",
"author_i... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7946/"
] |
95,098 | <p>Using the method <code>Application.Restart()</code> in C# should restart the current application: but it seems that this is not always working.</p>
<p>Is there a reason for this Issue, can somebody tell me, why it doesn't work all the time?</p>
| [
{
"answer_id": 95239,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": 2,
"selected": false,
"text": "Context.Application.Lock();\nContext.Session.Abandon();\nContext.Application.RemoveAll();\nContext.Application.Restart();\nCont... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17558/"
] |
95,105 | <p>Convert.ToString() only allows base values of 2, 8, 10, and 16 for some odd reason; is there some obscure way of providing any base between 2 and 16?</p>
| [
{
"answer_id": 95116,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": -1,
"selected": false,
"text": "string foo = Convert.ToString(myint,base);\n"
},
{
"answer_id": 95331,
"author": "Guvante",
"author_id": 168... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9913/"
] |
95,106 | <p>Is there a Vim shortcut for jumping to the argument list of the current function? I often find myself needing to mess with the argument list of a function, and it's kind of annoying to have to do ?def or ?function or 10k or what-have-you until I finally get to it, then /( or t( or 5e to get to the right position in... | [
{
"answer_id": 95745,
"author": "Luc Hermitte",
"author_id": 15934,
"author_profile": "https://Stackoverflow.com/users/15934",
"pm_score": 2,
"selected": false,
"text": " :nnoremap <buffer> [m :call search('def\\|function', 'b')<cr>f(\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16034/"
] |
95,112 | <p>I have a long running process in VB6 that I want to finish before executing the next line of code. How can I do that? Built-in function? Can I control how long to wait?</p>
<p>Trivial example:</p>
<pre><code>Call ExternalLongRunningProcess
Call DoOtherStuff
</code></pre>
<p>How do I delay 'DoOtherStuff'?</p>
| [
{
"answer_id": 95142,
"author": "Nescio",
"author_id": 14484,
"author_profile": "https://Stackoverflow.com/users/14484",
"pm_score": 5,
"selected": true,
"text": "Do\n If isSomeCheckCondition() Then Exit Do\n DoEvents\nLoop\n Private Declare Sub Sleep Lib \"kernel32\" (ByVal dwMi... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
95,134 | <p>I'm using the following code to query a database from my jsp, but I'd like to know more about what's happening behind the scenes.</p>
<p>These are my two primary questions.</p>
<p>Does the tag access the ResultSet directly, or is the query result being stored in a datastructure in memory?</p>
<p>When is the conne... | [
{
"answer_id": 95813,
"author": "Will Hartung",
"author_id": 13663,
"author_profile": "https://Stackoverflow.com/users/13663",
"pm_score": 1,
"selected": false,
"text": "\npublic class ResultSetIterator implements Iterator { \n\nConnection con;\nStatement s;\nResultSet rs;\nObject curObj... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1310/"
] |
95,163 | <p>I'm new to .Net and I'm trying to understand the basics first. What is the difference between MSIL and Java bytecode?</p>
| [
{
"answer_id": 96028,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 6,
"selected": false,
"text": "struct enums enums out ref static"
},
{
"answer_id": 9155197,
"author": "Justin",
"author_id": 332026,
"aut... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18055/"
] |
95,181 | <p>I have:</p>
<pre><code>class MyClass extends MyClass2 implements Serializable {
//...
}
</code></pre>
<p>In MyClass2 is a property that is not serializable. How can I serialize (and de-serialize) this object?</p>
<p>Correction: MyClass2 is, of course, not an interface but a class.</p>
| [
{
"answer_id": 95208,
"author": "Mike Deck",
"author_id": 1247,
"author_profile": "https://Stackoverflow.com/users/1247",
"pm_score": 5,
"selected": false,
"text": "private transient Foo foo;\n"
},
{
"answer_id": 95224,
"author": "sk.",
"author_id": 16399,
"author_pro... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12860/"
] |
95,183 | <p>How do I create an index on the date part of DATETIME field?</p>
<pre><code>mysql> SHOW COLUMNS FROM transactionlist;
+-------------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+------------... | [
{
"answer_id": 95252,
"author": "Clinton Pierce",
"author_id": 8173,
"author_profile": "https://Stackoverflow.com/users/8173",
"pm_score": 3,
"selected": false,
"text": " select * from translist \n where TranDateTime > '2008-08-16 23:59:59'\n and TranDateTime < '2008-08-18 00:... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17560/"
] |
95,192 | <p>Our CruiseControl system checks out from starteam. I've noticed that it is sometimes not checking out new versions of files, only added files.</p>
<p>Does anyone know why this is?</p>
| [
{
"answer_id": 95353,
"author": "dgvid",
"author_id": 9897,
"author_profile": "https://Stackoverflow.com/users/9897",
"pm_score": 1,
"selected": false,
"text": "delete-local -q -p "${starteam_project_root}" -is -filter "N" -cfgd "${exec_time}"\n delete-local... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
95,211 | <p>I want to generate a Makefile from an existing Xcode project on the Mac. Specifically, an existing iPhone, Objective-C program on the Mac.</p>
<p>I found <a href="http://members.bellatlantic.net/%7Evze35xda/software.html" rel="noreferrer">PBToMake</a>, but it looks like it is for Xcode 2.1 and when I tried using it... | [
{
"answer_id": 95653,
"author": "Chris Hanson",
"author_id": 714,
"author_profile": "https://Stackoverflow.com/users/714",
"pm_score": 1,
"selected": false,
"text": "xcodebuild"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5284/"
] |
95,213 | <p>Simple example: I want to have some items on a page (like divs or table rows), and I want to let the user click on them to select them. That seems easy enough in jQuery. To save which items a user clicks on with no server-side post backs, I was thinking a cookie would be a simple way to get this done.</p>
<ol>
<li>... | [
{
"answer_id": 95351,
"author": "Steve Moyer",
"author_id": 17008,
"author_profile": "https://Stackoverflow.com/users/17008",
"pm_score": 4,
"selected": false,
"text": "$.cookie('cookie_name', 'cookie_value') $.cookie('cookie_name', 'cookie_value', 'cookie_expiration\") document.cookie =... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5619/"
] |
95,218 | <p>Here's something I haven't been able to fix, and I've looked <strong>everywhere</strong>. Perhaps someone here will know!</p>
<p>I have a table called dandb_raw, with three columns in particular: dunsId (PK), name, and searchName. I also have a trigger that acts on this table:</p>
<pre><code>SET ANSI_NULLS ON
GO
S... | [
{
"answer_id": 95768,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 1,
"selected": false,
"text": "CREATE TABLE #newMatches\n(\n CompanyID int PRIMARY KEY,\n DunsID int\n)\n DROP TABLE #newMatches\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40352/"
] |
95,222 | <p>I found this link <a href="http://artis.imag.fr/~Xavier.Decoret/resources/glsl-mode/" rel="noreferrer">http://artis.imag.fr/~Xavier.Decoret/resources/glsl-mode/</a>, but there isn't a lot of description around it, aside that it's "simple".</p>
<p>Ideally, I'd like an extension to CcMode that can do it, or at least ... | [
{
"answer_id": 95494,
"author": "David Nehme",
"author_id": 14167,
"author_profile": "https://Stackoverflow.com/users/14167",
"pm_score": 5,
"selected": true,
"text": "(autoload 'glsl-mode \"glsl-mode\" nil t)\n(add-to-list 'auto-mode-alist '(\"\\\\.vert\\\\'\" . glsl-mode))\n(add-to-lis... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13894/"
] |
95,257 | <p>I just want a quick way (and preferably not using a while loop)of createing a table of every date between date @x and date @y so I can left outer join to some stats tables, some of which will have no records for certain days in between, allowing me to mark missing days with a 0</p>
| [
{
"answer_id": 95517,
"author": "digiguru",
"author_id": 5055,
"author_profile": "https://Stackoverflow.com/users/5055",
"pm_score": 0,
"selected": false,
"text": "Declare @FromDate datetime, \n @ToDate datetime \nDeclare @tmpDates table \n (StatsDate datetime)\nSet... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5055/"
] |
95,277 | <p>I'd like to be able to create a parameterized query in MS Access 2003 and feed the values of certain form elements to that query and then get the corresponding resultset back and do some basic calculations with them. I'm coming up short in figuring out how to get the parameters of the query to be populated by the fo... | [
{
"answer_id": 96047,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 1,
"selected": false,
"text": "Set db = CurrentDb\n\nSet qdf = db.QueryDefs(\"AddHospital\")\nqdf.Parameters!txtHospital = Trim(Me.HospName)\nqdf.ReturnsR... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16562/"
] |
95,286 | <p>I have the following configuration, but I have not able to find any documentation on how to set a maximum backup files on date rolling style. I know that you can do this with size rolling style by using the maxSizeRollBackups.</p>
<pre><code><appender name="AppLogFileAppender" type="log4net.Appender.RollingFile... | [
{
"answer_id": 95390,
"author": "wcm",
"author_id": 2173,
"author_profile": "https://Stackoverflow.com/users/2173",
"pm_score": 2,
"selected": false,
"text": " <appender name=\"RollingFile\" type=\"log4net.Appender.RollingFileAppender\">\n <param name=\"File\" value=\"App_Data\\log\"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4191/"
] |
95,305 | <p>Most of my users have email addresses associated with their profile in <code>/etc/passwd</code>. They are always in the 5th field, which I can grab, but they appear at different places within a comma-separated list in the 5th field.</p>
<p>Can somebody give me a <strong>regex to grab just the email address</strong... | [
{
"answer_id": 95344,
"author": "UnkwnTech",
"author_id": 115,
"author_profile": "https://Stackoverflow.com/users/115",
"pm_score": -1,
"selected": false,
"text": "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3764/"
] |
95,361 | <p>I'm programming in C++ on Visual Studio 2005. My question deals with .rc files. You can manually place include directives like (#include "blah.h"), at the top of an .rc file. But that's bad news since the first time someone opens the .rc file in the resource editor, it gets overwritten. I know there is a place t... | [
{
"answer_id": 95718,
"author": "dgvid",
"author_id": 9897,
"author_profile": "https://Stackoverflow.com/users/9897",
"pm_score": 4,
"selected": true,
"text": "2 TEXTINCLUDE\nBEGIN\n \"#include \"\"windows.h\"\"\\r\\n\"\n \"#include \"\"blah.h\\r\\n\"\n \"\\0\"\n END\n"
},
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,364 | <p>I have a LINQ to SQL generated class with a readonly property:</p>
<pre><code><Column(Name:="totalLogins", Storage:="_TotalLogins", DbType:="Int", UpdateCheck:=UpdateCheck.Never)> _
Public ReadOnly Property TotalLogins() As System.Nullable(Of Integer)
Get
Return Me._TotalLogins
End Get
End Pr... | [
{
"answer_id": 96076,
"author": "chrissie1",
"author_id": 2936,
"author_profile": "https://Stackoverflow.com/users/2936",
"pm_score": 0,
"selected": false,
"text": "Make a second property that is protected or internal(?) \n\n<Column(Name:=\"totalLogins\", Storage:=\"_TotalLogins\", DbTyp... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11991/"
] |
95,378 | <p>What is a tool or technique that can be used to perform spell checks upon a whole source code base and its associated resource files?</p>
<p>The spell check should be <em>source code aware</em> meaning that it would stick to checking string literals in the code and not the code itself. Bonus points if the spell ch... | [
{
"answer_id": 96076,
"author": "chrissie1",
"author_id": 2936,
"author_profile": "https://Stackoverflow.com/users/2936",
"pm_score": 0,
"selected": false,
"text": "Make a second property that is protected or internal(?) \n\n<Column(Name:=\"totalLogins\", Storage:=\"_TotalLogins\", DbTyp... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9925/"
] |
95,419 | <p>Had a conversation with a coworker the other day about this.</p>
<p>There's the obvious using a constructor, but what are the other ways there?</p>
| [
{
"answer_id": 95448,
"author": "John Meagher",
"author_id": 3535,
"author_profile": "https://Stackoverflow.com/users/3535",
"pm_score": 2,
"selected": false,
"text": "someClass.newInstance();\n"
},
{
"answer_id": 2103107,
"author": "Thomas Lötzer",
"author_id": 3587,
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1247/"
] |
95,432 | <p>I'd like to create a hotkey to search for files <strong>under a specific folder</strong> in Windows XP; I'm using AutoHotkey to create this shortcut.</p>
<p>Problem is that I need to know a command-line statement to run in order to open the standard Windows "Find Files/Folders" dialog. I've googled for a while and ... | [
{
"answer_id": 95502,
"author": "jfs",
"author_id": 4279,
"author_profile": "https://Stackoverflow.com/users/4279",
"pm_score": 0,
"selected": false,
"text": "Win+f"
},
{
"answer_id": 95580,
"author": "Charles Roper",
"author_id": 1944,
"author_profile": "https://Stac... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1766670/"
] |
95,492 | <p>Given a date/time as an array of (year, month, day, hour, minute, second), how would you convert it to epoch time, i.e., the number of seconds since 1970-01-01 00:00:00 GMT?</p>
<p>Bonus question: If given the date/time as a string, how would you first parse it into the (y,m,d,h,m,s) array?</p>
| [
{
"answer_id": 95539,
"author": "dreeves",
"author_id": 4234,
"author_profile": "https://Stackoverflow.com/users/4234",
"pm_score": 6,
"selected": true,
"text": "use Time::Local;\ntimelocal($second,$minute,$hour,$day,$month-1,$year);\n use Time::Local;\n\nsub parsedate { \n my($s) = @_;... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4234/"
] |
95,500 | <p>While refactoring code and ridding myself of all those #defines that we're now taught to hate, I came across this beauty used to calculate the number of elements in a structure:</p>
<pre><code>#define STRUCTSIZE(s) (sizeof(s) / sizeof(*s))
</code></pre>
<p>Very useful as it is but can it be converted into an inlin... | [
{
"answer_id": 95518,
"author": "BCS",
"author_id": 1343,
"author_profile": "https://Stackoverflow.com/users/1343",
"pm_score": 1,
"selected": false,
"text": "template <typename T>\nuint32_t StructSize() // This might get inlined to a constant at compile time\n{\n return sizeof(T)/siz... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
95,510 | <p>I need my application to behave differently depending on whether Vista UAC is enabled or not. How can my application detect the state of UAC on the user's computer?</p>
| [
{
"answer_id": 95605,
"author": "Philip Rieck",
"author_id": 12643,
"author_profile": "https://Stackoverflow.com/users/12643",
"pm_score": 5,
"selected": true,
"text": "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\n EnableLUA (DWORD) 1 0"
},
{
"answer_id":... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17037/"
] |
95,525 | <p>I've just built a VS C++ 6.0 program using VS 2008. When I attempt to run or debug the application, Vista asks for permission. What is it about how the program is built that causes this? The program is being built and run from a subfolder of C:\Dev</p>
<p><a href="http://www.vistax64.com/vista-installation-setup... | [
{
"answer_id": 96033,
"author": "AlanKley",
"author_id": 8761,
"author_profile": "https://Stackoverflow.com/users/8761",
"pm_score": 1,
"selected": false,
"text": "<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v3\">\n <security>\n <requestedPrivileges>\n <requestedExecu... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8761/"
] |
95,547 | <p>Should I catch exceptions for logging purposes?</p>
<pre>
public foo(..)
{
try
{
...
} catch (Exception ex) {
Logger.Error(ex);
throw;
}
}
</pre>
<p>If I have this in place in each of my layers (DataAccess, Business and WebService) it means the exception is logged several times.</p>
<p>... | [
{
"answer_id": 95667,
"author": "MADMap",
"author_id": 17558,
"author_profile": "https://Stackoverflow.com/users/17558",
"pm_score": 0,
"selected": false,
"text": "public foo(..)\n{\n try\n {\n ...\n }\n catch (NullReferenceException ex) {\n DoSmth(e);\n }\n catch (Ar... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15771/"
] |
95,554 | <p>I want to override the JSON MIME type ("application/json") in Rails to ("text/x-json"). I tried to register the MIME type again in mime_types.rb but that didn't work. Any suggestions?</p>
<p>Thanks.</p>
| [
{
"answer_id": 95863,
"author": "Mike Tunnicliffe",
"author_id": 13956,
"author_profile": "https://Stackoverflow.com/users/13956",
"pm_score": 2,
"selected": false,
"text": "render :json => var_containing_my_json, :content_type => 'text/x-json'\n"
},
{
"answer_id": 95968,
"au... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10333/"
] |
95,578 | <ul>
<li>I have an Oracle database backup file (.dmp) that was created with <code>expdp</code>.</li>
<li>The .dmp file was an export of an entire database.</li>
<li>I need to restore 1 of the schemas from within this dump file.</li>
<li>I don't know the names of the schemas inside this dump file.</li>
<li>To use <code>... | [
{
"answer_id": 103454,
"author": "KyleLanser",
"author_id": 12923,
"author_profile": "https://Stackoverflow.com/users/12923",
"pm_score": 4,
"selected": false,
"text": "<OWNER_NAME>SOURCE_SCHEMA</OWNER_NAME> SCHEMA_LIST 'SOURCE_SCHEMA' SCHEMA_LIST 'SOURCE_SCHEMA'"
},
{
"answer_id... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95578",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12923/"
] |
95,600 | <p>The documentation indicates that the error: option function will make available: XHR instance, a status message string (in this case always error) and an optional exception object returned from the XHR instance (Book: JQuery in Action)</p>
<p>Using the following (in the $.ajax call) I was able to determine I had a ... | [
{
"answer_id": 95947,
"author": "Tomasz Tybulewicz",
"author_id": 17405,
"author_profile": "https://Stackoverflow.com/users/17405",
"pm_score": 0,
"selected": false,
"text": "var t = eval( \"(\" + request + \")\" ) ;"
},
{
"answer_id": 1682211,
"author": "davegurnell",
"a... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
95,606 | <p>In XNA, how do I load in a texture or mesh from a file without using the content pipeline?</p>
| [
{
"answer_id": 6951962,
"author": "Aranda",
"author_id": 858350,
"author_profile": "https://Stackoverflow.com/users/858350",
"pm_score": 0,
"selected": false,
"text": "Xna.Framework.Graphics.Model"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/632/"
] |
95,625 | <p>Basically, we have a rule setup to run a script when a code word is detected in the body of an incoming message. The script will append the current subject header with a word in front. For example, Before: "Test Message", After: "Dept - Test Message". Any ideas?</p>
| [
{
"answer_id": 95695,
"author": "Matt",
"author_id": 17849,
"author_profile": "https://Stackoverflow.com/users/17849",
"pm_score": 0,
"selected": false,
"text": "mailItem.Subject = \"Dept - \" & mailItem.Subject\nmailItem.Save \n"
},
{
"answer_id": 95746,
"author": "Matt",
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,631 | <p>Suppose I want to open a file in an existing Emacs session using <code>su</code> or <code>sudo</code>, without dropping down to a shell and doing <code>sudoedit</code> or <code>sudo emacs</code>. One way to do this is</p>
<pre><code>C-x C-f /sudo::/path/to/file
</code></pre>
<p>but this requires an expensive <a hr... | [
{
"answer_id": 29255604,
"author": "anquegi",
"author_id": 1900722,
"author_profile": "https://Stackoverflow.com/users/1900722",
"pm_score": 2,
"selected": false,
"text": "(defadvice ido-find-file (after find-file-sudo activate)\n \"Find file as root if necessary.\"\n (unless (and buff... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1412/"
] |
95,635 | <p>What does a JIT compiler specifically do as opposed to a non-JIT compiler? Can someone give a succinct and easy to understand description?</p>
| [
{
"answer_id": 35664946,
"author": "Anands23",
"author_id": 4643764,
"author_profile": "https://Stackoverflow.com/users/4643764",
"pm_score": 3,
"selected": false,
"text": "while(i<10){\n // ...\n a=a+i;\n // ...\n }\n"
},
{
"answer_id": 52523015,
"author": "Willem v... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6264/"
] |
95,642 | <p>Long story short, I have a substantial Python application that, among other things, does outcalls to "losetup", "mount", etc. on Linux. Essentially consuming system resources that must be released when complete.</p>
<p>If my application crashes, I want to ensure these system resources are properly released.</p>
<... | [
{
"answer_id": 98085,
"author": "nosklo",
"author_id": 17160,
"author_profile": "https://Stackoverflow.com/users/17160",
"pm_score": 2,
"selected": false,
"text": "try:\n main()\nfinally:\n cleanup()\n"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9188/"
] |
95,683 | <p>I have a .NET 3.5 (target framework) web application. I have some code that looks like this:</p>
<pre><code>public string LogPath { get; private set; }
public string ErrorMsg { get; private set; }
</code></pre>
<p>It's giving me this compilation error for these lines:</p>
<pre><code>"must declare a body because ... | [
{
"answer_id": 95716,
"author": "Nikki9696",
"author_id": 456669,
"author_profile": "https://Stackoverflow.com/users/456669",
"pm_score": -1,
"selected": false,
"text": "public abstract string LogPath { get; private set; }\npublic abstract string ErrorMsg { get; private set; }\n"
},
... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13348/"
] |
95,700 | <p>I am looking to build a multi-threaded text import facility (generally CSV into SQL Server 2005) and would like to do this in VB.NET but I am not against C#. I have VS 2008 trial and just dont know where to begin. Can anyone point me in the direction of where I can look at and play with the source of a <em>VERY</... | [
{
"answer_id": 95721,
"author": "nathaniel",
"author_id": 11947,
"author_profile": "https://Stackoverflow.com/users/11947",
"pm_score": 2,
"selected": false,
"text": "Dim t As Thread\nt = New Thread(AddressOf Me.BackgroundProcess)\nt.Start()\n\nPrivate Sub BackgroundProcess()\n Dim i A... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14728/"
] |
95,715 | <p>What causes Firefox to follow a POST request with a GET request when submitting a form via the POST method? The GET method is sent to the same url as the POST method but without the request parameters.</p>
<p>If you change the form method to GET, it will result in two identical GET requests.</p>
| [
{
"answer_id": 95762,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "<img src=\"\"/>"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,727 | <p>Let's say we have <code>0.33</code>, we need to output <code>1/3</code>. <br />
If we have <code>0.4</code>, we need to output <code>2/5</code>.</p>
<p>The idea is to make it human-readable to make the user understand "<strong>x parts out of y</strong>" as a better way of understanding data.</p>
<p>I know that per... | [
{
"answer_id": 95778,
"author": "nlucaroni",
"author_id": 157,
"author_profile": "https://Stackoverflow.com/users/157",
"pm_score": 4,
"selected": false,
"text": "3.141592 * 1000000 = 3141592\n 3 + (141592 / 1000000)\n 3 + (17699 / 125000)\n"
},
{
"answer_id": 95785,
"author"... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4869/"
] |
95,731 | <p>Ran into this problem today, posting in case someone else has the same issue.</p>
<pre><code>var execBtn = document.createElement('input');
execBtn.setAttribute("type", "button");
execBtn.setAttribute("id", "execBtn");
execBtn.setAttribute("value", "Execute");
execBtn.setAttribute("onclick", "runCommand();");
</cod... | [
{
"answer_id": 96018,
"author": "kch",
"author_id": 13989,
"author_profile": "https://Stackoverflow.com/users/13989",
"pm_score": 1,
"selected": false,
"text": "<div class=''> div.className <label for='...'> label.htmlFor setAttribute div.setAttribute('class', 'foo') div.setAttribute('cl... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95731",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13289/"
] |
95,760 | <p>In order to distribute a function I've written that depends on other functions I've written that have their own dependencies and so on without distributing every m-file I have ever written, I need to figure out what the full list of dependencies is for a given m-file. Is there a built-in/freely downloadable way to d... | [
{
"answer_id": 97072,
"author": "Azim J",
"author_id": 4612,
"author_profile": "https://Stackoverflow.com/users/4612",
"pm_score": 6,
"selected": true,
"text": ">> profile on % turn profiling on\n>> foo; % entry point to your matlab function or script\n>> profile off % turn pr... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17231/"
] |
95,767 | <p>We'd like a trace in our application logs of these exceptions - by default Java just outputs them to the console.</p>
| [
{
"answer_id": 97176,
"author": "shemnon",
"author_id": 8020,
"author_profile": "https://Stackoverflow.com/users/8020",
"pm_score": 4,
"selected": true,
"text": "class AWTExceptionHandler {\n\n public void handle(Throwable t) {\n try {\n // insert your exception handling code he... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18117/"
] |
95,820 | <p>Let's say I have an array, and I know I'm going to be doing a lot of "Does the array contain X?" checks. The efficient way to do this is to turn that array into a hash, where the keys are the array's elements, and then you can just say <pre>if($hash{X}) { ... }</pre></p>
<p>Is there an easy way to do this array-to-... | [
{
"answer_id": 95826,
"author": "raldi",
"author_id": 7598,
"author_profile": "https://Stackoverflow.com/users/7598",
"pm_score": 8,
"selected": true,
"text": "%hash = map { $_ => 1 } @array;\n"
},
{
"answer_id": 95888,
"author": "skiphoppy",
"author_id": 18103,
"auth... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
95,821 | <p>I have been playing with Haml recently and really like the way the resulting code looks to me...the developer. I'm also not too worried about a designer being able to consume or change it...we're a small team. </p>
<p>That said, beginning work on a project we believe will generate quite a bit of traffic (who doesn'... | [
{
"answer_id": 98591,
"author": "outcassed",
"author_id": 18424,
"author_profile": "https://Stackoverflow.com/users/18424",
"pm_score": 6,
"selected": false,
"text": "Haml::Template::options[:ugly] = true"
}
] | 2008/09/18 | [
"https://Stackoverflow.com/questions/95821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,824 | <p>I'm looking for a way to do a substring replace on a string in LaTeX. What I'd like to do is build a command that I can call like this:</p>
<pre><code>\replace{File,New}
</code></pre>
<p>and that would generate something like</p>
<pre><code>\textbf{File}$\rightarrow$\textbf{New}
</code></pre>
<p>This is a simpl... | [
{
"answer_id": 95959,
"author": "Brent.Longborough",
"author_id": 9634,
"author_profile": "https://Stackoverflow.com/users/9634",
"pm_score": -1,
"selected": false,
"text": "\\newcommand{\\replace}[2]{\\textbf{#1}$\\rightarrow$\\textbf{#2}} \n\\replace{File}{New} \n"
},
{
"answ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1322/"
] |
95,834 | <p>I have a Windows Workflow application that uses classes I've written for COM automation. I'm opening Word and Excel from my classes using COM.</p>
<p>I'm currently implementing IDisposable in my COM helper and using Marshal.ReleaseComObject(). However, if my Workflow fails, the Dispose() method isn't being called a... | [
{
"answer_id": 96672,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 2,
"selected": true,
"text": " class Program\n {\n static void Main(string[] args)\n {\n using(WorkflowRuntime workflowRuntime ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7565/"
] |
95,842 | <p>The name of a temporary table such as #t1 can be determined using </p>
<pre><code>select @TableName = [Name]
from tempdb.sys.tables
where [Object_ID] = object_id('tempDB.dbo.#t1')
</code></pre>
<p>How can I find the name of a table valued variable, i.e. one declared by</p>
<pre><code>declare @t2 as table (a int)... | [
{
"answer_id": 215844,
"author": "6eorge Jetson",
"author_id": 23422,
"author_profile": "https://Stackoverflow.com/users/23422",
"pm_score": -1,
"selected": false,
"text": "CREATE FUNCTION [dbo].[udtShredXmlInputBondIdList] \n( \n-- Add the parameters for the function here\n@xmlInputBon... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18116/"
] |
95,850 | <p>I'm looking for the total <a href="http://en.wikipedia.org/wiki/Commit_charge" rel="nofollow noreferrer">commit charge</a>.</p>
| [
{
"answer_id": 96094,
"author": "JustinD",
"author_id": 12063,
"author_profile": "https://Stackoverflow.com/users/12063",
"pm_score": 1,
"selected": false,
"text": "strComputer = \".\"\n\nSet objSWbemServices = GetObject(\"winmgmts:\\\\\" & strComputer)\nSet colSWbemObjectSet = _\n objSW... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
95,858 | <p>I have a web application that is dynamically loading PDF files for viewing in the browser.
Currently, it uses "innerHTML" to replace a div with the PDF Object. This works.</p>
<p>But, is there a better way to get the ID of the element and set the "src" or "data" parameter for the Object / Embed and have it instan... | [
{
"answer_id": 96296,
"author": "Lark",
"author_id": 8804,
"author_profile": "https://Stackoverflow.com/users/8804",
"pm_score": 1,
"selected": false,
"text": "$(\"objPDF\").attr({\n data: \"dir/to/newPDF\"\n});\n function pdfLoad(dirToPDF) {\n $(\"objPDF\").attr({\n data: d... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,866 | <p>I have a simple table comments <code>(id INT, revision INT, comment VARCHAR(140))</code> with some content like this:</p>
<pre><code>1|1|hallo1|
1|2|hallo2|
1|3|hallo3|
2|1|hallo1|
2|2|hallo2|
</code></pre>
<p>I'm searching for an SQL statement which will return each comment with the highest revision:</p>
<pre><... | [
{
"answer_id": 95914,
"author": "nathaniel",
"author_id": 11947,
"author_profile": "https://Stackoverflow.com/users/11947",
"pm_score": 3,
"selected": false,
"text": "SELECT c.* \n FROM comments c\n INNER JOIN (\n SELECT id,max(revision) AS maxrev \n FROM comments \n ... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
95,875 | <p>How do I see if a certain object has been loaded, and if not, how can it be loaded, like the following?</p>
<pre><code>if (!isObjectLoaded(someVar)) {
someVar= loadObject();
}
</code></pre>
| [
{
"answer_id": 95898,
"author": "Loren Segal",
"author_id": 6436,
"author_profile": "https://Stackoverflow.com/users/6436",
"pm_score": 1,
"selected": false,
"text": "typeof(obj)"
},
{
"answer_id": 95901,
"author": "Tom Ritter",
"author_id": 8435,
"author_profile": "h... | 2008/09/18 | [
"https://Stackoverflow.com/questions/95875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5261/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.