qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
291,162 | <p>I have a form that contains a bunch of checkboxes. Before submitting the form, I'd like to grab the values of the checkboxes and stick them into a text field, then submit that.</p>
<p>So I might have:
Red
Orange
X Yellow
Blue
X Green</p>
<p>And I'd like my textfield to end up with the content "Yellow, ... | [
{
"answer_id": 291181,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 0,
"selected": false,
"text": "var serializedCheckboxes = '';\n$(\"input type='checkbox'\").each(function() {\n if($(this).attr(\"checked\")) {\n seria... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,163 | <p>I'm having a hard time determining what characters <strong>must</strong> be escaped when using Perl's qr{} construct</p>
<p>I'm attempting to create a multi-line precompiled regex for text that contains a myriad of normally escaped characters (#*.>:[]) and also contains another precompiled regex. Additionally I nee... | [
{
"answer_id": 291194,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "https://Stackoverflow.com/users/2766176",
"pm_score": 5,
"selected": true,
"text": "my $sc = qr{(>|\\s)};\n\nmy $re = qr{# using defaults found in \\.config\n\\*\n\\*\nOptions:\n$sc 1\\. opt1\n$sc 2\... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291163",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1214705/"
] |
291,166 | <p>Which one do you prefer to store text in your database? The original casing of the data, or some kind of normalization. Also, should I enforce this with triggers? or should I preprocess input data with client code?</p>
<p>I ask you, because I'm not sure about if there is any difference, besides additional processin... | [
{
"answer_id": 291217,
"author": "BQ.",
"author_id": 4632,
"author_profile": "https://Stackoverflow.com/users/4632",
"pm_score": 3,
"selected": false,
"text": "create table case_test (\n id integer,\n name varchar2(30));\n\ncreate index ucasename on case_test(upper(name));\n select * f... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291166",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18300/"
] |
291,169 | <p>I am trying to use the Event Log to write some debug information and I can't make it works. It complains about not being able to find the Event Source. Do I have to install something on the OS?</p>
| [
{
"answer_id": 291174,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": true,
"text": "System.Diagnostics.EventLog eventLog1 = new System.Diagnostics.EventLog();\nstring eventLogName = \"StackOverFlo... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21386/"
] |
291,172 | <p>I'm trying to get the following SQL statement to work:</p>
<pre><code>UPDATE myschema.tableA update_tableA
SET field_id =
( SELECT src.field_id
FROM myschema.srcTable src
INNER JOIN myschema.tableB tableB ON
update_tableA.id = tableB.id
AND SDO_ANYINTERACT( tableB... | [
{
"answer_id": 291258,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 0,
"selected": false,
"text": "\nSELECT src.field_id \n FROM myschema.srcTable src\n INNER JOIN myschema.tableB tableB ON \n"
},
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20133/"
] |
291,189 | <p>It has to be simple, here's my CSS: </p>
<pre><code>.progressImage
{
position:relative;
top:50%;
}
.progressPanel
{
height:100%;
width:100%;
text-align:center;
display:none;
}
<asp:Panel ID="pnlProgress" runat="server" CssClass="progressPanel">
<asp:Image ID="Image1" runat="server" CssClass="progres... | [
{
"answer_id": 291245,
"author": "Mauro",
"author_id": 2208,
"author_profile": "https://Stackoverflow.com/users/2208",
"pm_score": 2,
"selected": false,
"text": ".progressPanel\n{\n height:100%;\n width:100%;\n text-align:center;\n display:none;\n position: relative;\n}\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3661/"
] |
291,249 | <p>I need to store a tree data structure in my database, for which I plan on using <a href="http://code.google.com/p/django-treebeard/" rel="noreferrer">django-treebeard</a> or possibly <a href="http://code.google.com/p/django-mptt/" rel="noreferrer">django-mptt</a>. My source of confusion is that each node could be o... | [
{
"answer_id": 291981,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "MyNode treebeard.Node class MyA( treebeard.Node ):\n pass\n\nclass MyB( treebeard.Node ):\n pass\n\nclass MyC( treebe... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1595/"
] |
291,252 | <p>Several times in my career, I have worked in a software group that determined that <br><br>
a) We needed a build/test system<br>
b) We should write our own<br>
c) We can have a developer spend a week, get it done and they shouldn't have to touch it again</p>
<p>Every time, this has resulted in a system that only se... | [
{
"answer_id": 292873,
"author": "Brad Gilbert",
"author_id": 1337,
"author_profile": "https://Stackoverflow.com/users/1337",
"pm_score": 0,
"selected": false,
"text": "1..N\nok 1 Description # Directive\n# Diagnostic\n....\nok 47 Description\nok 48 Description\nmore tests....\n 1..4\nok... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16476/"
] |
291,274 | <p>I am using the Html.TextBox helper to create textboxes. I want to set attributes on the textbox, which I understand is done using the following overload: </p>
<p><code>Html.TextBox (string name, object value, object htmlAttributes)</code></p>
<p>However, I want to maintain the functionality where the HTML helper ... | [
{
"answer_id": 291295,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 7,
"selected": true,
"text": "Html.TextBox( \"name\", null, new { @class = \"css-class\" } );\n"
},
{
"answer_id": 291317,
"author": "Andr... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37786/"
] |
291,304 | <p>I'm having an issue with JQuery and Safari (Windows Version). The code works on FF/IE7/Chrome but not Safari.</p>
<p>I have a simple <code><li></code> that has a <code><div></code> embedded in to - clicking the <code><li></code> should expose the hidden <code>div</code>, but not in Safari.</p>
<... | [
{
"answer_id": 291417,
"author": "Pseudo Masochist",
"author_id": 8529,
"author_profile": "https://Stackoverflow.com/users/8529",
"pm_score": 1,
"selected": false,
"text": "$(\".moreFacetsLink\").click(function () {\n $(this).siblings(\"a\").children(\"div\").toggle();\n});\n"
},
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,326 | <p>I'm using the command line compiler for builds. One problem I see is that the paths mentioned there seem to need to be the short versions of the filenames such that they don't contain any spaces. I don't know so much about this even though I have used it for some time.</p>
<p>I recently upgraded to d2009 and the ... | [
{
"answer_id": 291441,
"author": "schnaader",
"author_id": 34065,
"author_profile": "https://Stackoverflow.com/users/34065",
"pm_score": 3,
"selected": true,
"text": "$(BDS)\\Lib\\Indy10\n \"$(BDS)\\Lib\\Indy10\"\n \"C:\\Program Files\\CodeGear\\RAD Studio\\5.0\\lib\\Indy10\"\n"
},
{... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14031/"
] |
291,328 | <p>I am trying to create a delegate protocol for a custom UIView. Here is my first attempt:</p>
<pre><code>@protocol FunViewDelegate
@optional
- (void) funViewDidInitialize:(FunView *)funView;
@end
@interface FunView : UIView {
@private
}
@property(nonatomic, assign) id<FunViewDelegate> delegate;
@end
</... | [
{
"answer_id": 291408,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 3,
"selected": false,
"text": "@protocol FunViewDelegate;\n\n@interface FunView : UIView { \n@private\n id<FunViewDelegate> delegate;\n}\n@proper... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
291,336 | <p>I have a folder in NTFS that contains tens of thousands of files. I've deleted all files in that folder, save 1. I ran contig.exe to defragment that folder so now it's in 1 fragment only. However, the size of that folder is still 8MB in size. This implies that there's a lot of gap in the index. Why is that? If I del... | [
{
"answer_id": 292402,
"author": "Mike G.",
"author_id": 18901,
"author_profile": "https://Stackoverflow.com/users/18901",
"pm_score": 4,
"selected": true,
"text": "REM Invoke as \"collapse dirname\"\nren dirname dirname.old\nmkdir dirname\ncd dirname.old\nmove * ../dirname/\ncd ..\nrmdi... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13484/"
] |
291,340 | <p>Is there a simple attribute or data contract that I can assign to a function parameter that prevents <code>null</code> from being passed in C#/.NET? Ideally this would also check at compile time to make sure the literal <code>null</code> isn't being used anywhere for it and at run-time throw <code>ArgumentNullExcep... | [
{
"answer_id": 291357,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "if (null == arg) if (arg == null)"
},
{
"answer_id": 291490,
"author": "NotMe",
"author_id": 2424,
"a... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9642/"
] |
291,343 | <p><strong>SpousesTable</strong>
<em>SpouseID</em></p>
<p><strong>SpousePreviousAddressesTable</strong>
<em>PreviousAddressID</em>, <em>SpouseID</em>, FromDate, AddressTypeID</p>
<p>What I have now is updating the most recent for the whole table and assigning the most recent regardless of SpouseID the AddressTypeID =... | [
{
"answer_id": 291358,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 0,
"selected": false,
"text": "UPDATE spa SET spa.AddressTypeID = 1 \n WHERE spa.SpouseID IN (\n SELECT DISTINCT s1.SpouseID FROM Spa S1, Spous... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30930/"
] |
291,344 | <p>Are they the same thing? Just finished to watch <a href="https://www.asp.net/mvc/videos/mvc-1/aspnet-mvc-storefront/aspnet-mvc-storefront-part-1-architectural-discussion-and-overview" rel="noreferrer">Rob Connery's Storefront tutorial</a> and they seem to be similar techinques. I mean, when I implement a DAL object ... | [
{
"answer_id": 293013,
"author": "Kim Major",
"author_id": 32498,
"author_profile": "https://Stackoverflow.com/users/32498",
"pm_score": 7,
"selected": false,
"text": "public interface IRepository : IDisposable\n{\n T[] GetAll<T>();\n T[] GetAll<T>(Expression<Func<T, bool>> filter)... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37795/"
] |
291,359 | <p>I am writing a Clone method using reflection. How do I detect that a property is an indexed property using reflection? For example:</p>
<pre><code>public string[] Items
{
get;
set;
}
</code></pre>
<p>My method so far:</p>
<pre><code>public static T Clone<T>(T from, List<string> propertiesToIgno... | [
{
"answer_id": 291380,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 7,
"selected": true,
"text": "if (propertyInfo.GetIndexParameters().Length > 0)\n{\n // Property is an indexer\n}\n"
},
{
"answer_id": 291386,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37797/"
] |
291,369 | <p>Unfortunately, the problem is not more specific than that. I've found a few examples of people reporting similar problems by doing <a href="http://www.google.com/search?source=ig&hl=en&rlz=&=&q=%22Unknown+object+in+backup+file%22&btnG=Google+Search&aq=f" rel="nofollow noreferrer">a Google sea... | [
{
"answer_id": 293319,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": true,
"text": "max_allowed_packet"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
291,387 | <p>I'm new to .net and c#, so I want to make sure i'm using the right tool for the job.</p>
<p>The XML i'm receiving is a description of a directory tree on another machine, so it go many levels deep. What I need to do now is to take the XML and create a structure of objects (custom classes) and populate them with inf... | [
{
"answer_id": 291457,
"author": "Jason Jackson",
"author_id": 13103,
"author_profile": "https://Stackoverflow.com/users/13103",
"pm_score": 5,
"selected": false,
"text": "XDocument doc = XDocument.Parse(someString);\n //if Directory is tag name of Directory XML\n//Note: Root is just the... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37794/"
] |
291,391 | <p>Thanks for reading this.</p>
<p>I am dynamically generating some data which includes a select drop-down with a text box next to it. If the user clicks the select, I am dynamically populating it (code below). I have a class on the select and I was hoping the following code would work. I tested it with an ID on the s... | [
{
"answer_id": 291412,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 0,
"selected": false,
"text": "$(\"select[class='classSelect']\") ...\n"
},
{
"answer_id": 291433,
"author": "Owen",
"author_id": 4853,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
291,395 | <p>I'm working with an XML file that subscribes to an industry standard. The standards document for the schema defines one of the fields as a rational number and its data is represented as two integers, typically with the second value being a 1 (e.g. <code><foo>20 1</foo></code>). I've been hunting around w... | [
{
"answer_id": 1933672,
"author": "mckamey",
"author_id": 43217,
"author_profile": "https://Stackoverflow.com/users/43217",
"pm_score": 2,
"selected": false,
"text": "Rational<T> IConvertable ' ' 314159265358979323846 / 100000000000000000000\n 2/3 0.66666666666666666667\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31167/"
] |
291,405 | <p>When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module to rewrite the URLs to end up with something friendly (for humans & search engines) like:</p>
<pre><code>uk/products/product_category_one/sub_category_one/index.aspx
uk/products/product_category_one/sub_category_one/widget_m... | [
{
"answer_id": 291692,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 5,
"selected": true,
"text": " routes.MapRoute(\n \"ukRoute\",\n \"{lang}/Products/{action}/{id}/{subcategory}\",\n n... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14072/"
] |
291,406 | <p>When extracting files from a ZIP file I was using the following.</p>
<pre><code>Sub Unzip(strFile)
' This routine unzips a file. NOTE: The files are extracted to a folder '
' in the same location using the name of the file minus the extension. '
' EX. C:\Test.zip will be extracted to C:\Test '
'strFile (String) = ... | [
{
"answer_id": 338324,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "For i = 1 To 99\n If aqFileSystem.Exists(GetAppPath(\"Local Settings\", \"\") & \"\\Temp\\Temporary Directory \" & i & \" for... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,413 | <p>I am looking for the VB.NET equivalent of</p>
<pre><code>var strings = new string[] {"abc", "def", "ghi"};
</code></pre>
| [
{
"answer_id": 291423,
"author": "David Mohundro",
"author_id": 4570,
"author_profile": "https://Stackoverflow.com/users/4570",
"pm_score": 3,
"selected": false,
"text": "Dim strings As String() = New String() {\"abc\", \"def\", \"ghi\"}\n"
},
{
"answer_id": 291426,
"author":... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1191/"
] |
291,424 | <p>In a Windows program, what is the canonical way to parse the command line obtained from GetCommandLine into multiple arguments, similar to the argv array in Unix? It seems that CommandLineToArgvW does this for a Unicode command line, but I can't find a non-Unicode equivalent. Should I be using Unicode or not? If ... | [
{
"answer_id": 291505,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 2,
"selected": false,
"text": "CommandLineToArgvW()"
},
{
"answer_id": 1399224,
"author": "Community",
"author_id": -1,
"author_... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,444 | <p>I'm trying to inject a dynamic where clause in my Linq to SQL query and I get an overload exception. The same expression work when added in the query proper?</p>
<pre><code> qry.Where(Function(c) c.CallDate < Date.Now.AddDays(-1))
</code></pre>
<p>Any thoughts on how to this to work?</p>
<p>The exception read... | [
{
"answer_id": 291505,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 2,
"selected": false,
"text": "CommandLineToArgvW()"
},
{
"answer_id": 1399224,
"author": "Community",
"author_id": -1,
"author_... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25121/"
] |
291,445 | <p>I'm trying to grab data from a MySQL database.</p>
<p>Approach 2 - apply/map style</p>
<p>I'm using the <a href="http://dev.mysql.com/doc/refman/5.1/en/connector-net-examples-mysqlcommand.html" rel="nofollow noreferrer" title="MySQL Reference Site">MySQL ADO Reference</a> to try to build this system. In particular... | [
{
"answer_id": 291588,
"author": "Brian",
"author_id": 19299,
"author_profile": "https://Stackoverflow.com/users/19299",
"pm_score": 2,
"selected": false,
"text": "#light\n\ntype ThingLikeSqlReader() =\n let mutable rowNum = 0\n member this.Read() =\n if rowNum > 3 then\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26227/"
] |
291,448 | <p>Is it possible for a python script to open its own source file and overwrite it?</p>
<p>The idea was to have a very simple and very dirty way for a python script to download an update of itself so that the next time it is run it would be an updated version.</p>
| [
{
"answer_id": 291733,
"author": "Matthew Schinckel",
"author_id": 188,
"author_profile": "https://Stackoverflow.com/users/188",
"pm_score": 4,
"selected": false,
"text": "# Check version of module\nimport module\n\n# Check update address\nif update_version > module.version:\n downloa... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291448",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20498/"
] |
291,455 | <p>I have an XSD file that is encoded in UTF-8, and any text editor I run it through doesn't show any character at the beginning of the file, but when I pull it up in Visual Studio's debugger, I clearly see an empty box in front of the file. </p>
<p><img src="https://i294.photobucket.com/albums/mm93/geostock/bom3.jpg... | [
{
"answer_id": 291462,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 7,
"selected": true,
"text": "EF BB BF EF BB BF"
},
{
"answer_id": 300470,
"author": "Benedikt Waldvogel",
"author_id": 4308,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16587/"
] |
291,459 | <p>I have an application where I'm dynamically loading routes by a model, and calling <code>ActionController::Routing::Routes.reload!</code> after creating/updating that model. The problem is that after doing this, I'm receiving the following error when I try to hit that new route:</p>
<pre><code>ActionController::Met... | [
{
"answer_id": 291462,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 7,
"selected": true,
"text": "EF BB BF EF BB BF"
},
{
"answer_id": 300470,
"author": "Benedikt Waldvogel",
"author_id": 4308,
... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6705/"
] |
291,466 | <p>I am using jQuery to make an AJAX request to a remote endpoint. That endpoint will return a JSON object if there is a failure and that object will describe the failure. If the request is successful it will return HTML or XML.</p>
<p>I see how to define the expected request type in jQuery as part of the <code>$.aj... | [
{
"answer_id": 291566,
"author": "dowski",
"author_id": 21712,
"author_profile": "https://Stackoverflow.com/users/21712",
"pm_score": 3,
"selected": true,
"text": "xhr = $.ajax(\n {\n //SNIP\n success: function(data) {\n var ct = xhr.getResponseHeader('Con... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
291,475 | <p>I have a win form (c#) with a datagridview. I set the grid's datasource to a datatable.</p>
<p>The user wants to check if some data in the datatable exists in another source, so we loop through the table comparing rows to the other source and set the rowerror on the datatable to a short message. The datagridview ... | [
{
"answer_id": 828947,
"author": "Andrew",
"author_id": 74448,
"author_profile": "https://Stackoverflow.com/users/74448",
"pm_score": 4,
"selected": false,
"text": "AutoSizeRowsMode DataGridViewAutoSizeRowsMode.None Errortext AutoSizeRowsMode DataGridView1.AutoSizeRowsMode = DataGridView... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,493 | <p>I've been struggling with this check constraint for a few hours and was hoping someone would be kind enough to explain why this check constraint isn't doing what I think it should be doing.</p>
<pre><code>ALTER TABLE CLIENTS
add CONSTRAINT CHK_DISABILITY_INCOME_TYPE_ID CHECK ((IS_DISABLED IS NULL AND DISABILITY_INC... | [
{
"answer_id": 291581,
"author": "Khb",
"author_id": 37817,
"author_profile": "https://Stackoverflow.com/users/37817",
"pm_score": 1,
"selected": false,
"text": "ALTER TABLE CLIENTS ADD CONSTRAINT CHK_1 CHECK (IS_DISABLED = 0 AND DISABILITY_INCOME_TYPE_ID IS NULL)\n\nALTER TABLE CLIENTS ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/455213/"
] |
291,508 | <p>When A Python exception is thrown by code that spans multiple lines, e.g.:</p>
<pre><code> myfoos = [foo("bar",
"baz",
"quux",
i) for i in range(10)]
</code></pre>
<p>Python will report the line number of the last line, and will show the code fragment from that li... | [
{
"answer_id": 291579,
"author": "dragonjujo",
"author_id": 37344,
"author_profile": "https://Stackoverflow.com/users/37344",
"pm_score": 0,
"selected": false,
"text": "try:\n somecode\nexcept NameError\n NameError.lineno = [1,4]\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/742/"
] |
291,518 | <p>When implementing the ViewModel in a Model-View-ViewModel architecture WPF application there seem to be two major choices how to make it databindable. I have seen implementations that use <code>DependencyProperty</code> for properties the View is going to bind against and I have seen the ViewModel implementing <code... | [
{
"answer_id": 293234,
"author": "Bryan Watts",
"author_id": 37815,
"author_profile": "https://Stackoverflow.com/users/37815",
"pm_score": 4,
"selected": false,
"text": "INotifyPropertyChanged string INotifyPropertyChanged"
},
{
"answer_id": 547295,
"author": "Adam",
"aut... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4227/"
] |
291,519 | <p>In the Windows registry, how does <code>CurrentControlSet</code> differ from
<code>ControlSet001</code> and <code>ControlSet002</code>? Which should be set when installing for all
users?</p>
<p>We are trying to add an environment variable for all users. Is this correct?</p>
<pre><code>HKLM\SYSTEM\CurrentControlSet\C... | [
{
"answer_id": 291528,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 7,
"selected": true,
"text": "CurrentControlSet ControlSet001 ControlSet002 CurrentControlSet CurrentControlSet ControlSet001 ControlSet002"
},
{... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17975/"
] |
291,522 | <p>I have a simple WPF application with a menu. I need to add menu items dynamically at runtime. When I simply create a new menu item, and add it onto its parent MenuItem, it does not display in the menu, regardless of if UpdateLayout is called.</p>
<p>What must happen to allow a menu to have additional items dynami... | [
{
"answer_id": 291550,
"author": "Whytespot",
"author_id": 33185,
"author_profile": "https://Stackoverflow.com/users/33185",
"pm_score": 6,
"selected": true,
"text": "//Add to main menu\nMenuItem newMenuItem1 = new MenuItem();\nnewMenuItem1.Header = \"Test 123\";\nthis.MainMenu.Items.Add... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18313/"
] |
291,527 | <p>I'm working on a website that uses not just frames, but frames within frames (ew, I know, but I don't get to choose). It actually works OK most of the time, but I'm running into a problem with some of the frames within frames in Safari (only).</p>
<p>Some of the two-deep frames render in Safari with a small space ... | [
{
"answer_id": 291550,
"author": "Whytespot",
"author_id": 33185,
"author_profile": "https://Stackoverflow.com/users/33185",
"pm_score": 6,
"selected": true,
"text": "//Add to main menu\nMenuItem newMenuItem1 = new MenuItem();\nnewMenuItem1.Header = \"Test 123\";\nthis.MainMenu.Items.Add... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18860/"
] |
291,537 | <p>As a followup to <a href="https://stackoverflow.com/questions/290335/how-can-i-position-an-element-at-the-bottom-of-its-container-in-firefox">this question</a> on absolute positioning within a table cell, I'm trying to get something working in Firefox. Once again, I'm about 95% there, and there's just 1 little thin... | [
{
"answer_id": 291651,
"author": "da5id",
"author_id": 14979,
"author_profile": "https://Stackoverflow.com/users/14979",
"pm_score": 2,
"selected": false,
"text": "<style type=\"text/css\">\ntable { width:500px; border-collapse:collapse}\nth, td { height:200px; border:1px solid black; ve... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/96/"
] |
291,574 | <p>I want a query that returns a list of all the (user) stored procedures in a database by name, with the number of lines of code for each one.</p>
<p>i.e.</p>
<pre><code>sp_name lines_of_code
-------- -------------
DoStuff1 120
DoStuff2 50
DoStuff3 30
</code></pre>
<p>Any ideas how to do this?</p>
| [
{
"answer_id": 291633,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 7,
"selected": true,
"text": "select t.sp_name, sum(t.lines_of_code) - 1 as lines_ofcode, t.type_desc\nfrom\n(\n select o.name as sp_name, \n (... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/161040/"
] |
291,582 | <p>Using strictly SQL (no PHP or anything else), is it possible to create a table <strong>and insert default data into that table</strong> only if that table doesn't exist?</p>
| [
{
"answer_id": 291635,
"author": "Jonas Kongslund",
"author_id": 37548,
"author_profile": "https://Stackoverflow.com/users/37548",
"pm_score": 0,
"selected": false,
"text": "CREATE TABLE IF NOT EXISTS T (\n ID int(10) unsigned NOT NULL primary key,\n NAME varchar(255) NOT NULL\n);\n\nR... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32881/"
] |
291,603 | <p>How can I tell the preprocessor not to replace a specific macro?</p>
<p>The specific problem is the following: Windows header files define the GetMessage macro.</p>
<p>My C++ header files with my API have a GetMessage method. I do not want to rename my method. But when using the API on Windows, including windows.h... | [
{
"answer_id": 291615,
"author": "ShoeLace",
"author_id": 3825,
"author_profile": "https://Stackoverflow.com/users/3825",
"pm_score": 3,
"selected": false,
"text": "#pragma push_macro(\"GetMessage\")\n#undef GetMessage\n\n// Your GetMessage usage/definition here\n\n#pragma pop_macro(\"Ge... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37820/"
] |
291,620 | <p>When you assign a date to a named SQL parameter Hibernate automatically converts it to GMT time. How do you make it use the current server timezone for all dates?</p>
<p>Lets say you have a query:</p>
<pre><code>Query q = session.createQuery("from Table where date_field < :now");
q.setDate("now", new java.util.... | [
{
"answer_id": 291970,
"author": "Brian Deterling",
"author_id": 14619,
"author_profile": "https://Stackoverflow.com/users/14619",
"pm_score": 2,
"selected": false,
"text": "Properties properties = new Properties();\nproperties.setProperty(\"timeZone\", databaseTimeZone);\nquery.setParam... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20128/"
] |
291,623 | <p>I am trying to design a location lookup in which the user can specify a location to any desired level of accuracy. eg. one of Country, State, City, Borough etc,</p>
<p>I have a used a common location table, which will then be used in a lookup with the table name selected dynamically, but was wondering if there is a... | [
{
"answer_id": 291634,
"author": "NotMe",
"author_id": 2424,
"author_profile": "https://Stackoverflow.com/users/2424",
"pm_score": 3,
"selected": true,
"text": "locations\n id int\n parentId int\n name varchar(45)\n"
},
{
"answer_id": 291691,
"author": "Bill Karwin",
"... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36670/"
] |
291,631 | <p>I recently upgraded from Delphi 4 to Delphi 2009. With Delphi 4 I had been using <a href="http://web.archive.org/web/20001205122400/http://www.eccentrica.org/gabr/gpprofile/gpprofile.htm" rel="noreferrer">GpProfile by Primoz Gabrijelcic</a> as a profiler and <a href="http://web.archive.org/web/20031204135824/htt... | [
{
"answer_id": 292047,
"author": "Francesca",
"author_id": 9842,
"author_profile": "https://Stackoverflow.com/users/9842",
"pm_score": 6,
"selected": true,
"text": "ReportMemoryLeaksOnShutDown := True;\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30176/"
] |
291,647 | <p>I embedded a swf in my html page, but I would like it to swap to another swf when I clicked on a button in html. I used swfobject.js to embed the swf, and I use prototype to write the javascript. I thought I can just do this</p>
<pre><code>$('movie').value = 'swf/bhts.swf';
alert($('movie').value);
</code></pre>
<... | [
{
"answer_id": 291656,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": false,
"text": "<div id='flashContent'>\n</div>\n\n<script type='text/javascript'> \n // Setup your initial flash \n var so = new S... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34797/"
] |
291,661 | <p>I can't seem to retrieve the AlternateView from System.Net.Mail.AlternateView.</p>
<p>I have an application that is pulling email via POP3. I understand how to create an alternate view for sending, but how does one select the alternate view when looking at the email. I've have the received email as a System.Net.M... | [
{
"answer_id": 1478524,
"author": "mightytightywty",
"author_id": 134585,
"author_profile": "https://Stackoverflow.com/users/134585",
"pm_score": 3,
"selected": false,
"text": " public string ExtractAlternateView()\n {\n var message = new System.Net.Mail.MailMessage();\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5678/"
] |
291,675 | <p>How can I take full advantage of 64-bit architecture in my .NET 2.0 Web Applications and Console/Forms Applications?</p>
| [
{
"answer_id": 291719,
"author": "hangy",
"author_id": 11963,
"author_profile": "https://Stackoverflow.com/users/11963",
"pm_score": 1,
"selected": false,
"text": "long"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/357/"
] |
291,696 | <p>Have you ever had alternating background colors in a Jasper report and then exported it to Excel? The Excel export seems to ignore the alternating color.</p>
<p>I've got a Jasper report where the rows alternating background color using the procedure referenced <a href="http://www.brianburridge.com/2006/06/19/highl... | [
{
"answer_id": 291907,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "Boolean.valueOf( $V{PAGE_COUNT}.intValue() % 2 == 0 )\n"
}
] | 2008/11/14 | [
"https://Stackoverflow.com/questions/291696",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23904/"
] |
291,704 | <p>We have an advanced webpage (ASP.NET, C#), and a application which needs to be installed on the client computer in order to utilize the webpage to its fullest. The application is a tray app, and has primarily two tasks. Detect when certain events happen on the webserver (for instance invited to a meeting, or notify ... | [
{
"answer_id": 291747,
"author": "JohnFx",
"author_id": 30018,
"author_profile": "https://Stackoverflow.com/users/30018",
"pm_score": 3,
"selected": false,
"text": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\\n I... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33431/"
] |
291,705 | <p>Someone posted a great little function here the other day that separated the full path of a file into several parts that looked like this:</p>
<pre><code>Function BreakDown(Full As String, FName As String, PName As String, Ext As String) As Integer
If Full = "" Then
BreakDown = False
Exit Function
End If
If In... | [
{
"answer_id": 291732,
"author": "DJ.",
"author_id": 10492,
"author_profile": "https://Stackoverflow.com/users/10492",
"pm_score": 0,
"selected": false,
"text": "Full = Trim(Full)\n Ext = Mid$(Full, Dot%)\n Ext = Mid$(Full, Dot%, 3)\n"
},
{
"answer_id": 291741,
"author": "Bre... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291705",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,740 | <p>I have a huge text file (~1GB) and sadly the text editor I use won't read such a large file. However, if I can just split it into two or three parts I'll be fine, so, as an exercise I wanted to write a program in python to do it. </p>
<p>What I think I want the program to do is to find the size of a file, divide ... | [
{
"answer_id": 291759,
"author": "Kamil Kisiel",
"author_id": 15061,
"author_profile": "https://Stackoverflow.com/users/15061",
"pm_score": 5,
"selected": true,
"text": "os.stat() file.readlines([sizehint])"
},
{
"answer_id": 291838,
"author": "Svante",
"author_id": 31615... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4834/"
] |
291,757 | <p>I have a linux dev server I watch, and lately its chugging at some points so I'd like to keep a better eye on it. I used to use Gkrellm, but its been a pain to try get Gkrellm to build on my Mac. </p>
<p>Besides servering X remotely (which would not be optimal), I guess i'm looking for alternatives to Gkrellm.</p>
... | [
{
"answer_id": 1684523,
"author": "Kevin Campion",
"author_id": 83833,
"author_profile": "https://Stackoverflow.com/users/83833",
"pm_score": 1,
"selected": false,
"text": "# sudo port install gkrellm\n # sudo port clean xorg-xproto\n# sudo port install xorg-xproto\n # sudo port install ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,761 | <p>Here's my problem: I have to call a web service with a secure header from a classic ASP page that returns a complex data type. For various reasons concerning a 3rd party tool it has to be classic ASP. We decided that I should create an external dll to do this - which I did (in c#) so it returns a dataset (Somethi... | [
{
"answer_id": 292065,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Data;\nusing System.Runtime.InteropServices;\n\nnamespace COMTest\n{\n [Guid(\"AC4C43... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29650/"
] |
291,774 | <p>What is the regex for a alpha numeric word, at least 6 characters long (but at most 50).</p>
| [
{
"answer_id": 291783,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 0,
"selected": false,
"text": "/[a-zA-Z0-9]{6,50}/\n"
},
{
"answer_id": 291785,
"author": "chroder",
"author_id": 18802,
"author_prof... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,780 | <p>Hey, I'm really new to Haskell and have been using more classic programming languages my whole life. I have no idea what is going on here. I'm trying to make a very simple Viterbi algorithm implementation, but for only two states (honest and dishonest casino)</p>
<p>I have a problem where I want to address my arr... | [
{
"answer_id": 291836,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 4,
"selected": false,
"text": "foo.hs:34:71:\n Couldn't match expected type `[e]' against inferred type `(a, b)'\n In the second argument of `listAr... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37840/"
] |
291,792 | <p>I am creating my textbox with these options. I can Copy / Cut / Paste / Undo, but when I hit <strong>Select All</strong> it doesn't select all. I can right click and click <strong>Select All</strong> but <kbd>CTRL</kbd> + <kbd>A</kbd> doesn't do anything. Why?</p>
<pre><code>wnd = CreateWindow("EDIT", 0,
... | [
{
"answer_id": 291798,
"author": "BoltBait",
"author_id": 20848,
"author_profile": "https://Stackoverflow.com/users/20848",
"pm_score": 2,
"selected": false,
"text": " protected override void OnKeyDown(KeyEventArgs e)\n {\n // Ctrl-A does a Select All in the editor window\n ... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,793 | <p>Is there a way to recursively add all "non added" files to SVN?</p>
<p>I want to do something like</p>
<pre><code>svn add trunk/
</code></pre>
<p>to add all new files, without getting:</p>
<pre><code>svn: warning: 'trunk' is already under version control
</code></pre>
<p>If this is not possible, is there a way ... | [
{
"answer_id": 291800,
"author": "Jonas Kongslund",
"author_id": 37548,
"author_profile": "https://Stackoverflow.com/users/37548",
"pm_score": 5,
"selected": true,
"text": "svn add * --force\n"
},
{
"answer_id": 291854,
"author": "dj_segfault",
"author_id": 14924,
"au... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1638/"
] |
291,813 | <p>What is the recommended way to embed PDF in HTML?</p>
<ul>
<li>iFrame? </li>
<li>Object? </li>
<li>Embed?</li>
</ul>
<p>What does Adobe say itself about it?</p>
<p>In my case, the PDF is generated on the fly, so it can't be uploaded to a third-party solution prior to flushing it.</p>
| [
{
"answer_id": 293250,
"author": "GalacticCowboy",
"author_id": 29638,
"author_profile": "https://Stackoverflow.com/users/29638",
"pm_score": 2,
"selected": false,
"text": "src"
},
{
"answer_id": 2199443,
"author": "amIT",
"author_id": 266155,
"author_profile": "https... | 2008/11/14 | [
"https://Stackoverflow.com/questions/291813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
291,828 | <p>I wrote a function in C that converts a string to an integer and returns the integer. When I call the function I also want it to let me know if the string is not a valid number. In the past I returned -1 when this error occurred, because I didn't need to convert strings to negative numbers. But now I want it to conv... | [
{
"answer_id": 291830,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 4,
"selected": false,
"text": "int my_function(int *ok) {\n /* whatever */\n if(ok) {\n *ok = success;\n }\n return ret_val;\n}\n i... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
291,829 | <p>I have a file with several thousand rows and several columns separated with tabs What I'd like to do is loop through each individually, Drop the columns into an array so that I can place them in another application individually, then move onto the next line. Unfortunately I got about as far as this:</p>
<pre><code... | [
{
"answer_id": 291837,
"author": "DJ.",
"author_id": 10492,
"author_profile": "https://Stackoverflow.com/users/10492",
"pm_score": 0,
"selected": false,
"text": "Dim StringArray as Variant\n\nOpen mytextfile.txt For Input As #FileHandle\n Do While Not EOF(FileHandle)\n Line Input #FileHa... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,841 | <p>For example, will the first piece of code perform a full search twice, or is it smart enough to cache results if no DOM changes have occurred?</p>
<pre><code>if ($("#navbar .heading").text() > "") {
$("#navbar .heading").hide();
}
</code></pre>
<p>and </p>
<pre><code>var $heading = $("#navbar .heading");
if... | [
{
"answer_id": 291862,
"author": "Peter Boughton",
"author_id": 9360,
"author_profile": "https://Stackoverflow.com/users/9360",
"pm_score": 3,
"selected": false,
"text": "$(\"#navbar .heading:not(:empty)\").hide();\n"
},
{
"answer_id": 291923,
"author": "Neil C. Obremski",
... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443/"
] |
291,844 | <p>Which is faster? This:</p>
<pre><code>bool isEqual = (MyObject1 is MyObject2)
</code></pre>
<p>Or this:</p>
<pre><code>bool isEqual = ("blah" == "blah1")
</code></pre>
<p>It would be helpful to figure out which one is faster. Obviously, if you apply .ToUpper() to each side of the string comparison like programme... | [
{
"answer_id": 291856,
"author": "labilbe",
"author_id": 1195872,
"author_profile": "https://Stackoverflow.com/users/1195872",
"pm_score": 2,
"selected": false,
"text": "string toto = \"toto\";\nstring tata = \"tata\";\n\nbool isEqual = string.Compare(toto, tata, StringComparison.Invaria... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28661/"
] |
291,847 | <p>I have a very simple SOAP web service that I need to consume from a Java client. What is the easiest way to accomplish this without using any third party libraries? A requirement is that the host and port is read from the web.xml before every call to the ws.</p>
| [
{
"answer_id": 292269,
"author": "FoxyBOA",
"author_id": 19347,
"author_profile": "https://Stackoverflow.com/users/19347",
"pm_score": 5,
"selected": false,
"text": "DynamicClientFactory dcf = DynamicClientFactory.newInstance();\nClient client = dcf.createClient(\"http://admin:password@l... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16684/"
] |
291,848 | <p>Is it possible to programmatically either via the win32API (python) or via a command line option set the processor affinity for a process?</p>
| [
{
"answer_id": 291851,
"author": "SoapBox",
"author_id": 36384,
"author_profile": "https://Stackoverflow.com/users/36384",
"pm_score": 0,
"selected": false,
"text": "DWORD processorId = 0;\nSetThreadIdealProcessor(GetCurrentThread(),processorId);\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/291848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
291,849 | <p>What is the simplest way in VB6 to loop through all the files in a specified folder directory and get their names?</p>
| [
{
"answer_id": 291882,
"author": "DJ.",
"author_id": 10492,
"author_profile": "https://Stackoverflow.com/users/10492",
"pm_score": 5,
"selected": true,
"text": "sFilename = Dir(sFoldername)\n\nDo While sFilename > \"\"\n\n debug.print sFilename \n sFilename = Dir()\n\nLoop\n"
},
{
... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
291,853 | <p>Doesn't an ORM usually involve doing something like a select *?</p>
<p>If I have a table, MyThing, with column A, B, C, D, etc, then there typically would be an object, MyThing with properties A, B, C, D. </p>
<p>It would be evil if that object were incompletely instantiated by a select statement that looked lik... | [
{
"answer_id": 291886,
"author": "Nicholas Piasecki",
"author_id": 32187,
"author_profile": "https://Stackoverflow.com/users/32187",
"pm_score": 7,
"selected": true,
"text": "Brand BrandId BrandName Brand Description Brand Brand Description get string desc = brand.Description DataAccessE... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
291,866 | <p>I've long toyed with the idea of some kind of auto-cleanup page that performs routine maintenence tasks and is called out of scope of the current page execution by means of calling a 1x1 pixel gif with the asp.net page as the src parameter. One thing I've never really decided on, however, is how to handle the timing... | [
{
"answer_id": 292014,
"author": "Anjisan",
"author_id": 25304,
"author_profile": "https://Stackoverflow.com/users/25304",
"pm_score": 2,
"selected": false,
"text": "void Application_Start(object sender, EventArgs e) \n{\n // Code that runs on application startup\n Application[\"Se... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291866",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34942/"
] |
291,868 | <p>Is there a built in function equivalent to .NET's</p>
<pre><code>Guid.NewGuid();
</code></pre>
<p>in Cocoa?</p>
<p>My desire is to produce a string along the lines of <code>550e8400-e29b-41d4-a716-446655440000</code> which represents a unique identifier.</p>
| [
{
"answer_id": 292006,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "uuidgen"
},
{
"answer_id": 292105,
"author": "Peter Hosey",
"author_id": 30461,
"author_profile": "https:/... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
291,871 | <p>Is there a way to cancel a pending operation (without disconnect) or set a timeout for the boost library functions?</p>
<p>I.e. I want to set a timeout on blocking socket in boost asio?</p>
<p>socket.read_some(boost::asio::buffer(pData, maxSize), error_);</p>
<p>Example: I want to read some from the socket, but I... | [
{
"answer_id": 292438,
"author": "Nicola Bonelli",
"author_id": 19630,
"author_profile": "https://Stackoverflow.com/users/19630",
"pm_score": 4,
"selected": true,
"text": "setsocktopt() boost::asio Specify the receiving or sending timeouts until reporting an\n erro... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
291,888 | <p>I've got a stock standard ASP.NET website. Anyone can read/view any page (except the admin section) but when someone wants to contribute, they need to be logged in. Just like most contribution sites out there.</p>
<p>So, if i have my OWN login control or username/password/submit input fields, why would i want to ha... | [
{
"answer_id": 291913,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "...do your authentication against your DB or Active Directory\n\nif (Request.QueryString[\"ReturnUrl\"] != null)\n{\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
291,891 | <p>I am using the dojo.io.iframe.send method to send a file to my server. I want to provide a way that the user can cancel the send once it is in progress, in case it is taking too long or the user realizes she sent the wrong file.</p>
<p>I can't figure a way to do this. I could use a timeout to terminate the send if ... | [
{
"answer_id": 506798,
"author": "Martijn Laarman",
"author_id": 47020,
"author_profile": "https://Stackoverflow.com/users/47020",
"pm_score": 2,
"selected": false,
"text": "window.stop() execCommand(\"Stop\") about:blank"
},
{
"answer_id": 9842399,
"author": "Bob",
"auth... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,893 | <p>Currently, I'm using a strategy found on many blog posts. Basically, the URL contains the page number (e.g. /Users/List/5 will give you the users on page 5 of your paged list of users). However, I'm not running into a situation where one page must list two separate paged lists. How do I go about doing this using ... | [
{
"answer_id": 292297,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 2,
"selected": false,
"text": "<div id=\"list1\"><%= Html.RenderPartial (\"ListA\") %></div>\n<div id=\"list2\"><%= Html.RenderPartial (\"ListB\") %><... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
291,908 | <p>I would like to match "approximate" matches in Web.SiteMap</p>
<p>The Web.Sitemap static sitemap provider works well, except for one thing. IT'S STATIC!</p>
<p>So, if I would have to have a sitemapnode for each of the 10,000 articles on my page like so :</p>
<ul>
<li>site.com/articles/1/article-title</li>... | [
{
"answer_id": 301744,
"author": "user39603",
"author_id": 39603,
"author_profile": "https://Stackoverflow.com/users/39603",
"pm_score": 2,
"selected": false,
"text": "<siteMapNode> <siteMapNode url=\"dynamicpage.aspx\" title=\"blah\" params=\"id\" />\n"
},
{
"answer_id": 304722,... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26931/"
] |
291,920 | <p>I have to include Groovy classes into existing Java apps, and include Groovy into Ant's <code>build.xml</code> file.</p>
<p>What is the best way to configure Ant's <code>build.xml</code> for it? </p>
<p>Update: Are there more specifics in combining Java and Groovy compilations? Sequence of tasks?</p>
| [
{
"answer_id": 291931,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "<project name=\"groovy-build\" default=\"listSourceFiles\">\n\n<taskdef name=\"groovy\"\n classname=\"org.codehaus.groovy.a... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33917/"
] |
291,922 | <p>I have a nested function to show/hide paragraphs news-ticker-style.</p>
<p>The problem is that when the loop starts over (line 4), the opacity effects stop working correctly so the paragraphs appear abruptly. </p>
<p>Any jquery masters know about this? Am I making this too hard?</p>
<pre><code>$('#special-ticker ... | [
{
"answer_id": 292020,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 4,
"selected": true,
"text": "$(this).animate({opacity:100},10000,null,function(){\n//...\n $(this).animate({ opacity : 1 }, 10000, null, function() {\n"
},... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33822/"
] |
291,927 | <p>I have a Canvas in a Flex application which has items inside it that cover only about 50% of the area of the main canvas.</p>
<p>i want the canvas to respond to <code>rollOver</code> events for the full area, and not just the area that is covered by the items inside.</p>
<p>I have been setting the following attrib... | [
{
"answer_id": 291959,
"author": "mmattax",
"author_id": 1638,
"author_profile": "https://Stackoverflow.com/users/1638",
"pm_score": -1,
"selected": false,
"text": "\n\nimport flash.event.MouseEvent;\n...\ncanvas.addEventListener(MouseEvent.ROLL_OVER,function(event:MouseEvent):void {\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
291,938 | <p>i did this in msvc 2005.</p>
<pre><code>typedef void (*cleanup_t)();
void func(cleanup_t clean)
{
cleanup_t();
}
</code></pre>
<p>Why does this compile? and not give me a warning? ok, it gave me a unreferenced formal parameter warning but originally i did this when clean was in a class no there was no unrefer... | [
{
"answer_id": 291952,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 4,
"selected": false,
"text": "1 + 2;\n cleanup_t template <class T>\nclass foo\n{\n T myT;\n\n public:\n\n foo() {\n myT = T();\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
291,939 | <p>while exploring jQuery I came up with the following weird script. I don't see myself doing this really however concatenating strings to achieve a variable name is not unusual in JavaScript. </p>
<p>Any feedback welcome.</p>
<pre><code>...
<script type="text/javascript">
var a = 'y';
$(doc... | [
{
"answer_id": 291948,
"author": "Adam Bellaire",
"author_id": 21632,
"author_profile": "https://Stackoverflow.com/users/21632",
"pm_score": 3,
"selected": true,
"text": "jQuery.html()"
},
{
"answer_id": 663363,
"author": "rfunduk",
"author_id": 210,
"author_profile":... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34565/"
] |
291,945 | <p>Say I have the following in my <code>models.py</code>:</p>
<pre><code>class Company(models.Model):
name = ...
class Rate(models.Model):
company = models.ForeignKey(Company)
name = ...
class Client(models.Model):
name = ...
company = models.ForeignKey(Company)
base_rate = models.ForeignKey(Rate)
... | [
{
"answer_id": 291968,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 9,
"selected": true,
"text": "queryset form.rate.queryset = Rate.objects.filter(company_id=the_company.id)\n form.fields[\"rate\"].queryset = ..."
},
... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3715/"
] |
291,946 | <p>Is it possible to use a TabContainer inside a templated FormView like so:
</p>
<pre><code> <ItemTemplate>
<cc1:TabContainer ID="TabContainer1" runat="server">
<cc1:TabPanel ID="Tab1" runat="server">
<HeaderTemplate>Tab One</H... | [
{
"answer_id": 291989,
"author": "Bobby Borszich",
"author_id": 35585,
"author_profile": "https://Stackoverflow.com/users/35585",
"pm_score": 1,
"selected": false,
"text": "<cc1:TabContainer ID=\"TabContainer1\" runat=\"server\">\n<cc1:TabContainer ID=\"TabContainer2\" runat=\"server\">\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22556/"
] |
291,976 | <p>Having a relative path, how do I turn it into an absolute one from the location where the elisp file that I'm loading is. That is, I have an elisp file that I'm loading, it has an relative path and I need an absolute one.</p>
| [
{
"answer_id": 292001,
"author": "Emerick Rogul",
"author_id": 33837,
"author_profile": "https://Stackoverflow.com/users/33837",
"pm_score": 3,
"selected": false,
"text": "expand-file-name"
},
{
"answer_id": 292044,
"author": "pupeno",
"author_id": 6068,
"author_profi... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
291,978 | <p>What <strong>exactly</strong> are the Python scoping rules?</p>
<p>If I have some code:</p>
<pre><code>code1
class Foo:
code2
def spam.....
code3
for code4..:
code5
x()
</code></pre>
<p>Where is <code>x</code> found? Some possible choices include the list below:</p>
<ol>
<li>In t... | [
{
"answer_id": 292002,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": false,
"text": "globals locals x Foo.spam for if try code2 Foo.code2 self.code2 variable.instance self.variable self"
},
{
"answer_... | 2008/11/15 | [
"https://Stackoverflow.com/questions/291978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1320510/"
] |
292,016 | <p>I've been asked to find a way to connect from a Linux system to one of several Windows servers. What we need to do ideally is connect to whatever Windows server is causing the trouble, kill a process, and restart the process. Ideally, it would be something that could be put into a script that could be run from the... | [
{
"answer_id": 292073,
"author": "Rizwan Kassim",
"author_id": 35335,
"author_profile": "https://Stackoverflow.com/users/35335",
"pm_score": 2,
"selected": true,
"text": "taskkill /f /im notepad.exe\n ps -elW"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29801/"
] |
292,026 | <p>The default seems to be upper case, but is there really any reason to use upper case for keywords?</p>
<p>I started using upper case, because I was just trying to match what <a href="https://en.wikipedia.org/wiki/Microsoft_SQL_Server" rel="nofollow noreferrer">SQL Server</a> gives me whenever I tried to create somet... | [
{
"answer_id": 293676,
"author": "davidtbernal",
"author_id": 19370,
"author_profile": "https://Stackoverflow.com/users/19370",
"pm_score": 5,
"selected": false,
"text": "SELECT name, id, xtype, uid, info, status, \nbase_schema_ver, replinfo, parent_obj, crdate, \nftcatid, schema_ver, st... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1381/"
] |
292,032 | <p>Just noticed that the style of the navigation menu on windows.com is just what i need for my website. I'm wondering how to create that kind of drop down list that has multiple columns. When the mouse hover on each item, the column gives a preview of that item. Thank you. </p>
| [
{
"answer_id": 292118,
"author": "Phil.Wheeler",
"author_id": 15609,
"author_profile": "https://Stackoverflow.com/users/15609",
"pm_score": 0,
"selected": false,
"text": "<ul> <li> <span> <!-- BEGIN: Products Menu -->\n <div id=\"PageWrapper\" class=\"HomePage\">\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37857/"
] |
292,037 | <p>I'm trying to highlight the search results but I want to include the surrounding text that is limited by the enclosing tags.</p>
<p>So if the $term is "cool" the preg_replace should end up with:</p>
<pre><code><div><span style="background: #f00">My hair cut so cool!</span></div>
</code></pr... | [
{
"answer_id": 292291,
"author": "Jan Goyvaerts",
"author_id": 33358,
"author_profile": "https://Stackoverflow.com/users/33358",
"pm_score": 3,
"selected": true,
"text": "$pattern = \"/[^<>]*$term[^<>]*/i\";\n$replace = \"<span style=\\\"background: #f00\\\">$0</span>\";\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,041 | <p>I'd like to add a custom title to one of the predefined UITabBarItems. Whenever I select the particular instance I like in Interface Builder -- if I modify the the title it gets preset back to a 'custom' identifier. Ideally I'd like the book icon from the 'Bookmarks' identifier with my own custom title.</p>
<p>Is t... | [
{
"answer_id": 292055,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 4,
"selected": true,
"text": "-initWithTitle:image:tag"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,066 | <p>This code is blunderous, as it adds a class to an array and later tries to pull it and manipulate it as if it were an object.</p>
<pre><code>private function fail(event:Event):void
{
var myObj:MyClass;
var a:ArrayCollection = new ArrayCollection();
var x:MyClass;
var y:MyClass;
myObj = new MyCl... | [
{
"answer_id": 332259,
"author": "Jesse Millikan",
"author_id": 7526,
"author_profile": "https://Stackoverflow.com/users/7526",
"pm_score": 4,
"selected": true,
"text": "function drawBricks(xs:Array, ys:Array, brickType:Class){\n xs.map(function(o,i,a){\n var brick = new brickType();\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24734/"
] |
292,068 | <p>I have seen a lot of <code>ob_get_clean()</code> the last while. Typically I have done <code>$test .= 'test'</code></p>
<p>I'm wondering if one is faster and/or better than the other.</p>
<p>Here is the code using <code>ob_get_clean()</code>:</p>
<pre><code>ob_start();
foreach($items as $item) {
echo '<di... | [
{
"answer_id": 292087,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 3,
"selected": false,
"text": "ob_get_contents() ob_clean() ob_get_clean()"
},
{
"answer_id": 292219,
"author": "Preston",
"author_... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
292,071 | <p>I'm working on a game for the iPhone that has a drawing/paint mechanic involved and I'm having problems trying to create a tool that would erase things already painted.</p>
<p>The main problem is that the background being painted on is not a solid color but a static image or animation. I've tried using different bl... | [
{
"answer_id": 292140,
"author": "Whaledawg",
"author_id": 23829,
"author_profile": "https://Stackoverflow.com/users/23829",
"pm_score": 2,
"selected": false,
"text": " glWindowPos2i(X, Y);\n glDrawPixels(drawing->Width, drawing->Height, drawing->Format, \n GL_UNSIGNED_BYTE,... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37863/"
] |
292,085 | <p>I stumbled upon this javascript obfuscator called <a href="http://www.ideareactor.com/idea/HomePage.html" rel="nofollow noreferrer">Squash</a>, I want to use it on my ExtJS project to obfuscate my javascript files. I've tried it and the result are totally obfuscated codes. But it seems that I have to obfuscate the E... | [
{
"answer_id": 293751,
"author": "holli",
"author_id": 18606,
"author_profile": "https://Stackoverflow.com/users/18606",
"pm_score": 1,
"selected": false,
"text": "@Public setDocumentTitle"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,091 | <p>How can I delete all the tables in a web page? The tables don't have any ids associated with them.</p>
| [
{
"answer_id": 292096,
"author": "Kyle West",
"author_id": 34133,
"author_profile": "https://Stackoverflow.com/users/34133",
"pm_score": 2,
"selected": false,
"text": "$(document).ready(function() {\n $(\"table\").remove();\n});\n"
},
{
"answer_id": 292106,
"author": "Joel C... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33203/"
] |
292,095 | <p>How can I poll the keyboard from a console python app? Specifically, I would like to do something akin to this in the midst of a lot of other I/O activities (socket selects, serial port access, etc.):</p>
<pre><code>while True:
# doing amazing pythonic embedded stuff
# ...
# periodically do a non-blocki... | [
{
"answer_id": 293249,
"author": "K. Brafford",
"author_id": 33263,
"author_profile": "https://Stackoverflow.com/users/33263",
"pm_score": 3,
"selected": false,
"text": "import msvcrt # built-in module\n\ndef kbfunc():\n return ord(msvcrt.getch()) if msvcrt.kbhit() else 0\n #include <... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292095",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33263/"
] |
292,097 | <p>I wanted to grep for java process and then find the max heap memory used.
I tried this</p>
<pre><code>def ex =['sh','-c','ps -aef | grep Xmx']
String str = ex.execute().text
</code></pre>
<p>while <code>str</code> has something like <em>java -Xmx1024M /kv/classes/bebo/ -Xms512M</em>
How do I extract the value <em... | [
{
"answer_id": 292286,
"author": "Jan Goyvaerts",
"author_id": 33358,
"author_profile": "https://Stackoverflow.com/users/33358",
"pm_score": 0,
"selected": false,
"text": "String ResultString = null;\nPattern regex = Pattern.compile(\"-Xmx(\\\\d+M)\");\nMatcher regexMatcher = regex.match... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37870/"
] |
292,098 | <p>VB 6: How can I execute a .bat file but wait until its done running before moving on?</p>
| [
{
"answer_id": 292108,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 4,
"selected": true,
"text": " Type SHELLEXECUTEINFO\n cbSize As Long\n fMask As Long\n hwnd As Lon... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,101 | <p>I just learned something interesting. The add method for the javascript select object in IE 6 takes only one parameter. It throws an error when you pass it two parameters which I believe is the <a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html.html" rel="noreferrer">standard</a>, even as <a ... | [
{
"answer_id": 292122,
"author": "Elle H",
"author_id": 23666,
"author_profile": "https://Stackoverflow.com/users/23666",
"pm_score": 4,
"selected": false,
"text": "function addOption(selectID, display, value)\n{\n var obj = document.getElementById(selectID);\n obj.options[obj.options.... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25191/"
] |
292,109 | <p>With Linux/GCC/C++, I'd like to record something to stderr whenever malloc/free/new/delete are called. I'm trying to understand a library's memory allocations, and so I'd like to generate this output while I'm running unit tests. I use valgrind for mem leak detection, but I can't find an option to make it just log... | [
{
"answer_id": 292129,
"author": "Emerick Rogul",
"author_id": 33837,
"author_profile": "https://Stackoverflow.com/users/33837",
"pm_score": 3,
"selected": false,
"text": "new delete new[] malloc_hook free_hook"
},
{
"answer_id": 292143,
"author": "Robert Gamble",
"author... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23524/"
] |
292,137 | <p>In Google groups and some other web sites, there is a 5-star rating component which is pretty neat, such as in this url:
<a href="http://groups.google.com/group/Google-Picasa-Data-API/browse_thread/thread/b5a346e6429a70a7?hl=en" rel="noreferrer">http://groups.google.com/group/Google-Picasa-Data-API/browse_thread/thr... | [
{
"answer_id": 299948,
"author": "Alex",
"author_id": 35999,
"author_profile": "https://Stackoverflow.com/users/35999",
"pm_score": 3,
"selected": false,
"text": "CGFloat relativeTouchLocation = [event locationInView:self] / self.bounds.size.width;\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292137",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32096/"
] |
292,164 | <p>In Visual Studio I can type e.g. </p>
<blockquote>
<p>for <kbd>TAB</kbd> <kbd>TAB</kbd></p>
</blockquote>
<p>and a code snippet pops in. </p>
<p>Are there built-in code snippets for private, public, etc. methods as well?</p>
| [
{
"answer_id": 292168,
"author": "Cameron MacFarland",
"author_id": 3820,
"author_profile": "https://Stackoverflow.com/users/3820",
"pm_score": 8,
"selected": true,
"text": "static int main static void main"
},
{
"answer_id": 16510215,
"author": "daniel1426",
"author_id":... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4639/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.