qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
400,849 | <p>Say I have two script controls and one control has the other as a child control:</p>
<pre><code>ParentControl : ScriptControl
{
ChildControl childControl;
}
</code></pre>
<p>The script for the Child Control:</p>
<pre><code>ChildControl = function(element)
{
ChildControl.initializeBase(this, [element]);
}
C... | [
{
"answer_id": 2834504,
"author": "Wallace Breza",
"author_id": 233845,
"author_profile": "https://Stackoverflow.com/users/233845",
"pm_score": 0,
"selected": false,
"text": "this._childControl = $find(this._childControlID);\nthis._childControl.CallMethod();\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/400849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21691/"
] |
400,861 | <p>I have to write a program that read from a file that contains the folowing:</p>
<pre><code>toto, M, 50
fifi, F, 60
soso, F, 70
lolo, M, 60
fifi, F, 60
</code></pre>
<hr />
<p>And then find the following:</p>
<p>Which mark is most repeated, and how many times is it repeated?</p>
<ul>
<li>average all students</li>
<li... | [
{
"answer_id": 400871,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 3,
"selected": true,
"text": "SW.close()"
},
{
"answer_id": 400899,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https:... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
400,872 | <p>I'm using the following code on Windows Vista Ultimate SP1 to query our active directory server to check the user name and password of a user on a domain.</p>
<pre><code>public Object IsAuthenticated()
{
String domainAndUsername = strDomain + "\\" + strUser;
DirectoryEntry entry = new DirectoryEntry(_path, ... | [
{
"answer_id": 405254,
"author": "Steve Evans",
"author_id": 46420,
"author_profile": "https://Stackoverflow.com/users/46420",
"pm_score": 7,
"selected": true,
"text": "PrincipalContext adContext = new PrincipalContext(ContextType.Domain);\n\nusing (adContext)\n{\n return adContext.V... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33082/"
] |
400,895 | <p>A simple expression like</p>
<pre><code>(x) - y
</code></pre>
<p>is interpreted differently depending on whether <code>x</code> is a type name or not. If <code>x</code> is not a type name, <code>(x) - y</code> just subtracts <code>y</code> from <code>x</code>. But if <code>x</code> is a type name, <code>(x) - y</c... | [
{
"answer_id": 400934,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 2,
"selected": false,
"text": "Double y = new Double(0.1);\nSystem.out.println((Double)-y);\n"
},
{
"answer_id": 401035,
"author": "Tho... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19725/"
] |
400,900 | <p>I'm trying to deserialize an array of an type unknown at compile time. At runtime I've discovered the type, but I don't know how to create an instance.</p>
<p>Something like:</p>
<pre><code>Object o = Activator.CreateInstance(type);
</code></pre>
<p>which doesn't work because there is no parameterless constructor... | [
{
"answer_id": 400912,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 4,
"selected": false,
"text": "object o = Array.CreateInstance(type, 10);\n"
},
{
"answer_id": 34487680,
"author": "Arghya C",
"aut... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16260/"
] |
400,909 | <p>I need to be able to check what the "current" value of a variable is inside a redeclaration of that same variable in a different xslt that includes the other.</p>
<p>main.xslt:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transfo... | [
{
"answer_id": 402383,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profile": "https://Stackoverflow.com/users/36305",
"pm_score": 3,
"selected": true,
"text": "<xsl:stylesheet version=\"1.0\"\n xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<!-- ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34211/"
] |
400,911 | <p>I'm working on a web application which uses Lucene.net(version 2.0.0.4) for store search.
Though my web application user can search for stores in the US which are located within 50 miles from a given location.
I'm using a third party API to find all the cities within a radius.For a city say Edison,NJ, it gives me ar... | [
{
"answer_id": 490855,
"author": "itsadok",
"author_id": 7581,
"author_profile": "https://Stackoverflow.com/users/7581",
"pm_score": 0,
"selected": false,
"text": "nearyby_city"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/400911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41625/"
] |
400,916 | <p>Is there any way to check if a particular plugin is available?</p>
<p>Imagine that you are developing a plugin that depends on another plugin being loaded.</p>
<p>For example I want the jQuery Validation plugin to use the dateJS library to check if a given date is valid. What would be the best way to detect, in th... | [
{
"answer_id": 400940,
"author": "ceejayoz",
"author_id": 1902010,
"author_profile": "https://Stackoverflow.com/users/1902010",
"pm_score": -1,
"selected": false,
"text": "var plugin_exists = true;\n\ntry {\n // some code that requires that plugin here\n} catch(err) {\n plugin_exists =... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1842864/"
] |
400,926 | <p>I have a web application that pulls a datatable and displays results. Due to the nature of the business all of the business rules are incorporated in dlls that the web app must pull from. Because there are multiple site and we don't want to include the core dll's in all of the many apps that are deployed we consolid... | [
{
"answer_id": 400967,
"author": "jro",
"author_id": 49888,
"author_profile": "https://Stackoverflow.com/users/49888",
"pm_score": 1,
"selected": false,
"text": "//pseudo-code\n\nclass MyWebMethods {\n\n private static DataTable localDataTable;\n static MyWebMethods() {\n localDataT... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35585/"
] |
400,935 | <p>I have several web pages on several different sites that I want to mirror completely. This means that I will need images, CSS, etc, and the links need to be converted. This functionality would be similar to using Firefox to "Save Page As" and selecting "Web Page, complete". I'd like to name the files and correspo... | [
{
"answer_id": 11514515,
"author": "WisdomFusion",
"author_id": 191071,
"author_profile": "https://Stackoverflow.com/users/191071",
"pm_score": 2,
"selected": false,
"text": "wget -r -p -np -k URL\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/400935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
400,941 | <p>I have written a VBA app that opens a folder in outlook and then iterates through the messages. I need to write the message bodies (with some tweaking) to a single flat file. My code is as follows...</p>
<pre><code>Private Sub btnGo_Click()
Dim objOutlook As New Outlook.Application
Dim objNameSpace As Out... | [
{
"answer_id": 400999,
"author": "Eric Ness",
"author_id": 18891,
"author_profile": "https://Stackoverflow.com/users/18891",
"pm_score": 2,
"selected": false,
"text": "Private Sub ProcessMailItem(objMail As MailItem)\n\n Dim fso As New FileSystemObject\n Dim ts As TextStream\n\n ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2894/"
] |
400,945 | <p>First off, let’s agree that namespace should match folder structure and that each language artefact should be in its own file. </p>
<p>(see <a href="https://stackoverflow.com/questions/4664/should-the-folders-in-a-solution-match-the-namespace">Should the folders in a solution match the namespace?</a> ). </p>
<p>... | [
{
"answer_id": 401010,
"author": "Ricardo Villamil",
"author_id": 19314,
"author_profile": "https://Stackoverflow.com/users/19314",
"pm_score": 3,
"selected": false,
"text": "- DataHelpers\\\n---Factory\\\n---DataAccess\\\n---...\n- Components\\\n--- EmailProcessor\\\n--- ErrorLogger\\\n... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50241/"
] |
400,951 | <p>Almost all languages have a <a href="https://en.wikipedia.org/wiki/Foreach_loop" rel="noreferrer"><code>foreach</code> loop</a> or something similar. Does C have one? Can you post some example code?</p>
| [
{
"answer_id": 400958,
"author": "Adam Peck",
"author_id": 26658,
"author_profile": "https://Stackoverflow.com/users/26658",
"pm_score": 3,
"selected": false,
"text": "char* nullTerm;\nnullTerm = \"Loop through my characters\";\n\nfor(;nullTerm != NULL;nullTerm++)\n{\n //nullTerm will... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50216/"
] |
400,965 | <p>I would like to customize both the background and the border color of a grouped-style UITableView.</p>
<p>I was able to customize the background color by using the following:</p>
<pre><code>tableView.contentView.backgroundColor = [UIColor greenColor];
</code></pre>
<p>But the border color is still something I don... | [
{
"answer_id": 401271,
"author": "Mike Akers",
"author_id": 17188,
"author_profile": "https://Stackoverflow.com/users/17188",
"pm_score": 8,
"selected": true,
"text": "UITableViewCell"
},
{
"answer_id": 1031593,
"author": "Vimal Jain",
"author_id": 309763,
"author_pro... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
400,968 | <p>I want all buttons to perform an action before and after their normal onclick event. So I came up with the "brilliant" idea of looping through all those elements and creating a wrapper function.</p>
<p>This appeared to work pretty well when I tested it, but when I integrated it into our app, it fell apart. I trac... | [
{
"answer_id": 400985,
"author": "Paul Dixon",
"author_id": 6521,
"author_profile": "https://Stackoverflow.com/users/6521",
"pm_score": 2,
"selected": false,
"text": "originalEventHandler.call(btn);"
},
{
"answer_id": 401669,
"author": "some",
"author_id": 36866,
"aut... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400968",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29043/"
] |
400,976 | <p>We have a SQL server database which, according to Microsoft SQL Server Management Studio has just 119Mb out of 6436Mb available.</p>
<p>Yet the command:
EXEC sp_msforeachtable 'sp_spaceused ''?'''<br>
reveals a total reserved space that is less than 2Gb</p>
<p>How can we find out where the rest of the space i... | [
{
"answer_id": 401062,
"author": "nick_alot",
"author_id": 46100,
"author_profile": "https://Stackoverflow.com/users/46100",
"pm_score": 2,
"selected": false,
"text": "CREATE TABLE #temp(\n rec_id int IDENTITY (1, 1),\n table_name varchar(128),\n nbr_of_rows int,\n data... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34685/"
] |
400,989 | <p>Here is my issue. I have an array containing the name of cities that I need to lookup the weather for. So I'm looping through each city and performing an AJAX request to retrieve the weather.</p>
<pre><code>var LOCATION = 'http://www.google.com/ig/api?weather=';
$( document ).ready( function() {
for( var cityI... | [
{
"answer_id": 401022,
"author": "nezroy",
"author_id": 49968,
"author_profile": "https://Stackoverflow.com/users/49968",
"pm_score": 1,
"selected": false,
"text": "function city_success(xml, name) {\n // your success handling code here\n}\n"
},
{
"answer_id": 401042,
"autho... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25371/"
] |
400,991 | <p>In Silverlight 2 I have the following class declaration for a control:</p>
<pre><code>public partial class ClassX : UserControl
</code></pre>
<p>I wish to replace UserControl with ClassXBase which derives from UserControl but I'm getting the reasonable error "Partial declarations of 'ClassX' must not specify diffe... | [
{
"answer_id": 402657,
"author": "Shawn Wildermuth",
"author_id": 40125,
"author_profile": "https://Stackoverflow.com/users/40125",
"pm_score": 4,
"selected": false,
"text": "public abstract class MyBaseUserControl : UserControl\n{\n // ...\n} \n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/400991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
400,993 | <p>I've been extensively using smart pointers (boost::shared_ptr to be exact) in my projects for the last two years. I understand and appreciate their benefits and I generally like them a lot. But the more I use them, the more I miss the deterministic behavior of C++ with regarding to memory management and RAII that I ... | [
{
"answer_id": 401019,
"author": "Greg Rogers",
"author_id": 5963,
"author_profile": "https://Stackoverflow.com/users/5963",
"pm_score": 1,
"selected": false,
"text": "vector<Subsystem>"
},
{
"answer_id": 401092,
"author": "Brian",
"author_id": 16457,
"author_profile"... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50251/"
] |
400,994 | <p>What is the correct way to separate between <kbd>F1</kbd> and i.e. <kbd>CTRL</kbd>+<kbd>F1</kbd> respective <kbd>SHIFT</kbd>-<kbd>CTRL</kbd>+<kbd>F1</kbd> within an KeyListener registered behind i.e. a JButton?</p>
<pre><code>public void keyPressed(KeyEvent event) {
int key = event.getKeyCode();
logger.deb... | [
{
"answer_id": 401205,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 1,
"selected": false,
"text": "KeyEvent"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/400994",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33429/"
] |
400,997 | <p>Trying to redirect a URL on one webserver on my LAN to another webserver on my LAN. I assumed that all I needed was a .htaccess file in my /var/www directory whose contents are the following 3 lines only:</p>
<p>Options +FollowSymLinks</p>
<p>RewriteEngine on</p>
<p>RewriteMatch newsite\.level2\.level1\.com <a hr... | [
{
"answer_id": 402271,
"author": "genehack",
"author_id": 39933,
"author_profile": "https://Stackoverflow.com/users/39933",
"pm_score": 1,
"selected": false,
"text": "<VirtualHost>"
},
{
"answer_id": 404382,
"author": "Community",
"author_id": -1,
"author_profile": "h... | 2008/12/30 | [
"https://Stackoverflow.com/questions/400997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,024 | <p>Short of inserting a try/catch block in each worker thread method, is there a way to deal with unhandled, non-ui thread, exceptions in Windows Forms?</p>
<p><code>Thread.GetDomain().UnhandledException</code> works great for catching the error, but by then it's too late to do anything about it (besides log it). Afte... | [
{
"answer_id": 401394,
"author": "Craigger",
"author_id": 18924,
"author_profile": "https://Stackoverflow.com/users/18924",
"pm_score": 0,
"selected": false,
"text": "try\n{\n // run this code\n\n}\ncatch (Exception ex)\n{\n // an exception happened in the above try statement inside MY... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20700/"
] |
401,025 | <p>Assume I have a form</p>
<pre><code>class SampleClass(forms.Form):
name = forms.CharField(max_length=30)
age = forms.IntegerField()
django_hacker = forms.BooleanField(required=False)
</code></pre>
<p>Is there a way for me to define css classes on each field such that I can then use jQuery based on clas... | [
{
"answer_id": 401057,
"author": "ashchristopher",
"author_id": 22306,
"author_profile": "https://Stackoverflow.com/users/22306",
"pm_score": 6,
"selected": false,
"text": "def __init__(self, *args, **kwargs):\n super(SampleClass, self).__init__(*args, **kwargs)\n self.fields['name... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401025",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22306/"
] |
401,040 | <p>I have a sublayer on a layer-backed view. The sublayer's contents are set to an Image Ref and is a 25x25 rect.<br>
I perform a hit test on the super layer when the touchesBegan and touchesMoved methods are invoked. The hit test method does, in fact, return the sublayer if it is touched, BUT only if the bottom half ... | [
{
"answer_id": 412018,
"author": "Corey Floyd",
"author_id": 48311,
"author_profile": "https://Stackoverflow.com/users/48311",
"pm_score": 1,
"selected": false,
"text": "#import \"myView.h\"\n#import <QuartzCore/QuartzCore.h>\n\n\n@implementation myView\n\n\n- (void)touchesBegan:(NSSet *... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48311/"
] |
401,051 | <p>I'm thinking about making repeated calls (spinning) to QueryPerformanceCounter in two threads that will be active at the same time. I'm not sure if this is really an issue as I've not seen anything written about it but is QueryPerformanceCounter thread safe?</p>
<p>Thanks</p>
| [
{
"answer_id": 412018,
"author": "Corey Floyd",
"author_id": 48311,
"author_profile": "https://Stackoverflow.com/users/48311",
"pm_score": 1,
"selected": false,
"text": "#import \"myView.h\"\n#import <QuartzCore/QuartzCore.h>\n\n\n@implementation myView\n\n\n- (void)touchesBegan:(NSSet *... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,056 | <p>Preface: I have jQuery and jQuery UI included on a page.</p>
<p>I have this function defined:</p>
<pre><code> function swap(sel) {
if (1 == 1) {
$(sel).hide('drop',{direction:'left'});
}
}
</code></pre>
<p>How do I fix the (1 == 1) part to test to see if the element is already hi... | [
{
"answer_id": 401063,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 2,
"selected": false,
"text": "function swap(sel) {\n $(sel).toggle();\n} \n"
},
{
"answer_id": 401064,
"author": "Andrew Hare",
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
401,060 | <p>Could someone point me to a list of controls that implement <code>IPostBackDataHandler</code>?</p>
<p>I want to know what controls implement this interface and what properties the controls will set during the <code>Postback</code>.</p>
<p>For example:</p>
<blockquote>
<p>Textbox : Text</p>
<p>DropDownList ... | [
{
"answer_id": 401193,
"author": "TheZenker",
"author_id": 10552,
"author_profile": "https://Stackoverflow.com/users/10552",
"pm_score": 1,
"selected": false,
"text": "IPostBackDataHandler"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8797/"
] |
401,075 | <p>I've come up with the call that gets the user's UI font preference (as
opposed to Borland's hard-coded choice of "MS Sans Serif").</p>
<p>Let's pretend the user's font preference is:</p>
<pre><code>Segoe Print, 15pt
</code></pre>
<p>I set the font of all items, on all forms, in all applications to:</p>
<pre><co... | [
{
"answer_id": 448574,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "procedure SystemFont(Font: TFont);\nvar\n LogFont: TLogFont;\nbegin\n if SystemParametersInfo(SPI_GETICONTITLELOGFONT, SizeO... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401075",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
401,079 | <p>I have a stored procedure in Oracle that returns a select statement cursor reference. I want to be able to pass column names and sort direction (example: 'CompanyName DESC') and be able to sort the results, or pass a filter such as 'CompanyID > 400' and be able to apply that to the select statement. what is the... | [
{
"answer_id": 401225,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 3,
"selected": true,
"text": "OPEN-FOR"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893/"
] |
401,084 | <p>I very often open a console window while doing my development. Usually <kbd>Win</kbd>+<kbd>R</kbd> -> cmd -> enter. However, Windows also lets you add a shortcut key to any shortcut ... but when I try to add <kbd>Win</kbd> + <kbd>C</kbd> to make the shortcut for my favorite-sized/shaped/buffered console appear, it... | [
{
"answer_id": 401159,
"author": "BMK Media",
"author_id": 50271,
"author_profile": "https://Stackoverflow.com/users/50271",
"pm_score": 1,
"selected": false,
"text": "___________\nDESCRIPTION:\n\nKana SendKey is a command line program which can be used\nto send a system wide hotkey.\n\n... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18097/"
] |
401,090 | <p>I've always been one to err on the side of preventing exception conditions by never taking an action unless I am certain that there will be no errors. I learned to program in C and this was the only way to really do things.</p>
<p>Working with C# I frequently see more reactive programing - try to do something and ... | [
{
"answer_id": 401291,
"author": "JasonTrue",
"author_id": 13433,
"author_profile": "https://Stackoverflow.com/users/13433",
"pm_score": 3,
"selected": false,
"text": "try\n{\n // do something that could throw\n // ...\n}\ncatch {} //swallow the exception\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40284/"
] |
401,114 | <p>Right now I have a JSP page that allows to sort some items, when is ready and a link is clicked a JavaScript function converts all the info into XML (text in a variable), after this i need to send this XML to the JSP page again, i tried putting the info in a hidden input and submitting the form, sending with $.post ... | [
{
"answer_id": 401595,
"author": "inkredibl",
"author_id": 22129,
"author_profile": "https://Stackoverflow.com/users/22129",
"pm_score": 3,
"selected": true,
"text": "<form method=\"POST\" id=\"form\">\n <input type=\"hidden\" id=\"data\" />\n</form>\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43304/"
] |
401,118 | <p>I'm using Django to write a blog app, and I'm trying to implement a hierarchical category structure. Each category has a "parent" ForeignKey pointing back to the same Category model. I want to allow admins to add categories, and I want the interface to allow them to select a category's parent category. However, I... | [
{
"answer_id": 401256,
"author": "David",
"author_id": 49460,
"author_profile": "https://Stackoverflow.com/users/49460",
"pm_score": 1,
"selected": true,
"text": "parents = Category.objects.filter(parent_id=0)\n"
},
{
"answer_id": 402530,
"author": "Gnudiff",
"author_id":... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50272/"
] |
401,135 | <p>Is there a difference between "GO" and "BEGIN...END" in SQL Scripts/Stored Procedures? More specifically, does BEGIN...END specify batches just as GO does?</p>
| [
{
"answer_id": 401169,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 2,
"selected": false,
"text": "IF x\nBEGIN \n -- do y\n -- do w\nEND\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47645/"
] |
401,174 | <p>Here's a simple syntax question (I hope), I know how to constrain one generic type using the where clause, but how to constrain two generic types?</p>
<p>Maybe the easiest way is to write down what my best guess as to the syntax was.</p>
<pre><code>public class GenericDaoGetByIdTests<TDao, TComponent> : Base... | [
{
"answer_id": 401190,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "https://Stackoverflow.com/users/49942",
"pm_score": 6,
"selected": true,
"text": "public interface IParentNodeT<TChild, TSelf>\n where TChild : IChildNodeT<TSelf, TChild>, INodeT<TChild>\n where TSelf... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
401,178 | <p>I want to split up the jQuery .js file into two, but I have noticed some of the features arent working when I split it up. Is it because I have two external scripts that start with:</p>
<p>$(document).ready(function(){</p>
<p>Is that not possible?</p>
| [
{
"answer_id": 401185,
"author": "Ryan Morlok",
"author_id": 1613178,
"author_profile": "https://Stackoverflow.com/users/1613178",
"pm_score": 3,
"selected": true,
"text": "$(document).ready(...)."
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28454/"
] |
401,183 | <p>I want to create a header file for C, C++ which is specific to help in randomization.</p>
| [
{
"answer_id": 401216,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "https://Stackoverflow.com/users/49942",
"pm_score": 1,
"selected": false,
"text": "#include <stdlib.h> /* required for rand() and srand() */\n"
},
{
"answer_id": 401222,
"author": "luiscubal",
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20730/"
] |
401,184 | <p>What's the best method for handling a situation where you have an ASP.Net Dropdownlist that is used to link to another URL</p>
<p><em>edited for clarity</em></p>
<p>Here's the basic scenario:</p>
<p>Dropdownlist with 5 cities bound to it</p>
<p>Selecting one of the cities should send me to a URL based on the cit... | [
{
"answer_id": 401263,
"author": "Robert C. Barth",
"author_id": 9209,
"author_profile": "https://Stackoverflow.com/users/9209",
"pm_score": 2,
"selected": false,
"text": "window.navigate(this.options[this.selectedIndex].value);\n"
},
{
"answer_id": 401274,
"author": "M4N",
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32806/"
] |
401,188 | <p>How did you get rid of these annoying ASP.NET errors:
Could not load file or assembly 'App_Web_z9w33txs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'</p>
<p>This has only happened to me once before. It seems like it is related to ASP.NET caching some assembly dynamically, but not recompiling it for some r... | [
{
"answer_id": 401268,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 2,
"selected": false,
"text": "rd \"%TEMP%\\Temporary ASP.NET Files\\.\" /s /q\n"
},
{
"answer_id": 401272,
"author": "BobbyShaftoe",
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
401,191 | <p>My design exposes two kinds of resources:</p>
<ol>
<li>Images</li>
<li>Tags</li>
</ol>
<p>I would like clients to be able to request random images by their tag(s). For example: Give me random images that are tagged with "New York" and "Winter". What would a RESTful design look like in this case?</p>
| [
{
"answer_id": 401229,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "http://www.example.com/MyStuff/image/"
},
{
"answer_id": 401248,
"author": "Kenan Banks",
"author_id": 4308... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731/"
] |
401,215 | <p>I'm working on a Python library that interfaces with a web service API. Like many web services I've encountered, this one requests limiting the rate of requests. I would like to provide an optional parameter, <code>limit</code>, to the class instantiation that, if provided, will hold outgoing requests until the numb... | [
{
"answer_id": 401390,
"author": "Brian",
"author_id": 18192,
"author_profile": "https://Stackoverflow.com/users/18192",
"pm_score": 2,
"selected": false,
"text": "delay - Now + lastcalltime"
},
{
"answer_id": 401826,
"author": "Community",
"author_id": -1,
"author_pr... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38140/"
] |
401,231 | <p>I have a set of data protected by 16bit checksums that I need to correct. The checksum locations are known, the exact areas they are calculated on and the exact algorithm used to calculate them are not. 16bit, LSB first. I suspect it's some sort of 16bit CRC, but I have not been able to find the code that's actua... | [
{
"answer_id": 401607,
"author": "Judge Maygarden",
"author_id": 1491,
"author_profile": "https://Stackoverflow.com/users/1491",
"pm_score": 3,
"selected": true,
"text": "unsigned short\ncrc16_update(unsigned short crc, unsigned char nextByte)\n{\n crc ^= nextByte;\n\n for (int i =... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50259/"
] |
401,232 | <p>Why are static indexers disallowed in C#? I see no reason why they should not be allowed and furthermore they could be very useful.</p>
<p>For example:</p>
<pre><code>public static class ConfigurationManager
{
public object this[string name]
{
get => ConfigurationManager.getProperty... | [
{
"answer_id": 401255,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "https://Stackoverflow.com/users/49942",
"pm_score": 3,
"selected": false,
"text": "class ConfigurationManager\n{\n //private constructor\n ConfigurationManager() {}\n //singleton instance\n public stati... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12243/"
] |
401,234 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/1160/use-svn-revision-to-label-build-in-ccnet">Use SVN Revision to label build in CCNET</a> </p>
</blockquote>
<p>I'm working through the process of installing CruiseControl.net and converting an Msbuild script... | [
{
"answer_id": 401253,
"author": "rmeador",
"author_id": 10861,
"author_profile": "https://Stackoverflow.com/users/10861",
"pm_score": 0,
"selected": false,
"text": "make"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1752/"
] |
401,240 | <p>I'm working on a Cocoa Mac app where I need to display a window/view on a secondary monitor, full-screen.</p>
<p>I know how to create a window that could be dragged onto the secondary monitor, but I was wanting to programmatically create the window and make it full screen on the external monitor.</p>
| [
{
"answer_id": 401409,
"author": "sbooth",
"author_id": 31520,
"author_profile": "https://Stackoverflow.com/users/31520",
"pm_score": 5,
"selected": true,
"text": "[NSScreen screens]"
},
{
"answer_id": 401430,
"author": "e.James",
"author_id": 33686,
"author_profile":... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401240",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32854/"
] |
401,241 | <p>I am new to Ruby on Rails, I have completed the <a href="http://guides.rubyonrails.org/getting_started_with_rails.html" rel="noreferrer">Blog Tutorial</a>.</p>
<p>I am now trying to add an additional action to the controller, called 'start'.</p>
<pre><code>def start
end
</code></pre>
<p>I have added a view page "... | [
{
"answer_id": 401335,
"author": "zenazn",
"author_id": 46848,
"author_profile": "https://Stackoverflow.com/users/46848",
"pm_score": 6,
"selected": true,
"text": "map.resources :posts"
},
{
"answer_id": 401340,
"author": "David",
"author_id": 49460,
"author_profile":... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50262/"
] |
401,277 | <p>In Django, I've got loggers all over the place, currently with hard-coded names.</p>
<p>For module-level logging (i.e., in a module of view functions) I have the urge to do this.</p>
<pre><code>log = logging.getLogger(__name__)
</code></pre>
<p>For class-level logging (i.e., in a class <code>__init__</code> metho... | [
{
"answer_id": 401352,
"author": "Steve Losh",
"author_id": 13498,
"author_profile": "https://Stackoverflow.com/users/13498",
"pm_score": 2,
"selected": false,
"text": "self"
},
{
"answer_id": 402471,
"author": "cdleary",
"author_id": 3594,
"author_profile": "https://... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10661/"
] |
401,284 | <p>I've been working on a ASP.NET project that is going to save uploaded files to a network share. I figured I could just use a virtual directory and be fine, but I have been struggling with permissions for Directory.CreateDirectory.</p>
<p>I was able to upload files so I decided to change my code to place everything... | [
{
"answer_id": 401325,
"author": "Abram Simon",
"author_id": 46204,
"author_profile": "https://Stackoverflow.com/users/46204",
"pm_score": 4,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Runtime.InteropSer... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
401,303 | <p>I'm having an issue with the 3.1 version of the logging application block...</p>
<p>With 3.5 framework my application works fine on my desktop... once it's deployed out to our qa box... the logging ceases to function. The web.config is identical in both scenarios. Any ideas? Permissions issue?</p>
<p>After a qu... | [
{
"answer_id": 413968,
"author": "Charlie Salts",
"author_id": 37971,
"author_profile": "https://Stackoverflow.com/users/37971",
"pm_score": 1,
"selected": false,
"text": "System.Diagnostics.Debug.Assert(conditionToTest, \"Message when assert fails\");\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38734/"
] |
401,304 | <p>My path is <code>\\server\folderName1\another name\something\another folder\</code></p>
<p>How do I extract each folder name into a string if I don't know how many folders there are in the path and I don't know the folder names?</p>
<p>Many thanks</p>
| [
{
"answer_id": 401323,
"author": "Matt Brunell",
"author_id": 24970,
"author_profile": "https://Stackoverflow.com/users/24970",
"pm_score": 7,
"selected": false,
"text": "string mypath = @\"..\\folder1\\folder2\\folder2\";\nstring[] directories = mypath.Split(Path.DirectorySeparatorChar)... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,305 | <p>I have a user control that behaves similar to a tab control.
The tab headers are <code>UserControl</code> instances that override <code>Paint</code> events to make them look custom.</p>
<p>In order to leverage the Validating events on various controls on our tab pages, when the user clicks on the tab headers, we s... | [
{
"answer_id": 650878,
"author": "Razzie",
"author_id": 38889,
"author_profile": "https://Stackoverflow.com/users/38889",
"pm_score": 3,
"selected": false,
"text": "Focus()"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18924/"
] |
401,306 | <p>Is there any way to access the <code><compilation /></code> tag in a web.config file?</p>
<p>I want to check if the "<em>debug</em>" attribute is set to "<em>true</em>" in the file, but I can't seem to figure out how to do it. I've tried using the <code>WebConfigurationManager</code>, but that doesn't seem to... | [
{
"answer_id": 401320,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 2,
"selected": false,
"text": "Web.config"
},
{
"answer_id": 401413,
"author": "Mike Scott",
"author_id": 43649,
"author_profile": "https... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/392/"
] |
401,326 | <p>I have lots of home directories under /ifshome on Linux. I want to see which users have not logged in for the past 6 months, and my solution is to parse the /ifshome/user/.lastlogin file. Each .lastlogin file has the same format, 1 line:</p>
<pre><code>Last Login: Fri Mar 09 18:06:27 PST 2001
</code></pre>
<p>I ne... | [
{
"answer_id": 401368,
"author": "xtofl",
"author_id": 6610,
"author_profile": "https://Stackoverflow.com/users/6610",
"pm_score": 1,
"selected": false,
"text": "find"
},
{
"answer_id": 401378,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https:/... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18406/"
] |
401,331 | <p>If I delete a file in Subversion, how can I look at it's history and contents? If I try to do <code>svn cat</code> or <code>svn log</code> on a nonexistent file, it complains that the file doesn't exist.</p>
<p>Also, if I wanted to resurrect the file, should I just <code>svn add</code> it back?</p>
<p>(I asked spe... | [
{
"answer_id": 401344,
"author": "Jack M.",
"author_id": 3421,
"author_profile": "https://Stackoverflow.com/users/3421",
"pm_score": 1,
"selected": false,
"text": "svn log -r <revision> <deleted file>\n"
},
{
"answer_id": 401353,
"author": "Stefan",
"author_id": 48003,
... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33795/"
] |
401,338 | <p>Is it possible to progmatically or dynamically create a project in VS2005 using c#? If so could someone provide some ideas or links on how to accomplish this?</p>
| [
{
"answer_id": 401547,
"author": "rnwood",
"author_id": 49419,
"author_profile": "https://Stackoverflow.com/users/49419",
"pm_score": 2,
"selected": false,
"text": "Engine engine=new Engine();\nengine.BinPath=RuntimeEnvironment.GetRuntimeDirectory();\nProject project=engine.CreateNewProj... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,339 | <p>I am using the Microsoft.Practices.EnterpriseLibrary Database tools and I'm having trouble creating a new database using <em>just</em> the connection string information.</p>
<p>Ideally I would like to do the following:</p>
<pre><code>Database dbEngine = DatabaseFactory.CreateDatabase(
"Data Source=myServerAddr... | [
{
"answer_id": 412925,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "SqlDatabase dbEngine = new SqlDatabase(connectionString);\n"
},
{
"answer_id": 1195945,
"author": "kiev",
"aut... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,342 | <p>Is there any recommended solutions when an embedding a script that will make a callback to the originating source but the js resides in a different domain. Sometimes other clients would be in a different domain and I can't rely on getting the document or window location.</p>
<p>Currently, I've been using this but ... | [
{
"answer_id": 401411,
"author": "sammich",
"author_id": 50276,
"author_profile": "https://Stackoverflow.com/users/50276",
"pm_score": 0,
"selected": false,
"text": "<script type=\"text/javascript\" src=\"http://foo/bar.js?caller=http://blah\"></script>\n"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50261/"
] |
401,348 | <p>I have a common code of serializing a class object in my 3-4 methods ,So I am thinking to create a common function for that code and call function in all the methods </p>
<p>I am doingn this from the following code </p>
<pre><code>DataContractJsonSerializer ser = new DataContractJsonSerializer(this.GetType());
Me... | [
{
"answer_id": 401354,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": -1,
"selected": false,
"text": "public string GenerateJsonString(Type t1)\n"
},
{
"answer_id": 401356,
"author": "TheSoftwareJedi",
"aut... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14299/"
] |
401,358 | <p>I am digging around in a Linux application that supposedly uses DSNs to connet to SQL Server. The connection stopped working and I can't find the credentials that are being used (all I know is the DSN's name). </p>
<p>I am familiar with DSNs in Windows, but how are they created and where are they stored in Linux?</... | [
{
"answer_id": 2849306,
"author": "initzero",
"author_id": 338713,
"author_profile": "https://Stackoverflow.com/users/338713",
"pm_score": 4,
"selected": false,
"text": "/usr/local/etc/odbc.ini"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/556/"
] |
401,376 | <p>I'm just learning asp.net mvc and I'm trying to figure out how to move my controllers into a separate project. Typically when I have designed asp.net web apps before, I created one project for my models, another for my logic, and then there was the web. </p>
<p>Now that I'm learning asp.net mvc I was hoping to fo... | [
{
"answer_id": 401481,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 8,
"selected": true,
"text": "ControllerBuilder.Current.SetControllerFactory(new MyControllerFactory());\n"
},
{
"answer_id": 14865288,
"a... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24908/"
] |
401,389 | <p>I'm using a UINavigationController and I'm having trouble releasing objects when I push a new view. I want to set an object on the new controller before pushing it. The way I'm currently doing this is:</p>
<pre><code>OpenPageViewController *varOpenPageController = [[OpenPageViewController alloc] initWithNibName:@"O... | [
{
"answer_id": 401481,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 8,
"selected": true,
"text": "ControllerBuilder.Current.SetControllerFactory(new MyControllerFactory());\n"
},
{
"answer_id": 14865288,
"a... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29941/"
] |
401,415 | <p>Hullo all,</p>
<p>Wondering if there are any Java hackers who can clue me in at to why the following doesn't work:</p>
<pre><code>public class Parent {
public Parent copy() {
Parent aCopy = new Parent();
...
return aCopy;
}
}
public class ChildN extends Parent {
...
}
public clas... | [
{
"answer_id": 401419,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "ChildN copy = (ChildN) orig.copy();\n"
},
{
"answer_id": 401434,
"author": "OscarRyz",
"author_id": 2065... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50264/"
] |
401,431 | <p>I'm laying the groundwork for an automated build process and am trying to make sure I start down the right path. Our codebase is a mixture of Managed/Unmanaged C++. The managed part is in .NET 2.0 and all of the projects are part of a Visual Studio 2005 solution.</p>
<p>Right now I'm looking at NAnt, but I can't fi... | [
{
"answer_id": 409493,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 2,
"selected": false,
"text": "<?xml version=\"1.0\"?>\n<project name=\"Test Build\" default=\"build\" xmlns=\"http://nant.sf.net/release/0.85-rc4/nan... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2831/"
] |
401,432 | <p>I'm trying to figure out how to implement a function in a tree node which returns all its descendant leaves (whether direct or indirect). However, I don't want to pass a container in which the leaf nodes will be put recursively (the tree could be huge), instead I'd like to use a generator to iterate through the tree... | [
{
"answer_id": 401435,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 4,
"selected": true,
"text": "public IEnumerable<ITreeNode> EnumerateLeaves()\n{\n foreach( var node in m_treeNodes )\n {\n if( node is... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7839/"
] |
401,444 | <p>I'm interested in cross-colo fail-over strategies for web applications, such that if the main site fails users seamlessly land at the fail-over site in another colo.</p>
<p>The application side of things looks to be mostly figured out with a master-slave database setup between the colos and services designed to rec... | [
{
"answer_id": 401471,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": true,
"text": "gethostbyname()"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13055/"
] |
401,463 | <p>I am trying to figure out the location of the script tag the current javascript is running in. What is really going on is that I need to determine from <em>inside</em> a src'd, dynamically inserted javascript file where it is located in the DOM. These are dynamically generated tags; code snippet: </p>
<pre><code>... | [
{
"answer_id": 401490,
"author": "geocar",
"author_id": 37507,
"author_profile": "https://Stackoverflow.com/users/37507",
"pm_score": 2,
"selected": false,
"text": "<script>\n(function(r) {\n document.write('<span id=\"'+r+'\"></span>');\n window.setTimeout(function() {\n var here_i... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50301/"
] |
401,464 | <p>Should Java Objects be reused as often as it can be reused ? Or should we reuse it only when they are "heavyweight", ie have OS resources associated with it ?</p>
<p>All old articles on the internet talk about object reuse and object pooling as much as possible, but I have read recent articles that say <code>new Ob... | [
{
"answer_id": 401498,
"author": "Yuval Adam",
"author_id": 24545,
"author_profile": "https://Stackoverflow.com/users/24545",
"pm_score": 2,
"selected": false,
"text": "String()"
},
{
"answer_id": 401502,
"author": "billybob",
"author_id": 49464,
"author_profile": "ht... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18390/"
] |
401,467 | <p><em>edit: many thanks for all the answers. Here are the results after applying the optimisations so far:</em></p>
<ul>
<li><em>Switching to sorting the characters and run length encoding - new DB size 42M</em></li>
<li><em>Dropping the indexes on the booleans - new DB size 33M</em></li>
</ul>
<p><em>The really nic... | [
{
"answer_id": 401533,
"author": "Marc Novakowski",
"author_id": 27020,
"author_profile": "https://Stackoverflow.com/users/27020",
"pm_score": 1,
"selected": false,
"text": "signature"
}
] | 2008/12/30 | [
"https://Stackoverflow.com/questions/401467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42404/"
] |
401,482 | <p>I'm working with a code base where lists need to be frequently searched for a single element. </p>
<p>Is it faster to use a Predicate and Find() than to manually do an enumeration on the List?</p>
<p>for example:</p>
<pre><code>string needle = "example";
FooObj result = _list.Find(delegate(FooObj foo) {
retur... | [
{
"answer_id": 401549,
"author": "Bevan",
"author_id": 30280,
"author_profile": "https://Stackoverflow.com/users/30280",
"pm_score": 2,
"selected": false,
"text": "string needle = \"example\";\nforeach (FooObj foo in _list)\n{\n if (foo.Name == needle) \n return foo;\n}\... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50299/"
] |
401,486 | <p>I have a user model which has multiple addresses. Now for my application in rails, address is not mandatory. So, if someone wants to create a user and enter the address after the user has been created, my application should allow that. My problem is, for Address model I have validations for Address Line 1, City and ... | [
{
"answer_id": 401549,
"author": "Bevan",
"author_id": 30280,
"author_profile": "https://Stackoverflow.com/users/30280",
"pm_score": 2,
"selected": false,
"text": "string needle = \"example\";\nforeach (FooObj foo in _list)\n{\n if (foo.Name == needle) \n return foo;\n}\... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49550/"
] |
401,513 | <p>Consider the following example structure</p>
<pre><code>- Project
- www
- files
+ documents
+ html
+ images
+ scripts
- WEB-INF
* web.xml
</code></pre>
<p>The documents folder needs to be a symlink or in some other way external from the war fi... | [
{
"answer_id": 402596,
"author": "Marcel",
"author_id": 2554,
"author_profile": "https://Stackoverflow.com/users/2554",
"pm_score": 0,
"selected": false,
"text": "$CATALINA_HOME/webapps"
},
{
"answer_id": 37633765,
"author": "Gus",
"author_id": 1172174,
"author_profil... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31518/"
] |
401,516 | <p>I have test database and a production database. When developing I of course work against that test database then when deploying I have to semi-manually update the production database (by running a batch-sql-script). This usually works fine but there's a chance for mistakes where the deployed database isn't the same ... | [
{
"answer_id": 401527,
"author": "Bramha Ghosh",
"author_id": 3268,
"author_profile": "https://Stackoverflow.com/users/3268",
"pm_score": 2,
"selected": false,
"text": " if (address.City.Length > Utilities.LinqValidate.GetLengthLimit(address, \"City\"))\n throw new Argu... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40939/"
] |
401,521 | <p>In the ASP.NET ajax library, there is a line that makes me confused.</p>
<pre><code>Type.prototype.registerClass = function Type$registerClass(typeName, baseType, interfaceTypes) {
//..
this.prototype.constructor = this;
//..
}
</code></pre>
<p>I know that <code>(this.prototype.constructor === this) == true</co... | [
{
"answer_id": 401527,
"author": "Bramha Ghosh",
"author_id": 3268,
"author_profile": "https://Stackoverflow.com/users/3268",
"pm_score": 2,
"selected": false,
"text": " if (address.City.Length > Utilities.LinqValidate.GetLengthLimit(address, \"City\"))\n throw new Argu... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33090/"
] |
401,535 | <p>Look at this situation:</p>
<ol>
<li><code>www.websitea.com</code> displays an <code>img</code> tag with a <code>src</code> attribute of <code>www.websiteb.com/image.aspx?id=5</code> and <code>style="display:none"</code></li>
<li><code>www.websiteb.com</code> returns an clear image, in addition to a cookie with a n... | [
{
"answer_id": 401582,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 0,
"selected": false,
"text": "<%@ Page Language=\"VB\" %>\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26/"
] |
401,538 | <p>I remember there was a third party site that did all the sign up, quotas and key generation for API keys. I can not remember the name, so wondering if anyone knows about it?</p>
| [
{
"answer_id": 1501270,
"author": "JonnyLitt",
"author_id": 182176,
"author_profile": "https://Stackoverflow.com/users/182176",
"pm_score": 0,
"selected": false,
"text": "<?\n$customer = ' ';\n$customerid = ' ';\n$key = md5('Some salt here'.$customer).md5($customerid);\n// Then add s... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,556 | <p>Is it a good idea to quote keys when using a hash in Perl?</p>
<p>I am working on an extremely large legacy Perl code base and trying to adopt a lot of the best practices suggested by Damian Conway in <a href="http://oreilly.com/catalog/9780596001735/" rel="noreferrer">Perl Best Practices</a>. I know that best pra... | [
{
"answer_id": 401895,
"author": "Hynek -Pichi- Vychodil",
"author_id": 49197,
"author_profile": "https://Stackoverflow.com/users/49197",
"pm_score": 2,
"selected": false,
"text": "$i{keys} = $a;\n$i{values} = [1,2];\n...\n"
},
{
"answer_id": 401964,
"author": "Joe Casadonte"... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6406/"
] |
401,561 | <pre><code>Image.FromFile(@"path\filename.tif")
</code></pre>
<p>or</p>
<pre><code>Image.FromStream(memoryStream)
</code></pre>
<p>both produce image objects with only one frame even though the source is a multi-frame TIFF file. <strong>How do you load an image file that retains these frames?</strong> The tiffs are ... | [
{
"answer_id": 401579,
"author": "Otávio Décio",
"author_id": 48684,
"author_profile": "https://Stackoverflow.com/users/48684",
"pm_score": 6,
"selected": true,
"text": "private List<Image> GetAllPages(string file)\n{\n List<Image> images = new List<Image>();\n Bitmap bitmap = (Bit... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401561",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35286/"
] |
401,593 | <p>I am working on an in-browser editor within a <code>textarea</code>. I have started looking for some information on dealing with <code>textarea</code> selection and found <a href="https://github.com/localhost/jquery-fieldselection" rel="noreferrer">this jQuery plugin, fieldSelection</a> that does some simple manipu... | [
{
"answer_id": 403526,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 4,
"selected": true,
"text": "textarea"
},
{
"answer_id": 2966703,
"author": "user357565",
"author_id": 357565,
"author_profile": "htt... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/208/"
] |
401,598 | <p>JTextField has a keyTyped event but it seems that at the time it fires the contents of the cell have not yet changed.</p>
<p>Because of that .length() is always wrong if read here.</p>
<p>There must be a simple way of getting the length as it appears to the user after a key stroke?</p>
| [
{
"answer_id": 401613,
"author": "Sean Bright",
"author_id": 21926,
"author_profile": "https://Stackoverflow.com/users/21926",
"pm_score": 4,
"selected": true,
"text": "evt.getDocument().getLength()\n"
},
{
"answer_id": 401619,
"author": "VonC",
"author_id": 6309,
"au... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
401,600 | <p>I have a custom template for an expander that is close to the code below. I had to change some of the code to take out custom classes, brushes, etc..</p>
<pre><code><Style TargetType="{x:Type Expander}">
<Setter Property="HorizontalContentAlignment"
Value="Stretch" />
<Setter Property="... | [
{
"answer_id": 401612,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 7,
"selected": true,
"text": "<ContentPresenter TextBlock.FontFamily=\"Tahoma\"\n TextBlock.FontWeight=\"Bold\"\n Sna... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1514/"
] |
401,602 | <p>I am using <a href="http://spritegen.website-performance.org/" rel="nofollow noreferrer">CSS Sprite Generator</a> to create sprites for a web page I am working on, but it doesn't seem to work, and I don't know why...I guess it's something obvious but..!</p>
<p>So, I picked up 3 images, zipped, generated the PNG fil... | [
{
"answer_id": 401615,
"author": "Doug McClean",
"author_id": 11173,
"author_profile": "https://Stackoverflow.com/users/11173",
"pm_score": 2,
"selected": false,
"text": ".sprite-bg"
},
{
"answer_id": 401627,
"author": "David Kolar",
"author_id": 3283,
"author_profile... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,604 | <p>What's a good algorithm for "bouncing cards" like the ones you see in solitaire games?</p>
<p>What's the coolest card animation you've seen?</p>
<p><strong>Edit</strong> - Any besides the Windows game?</p>
| [
{
"answer_id": 401831,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 2,
"selected": false,
"text": "vel_x = # some value, units/sec\nvel_y = # some value, units/sec\nacc_x = # some value in units/sec^2\nacc_y = # so... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49908/"
] |
401,616 | <p>Just wondering which is faster:</p>
<pre><code>DELETE FROM table_name WHERE X='1'
DELETE FROM table_name WHERE X='2'
DELETE FROM table_name WHERE X='3'
</code></pre>
<p>or</p>
<pre><code>DELETE FROM table_name WHERE X IN ('1', '2', '3')
</code></pre>
<p>Any ideas, hints, or references where to read?</p>
<p>Than... | [
{
"answer_id": 401655,
"author": "WOPR",
"author_id": 46255,
"author_profile": "https://Stackoverflow.com/users/46255",
"pm_score": 2,
"selected": false,
"text": "DELETE FROM table_name WHERE X BETWEEN 1 AND 3\n"
},
{
"answer_id": 401839,
"author": "sammich",
"author_id":... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49881/"
] |
401,621 | <p>Suppose I have some per-class data: (AandB.h)</p>
<pre><code>class A
{
public:
static Persister* getPersister();
}
class B
{
public:
static Persister* getPersister();
}
</code></pre>
<p>... and lots and lots more classes. And I want to do something like:</p>
<pre><code>persistenceSystem::registerPersistabl... | [
{
"answer_id": 401761,
"author": "Judge Maygarden",
"author_id": 1491,
"author_profile": "https://Stackoverflow.com/users/1491",
"pm_score": 2,
"selected": false,
"text": "#include <iostream>\n#include <vector>\n\nusing namespace std;\n\nclass Registerable {\n static vector<Registerab... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48956/"
] |
401,623 | <p>I'm looking for any suggestion/rules/guides on making a decent print css for when a webpage is printed. Do you have any to offer?</p>
| [
{
"answer_id": 401648,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "<link rel=\"stylesheet\"\n type=\"text/css\"\n media=\"print\" href=\"print.css\" />\n\nbody {\n background: white;\n ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/396/"
] |
401,637 | <p>The technique for adding a reference to the COM interop of Office in Visual Studio is to go to:</p>
<ol>
<li>References</li>
<li>Add Reference</li>
<li>Select the <strong>COM</strong> tab</li>
<li>Select <strong>Microsoft Office 11.0 Object Library</strong></li>
</ol>
<p>And magically named reference appears:</p>
... | [
{
"answer_id": 8572060,
"author": "Jonno",
"author_id": 620856,
"author_profile": "https://Stackoverflow.com/users/620856",
"pm_score": 1,
"selected": false,
"text": "<COMReference Include=\"Microsoft.Office.Core\">\n <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>\n <VersionMajo... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
401,656 | <p>It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection.</p>
<p>This question, <a href="https://stackoverflow.com/questions/348109/is-double-hashing-a-password-less-secure-than-just-hashing-it-once">Is “double hashing” a pass... | [
{
"answer_id": 401684,
"author": "Robert K",
"author_id": 24950,
"author_profile": "https://Stackoverflow.com/users/24950",
"pm_score": 11,
"selected": true,
"text": "password_hash"
},
{
"answer_id": 401698,
"author": "Henrik Paul",
"author_id": 2238,
"author_profile"... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32775/"
] |
401,659 | <p>In .NET framework, is it possible to set some of the items in the <code>CheckedListBox</code> as "uncheckable" ? I don't want to allow user to check the same items again and add them to a another existing list. </p>
<p>I hope I am clear.
Thanks in advance.</p>
| [
{
"answer_id": 401678,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 4,
"selected": true,
"text": "public Form1()\n{\n InitializeComponent();\n checkedListBox1.Items.Add(\"Can't check me\", CheckState.Indeterminate... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49057/"
] |
401,664 | <p>I have created a local report on a datasource that has a field named "RelativePath". When my WinForms app renders the report, it exports files to the location specified in the RelativePath field. In the report builder, I set Navigation|Hyperlink action|Jump to URL to "=Fields!RelativePath.Value" and set the report's... | [
{
"answer_id": 17602186,
"author": "LawMan",
"author_id": 2574087,
"author_profile": "https://Stackoverflow.com/users/2574087",
"pm_score": 1,
"selected": false,
"text": " string baseUrl = Request.Url.GetLeftPart(UriPartial.Authority);\n var param = new ReportParameter(\"AbsolutePa... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470/"
] |
401,668 | <p>I am wondering how I can read CSS comments out of a linked stylesheet.</p>
<p>I have this sample CSS loaded via:</p>
<pre><code><link rel="stylesheet" type="text/css" media="all" href="test.css" />
</code></pre>
<p> </p>
<pre><code>#test1{ border:1px solid #000; }
#test2{ border:1px solid #000; }
#tes... | [
{
"answer_id": 401739,
"author": "Cristian Libardo",
"author_id": 16526,
"author_profile": "https://Stackoverflow.com/users/16526",
"pm_score": 4,
"selected": true,
"text": "jQuery.get(\"test.css\", null, function(data) {\n var comments = data.match(/\\/\\*.*\\*\\//g);\n for each (... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,681 | <p>I am working on code generation and ran into a snag with generics. Here is a "simplified" version of what is causing me issues.</p>
<pre><code>Dictionary<string, DateTime> dictionary = new Dictionary<string, DateTime>();
string text = dictionary.GetType().FullName;
</code></pre>
<p>With the above code ... | [
{
"answer_id": 401703,
"author": "jcollum",
"author_id": 30946,
"author_profile": "https://Stackoverflow.com/users/30946",
"pm_score": 0,
"selected": false,
"text": "Type.Parse()"
},
{
"answer_id": 401803,
"author": "Walt Gaber",
"author_id": 50336,
"author_profile": ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30099/"
] |
401,702 | <p>Lets say I have a header banner on a webpage I'm about to print. Instead of wasting someone's ink printing the entire block of the image, is there a way via css to replace the image with text of H1 size?</p>
| [
{
"answer_id": 401708,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 4,
"selected": true,
"text": "h1"
},
{
"answer_id": 401713,
"author": "Tim Knight",
"author_id": 43043,
"author_profile": "http... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/396/"
] |
401,720 | <p>In a project that I've been involved with for many years, I've gradually evolved a design pattern that's proven to be extremely useful for me. I sometimes feel I should get a bit evangelical with it, but I'd be a bit embarrassed if I tried and found out that it was just my version of somebody's old hat. I've dug t... | [
{
"answer_id": 401800,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 3,
"selected": true,
"text": "class DataFetcher {\n abstract Object getData( Object id );\n}\n\nclass CustomerNameDataFetcher extends DataFetcher {\n... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47529/"
] |
401,740 | <p>I'm currently using SMO and C# to traverse databases to create a tree of settings representing various aspects of the two databases, then comparing these trees to see where and how they are different.</p>
<p>The problem is, for 2 reasonably sized database, it takes almost 10mins to crawl them locally and collect ta... | [
{
"answer_id": 401782,
"author": "devio",
"author_id": 21336,
"author_profile": "https://Stackoverflow.com/users/21336",
"pm_score": 4,
"selected": true,
"text": "Server server = new Server();\n\n// Force IsSystemObject to be returned by default.\nserver.SetDefaultInitFields(typeof(Store... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5965/"
] |
401,744 | <p>I am using shared hosting with IIS7 and support for PHP. I am trying to run a wordpress blog with "pretty urls" (removing index.php). The hosting provider doesn't want to install the URLRewrite module, so that option isn't available to me. I found a plugin for wordpress that will remove the index.php from permalink ... | [
{
"answer_id": 404252,
"author": "Rob Boek",
"author_id": 27179,
"author_profile": "https://Stackoverflow.com/users/27179",
"pm_score": 3,
"selected": false,
"text": "# Managed Fusion Url Rewriter\n# http://managedfusion.com/products/url-rewriter/\n#\n# Developed by: Nick Berardi\n# ... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8087/"
] |
401,747 | <p>I got some legacy code that has this:</p>
<pre><code><?PHP
if(isset($_GET['pagina'])=="homepage") {
?>
HtmlCode1
<?php
} else {
?>
HtmlCode2
<?php
}
?>
</code></pre>
<p>I don't know exactly why but this seems to be working. The htmlcode1 is loaded when I have ?pagina=homepage and the html... | [
{
"answer_id": 401757,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "isset()"
},
{
"answer_id": 401759,
"author": "Stacey Richards",
"author_id": 1142,
"author_profile": "http... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8715/"
] |
401,748 | <p>This problem seems to happen inconsistently. We are using a java applet to download a file from our site, which we store temporarily on the client's machine. </p>
<p>Here is the code that we are using to save the file:</p>
<pre><code>URL targetUrl = new URL(urlForFile);
InputStream content = (InputStream)targetUr... | [
{
"answer_id": 402275,
"author": "Ry4an Brase",
"author_id": 8992,
"author_profile": "https://Stackoverflow.com/users/8992",
"pm_score": 1,
"selected": false,
"text": "URL targetUrl = new URL(urlForFile);\nInputStream is = targetUrl.getInputStream();\nFile savedFile = File.createTempFile... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
401,752 | <p>I recently wrote some javascript code that filled a drop down list based on some XML, pretty simple stuff. The problem was I had to write similar code to do almost the same thing on a different page. </p>
<p>Because the code was almost identical I named most of the functions the same, thinking that they would never... | [
{
"answer_id": 401790,
"author": "LarryF",
"author_id": 18518,
"author_profile": "https://Stackoverflow.com/users/18518",
"pm_score": 1,
"selected": false,
"text": "function goBlank(image)\n{\n if(image) {\n var imgobj = document[image];\n imgobj.src=\"/images/blank.png\";\n }\n}... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48728/"
] |
401,754 | <p>Am building a "Book search" API using Lucene.
I need to index Book Name,Author, and Book category fields in Lucene index.</p>
<p>A single book can fall under multiple distinct book categories...for example: </p>
<p>BookName1 --fiction,humour,philosophy.
BookName1 --fiction,science.
BookName1 --humour,business.
Boo... | [
{
"answer_id": 402045,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 2,
"selected": false,
"text": "schema.xml"
},
{
"answer_id": 402627,
"author": "zehrer",
"author_id": 45419,
"author_profile": "h... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40907/"
] |
401,756 | <p>I'm trying to parse some JSON using the JSon.Net library. The documentation seems a little sparse and I'm confused as to how to accomplish what I need. Here is the format for the JSON I need to parse through.</p>
<pre><code>{
"displayFieldName" : "OBJECT_NAME",
"fieldAliases" : {
"OBJECT_NAME" : ... | [
{
"answer_id": 401976,
"author": "jarrodn",
"author_id": 15273,
"author_profile": "https://Stackoverflow.com/users/15273",
"pm_score": 3,
"selected": false,
"text": "MyObject deserializedObject = JsonConvert.DeserializeObject<MyObject>(json);\n"
},
{
"answer_id": 402694,
"aut... | 2008/12/30 | [
"https://Stackoverflow.com/questions/401756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49294/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.