qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
296,978 | <p>I've got a small piece of code that is parsing an index value to determine a cell input into Excel. It's got me thinking...</p>
<p>What's the difference between </p>
<pre><code>xlsSheet.Write("C" + rowIndex.ToString(), null, title);
</code></pre>
<p>and</p>
<pre><code>xlsSheet.Write(string.Format("C{0}", rowInd... | [
{
"answer_id": 296985,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "xlsSheet.Write(\"C\" + rowIndex, null, title);\n xlsSheet.Write($\"C{rowIndex}\", null, title);\n"
},
{
"answer_i... | 2008/11/17 | [
"https://Stackoverflow.com/questions/296978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33226/"
] |
296,981 | <p>Could someone show me a regular expression that would look through this document and select the href value of every href that has <code>RELATION_ID</code> on the end of it?
Then if it does, I have to get the Id that is before the question mark (example <code>href="dctm://ISDOFSDdev/</code>37004e1f800021f3<code>?DMS_... | [
{
"answer_id": 296997,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 1,
"selected": false,
"text": "href=\".*/([^\"?/]*)?[^\"]*RELATION_ID[^\"]*\" ([^\"?/]*) Matcher.group(int) Matcher.find(int)"
},
{
"answer_id": 29... | 2008/11/17 | [
"https://Stackoverflow.com/questions/296981",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5653/"
] |
297,018 | <p>I have stored a txt file as string in a database column. Now on one of my aspx page I have a link...I want to open a txt file when the user clicks on this link. How can i read a file from database. I know how to do this using streamreader for a file stored on the disk.</p>
<p>Thanks</p>
| [
{
"answer_id": 297044,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "public void Page_Load(object sender, EventArgs e)\n var text = (from x in dataContext.MyTextTable where x.Id == someId select... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34219/"
] |
297,029 | <p>How to get file name and revision number as a list starting from a designated folder?</p>
| [
{
"answer_id": 298196,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 0,
"selected": false,
"text": "cvs status ===================================================================\nFile: test.pas Status: Up-to-date... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,034 | <p>In <a href="https://stackoverflow.com/questions/204467/is-there-a-perl-function-to-turn-a-string-into-a-regexp-to-use-that-string-as-p">another Stack Overflow question</a> <a href="https://stackoverflow.com/users/4727/leon-timmermans">Leon Timmermans</a> asserted:</p>
<blockquote>
<p>I would advice you not t... | [
{
"answer_id": 297095,
"author": "cjm",
"author_id": 8355,
"author_profile": "https://Stackoverflow.com/users/8355",
"pm_score": 6,
"selected": false,
"text": "&function(...) $ my @array = qw(a b c);\n\nfoo(@array);\nfoo(@array[0..1]);\nfoo($array[0], $array[1], $array[2]);\n\nsub foo ($... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6782/"
] |
297,035 | <p>I am currently faced with a difficult sorting problem. I have a collection of events that need to be sorted against each other (a <a href="http://en.wikipedia.org/wiki/Comparison_sort" rel="nofollow noreferrer">comparison sort</a>) and against their relative position in the list.</p>
<p>In the simplest terms I have... | [
{
"answer_id": 297073,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 2,
"selected": false,
"text": "event a (priority = 1, start = 5)\nevent b (priority = 2, start = 0)\n a b b a"
},
{
"answer_id": 297079,
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11889/"
] |
297,048 | <p>What is the best method to determine if a user has viewed a piece of data, ie like an update to a comment. The two solutions I have thought about are these....</p>
<ol>
<li><p>Use a separate table that has a row for each user and the data id that is being viewed and inserting into when the item was last viewed.</p>... | [
{
"answer_id": 297083,
"author": "Kyle West",
"author_id": 34133,
"author_profile": "https://Stackoverflow.com/users/34133",
"pm_score": 2,
"selected": false,
"text": "select count(*) from DataAlerts where dataid = 1 and userid = 1\n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/297048",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342514/"
] |
297,063 | <p>I'm still trying to get my head around using Java's generics. I have no problems at all with using typed collections, but much of the rest of it just seems to escape me.</p>
<p>Right now I'm trying to use the JUnit "PrivateAccessor", which requires a Class[] argument with a list of all the argument types for the p... | [
{
"answer_id": 297138,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": false,
"text": "Class<?>[] paramTypes = new Class[]{ Collection.class, ArrayList.class };\n"
},
{
"answer_id": 297170,
"author"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3333/"
] |
297,064 | <p>This one has me beat;</p>
<p>I have a WPF window with two (important for this case) controls, both from the WPF toolkit available at CodePlex; A DatePicker and a DataGrid.</p>
<p>The DataContext of this window is set to a CLR object that has all the information it needs. This CLR object has a large list of data, a... | [
{
"answer_id": 297186,
"author": "Sacha Bruttin",
"author_id": 20761,
"author_profile": "https://Stackoverflow.com/users/20761",
"pm_score": 1,
"selected": false,
"text": " <ObjectDataProvider ObjectType=\"{x:Type theObjectType}\" \n MethodName=\"GetDataForDate\"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2122/"
] |
297,068 | <p>Normally, the method of passing workflow parameters to the workflow happens in the call to RunWorkflow. However, with the WorkflowServiceHost, there is no such method call involved. You simply call the Open() method on the instance. Any ideas?</p>
<p>Of course, the implication is that I add more parameters to th... | [
{
"answer_id": 297186,
"author": "Sacha Bruttin",
"author_id": 20761,
"author_profile": "https://Stackoverflow.com/users/20761",
"pm_score": 1,
"selected": false,
"text": " <ObjectDataProvider ObjectType=\"{x:Type theObjectType}\" \n MethodName=\"GetDataForDate\"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5573/"
] |
297,070 | <p>I'm looking for Java code that can be used to generate sound at runtime - NOT playback of existing sound files.</p>
<p>For example, what's the best code for generating a sawtooth waveform at 440 Hz for a duration of 2 milliseconds? <b>Source code appreciated!</b></p>
<p>I remember my Commodore 128 had a simple Sou... | [
{
"answer_id": 376209,
"author": "basszero",
"author_id": 287,
"author_profile": "https://Stackoverflow.com/users/287",
"pm_score": 4,
"selected": true,
"text": "// in hz, number of samples in one second\nsampleRate = 44100\n\n// this is the time BETWEEN Samples\nsamplePeriod = 1.0 / sam... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2197/"
] |
297,081 | <p>I am trying to RegisterClientScriptBlock in a method that is only called via an AJAX call. It doesn't appear to actually register the script on the page and I'm guessing this is because it's not actually reloading the entire page. Is there any way to register javascript on a page from within an ajax method call?</... | [
{
"answer_id": 297291,
"author": "Robert Wagner",
"author_id": 10784,
"author_profile": "https://Stackoverflow.com/users/10784",
"pm_score": 5,
"selected": true,
"text": "ScriptManager.RegisterClientScriptBlock(Page, typeof(MyPage), \n \"MyScript\", \"GoStuff()\", true)\n"
},
{
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24908/"
] |
297,084 | <p>We're running into performance issues with our implementation of Team Foundation Build Server and I'm running out of ideas on how to speed things up. We've already added a few PropertyGroup elements to increase the performance on several steps (SkipClean, SkipLabel, SkipInitializeWorkspace), but I think we need to u... | [
{
"answer_id": 352650,
"author": "Chad Gilbert",
"author_id": 34409,
"author_profile": "https://Stackoverflow.com/users/34409",
"pm_score": 2,
"selected": false,
"text": "<Target Name=\"CoreDropBuild\"\n Condition=\" '$(SkipDropBuild)'!='true' and '$(IsDesktopBuild)'!='true' \"\n ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34409/"
] |
297,111 | <p>Can anyone point me to an example of how to use ServletUnit to test JSP's? Do I need I need to call registerServlet()? If so, what class name do I pass?</p>
| [
{
"answer_id": 1798413,
"author": "user142435",
"author_id": 142435,
"author_profile": "https://Stackoverflow.com/users/142435",
"pm_score": 3,
"selected": true,
"text": "<dependency>\n <groupId>tomcat</groupId>\n <artifactId>jasper</artifactId>\n <version>3.3.2</version>\n <scope>te... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38226/"
] |
297,116 | <p>I have a collection of domain objects that I need to convert into another type for use by the .NET framework. What is the best practice for doing such a transformation?</p>
<p>Specifically, I have a type called ContentEntry and I need to convert it into a SyndicationItem for use in putting into a SyndicationFeed. T... | [
{
"answer_id": 297133,
"author": "Joel Martinez",
"author_id": 5416,
"author_profile": "https://Stackoverflow.com/users/5416",
"pm_score": 0,
"selected": false,
"text": "SyndicationItem item = (SyndicationItem)entry"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/297116",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2656/"
] |
297,119 | <p>I've struggled for the last couple of months to come up with some clean code to report progress to a user. Everything always seems to boil down to:</p>
<pre><code>ReportProgress("Starting Task 1");
doTask1();
ReportProgress("Task 1 is done");
ReportProgress("Starting Task 2");
doTask2();
ReportProgress("Task 2 is... | [
{
"answer_id": 297156,
"author": "Ryan Thames",
"author_id": 1459442,
"author_profile": "https://Stackoverflow.com/users/1459442",
"pm_score": 0,
"selected": false,
"text": "doTask1();\ndoTask2();\n"
},
{
"answer_id": 297185,
"author": "Steven A. Lowe",
"author_id": 9345,... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33226/"
] |
297,121 | <p>I have a section on my ASP.net web.config for the Enterprise library logging block. Is it possible to separate the logging configuration into another configuration file? How do I do that?</p>
| [
{
"answer_id": 297156,
"author": "Ryan Thames",
"author_id": 1459442,
"author_profile": "https://Stackoverflow.com/users/1459442",
"pm_score": 0,
"selected": false,
"text": "doTask1();\ndoTask2();\n"
},
{
"answer_id": 297185,
"author": "Steven A. Lowe",
"author_id": 9345,... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
297,122 | <p>What should I keep in mind when converting my projects from C to C++? Is there any reason to use C at all? The only thing in my mind now is to make sure it's friendly to DLLs so I can create a C interface if I need it.</p>
<p>Note: I know C++ just fine. Templates, partial specialization, why multiple inheritance is... | [
{
"answer_id": 297229,
"author": "ypnos",
"author_id": 21974,
"author_profile": "https://Stackoverflow.com/users/21974",
"pm_score": 3,
"selected": false,
"text": "extern \"C\" {}"
},
{
"answer_id": 297317,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile":... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,134 | <p>I have a folder "FolderA" which contains three sub-folders: foldera1 foldera2 and foldera3</p>
<p>I need to write a batch file which resides inside "FolderA". It should delete all the folders under "FolderA" as a cleanup activity. I don't know the folder names. <code>rmdir</code> does not support wild cards.</p>
<... | [
{
"answer_id": 297152,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "for /f %%a in ('dir /ad /b') do (rmdir /S /Q \"%%a\")\nfor /d %%a in (*) do (rmdir /S /Q \"%%a\")\n for /f %a in ('dir /ad /b') ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32670/"
] |
297,136 | <p>Is there a way to prompt the user for input during a NAnt build? I want to execute a command that takes a password, but I don't want to put the password into the build script.</p>
| [
{
"answer_id": 297203,
"author": "sundar venugopal",
"author_id": 32670,
"author_profile": "https://Stackoverflow.com/users/32670",
"pm_score": 2,
"selected": false,
"text": "<script language=\"C#\" prefix=\"test\" >\n <code>\n <![CDATA[\n [Function(\"get... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4794/"
] |
297,205 | <p>I have a field (say, foo) in a table in a SQL Server database that was originally defined as nullable, but new requirements indicate that this field must be non-null.</p>
<p>What's the best way of updating this field to non-null via an update script without deleting the contents of the table? I tried generating a ... | [
{
"answer_id": 297248,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 4,
"selected": true,
"text": "NULL NULL NOT NULL -- Clean up the data which won't comply with the schema changes\nUPDATE t SET foo = 0 WHERE foo IS NUL... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5563/"
] |
297,206 | <p>I have a simple page that displays a user's email addresses in a table. I also have a textbox underneath the table and an "add" button. Currently, I am using a simple form post that is handled by a controller that will add the e-mail address to the database and reload the page. This works fine, but I'm looking to... | [
{
"answer_id": 297259,
"author": "EndangeredMassa",
"author_id": 106,
"author_profile": "https://Stackoverflow.com/users/106",
"pm_score": 2,
"selected": false,
"text": "{\n result: 'SUCCESS',\n description: 'Email Added.'\n}\n //This function abstracts away the strangeness in deal... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
297,213 | <p>Given a columns' index, how can you get an Excel column name?</p>
<p>The problem is trickier than it sounds because it's <strong>not just base-26</strong>. The columns don't wrap over like normal digits would. Even the <a href="http://support.microsoft.com/kb/833402" rel="nofollow noreferrer">Microsoft Support Examp... | [
{
"answer_id": 297214,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 6,
"selected": true,
"text": "Function ColumnName(ByVal index As Integer) As String\n Static chars() As Char = {\"A\"c, \"B\"c, \"C\"c, \"D\"c... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3043/"
] |
297,217 | <p>I got a web application, the problem is that the text in the label will not update on the first click, I need to click the button twice, I debugged to code, and I found out that the label does not recive the data until after the second click,</p>
<p>Here is my code:</p>
<pre><code>System.Data.SqlClient.SqlCommand ... | [
{
"answer_id": 297230,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 2,
"selected": false,
"text": "if (!Page.IsPostBack)\n{\n ...\n}\n"
},
{
"answer_id": 297362,
"author": "JackCorn",
"author_id": 14919,
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,220 | <p>Using VBA in MS Office, how do I add text to the Windows clipboard so that it will paste into Word as a table?</p>
| [
{
"answer_id": 297288,
"author": "staticsan",
"author_id": 28832,
"author_profile": "https://Stackoverflow.com/users/28832",
"pm_score": 0,
"selected": false,
"text": "Paste Special"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/297220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16415/"
] |
297,236 | <p>I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser. </p>
<p>I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to reset IE's count of commands... | [
{
"answer_id": 297266,
"author": "Eric Wendelin",
"author_id": 25066,
"author_profile": "https://Stackoverflow.com/users/25066",
"pm_score": 2,
"selected": false,
"text": "window.onunload = null;\n"
},
{
"answer_id": 2251407,
"author": "Narsi",
"author_id": 271792,
"a... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2785/"
] |
297,238 | <p>How do you repopulate a form in ASP.NET MVC that contains a DropDownList?</p>
| [
{
"answer_id": 316240,
"author": "BigJoe714",
"author_id": 37786,
"author_profile": "https://Stackoverflow.com/users/37786",
"pm_score": 3,
"selected": false,
"text": "private Dictionary<string, string> getListItems()\n{\n Dictionary<string, string> d = new Dictionary<string, string>(... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297238",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,239 | <p>I am testing against the following test document:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
... | [
{
"answer_id": 297243,
"author": "Ned Batchelder",
"author_id": 14343,
"author_profile": "https://Stackoverflow.com/users/14343",
"pm_score": 6,
"selected": true,
"text": ">>> tree.getroot().xpath(\n... \"//xhtml:img\", \n... namespaces={'xhtml':'http://www.w3.org/1999/xhtml'}\n.... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2168/"
] |
297,245 | <p>Does anyone know of some good tutorials that explain how to use the JQuery Slider.</p>
<p>I've found a few, but none of them really present what I need in clear terms. What I really need to figure out how to do is make the slider go from 1.0 - 5.0 (including all tenths) and when it changes set a hidden control bas... | [
{
"answer_id": 297338,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 3,
"selected": true,
"text": "$('#mySlider').slider({\n min : 1,\n max : 5,\n stepping: .1, // or, steps: 40\n change : function (e, ui) {\n ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
297,251 | <p>I have a vertical menu in my system which is basically made of HTML <code>ul</code>/<code>li</code> with CSS styling (see image below). However I don't want the <code>li</code> items which are wider than the menu to wrap, I would prefer them to overflow with a horizontal scroll bar at the bottom of the menu. How can... | [
{
"answer_id": 297255,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 3,
"selected": false,
"text": "white-space:nowrap li {\n white-space:nowrap;\n}\n"
},
{
"answer_id": 297272,
"author": "Owen",
"author_id"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27294/"
] |
297,269 | <p>Is there a tool which tells you (or gives you a hint) why a particular select statement dose not return any rows given the current data in your database. </p>
<p>eg if you had the following 4 table join</p>
<pre><code>select *
from a, b, c, d
where a.b_id = b.id
and b.c_id = c.id
and c.d_id = d.id
</code></pre>
... | [
{
"answer_id": 297289,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 4,
"selected": false,
"text": "SELECT *\nFROM a -- First run just to here, are there records?\nINNER JOIN b\n ON a.b_id = b.id -- Then run just to h... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38383/"
] |
297,277 | <p>I am trying to do some prime factorisation with my VBA excel and I am hitting the limit of the <code>long</code> data type - </p>
<blockquote>
<p>Runtime Error 6 Overflow </p>
</blockquote>
<p>Is there any way to get around this and still stay within VBA? I am aware that the obvious one would be to use another m... | [
{
"answer_id": 297480,
"author": "Lance Roberts",
"author_id": 13295,
"author_profile": "https://Stackoverflow.com/users/13295",
"pm_score": 2,
"selected": true,
"text": "r = A - Int(A / B) * B\n"
},
{
"answer_id": 297593,
"author": "bugmagnet",
"author_id": 426,
"aut... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22972/"
] |
297,280 | <p>I have a databases table with ~50K rows in it, each row represents a job that need to be done. I have a program that extracts a job from the DB, does the job and puts the result back in the db. (this system is running right now)</p>
<p>Now I want to allow more than one processing task to do jobs but be sure that no... | [
{
"answer_id": 297354,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 5,
"selected": true,
"text": "MsgId identity -- NOT NULL\nMsgTypeCode varchar(20) -- NOT NULL \nSourceCode varchar(20) -- process inserting the message ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
297,294 | <p>My build environment is configured to compile, run and create coverage file at the command line (using Ned Batchelder coverage.py tool). </p>
<p>I'm using Eclipse with PyDev as my editor, but for practical reasons, it's not possible/convenient for me to convert my whole build environment to Eclipse (and thus genera... | [
{
"answer_id": 297354,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 5,
"selected": true,
"text": "MsgId identity -- NOT NULL\nMsgTypeCode varchar(20) -- NOT NULL \nSourceCode varchar(20) -- process inserting the message ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8027/"
] |
297,297 | <p>I've got a button that I'm adding as a subview of a table view's tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most part, though, it's unresponsive. I've tried adding it as a subview of the table itself; the effect is about the same. I thought the problem might be... | [
{
"answer_id": 7897148,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "- (void)viewDidLoad\n{\n [super viewDidLoad];\n\n MYCustomWidget *headerView = [[[NSBundle mainBundle] \n ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30618/"
] |
297,298 | <p>When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008?</p>
<p><strong>Update 1</strong><br>
I have looked for the 'Browse with' option and not found it.<br>
<a href="https://stackoverflow.com/questions/79954/visual-studio-opens-default-browser-instead-of... | [
{
"answer_id": 618007,
"author": "Matthew Lock",
"author_id": 74585,
"author_profile": "https://Stackoverflow.com/users/74585",
"pm_score": 3,
"selected": false,
"text": "Project Properties -> Web -> Start Action"
},
{
"answer_id": 3180941,
"author": "PHOTON",
"author_id"... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6268/"
] |
297,299 | <p>I have my enumHelper class that contains these:</p>
<pre><code>public static IList<T> GetValues()
{
IList<T> list = new List<T>();
foreach (object value in Enum.GetValues(typeof(T)))
{
list.Add((T)value);
}
return list;
}
</code></pre>
<p>and</p>
<pre><code>public static string Des... | [
{
"answer_id": 297333,
"author": "nsayer",
"author_id": 13757,
"author_profile": "https://Stackoverflow.com/users/13757",
"pm_score": -1,
"selected": false,
"text": "public static BindingList<KeyValuePair<T extends _interface_, String>> getBindingList()\n T foo = ...?\nfoo.Description(..... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297299",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,303 | <p>Some days ago I realized that <a href="http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.html" rel="noreferrer">PrintWriter</a> (as well as <a href="http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html" rel="noreferrer">PrintStream</a>) <strong>never throw an IOException</strong> when writing, flus... | [
{
"answer_id": 297649,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 5,
"selected": true,
"text": "System.out System.err PrintStream PrintWriter PrintStream System.err"
},
{
"answer_id": 62482878,
"author": "Dav... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4308/"
] |
297,335 | <p>I've got some code that will generically get all Controls in a form and put them in a list. Here's some of the code:</p>
<pre><code> private List<Control> GetControlList(Form parentForm)
{
List<Control> controlList = new List<Control>();
AddControlsToList(par... | [
{
"answer_id": 297378,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 4,
"selected": true,
"text": "Designer ComponentDesigner AssociatedComponents Timer DesignerAttribute ControlDesigner ComponentDesigner ComponentDesigner... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21828/"
] |
297,345 | <p>I've got a large amount of data (a couple gigs) I need to write to a zip file in Python. I can't load it all into memory at once to pass to the .writestr method of ZipFile, and I really don't want to feed it all out to disk using temporary files and then read it back.</p>
<p>Is there a way to feed a generator or a... | [
{
"answer_id": 297376,
"author": "altunyurt",
"author_id": 37491,
"author_profile": "https://Stackoverflow.com/users/37491",
"pm_score": 2,
"selected": false,
"text": "file = gzip.GzipFile('blah.gz', 'wb')\nsourcefile = open('source', 'rb')\nchunks = []\nfor line in sourcefile:\n chunks... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9161/"
] |
297,349 | <p>I am trying to use google search for my site:</p>
<p><a href="http://www.houseofhawkins.com/search.php" rel="noreferrer">http://www.houseofhawkins.com/search.php</a></p>
<p>It is not playing nice with some screen resolutions. Here is the code given from google:</p>
<pre><code><div id="cse-search-results">&... | [
{
"answer_id": 1085229,
"author": "Thomas Beck",
"author_id": 131794,
"author_profile": "https://Stackoverflow.com/users/131794",
"pm_score": 3,
"selected": false,
"text": "style =\"width:500\" #cse-search-results iframe { }"
},
{
"answer_id": 1273628,
"author": "dhorn",
... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6486/"
] |
297,371 | <p>I want to stress test a web service method by calling it several thousand times in quick succession. The method has a single string parameter that I will vary on each call.</p>
<p>I'm planning on writing a Powershell script to loop and call this method a number of times.</p>
<p>Is there a better way to do this?</p... | [
{
"answer_id": 53878777,
"author": "davidp_1978",
"author_id": 1988756,
"author_profile": "https://Stackoverflow.com/users/1988756",
"pm_score": 0,
"selected": false,
"text": "ForEach -Parallel ($item in $collection) { }\n"
}
] | 2008/11/17 | [
"https://Stackoverflow.com/questions/297371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1463/"
] |
297,383 | <p>I am hoping to dynamically update a ModelForm's inline Meta class from my view. Although this code seems to update the exclude list in the Meta class, the output from <code>as_p()</code>, <code>as_ul()</code>, etc does not reflect the updated Meta exclude.</p>
<p>I assume then that the html is generated when the Mo... | [
{
"answer_id": 297478,
"author": "Daniel Naab",
"author_id": 32638,
"author_profile": "https://Stackoverflow.com/users/32638",
"pm_score": 7,
"selected": true,
"text": "def get_form(exclude_list):\n class MyForm(ModelForm):\n class Meta:\n model = Passenger\n ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22306/"
] |
297,387 | <p>I have a problem where I am attempting to update a set of attributes with a fixed value contained within a repeating section of an XML document using the <code>Microsoft.BizTalk.Streaming.ValueMutator</code>. </p>
<p>For example the XML document which I am attempting to update contains the following input:</p>
<pr... | [
{
"answer_id": 297453,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_profile": "https://Stackoverflow.com/users/36305",
"pm_score": 0,
"selected": false,
"text": "//namespace-uri()='http://Test.Schemas']/*[local-name()='NodeA']/*[local-name()='NodeB']/*[@Type] /*[namespace-u... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3810/"
] |
297,392 | <p>I'm preferably looking for a SQL query to accomplish this, but other options might be useful too.</p>
| [
{
"answer_id": 297400,
"author": "WW.",
"author_id": 14663,
"author_profile": "https://Stackoverflow.com/users/14663",
"pm_score": 6,
"selected": true,
"text": "SELECT LAST_DDL_TIME, TIMESTAMP\nFROM USER_OBJECTS\nWHERE OBJECT_TYPE = 'PROCEDURE'\nAND OBJECT_NAME = 'MY_PROC';\n LAST_DDL_TI... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
297,398 | <p>How can I validate date strings in Perl? I'd like to account for leap years and also time zones. Someone may enter dates in the following formats:</p>
<pre>
11/17/2008
11/17/2008 3pm
11/17/2008 12:01am
11/17/2008 12:01am EST
11/17/2008 12:01am CST
</pre>
| [
{
"answer_id": 298345,
"author": "draegtun",
"author_id": 12195,
"author_profile": "https://Stackoverflow.com/users/12195",
"pm_score": 4,
"selected": true,
"text": "use DateTime::Format::DateManip; \n\nmy @dates = (\n '11/17/2008',\n '11/17/2008 3pm',\n '11/17/2008 12:01am',\n ... | 2008/11/17 | [
"https://Stackoverflow.com/questions/297398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,417 | <p>Can someone show me a regex to select <strong>#OnlinePopup_AFE53E2CACBF4D8196E6360D4DDB6B70</strong> its okay to assume <code>#OnlinePopup</code></p>
<pre><code>~DCTM~dctm://aicpcudev/37004e1f8000219e?DMS_OBJECT_SPEC=RELATION_ID#OnlinePopup_AFE53E2CACBF4D8196E6360D4DDB6B70_11472026_1214836152225_6455280574472127786... | [
{
"answer_id": 297428,
"author": "Robert Wagner",
"author_id": 10784,
"author_profile": "https://Stackoverflow.com/users/10784",
"pm_score": 3,
"selected": true,
"text": "#[^_]+_[^_]+\n #OnlinePopup_[A-F0-9]+\n"
},
{
"answer_id": 297430,
"author": "Paige Ruten",
"author_i... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297417",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5653/"
] |
297,420 | <p>Does anyone have a list of email addresses that I can use to test my JS address validation script? I'm looking for as complete of a list as is reasonable to test the most common edge cases, if not all cases.</p>
| [
{
"answer_id": 297707,
"author": "some",
"author_id": 36866,
"author_profile": "https://Stackoverflow.com/users/36866",
"pm_score": 0,
"selected": false,
"text": "function isEmail(address) {\n var pos = address.lastIndexOf(\"@\");\n return pos > 0 && (address.lastIndexOf(\".\") > p... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38407/"
] |
297,421 | <p>Where can I set it? I need files to be encoded in UTF-8 by default... there is nothing in Tools -> Options or any other menu as far as I know :( </p>
<p>P.S. I don't need to set default encoding for Project or so, I need it to be default for any files I create. Thanks for your help :)</p>
| [
{
"answer_id": 297436,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "Save As..."
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25413/"
] |
297,426 | <p>I'm writing a basic sprite engine for my own amusement and to get better aquainted with Java's 2d API. Currently I am making use of large numbers of separate .png files with transparent backgrounds to represent the various sprites and different frames of animation that I need. Most 'real world' game development proj... | [
{
"answer_id": 2760766,
"author": "SAKIPOOH",
"author_id": 331739,
"author_profile": "https://Stackoverflow.com/users/331739",
"pm_score": 0,
"selected": false,
"text": "currentframe=spritesheet.getSubimage(x, y, w, h); \n"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
297,431 | <p>When I create a new instance of a ChannelFactory:</p>
<pre><code>var factory = new ChannelFactory<IMyService>();
</code></pre>
<p>and that I create a new channel, I have an exception saying that the address of the Endpoint is null. </p>
<p>My configuration inside my web.config is as mentioned and everything... | [
{
"answer_id": 298110,
"author": "AnAngel",
"author_id": 38482,
"author_profile": "https://Stackoverflow.com/users/38482",
"pm_score": 3,
"selected": false,
"text": "<endpoint address=\"http://localhost:2000/MyService/\" binding=\"wsHttpBinding\"\n behaviorConfiguration=\"wsHttpBehavi... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24975/"
] |
297,435 | <p>If I have...</p>
<pre><code>class Bunny < ActiveRecord::Base
has_many :carrots
end
</code></pre>
<p>...how can I check in the View if <code>@bunny</code> has any carrots? I want to do something like this:</p>
<pre><code><% if @bunny.carrots? %>
<strong>Yay! Carrots!</strong>
<% for ... | [
{
"answer_id": 297451,
"author": "JasonTrue",
"author_id": 13433,
"author_profile": "https://Stackoverflow.com/users/13433",
"pm_score": 1,
"selected": false,
"text": " if @bunny.carrots.length>0\n unless @bunny.carrots.nil? || @bunny.carrots.length>0\n if @bunny.carrots.any?\n"
},
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
297,438 | <p>I'm using JPA (Hibernate's implementation) to annotate entity classes to persist to a relational database (MySQL or SQL Server). Is there an easy way to auto generate the database schema (table creation scripts) from the annotated classes?</p>
<p>I'm still in the prototyping phase and anticipate frequent schema cha... | [
{
"answer_id": 1068003,
"author": "H2000",
"author_id": 115887,
"author_profile": "https://Stackoverflow.com/users/115887",
"pm_score": 4,
"selected": false,
"text": "import java.util.Collection;\nimport java.util.Properties;\n\nimport org.hibernate.cfg.AnnotationConfiguration;\nimport o... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
297,460 | <p>Is there any way to force Text-Mate to use a two-space tab instead of a full tab when editing HTML (Rails) documents?</p>
| [
{
"answer_id": 297466,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 5,
"selected": true,
"text": "Tabs: 4 2 Soft Tabs rhtml erb"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
297,465 | <p>Is it possible to write a PL/SQL query to identify a complete list of a stored procedures dependencies? I'm only interested in identifying other stored procedures and I'd prefer not to limit the depth of nesting that it gets too either. For example, if A calls B, which calls C, which calls D, I'd want B, C and D rep... | [
{
"answer_id": 297492,
"author": "Eddie Awad",
"author_id": 17273,
"author_profile": "https://Stackoverflow.com/users/17273",
"pm_score": 4,
"selected": true,
"text": " SELECT lvl\n , u.object_id\n , u.object_type\n , LPAD (' ', lvl) || object_name obj\n FROM ( SELECT LEVEL... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1030/"
] |
297,470 | <p>I have a couple search forms, 1 with ~50 fields and the other with ~100. Typically, as the HTML spec says, I do searches using the GET method as no data is changed. I haven't run into this problem yet, but I'm wondering if I will run out of URL space soon?</p>
<p>The limit of <a href="http://support.microsoft.com/k... | [
{
"answer_id": 298089,
"author": "Tom",
"author_id": 26155,
"author_profile": "https://Stackoverflow.com/users/26155",
"pm_score": 1,
"selected": false,
"text": "GET <?php\nif (isset($_GET['token']))\n{\n $token = addslashes($_GET['token']);\n $qry = mysql_query(\"SELECT fields FRO... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
297,471 | <p>I get an error when I compile this code:</p>
<pre><code>using System;
public struct Vector2
{
public event EventHandler trigger;
public float X;
public float Y;
public Vector2 func()
{
Vector2 vector;
vector.X = 1;
vector.Y = 2;
return vector; // error CS0165:... | [
{
"answer_id": 297481,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 5,
"selected": true,
"text": "Vector2 vector = new Vector2()\n"
},
{
"answer_id": 297509,
"author": "Kennet Belenky",
"author_id": 37788... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38413/"
] |
297,472 | <p>I am trying to do a simple datagrid in Flex with a doubleclick event, but I cannot get <code>itemDoubleClick</code> to fire:</p>
<pre><code><mx:DataGrid id="gridReportConversions" height="100%" width="100%" mouseEnabled="true" doubleClickEnabled="true" itemDoubleClick="refererRowDoubleClicked(event)">
... | [
{
"answer_id": 297481,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 5,
"selected": true,
"text": "Vector2 vector = new Vector2()\n"
},
{
"answer_id": 297509,
"author": "Kennet Belenky",
"author_id": 37788... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
297,482 | <p>I would like to be able to manipulate the DOM just before my page is sent to be printed. Internet Explorer has an event on the window object called "onbeforeprint" but this is proprietary and isn't supported by other browsers. Is it possible to do this via javascript (jQuery in particular, if possible)?</p>
<p>Befo... | [
{
"answer_id": 297545,
"author": "foxy",
"author_id": 30119,
"author_profile": "https://Stackoverflow.com/users/30119",
"pm_score": 3,
"selected": true,
"text": "!important <div class=\"test\" style=\"color: blue;\">Some Text</div>\n .test {\n color: red !important;\n }\n"
},
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32935/"
] |
297,498 | <p>I am wondering if it is possible to use Code Access Security, and a custom permission class (and attribute), without having to register the assembly that the attribute is in, in the GAC.</p>
<p>At the moment, I get a TypeLoadException when the method with my attribute is called, and I can't seem to get around it. E... | [
{
"answer_id": 297545,
"author": "foxy",
"author_id": 30119,
"author_profile": "https://Stackoverflow.com/users/30119",
"pm_score": 3,
"selected": true,
"text": "!important <div class=\"test\" style=\"color: blue;\">Some Text</div>\n .test {\n color: red !important;\n }\n"
},
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/489/"
] |
297,504 | <p>Is there a way in MySQL to select rows which fall on a specific day, as in Mondays, using a date column?</p>
| [
{
"answer_id": 297513,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM foo WHERE DAYOFWEEK(bar) = 2\n"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3410/"
] |
297,514 | <p>I have the following makefile that I use to build a program (a kernel, actually) that I'm working on. Its from scratch and I'm learning about the process, so its not perfect, but I think its powerful enough at this point for my level of experience writing makefiles.</p>
<pre><code>AS = nasm
CC = gcc
LD = l... | [
{
"answer_id": 297523,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 3,
"selected": false,
"text": ".h %.o: %.c\n @echo Compiling $<...\n $(CC) $(CFLAGS) -c -o $@ $<\n\nfoo.c: bar.h\n# And so on...\n"
},
{... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19521/"
] |
297,517 | <p>I have a user control that has several buttons.</p>
<p>On <code>page_load</code>, I want to run a method unless a specific button was pressed.</p>
<p>When I check the sender on <code>page_load</code> inside the user control, I just get the name of the user control and not the button itself.</p>
<p>Is there a way ... | [
{
"answer_id": 297546,
"author": "Chris Roberts",
"author_id": 475,
"author_profile": "https://Stackoverflow.com/users/475",
"pm_score": 2,
"selected": false,
"text": "Request.Form (\"__EVENTTARGET\") ClientID ClientID"
},
{
"answer_id": 534635,
"author": "Geri Langlois",
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
297,526 | <p>I do remember seeing someone ask something along these lines a while ago but I did a search and couldn't find anything. </p>
<p>I'm trying to come up with the cleanest way to clear all the controls on a form back to their defaults (e.g., clear textboxes, uncheck checkboxes).</p>
<p>How would you go about this?</p>... | [
{
"answer_id": 297529,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 5,
"selected": true,
"text": "public static class extenstions\n{\n private static Dictionary<Type, Action<Control>> controldefaults = new Dictionary<Ty... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
297,530 | <p>I have a view that I would like the user to rotate around its center, by tapping and holding somewhere and just move their finger round and round.</p>
<p>I have all the geometry worked out; What I do is store the initial touch angle relative to the center as offsetAngle, then my touchesMoved method looks like this:... | [
{
"answer_id": 299787,
"author": "e.James",
"author_id": 33686,
"author_profile": "https://Stackoverflow.com/users/33686",
"pm_score": 2,
"selected": false,
"text": "- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event\n{\n CGPoint location = [[touches anyObject] locationI... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297530",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32617/"
] |
297,542 | <p>I would like to be able to detect what country a visitor is from on my website, using PHP. </p>
<p>Please note that I'm not trying to use this as a security measure or for anything important, just changing the spelling of some words <em>(Americans seems to believe that the word "enrolment" has 2 Ls.... crazy yanks)... | [
{
"answer_id": 297549,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 3,
"selected": false,
"text": " Example: http://api.hostip.info/get_html.php?ip=12.215.42.19\n Return : Country: UNITED STATES (US)\n"
},
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
297,555 | <p>I have a multipart form that takes basic user information at the beginning with some jquery.validate error checking to see if the fields have been filled in and the email address is valid.</p>
<p>Below that there is a series of check boxes (type_of_request) for new accounts, delete accounts, new software etc which ... | [
{
"answer_id": 297597,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "$(document).ready( function() { $('form').validate(); } );\n\nfunction init_validation(divName)\n{\n $('div#' + divN... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38419/"
] |
297,563 | <p>I have a property defined in my HBM file like this:</p>
<pre><code><property name="OwnerId" column="OwnerID" type="System.Int32" not-null="false" />
</code></pre>
<p>It is defined as a nullable field in the database also. If a record in the DB has the OwnerID column set to an integer, this object is correct... | [
{
"answer_id": 297597,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "$(document).ready( function() { $('form').validate(); } );\n\nfunction init_validation(divName)\n{\n $('div#' + divN... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10475/"
] |
297,586 | <p>I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to "kSoap2" and then some bit about parsing it all manually with <a href="http://en.wikipedia.org/wiki/Simple_API_for_XML"... | [
{
"answer_id": 426241,
"author": "Neil",
"author_id": 52115,
"author_profile": "https://Stackoverflow.com/users/52115",
"pm_score": 7,
"selected": false,
"text": "org.apache.http.impl.client.DefaultHttpClient HttpClient httpClient = new DefaultHttpClient();\nHttpContext localContext = ne... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38426/"
] |
297,609 | <p>What is the simplest way to get the NT-ID of a user in a C# application? I would probably need to get it only having a name of the user, or maybe an email address.</p>
| [
{
"answer_id": 297805,
"author": "DylanW",
"author_id": 13463,
"author_profile": "https://Stackoverflow.com/users/13463",
"pm_score": 2,
"selected": true,
"text": "SPPrincipalInfo pi = SPUtility.ResolveWindowsPrincipal(SPContext.Current.Site.WebApplication, \"MYDOMAIN\\\\myusername\", SP... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29227/"
] |
297,615 | <p>I'm having the hardest time trying to get this to work, hoping one of you has done this before.</p>
<p>I have a C# console app that is running a child process which inherits its console. I want a ctrl-c caught by the outer app to be passed along to the inner app so that it can have a chance to shut down nicely.</p>... | [
{
"answer_id": 297637,
"author": "Hans Passant",
"author_id": 17034,
"author_profile": "https://Stackoverflow.com/users/17034",
"pm_score": 2,
"selected": false,
"text": "CreateProcess() Process.ExitCode"
},
{
"answer_id": 1802908,
"author": "Weeble",
"author_id": 2283,
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14582/"
] |
297,654 | <p>I'm learning about Win32 programming, and the <code>WinMain</code> prototype looks like:</p>
<pre><code>int WINAPI WinMain ( HINSTANCE instance, HINSTANCE prev_instance, PSTR cmd_line, int cmd_show )
</code></pre>
<p>I was confused as to what this <code>WINAPI</code> identifier was for and found:</p>
<pre><code>#... | [
{
"answer_id": 297661,
"author": "Rob Walker",
"author_id": 3631,
"author_profile": "https://Stackoverflow.com/users/3631",
"pm_score": 9,
"selected": true,
"text": "__stdcall __cdecl __thiscall __fastcall __declspec(naked) __stdcall"
},
{
"answer_id": 758972,
"author": "Comm... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30529/"
] |
297,656 | <p>I'm having a syntax error.
I want to take the floor of a function that returns a floating point number.</p>
<p>I <em>thought</em> this would give me the right answer</p>
<pre><code>let cyclesPerInterrupt bps bpw cpu factor =
floor (fudge (float(factor) cyclesPerWord cpu wordsPerSec bps bpw))
</code></pre>
<p>Bu... | [
{
"answer_id": 297752,
"author": "Brian",
"author_id": 19299,
"author_profile": "https://Stackoverflow.com/users/19299",
"pm_score": 2,
"selected": false,
"text": "...(cyclesPerWord cpu (wordsPerSec bps bpw))\n"
},
{
"answer_id": 298538,
"author": "simonuk",
"author_id": ... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26227/"
] |
297,671 | <p>I have read a book whose title is "Oracle PL SQL Programming" (2nd ed.) by Steven Feuerstein & Bill Pribyl. On page 99, there is a point suggested that </p>
<p><strong>Do not "SELECT COUNT(*)" from a table unless you really need to know the total number of "hits." If you only need to know whether there is more ... | [
{
"answer_id": 297699,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 1,
"selected": false,
"text": "SELECT COUNT(*) >= 2 EXISTS WITH CustomersWith2OrMoreOrders AS (\n SELECT CustomerID\n FROM Orders\n GROUP BY C... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1602746/"
] |
297,678 | <p>I am implementing an asynchronous command pattern for the "client" class in a client/server application. I have done some socket coding in the past and I like the new Async pattern that they used in the Socket / SocketAsyncEventArgs classes.</p>
<p>My async method looks like this: <code>public bool ExecuteAsync(Com... | [
{
"answer_id": 297937,
"author": "Nicholas Piasecki",
"author_id": 32187,
"author_profile": "https://Stackoverflow.com/users/32187",
"pm_score": 3,
"selected": false,
"text": "BackgroundWorker BeginInvoke()/EndInvoke() \nprivate delegate int CommandDelegate(string number);\n\nprivate voi... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16387/"
] |
297,680 | <p>I have a code sample that gets a <code>SEL</code> from the current object, </p>
<pre><code>SEL callback = @selector(mymethod:parameter2);
</code></pre>
<p>And I have a method like </p>
<pre><code> -(void)mymethod:(id)v1 parameter2;(NSString*)v2 {
}
</code></pre>
<p>Now I need to move <code>mymethod</code> to ano... | [
{
"answer_id": 297695,
"author": "Grant Limberg",
"author_id": 27314,
"author_profile": "https://Stackoverflow.com/users/27314",
"pm_score": 4,
"selected": false,
"text": "[object setCallbackObject:self withSelector:@selector(myMethod:)];\n -(void)setCallbackObject:(id)anObject withSelec... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32096/"
] |
297,686 | <p>Is there a good <strong>cross-browser</strong> way to set a <code>max-height</code> property of a DIV and when that DIV goes beyond the <code>max-height</code>, it turns into an overflow with scrollbars?</p>
| [
{
"answer_id": 297802,
"author": "ethyreal",
"author_id": 18159,
"author_profile": "https://Stackoverflow.com/users/18159",
"pm_score": 5,
"selected": false,
"text": " div{\n _height: expression( this.scrollHeight > 332 ? \"333px\" : \"auto\" ); /* sets max-height for IE6 */\n ... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
297,687 | <p>I haven't worked much with Visual Studio before. I've started a personal project in my spare time and I would like to use test-driven development since it has been a huge benefit to me in my Java development. I started this project quite a while ago, and I used CppUnit. I know there are probably other frameworks tha... | [
{
"answer_id": 297802,
"author": "ethyreal",
"author_id": 18159,
"author_profile": "https://Stackoverflow.com/users/18159",
"pm_score": 5,
"selected": false,
"text": " div{\n _height: expression( this.scrollHeight > 332 ? \"333px\" : \"auto\" ); /* sets max-height for IE6 */\n ... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,701 | <p>Every time that I create a new form in my application, it uses the "Microsoft Sans Serif, 8.25pt" font by default. I'm not changing it because I know that in this case my form <em>should</em> pick up whatever the default font is for the system. However, when I run my application, the font that is used is still anyth... | [
{
"answer_id": 300081,
"author": "Hans Passant",
"author_id": 17034,
"author_profile": "https://Stackoverflow.com/users/17034",
"pm_score": 4,
"selected": false,
"text": "GetStockObject(DEFAULT_GUI_FONT)"
},
{
"answer_id": 461126,
"author": "CS.",
"author_id": 57085,
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21952/"
] |
297,713 | <p>I would like to convert an array if IDs, into a string of comma separated values, to use in a MySQL UPDATE query. How would I do this?</p>
| [
{
"answer_id": 297719,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 4,
"selected": false,
"text": "implode(',', $array);\n"
},
{
"answer_id": 298245,
"author": "troelskn",
"author_id": 18180,
"au... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,743 | <p>Does anyone think it is possible to build a Google Docs style PDF document viewer, which will convert a document to a format that doesn't require Adobe Reader on the client machine?</p>
<p>If so, any references to point to? Either a place that had done it, or an explanation of how to do it.</p>
| [
{
"answer_id": 2199297,
"author": "Tom van Enckevort",
"author_id": 108816,
"author_profile": "https://Stackoverflow.com/users/108816",
"pm_score": 1,
"selected": false,
"text": "http://docs.google.com/viewer?embedded=true&url=http%3A%2F%2Fwww.domain.com%2Fdocument.pdf\n"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297743",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24126/"
] |
297,749 | <p>Given:</p>
<pre><code>CR = %0d = \r
LF = %0a = \n
</code></pre>
<p>What does</p>
<p>%3E,
%3C </p>
<p>Mean?</p>
| [
{
"answer_id": 297757,
"author": "x0n",
"author_id": 6920,
"author_profile": "https://Stackoverflow.com/users/6920",
"pm_score": 3,
"selected": false,
"text": "javascript:alert(unescape(\"%3E\"))\n"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4960/"
] |
297,762 | <p><strong>Does anyone know of an algorithm (or search terms / descriptions) to locate a known image within a larger image?</strong></p>
<p>e.g.</p>
<p>I have an image of a single desktop window containing various buttons and areas (target). I also have code to capture a screen shot of the current desktop. I would ... | [
{
"answer_id": 297820,
"author": "Mr Fooz",
"author_id": 25050,
"author_profile": "https://Stackoverflow.com/users/25050",
"pm_score": 3,
"selected": false,
"text": "// look for all (x,y) positions where target appears in desktop\nList<Loc> findMatches(Image desktop, Image target, float ... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29009/"
] |
297,804 | <p>How are the java API thread priorities (1-10) gets translated to the OS level priorities since most OS don't have thread priority levels (in terms of number) which match this.</p>
<p>So keeping in mind , can there be a scenario when two or more threads with different priorities eventually get the same priority at O... | [
{
"answer_id": 297835,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 5,
"selected": true,
"text": "nice THREAD_PRIORITY_LOWEST THREAD_PRIORITY_BELOW_NORMAL THREAD_PRIORITY_NORMAL THREAD_PRIORITY_ABOVE_NORMAL THREAD_PRIORITY_... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11614/"
] |
297,822 | <p>As the title says. How would I create an instance of a class that is globally available(for example I have a functor for printing and i want to have a single global instance of this(though the possibility of creating more)).</p>
| [
{
"answer_id": 297847,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 6,
"selected": true,
"text": "// myclass.h\n\nclass MyClass {\npublic:\n MyClass();\n void foo();\n // ...\n};\n\nextern MyClass g_MyClassInsta... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37181/"
] |
297,840 | <p>Right now I have a few new applications being developed against an Oracle Database, and sometimes they crash or fail to end correctly, etc... anyways the problem is they sometimes seem to leave their connections open, and I need to cleanup after them.
My question is if there is a way from the database-side of things... | [
{
"answer_id": 297917,
"author": "WW.",
"author_id": 14663,
"author_profile": "https://Stackoverflow.com/users/14663",
"pm_score": 2,
"selected": false,
"text": "SELECT 'alter system kill session ''' || sid || ',' || serial# || '''; ' || sql_id death\nFROM v$session\n/\n"
},
{
... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297840",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15124/"
] |
297,850 | <p>I have spent several hours trying to find a means of writing a cross platform password prompt in php that hides the password that is input by the user. While this is easily accomplished in Unix environments through the use of stty -echo, I have tried various means of passthru() and system() calls to make windows do... | [
{
"answer_id": 297943,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": false,
"text": "<?php\necho 'Password: ';\n$pwd = preg_replace('/\\r?\\n$/', '', `stty -echo; head -n1 ; stty echo`);\necho \"\\n\";\n... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
297,855 | <p><em>Overview</em></p>
<p>I'm working on some Emergency Services reporting and mapping application for California (kind of weird, considering the fires there, right now...). We need to map demographic and emergency data for an internal govt unit.</p>
<p>What we have are <em>all</em> the streets, cities and neighbor... | [
{
"answer_id": 310662,
"author": "Richard Harrison",
"author_id": 19624,
"author_profile": "https://Stackoverflow.com/users/19624",
"pm_score": 2,
"selected": false,
"text": "- la Maison des Fou\n- 24500 Eymet\n"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
297,889 | <p>I have an MDI application that allows me to open different types of child windows. I can open multiple (but different) instances of the same type of child window. (Example: I can open 3 instances of child window type A and 2 instances of child window type B. All 5 windows are distinct entities and do not share da... | [
{
"answer_id": 838981,
"author": "Pondidum",
"author_id": 1500,
"author_profile": "https://Stackoverflow.com/users/1500",
"pm_score": 1,
"selected": false,
"text": "Public Class UserControl2\n\n Private Sub tsMainMenu_BeginDrag(ByVal sender As Object, ByVal e As System.EventArgs) Hand... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20788/"
] |
297,899 | <p>I am trying to import an existing PDF as a template with FPDI. The template is in landscape format. If I import the template into a new document the template page is inserted in portrait form with the content rotated 90 degrees. If my new document is in portrait the full content appears, but if the new document i... | [
{
"answer_id": 300565,
"author": "crono",
"author_id": 1462,
"author_profile": "https://Stackoverflow.com/users/1462",
"pm_score": 6,
"selected": true,
"text": "<?php\nrequire_once('fpdf.php');\nrequire_once('fpdi.php');\n\n$pdf =& new FPDI();\n$pdf->addPage('L');\n$pagecount = $pdf->set... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38458/"
] |
297,909 | <p>I have a question about variable initialization in MASM's assembly. </p>
<p>How can I initialize 2^32 to a variable and to what kind of variable should I initialize? DWORD or REAL4?</p>
<p>I try to do it like:</p>
<pre><code>val DWORD 2.0E+32
</code></pre>
<p>When I assign var to a register(e.g. mov eax,val) and... | [
{
"answer_id": 297957,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 2,
"selected": false,
"text": "2.0E+32 0x100000000"
},
{
"answer_id": 297975,
"author": "Cheery",
"author_id": 21711,
"author_profil... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26379/"
] |
297,938 | <p>In Java, is there a way to have a window that is "Always on top" regardless if the user switches focus to another application? I've searched the web, and all of the solutions lean to some sort of JNI interface with native bindings. Truly this can't be the only way to do it?.. or is it?</p>
| [
{
"answer_id": 297948,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 8,
"selected": true,
"text": "Window import javax.swing.JFrame;\nimport javax.swing.JLabel;\n\npublic class Annoying {\n public static void main(Stri... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14204/"
] |
297,951 | <p>my goal is to get lots of rows from a translation table. I use an ID to get a subset of the table (say 50 rows) then I use another ID to the rows I want from this subset. Using typed datasets I do the following to get the main dataset: </p>
<pre><code>funderTextsDS.tbl_funderTextsDataTable fd =
(funderTextsDS.tbl_... | [
{
"answer_id": 297979,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 0,
"selected": false,
"text": "var data = mDB.tbl_funderTexts.where(f => f.funderID == funderid && f.eng_code == element)\nvar fundertext = data.single().... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37083/"
] |
297,954 | <p>I have this form in my view: </p>
<pre><code><!-- Bug (extra 'i') right here-----------v -->
<!-- was: <form method="post" enctype="mulitipart/form-data" action="/Task/SaveFile"> -->
<form method="post" enctype="multipart/form-data" action="/Task/SaveFile">
<input type="file" id="FileBlo... | [
{
"answer_id": 297966,
"author": "Pure.Krome",
"author_id": 30674,
"author_profile": "https://Stackoverflow.com/users/30674",
"pm_score": 2,
"selected": false,
"text": "var file = Request.Files[sFileName];\n var file = Request.Files[\"FileBlob\"];\n Request.Files.Count"
},
{
"ans... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2187/"
] |
297,955 | <p>I am developing a .NET CF based Graphics Application, my project involves a lot of drawing images, We have decided to go for porting the application on different handset resolution.(240 X 240 , 480 X 640) etc. </p>
<p>How would i go onto achieve this within single solution/project?</p>
<p>Is there a need to create... | [
{
"answer_id": 298025,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 2,
"selected": false,
"text": "[DllImport(\"coredll.dll\", EntryPoint = (\"GetSystemMetrics\"))]\npublic static extern int GetSystemMetrics(int nInd... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13046/"
] |
297,960 | <p>I have some code on my PHP powered site that creates a random hash (using <code>sha1()</code>) and I use it to match records in the database.</p>
<p>What are the chances of a collision? Should I generate the hash, then check first if it's in the database (I'd rather avoid an extra query) or automatically insert it,... | [
{
"answer_id": 298133,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 1,
"selected": false,
"text": "id = 5;\nhash = hash(\"My Private String \" + id)\nlink = \"http://mySite.com/resource?id=\" + id + \"&hash=\" + has... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31671/"
] |
297,970 | <p>There are a number of great Javascript libraries\frameworks out there (jQuery, Prototype, MooTools, etc.), but they all seem to focus on DOM interaction and AJAX functionality. I haven't found any that focus on extending the built-in data types (String, Date, Number, etc.). And by "Extending" I mean methods to solve... | [
{
"answer_id": 298019,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": false,
"text": "$.trim(String), $.inArray(value, Array)"
}
] | 2008/11/18 | [
"https://Stackoverflow.com/questions/297970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30214/"
] |
297,996 | <p>I'm currently working on a very short project on Prolog, and just got stuck trying to apply a "filter" I have created to a list. I have what you could call the filter ready, but I can't apply it. It'd be better if I illustrate:</p>
<pre><code>filter(A, B)
</code></pre>
<p>...outputs 'true' if certain conditions a... | [
{
"answer_id": 298022,
"author": "Sergio Morales",
"author_id": 9506,
"author_profile": "https://Stackoverflow.com/users/9506",
"pm_score": 0,
"selected": false,
"text": "filterList(_,[],R,R). % Returns answer when the list is exhausted.\nfilterList(L,[A|List],Temp,Res) :-\n ... | 2008/11/18 | [
"https://Stackoverflow.com/questions/297996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9506/"
] |
298,004 | <p>Is there a neat archiving library that automatically handles archiving a folder or directories for you out there?
I am using Jython, so Java libs are also open for use.
-UPDATE-
Also Im looking for timestamp archiving. ie </p>
<p>archive-dir/2008/11/16/zipfilebypreference.zip</p>
<p>then the next day call it again... | [
{
"answer_id": 298030,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "import javax.servlet.http.HttpServlet\n\nimport cStringIO\nimport gzip\nimport string\n\ndef compressBuf(buf):\n zbuf = c... | 2008/11/18 | [
"https://Stackoverflow.com/questions/298004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
298,009 | <p>Is there any way to direct C# to ignore <code>NullReferenceException</code> (or any specific exception for that matter) for a set of statements.
This is useful when trying to read properties from a deserialized object that may contain many null objects in it.
Having a helper method to check for null could be one wa... | [
{
"answer_id": 298012,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "string foo = null;\nfoo.Spooky();\n...\npublic static void Spooky(this string bar) {\n Console.WriteLine(\"boo!\")... | 2008/11/18 | [
"https://Stackoverflow.com/questions/298009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7722/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.