qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
287,474 | <p>What is the difference between <code>HAVING</code> and <code>WHERE</code> in an <code>SQL SELECT</code> statement?</p>
<p>EDIT: I have marked Steven's answer as the correct one as it contained the key bit of information on the link:</p>
<blockquote>
<p>When <code>GROUP BY</code> is not used, <code>HAVING</code> beha... | [
{
"answer_id": 287475,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 4,
"selected": false,
"text": "HAVING GROUP BY SELECT edc_country, COUNT(*)\nFROM Ed_Centers\nGROUP BY edc_country\nHAVING COUNT(*) > 1\nORDER BY edc_cou... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1223/"
] |
287,489 | <p>I have a CSS class called grid which I place on my tables. I want to Zebra strip my even rows so I use the following jQuery code</p>
<pre><code>$(".grid tr:nth-child(even)").addClass("even");
</code></pre>
<p>This basically says "Apply the css class even to any tr tag which has a parent (at any level) with a class... | [
{
"answer_id": 287499,
"author": "MrKurt",
"author_id": 35296,
"author_profile": "https://Stackoverflow.com/users/35296",
"pm_score": 4,
"selected": true,
"text": "$(\".grid > tr:nth-child(even)\").addClass(\"even\");\n .grid"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45/"
] |
287,517 | <p>I've <strong>inherited</strong> a web app that I've just discovered stores over 300,000 usernames/passwords in plain text in a SQL Server database. I realize that this is a Very Bad Thing™.</p>
<p>Knowing that I'll have to update the login and password update processes to encrypt/decrypt, and with the smallest imp... | [
{
"answer_id": 287539,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": -1,
"selected": false,
"text": "ALTER TABLE users ADD COLUMN hashedPassword varbinary(max);\nALTER TABLE users ADD COLUMN salt char(10);\n--Generat... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2034/"
] |
287,540 | <p>I have an object created in a host application and can access it remotely using remoting, is there any way I can test the connection to ensure it is still "alive"? Maybe an event I can use that fires if the remoting connection gets disconnected, or some property that can tell me the state of the remoting connection.... | [
{
"answer_id": 287567,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 4,
"selected": true,
"text": " public void Ping() {} \n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
287,541 | <p>What I'd like to do is produce an HTML/CSS/JS version of the following. The gridlines and other aspects are not important. It's more of a question how to do the background databars.</p>
<p><a href="https://i.stack.imgur.com/tPLAD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tPLAD.png" alt="a... | [
{
"answer_id": 287617,
"author": "bobince",
"author_id": 18936,
"author_profile": "https://Stackoverflow.com/users/18936",
"pm_score": 2,
"selected": true,
"text": "<div style=\"background: url(bg.gif) -50px 0 no-repeat;\">5</div>\n<div style=\"background: url(bg.gif) -20px 0 no-repeat;\... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
287,543 | <p>I can't seem to find in the SDK how to programatically sense the mute button/switch on the iPhone. When my app plays background music, it responds properly to the volume button without me having any code to follow that but, when I use the mute switch, it just keeps playing away.</p>
<p>How do I test the position o... | [
{
"answer_id": 292918,
"author": "Olie",
"author_id": 34820,
"author_profile": "https://Stackoverflow.com/users/34820",
"pm_score": 6,
"selected": true,
"text": "// \"Ambient\" makes it respect the mute switch\n// Must call this once to init session\nif (!gAudioSessionInited)\n{\n Aud... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34820/"
] |
287,553 | <p>Every time I have to build a form with a <code>DateTime</code> field I try to find a decent free custom control - I always fail.</p>
<p>I cannot figure out why it isn't built in the .NET but let's forget about for a minute and concentrate on my question :D</p>
<p>Anyone got one?</p>
| [
{
"answer_id": 287815,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 2,
"selected": true,
"text": "Mask=\"99:99\"\nAutoCompleteValue=\"00:00\"\nAcceptAMPM=\"true\"\nMaskType=\"Time\"\n"
},
{
"answer_id": 289808,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31765/"
] |
287,563 | <p>Is there a way in Oracle to select the date on which daylight savings will switch over for my locale?</p>
<p>Something vaguely equivalent to this would be nice:</p>
<pre><code>SELECT CHANGEOVER_DATE
FROM SOME_SYSTEM_TABLE
WHERE DATE_TYPE = 'DAYLIGHT_SAVINGS_CHANGEOVER'
AND TO_CHAR(CHANGEOVER_DATE,'YYYY') = TO_CH... | [
{
"answer_id": 287855,
"author": "Leigh Riffel",
"author_id": 27010,
"author_profile": "https://Stackoverflow.com/users/27010",
"pm_score": 3,
"selected": true,
"text": "Function DaylightSavingTimeStart (p_Date IN Date)\nReturn Date Is\n v_Date Date;\n v_LoopIndex Integer;\nBe... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/672/"
] |
287,585 | <p>I'm trying to pass a null value for the first parameter in the code below, but MySQL complains that </p>
<pre>
Incorrect number of arguments for PROCEDURE myProc; expected 2, got 1
</pre>
<p>When I manually call the procedure with the first argument as null, it works, but when <code>EmptyAsNullStartsWith(employeeN... | [
{
"answer_id": 9112404,
"author": "yanke",
"author_id": 1185115,
"author_profile": "https://Stackoverflow.com/users/1185115",
"pm_score": 0,
"selected": false,
"text": "if(employeeNumberText.Text != \"\")\n db.AddInParameter(dbCommand, \"in_employeeNumber\", DbType.String, employeeN... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
287,587 | <p>I have the following code, I'm trying to get a table with 4 columns across. If I run out of columns, create a new row and make 4 more coumns. rinse. lather. repeat.</p>
<pre><code><tbody>
<%
int i = 0;
foreach (ItmXtnMultimedia multimedia in ViewData.Model.ItmXtnMultimedia) {
if (i%4 == 0 && i== ... | [
{
"answer_id": 287667,
"author": "Ian P",
"author_id": 10853,
"author_profile": "https://Stackoverflow.com/users/10853",
"pm_score": 0,
"selected": false,
"text": "foreach (ItmXtnMultimedia multimedia in ViewData.Model.ItmXtnMultimedia) \n{\n if (i%4 == 0 && i== 0)\n {\n %><tr><%\... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
287,588 | <p>Why does the select statement below return two different values ?</p>
<pre><code>declare @tempDec decimal
set @tempDec = 1.0 / (1.0 + 1.0)
select @tempDec, 1.0 / (1.0 + 1.0)
</code></pre>
| [
{
"answer_id": 288285,
"author": "Gordon Bell",
"author_id": 16473,
"author_profile": "https://Stackoverflow.com/users/16473",
"pm_score": 3,
"selected": true,
"text": "convert(decimal, [col1]) / ([col2] + [col3])\n convert(decimal(15, 2), [col1]) / ([col2] + [col3])\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16162/"
] |
287,592 | <p>Why does the following have the effect it does - it prints a terminal full of random characters and then exits leaving a command prompt that produces garbage when you type in it. (I tried it because I thought it would produce a seg fault).</p>
<p><img src="https://i.stack.imgur.com/kGkf4.png" alt="http://oi38.tinyp... | [
{
"answer_id": 287607,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 3,
"selected": false,
"text": "while(1) *s s++"
},
{
"answer_id": 287820,
"author": "John Rudy",
"author_id": 14048,
"author_profile":... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
287,594 | <p>I have a rather simple scenario where I have two tables in which I want to add data. They are managed with primary key/foreign key. I want to add new data into TABLE A and then retrieve the Id and insert into TABLE B. </p>
<p>I can certainly do it with a stored procedure, but I'm looking at trying to do it using Li... | [
{
"answer_id": 313042,
"author": "BigJoe714",
"author_id": 37786,
"author_profile": "https://Stackoverflow.com/users/37786",
"pm_score": 5,
"selected": true,
"text": "Order order = new Order();\nOrder.OrderDate = DateTime.Now();\ndataContext.InsertOnSubmit(order);\n\nOrderItem item1 = ne... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31148/"
] |
287,595 | <p>This seems like a very simple and a very common problem. The simplest example I can think of is this:</p>
<p>The form has five checkboxes with a "check all/check none" checkbox above them. When a user selects checking all checkboxes, I toggle the states of the "children" - obviously I don't want to fire the check e... | [
{
"answer_id": 287659,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 2,
"selected": false,
"text": "AddHandler chk1.CheckedChanged, AddressOf DoSomething\n Private Sub DoSomething(ByVal sender As Object, ByVal e As EventA... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35555/"
] |
287,596 | <p>Is it safe to use MS SQL's WITH (NOLOCK) option for select statements and insert statements if you never modify a row, but only insert or delete rows?</p>
<p>I..e you never do an UPDATE to any of the rows.</p>
| [
{
"answer_id": 287635,
"author": "Tom H",
"author_id": 5696608,
"author_profile": "https://Stackoverflow.com/users/5696608",
"pm_score": 4,
"selected": true,
"text": "SELECT\n my_id,\n my_date\nFROM\n My_Table\nWHERE\n my_date >= '2008-01-01'\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
287,597 | <p>If a hacker has access to the hashes in my DB, he has access to the rest of the information in the DB anyways. So why would he bother trying to decrypt the passwords? Should I be storing the passwords on a different server to the rest of my data? That is the only scenario in which I can envision it being useful. </p... | [
{
"answer_id": 16133410,
"author": "bobobobo",
"author_id": 111307,
"author_profile": "https://Stackoverflow.com/users/111307",
"pm_score": 0,
"selected": false,
"text": "SELECT * FROM USERS"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287597",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37412/"
] |
287,630 | <p>I have a right outer join, that almost does what I want...</p>
<pre><code>SELECT
users_usr.firstname_usr,
users_usr.lastname_usr,
credit_acc.given_credit_acc,
users_usr.created_usr,
users_usr.sitenum_usr,
users_usr.original_aff_usr,
users_usr.id_usr
FROM
credit_acc
right Outer Join users_usr ON credit_acc.uid_usr =... | [
{
"answer_id": 287638,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": true,
"text": "SELECT\nusers_usr.firstname_usr,\nusers_usr.lastname_usr,\ncredit_acc.given_credit_acc,\nusers_usr.created_usr,\nuser... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13704/"
] |
287,633 | <p>Is it possible to do a "C like" fork in java, using an new independent jvm process ?</p>
<p>How?</p>
| [
{
"answer_id": 21028141,
"author": "Markus Malkusch",
"author_id": 1346207,
"author_profile": "https://Stackoverflow.com/users/1346207",
"pm_score": 2,
"selected": false,
"text": "Isolate"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28921/"
] |
287,645 | <p>I want to discover at run-time ONLY the static Methods of a class, how can I do this?
Or, how to differentiate between static and non-static methods.</p>
| [
{
"answer_id": 287654,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 9,
"selected": true,
"text": "Modifier.isStatic(method.getModifiers()) /**\n * Returns the public static methods of a class or interface,\n *... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/518/"
] |
287,655 | <p>In OpenGL I'm trying to rotate a camera around a point, with camera being distance r from the point and facing the point when it rotates. In other words, I want the camera to move along the circumference of a circle at a radius r from the center, with the camera facing the center at any point along the circumferen... | [
{
"answer_id": 287675,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 6,
"selected": true,
"text": "gluLookAt P"
},
{
"answer_id": 712850,
"author": "neoedmund",
"author_id": 86600,
"author_profile": "http... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/396/"
] |
287,663 | <p>I have 2 handlers using the same form. How do I remove the handlers before adding the new one (C#)?</p>
| [
{
"answer_id": 287694,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 4,
"selected": true,
"text": "Delegate[] events = Form1.SomeEvent.GetInvokationList();\n\nforeach (Delegate d in events)\n{\n Form1.SomeEvent -= d;\n}\... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6013/"
] |
287,679 | <p>How do I create tabbed navigation with the "Current" tab highlighted in the UI?</p>
| [
{
"answer_id": 287688,
"author": "Kyle West",
"author_id": 34133,
"author_profile": "https://Stackoverflow.com/users/34133",
"pm_score": 4,
"selected": true,
"text": "public partial class AdminNavigation : ViewUserControl\n{\n /// <summary>\n /// This hold a collection of controlle... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
287,684 | <p>I'm using this simple regular expression to validate a hex string:</p>
<pre><code>^[A-Fa-f0-9]{16}$
</code></pre>
<p>As you can see, I'm using a quantifier to validate that the string is 16 characters long. I was wondering if I can use another quantifier in the same regex to validate the string length to be either... | [
{
"answer_id": 287687,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": false,
"text": "^(?:[A-Fa-f0-9]{16}|[A-Fa-f0-9]{18})$\n"
},
{
"answer_id": 287692,
"author": "Jon Skeet",
"author_id": 22656,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24927/"
] |
287,685 | <p>I have a bunch of controls (textbox and combobox) on a form with toolstripcontainer and toolstripbuttons for save, cancel etc for edits. We are using .Net 3.5 SP1<br>
There is bunch of logic written in control.lostfocus and control.leave events. These events are not being called when clicked on the toolstrip butto... | [
{
"answer_id": 287740,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 3,
"selected": true,
"text": "private void ButtonClick(object sender, EventArgs e) {\n if(sender != null) {\n sender.Focus();\n }\n}\n... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18169/"
] |
287,702 | <p>I need to read data added to the end of an executable from within that executable .<br>
On win32 I have a problem that I cannot open the .exe for reading. I have tried CreateFile and std::ifstream.<br>
Is there a way of specifying non-exclusive read access to a file that wasn't initially opened with sharing.</p>
<p... | [
{
"answer_id": 287742,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 1,
"selected": false,
"text": "HANDLE file=CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);\n"
},
{
"answer_id": 28... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10897/"
] |
287,703 | <p>I'm using IIS 6 with EPiserver CMS which requires all requests to go through aspnet_isapi.dll.</p>
<p>I want to gzip all my static files (js, css mainly). Trying to setup compression in IIS didn't work.</p>
<p>Is there a setting in EPiServer that will allow me to achieve this?
Can .net framework compress files au... | [
{
"answer_id": 287771,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 3,
"selected": true,
"text": "HcScriptFileExtensions=\"asp\ndll \nexe \njs\ncss\"\n HcFileExtensions"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29555/"
] |
287,708 | <p>I am looking for any best practices or ideas on how you would create an interface with a DB from a .NET web application to upload data from Excel files
Should I use a mechanism that allows all the records to be loaded and flags the errors or should I use a mechanism that stops the load when an error occurs.</p>
<p>... | [
{
"answer_id": 287749,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 2,
"selected": false,
"text": " public void Load() {\n bool OK = File.Exists(_filename);\n if (OK) {\n string... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287708",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12255/"
] |
287,713 | <p>I thought this code would work, but the regular expression doesn't ever match the \r\n. I have viewed the data I am reading in a hex editor and verified there really is a hex D and hex A pattern in the file.</p>
<p>I have also tried the regular expressions /\xD\xA/m and /\x0D\x0A/m but they also didn't match.</p>
... | [
{
"answer_id": 287735,
"author": "Cameron Price",
"author_id": 35526,
"author_profile": "https://Stackoverflow.com/users/35526",
"pm_score": 4,
"selected": false,
"text": "lines2 = lines.split.join(\"\\n\")\n"
},
{
"answer_id": 287739,
"author": "mwilliams",
"author_id": ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7893/"
] |
287,750 | <p>I have a webpage where I want the user to see a new image when they put thier mouse over a certain part of the image. I used an image map.</p>
<pre><code><img src="pic.jpg" usemap="#picmap" />
<map id="picmap" name="picmap"><area shape="rect" coords ="10,20,30,40"
onMouseOver="mouse_on_write('mouse ... | [
{
"answer_id": 287766,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 1,
"selected": false,
"text": "function preloadImage(imagePath)\n{\n var img = document.createElement('IMG');\n img.src = imagePath; \n}\n\npr... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30181/"
] |
287,757 | <p>I read the part of <a href="http://docs.python.org/library/configparser.html" rel="noreferrer">the docs</a> and saw that the <code>ConfigParser</code> returns a list of key/value pairs for the options within a section. I figured that keys did not need to be unique within a section, otherwise the parser would just re... | [
{
"answer_id": 287942,
"author": "Jeremy Cantrell",
"author_id": 18866,
"author_profile": "https://Stackoverflow.com/users/18866",
"pm_score": 4,
"selected": true,
"text": "[('spam', 'eggs'), ('spam', 'ham')]\n parser.get('Some Section', 'spam')\n [Some Section]\nspam: eggs, ham\n spam_v... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
287,783 | <p>I am using an ancient version of Oracle (8.something) and my ADO.NET application needs to do some fairly large transactions. Large enough to not fin in our small rollback segments. Now we have a large rollback segment as well but it is not used by default.</p>
<p>Oracle has a command to select the rollback segment ... | [
{
"answer_id": 289832,
"author": "pablo",
"author_id": 16112,
"author_profile": "https://Stackoverflow.com/users/16112",
"pm_score": 2,
"selected": true,
"text": "ALTER ROLLBACK SEGMENT <name> OFFLINE;\n\nALTER ROLLBACK SEGMENT <name> ONLINE;\n"
},
{
"answer_id": 291629,
"aut... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
287,789 | <p>I have a huge file that I must parse line by line. Speed is of the essence. </p>
<p>Example of a line:</p>
<blockquote>
<pre><code>Token-1 Here-is-the-Next-Token Last-Token-on-Line
^ ^
Current Position
Position after GetToken
</code></pre>
</bl... | [
{
"answer_id": 287808,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 2,
"selected": false,
"text": "state := 0;\nresult := tkNoToken;\nwhile (result = tkNoToken) do begin\n if table[state].c1 > table[state].c2 then\n... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30176/"
] |
287,794 | <p>How should a relational database be designed to handle multi-valued attributes ?</p>
<p><strong>edit</strong>: To elaborate: </p>
<p>There are two ways I could think of for doing this -</p>
<ol>
<li>Trying something like putting comma separated values in the field, which appears a bit clumsy.</li>
<li>Create anot... | [
{
"answer_id": 287836,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": false,
"text": "CREATE TABLE team (\n team_id INT PRIMARY KEY,\n team_name VARCHAR(50),\n team_members VARCHAR(200)\n);\nIN... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30252/"
] |
287,797 | <p>Recently an application I wrote started not working on Internet Explorer. There has been no change to the underlying (ruby on rails) code.</p>
<p>In IE 6 or IE 7, I can make one request (HTTP Post) to the app, but when I try to make a 2nd request, I get an "Operation Aborted" message. Everything works fine in fire... | [
{
"answer_id": 287831,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 4,
"selected": true,
"text": "http://<Web site>.com"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1486/"
] |
287,811 | <p>I'm working with an existing Java codebase which, while it can be invoked from an HTML page using an <APPLET> tag, does not actually subclass the Applet class. The same jars are also used in a non-browser context, so they did not subclass Applet.</p>
<p>Now I need to communicate some values from Java back to ... | [
{
"answer_id": 287833,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": 2,
"selected": false,
"text": "JSObject.getWindow(this) JSObject"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4761/"
] |
287,828 | <p>Is there an .net c# wrapper for the libFLAC library? If not, how can I read FLAC tags using the libFLAC in a .net framework c# application? If neither, are there other opensource libraries to read flac tags in c#? </p>
<p>Thanks!</p>
| [
{
"answer_id": 38485614,
"author": "Yoda",
"author_id": 3941350,
"author_profile": "https://Stackoverflow.com/users/3941350",
"pm_score": 2,
"selected": false,
"text": "SortedList<string, List<string>> ID3PictureFrame BitmapFrame OggPageReader OggTagger FlacTagger using Luminescence.Xiph... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26754/"
] |
287,832 | <p>I am creating a form in HTML that will be printed, with fields that need to be written in by the recipient. Basically what I want is a single line that stretches from the end of the field label to the side of the page. Here's how I'm doing it right now:</p>
<pre><code><table width="100%">
<tr>
... | [
{
"answer_id": 287838,
"author": "billjamesdev",
"author_id": 13824,
"author_profile": "https://Stackoverflow.com/users/13824",
"pm_score": 2,
"selected": false,
"text": "<span style=\"border-bottom....\">Text</span>\n"
},
{
"answer_id": 287847,
"author": "Jon Smock",
"au... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23935/"
] |
287,839 | <p>[former title: Is there a way to force a relationship structure on a tag-based organizational methodology?]</p>
<p>I have some entities, and they have a series of attributes. Some of the attributes affect what other attributes the entity can have, many of the attributes are organized into groups, and occasionally e... | [
{
"answer_id": 287977,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": true,
"text": "CREATE TABLE Vehicles (\n vehicle_id INT PRIMARY KEY\n ...attributes common to all vehicles...\n);\n\nCREATE TABLE Au... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20770/"
] |
287,842 | <p>If you have to use String.Replace() to replace test 50 times, you essentially have to create a new string 50 times. Does StringBuilder.Replace() do this more efficiently? E.g., should I use a StringBuilder if I'm going to be replacing a lot of text, even while I won't be appending any data to it?</p>
<p>I'm using... | [
{
"answer_id": 287854,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 3,
"selected": false,
"text": "String.Replace StringBuilder.Replace"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/681/"
] |
287,845 | <p>I have a fair number of Python scripts that contain reusable code that are used and referenced by other Python scripts. However, these scripts tend to be scattered across different directories and I find it to be somewhat tedious to have to include (most often multiple) calls to sys.path.append on my top-level scrip... | [
{
"answer_id": 287884,
"author": "bouvard",
"author_id": 24608,
"author_profile": "https://Stackoverflow.com/users/24608",
"pm_score": 2,
"selected": false,
"text": "__init__.py import Foo\n site-packages"
},
{
"answer_id": 288123,
"author": "S.Lott",
"author_id": 10661,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4872/"
] |
287,849 | <p>I'm trying to replace the programs that run from my startup directory with a batch script. The batch script will simply warn me that the programs are going to run and I can either continue running the script or stop it. </p>
<p>Here's the script as I have written so far:</p>
<pre><code>@echo off
echo You are abo... | [
{
"answer_id": 287866,
"author": "Carl Seleborg",
"author_id": 2095,
"author_profile": "https://Stackoverflow.com/users/2095",
"pm_score": 2,
"selected": false,
"text": "start"
},
{
"answer_id": 287943,
"author": "aphoria",
"author_id": 2441,
"author_profile": "https:... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2916/"
] |
287,871 | <p>How do I output colored text to the terminal in Python?</p>
| [
{
"answer_id": 287896,
"author": "UberJumper",
"author_id": 34395,
"author_profile": "https://Stackoverflow.com/users/34395",
"pm_score": 5,
"selected": false,
"text": "#\n"
},
{
"answer_id": 287919,
"author": "daharon",
"author_id": 23597,
"author_profile": "https://... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35062/"
] |
287,875 | <p>I'm trying to come up with a reusable JS or jQuery function that would allow me to test if one object is a DOM descendant of another. </p>
<p>I've seen a model of testing for </p>
<pre><code>$b.parents('nodename').length>0
</code></pre>
<p>Which is fantastic when you only need to check if an element is a child... | [
{
"answer_id": 287889,
"author": "picardo",
"author_id": 32816,
"author_profile": "https://Stackoverflow.com/users/32816",
"pm_score": 2,
"selected": false,
"text": "$('#foo').filter(function(){\n\n return $(this).parent().is('#foo-parent');\n\n});\n $('#foo').filter(function(){\n\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37429/"
] |
287,897 | <p>I have a .NET 3.5 Web application on VS 2008 SP1 running on Vista Ultimate 32 SP1. I created an Application under the Default Web Site. So the url to the app is "<a href="http://localhost/mysite" rel="noreferrer">http://localhost/mysite</a>". The application folder is pointing to the solution folder and it is outsid... | [
{
"answer_id": 13691092,
"author": "Chuck Savage",
"author_id": 353147,
"author_profile": "https://Stackoverflow.com/users/353147",
"pm_score": 5,
"selected": false,
"text": "Asp.Net 3.5 Asp.Net 4.5 IIS > WWW Service > Application Development Features"
},
{
"answer_id": 17152725,... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35609/"
] |
287,899 | <p>Can anyone think of a good solution for getting IOC into a console application?</p>
<p>At the moment we are just using a static class with the following method:</p>
<pre><code>public static T Resolve<T>()
{
return dependencyResolver.Resolve<T>();
}
</code></pre>
<p>I would like the experience to b... | [
{
"answer_id": 433902,
"author": "Matt Hinze",
"author_id": 2676,
"author_profile": "https://Stackoverflow.com/users/2676",
"pm_score": 4,
"selected": true,
"text": "Resolve<T>() Main()"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11755/"
] |
287,903 | <p>Would the following make the objects fulfil all characteristics that enums have in JavaScript? Something like:</p>
<pre class="lang-js prettyprint-override"><code>my.namespace.ColorEnum = {
RED : 0,
GREEN : 1,
BLUE : 2
}
// later on
if(currentColor == my.namespace.ColorEnum.RED) {
// whatever
}
</code></p... | [
{
"answer_id": 1314191,
"author": "Randolpho",
"author_id": 12716,
"author_profile": "https://Stackoverflow.com/users/12716",
"pm_score": 7,
"selected": false,
"text": "var DaysEnum = {\"monday\":1, \"tuesday\":2, \"wednesday\":3, ...}\n\nDocument.Write(\"Enumerant: \" + DaysEnum.tuesday... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5309/"
] |
287,907 | <p>I want to transfer data between a smart phone app and a website. What are the conventional and not-so-conventional ways of doing it? </p>
<p>Here's what I have thought of so far:</p>
<ol>
<li>Simple HTTP GET/POST with data being represented as JSON array string, variations of this being encrypted/compressed string... | [
{
"answer_id": 1314191,
"author": "Randolpho",
"author_id": 12716,
"author_profile": "https://Stackoverflow.com/users/12716",
"pm_score": 7,
"selected": false,
"text": "var DaysEnum = {\"monday\":1, \"tuesday\":2, \"wednesday\":3, ...}\n\nDocument.Write(\"Enumerant: \" + DaysEnum.tuesday... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16071/"
] |
287,928 | <p>DataGridView, for example, lets you do this:</p>
<pre><code>DataGridView dgv = ...;
DataGridViewCell cell = dgv[1,5];
</code></pre>
<p>but for the life of me I can't find the documentation on the index/square-bracket operator. What do they call it? Where is it implemented? Can it throw? How can I do the same t... | [
{
"answer_id": 287938,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 5,
"selected": false,
"text": "Operators Overloadability\n\n+, -, *, /, %, &, |, <<, >> All C# binary operat... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26286/"
] |
287,954 | <p>To add a NOT NULL Column to a table with many records, a DEFAULT constraint needs to be applied. This constraint causes the entire ALTER TABLE command to take a long time to run if the table is very large. This is because:</p>
<p>Assumptions:</p>
<ol>
<li>The DEFAULT constraint modifies existing records. This mean... | [
{
"answer_id": 288717,
"author": "Grzegorz Gierlik",
"author_id": 1483,
"author_profile": "https://Stackoverflow.com/users/1483",
"pm_score": -1,
"selected": false,
"text": "-- without NOT NULL constrain -- we will add it in the end\nALTER TABLE table ADD new_column INT DEFAULT 0\n\nDECL... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13484/"
] |
287,960 | <p>I know that jQuery and prototype have a $.each() function for iterating over each element in an array. Does YUI offer any help with this?</p>
| [
{
"answer_id": 288083,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 3,
"selected": false,
"text": "for(var i=0; i<ary.length; i++)\n // assuming that ary[] contains objects with a DoSometing() method\n ary[i].doSomethin... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
287,965 | <p>I have two tables:
Client(id,name,...)<br>
Purchase(id,item,date,client_id,...)</p>
<p>They have their respective Model, with their validations. What I need is to create a new client with a new purchase, all into the create method of Client controller. Something like this:</p>
<pre><code>def create
@client = C... | [
{
"answer_id": 288026,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 3,
"selected": true,
"text": "Client.purchases.empty?\nClient.purchases.size,\nClient.purchases\nClient.purchases<<(purchase)\nClient.purchases.delete(... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36599/"
] |
287,976 | <p>I'd like to make an (MS)SQL query that returns something like this:</p>
<pre><code>Col1 Col2 Col3
---- --------------------- ------
AAA 18.92 18.92
BBB 20.00 40.00
AAA 30.84 30.84
BBB 06.00 12.00
AAA 30.84 30.84
AA... | [
{
"answer_id": 287982,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 6,
"selected": true,
"text": "SELECT Col1, Col2, \n CASE WHEN Col1='AAA' THEN Col2 WHEN Col1='BBB' THEN Col2*2 ELSE NULL END AS Col3\nFROM ...\n"
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34632/"
] |
287,986 | <p>Ruby on Rails controllers will automatically convert parameters to an array if they have a specific format, like so:</p>
<pre><code>http://foo.com?x[]=1&x[]=5&x[]=bar
</code></pre>
<p>This would get converted into the following array:</p>
<pre><code>['1','5','bar']
</code></pre>
<p>Is there any way I can... | [
{
"answer_id": 288004,
"author": "mmattax",
"author_id": 1638,
"author_profile": "https://Stackoverflow.com/users/1638",
"pm_score": 1,
"selected": false,
"text": "\nvar s:HTTPService = new HTTPService();\ns.url = \"http://foo.com\";\ns.method = \"post\";\n// add listeners...\ns.addEvent... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19964/"
] |
287,991 | <p>How can I match (PCRE) everything inbetween two tags?</p>
<p>I tried something like this:</p>
<blockquote>
<p><!--\s*LoginStart\s*-->(.*)<!--\s*LoginEnd\s*--></p>
</blockquote>
<p>But it didn't work out too well for me..</p>
<p>I'm kind of new to regular expressions, so I was hoping... | [
{
"answer_id": 288006,
"author": "John Fiala",
"author_id": 9143,
"author_profile": "https://Stackoverflow.com/users/9143",
"pm_score": 1,
"selected": false,
"text": "'/<!--\\s*LoginStart\\s*-->(.*)<!--\\s*LoginEnd\\s*-->/Us'\n U <!-- s . i"
},
{
"answer_id": 288015,
"author"... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37439/"
] |
288,007 | <pre><code>SELECT DISTINCT
'LRS-TECH 1' || rpad(code,7) || rpad('APPTYPE',30) ||
rpad(licensing_no,30) || rpad(' ',300) AS RECORD
FROM APPS
WHERE L_code = '1000' AND licensing_no IS NOT NULL
</code></pre>
<p>This seems to be the primary culprit in why I cannot export these records to a textfile in my deve... | [
{
"answer_id": 289075,
"author": "David Aldridge",
"author_id": 6742,
"author_profile": "https://Stackoverflow.com/users/6742",
"pm_score": 2,
"selected": false,
"text": "explain plan for SELECT DISTINCT \n'LRS-TECH 1' || rpad(code,7) || rpad('APPTYPE',30) || \n rpad(licensing_no,30) ||... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,009 | <p>So, I've been tasked with making a kiosk for the office for showing statistics about our SCRUM progress, build server status, rentability and so forth. It should ideally run a slideshow with bunch of different pages, some of them showing text, some showing graphs and so on. </p>
<p>What is the best approach for thi... | [
{
"answer_id": 289219,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 3,
"selected": true,
"text": "<img> slide001.htm slide002.htm slide003.htm <img src=\"http://hudson.abc/job/proj042/buildTimeGraph\"> .php <?PHP echo(who_broke_b... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24610/"
] |
288,020 | <p>I found one source which successfully overrode <code>Time.strftime</code> like this:</p>
<pre><code>class Time
alias :old_strftime :strftime
def strftime
#do something
old_strftime
end
end
</code></pre>
<p>The trouble is, <code>strftime</code> is an instance method. I need to override <code>Time.now... | [
{
"answer_id": 288077,
"author": "Austin Ziegler",
"author_id": 36378,
"author_profile": "https://Stackoverflow.com/users/36378",
"pm_score": 2,
"selected": false,
"text": "class Time\n class << self\n alias_method :old_time_now, :now\n\n def now\n my_now = old_time_now\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288020",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30997/"
] |
288,027 | <p>In Object Oriented Paradigm, I would create an object/conceptual model before I start implementing it using OO language.</p>
<p>Is there anything parallel to object model in functional programming. Is it called functional model? or we create the same conceptual model in both the paradigm before implementing it in o... | [
{
"answer_id": 333145,
"author": "Daishiman",
"author_id": 42345,
"author_profile": "https://Stackoverflow.com/users/42345",
"pm_score": 3,
"selected": false,
"text": "-nil\n-bin(left:bt, root: a, right:bt)\n numberOfNodes(nil) == 0\nnumberOfNodes(bin(left,x,right))== 1 + numberOfNodes(l... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30917/"
] |
288,034 | <p>I need some help regarding algorithm for randomness. So Problem is.</p>
<p>There are 50 events going to happen in 8 hours duration. Events can happen at random times.
Now it means in each second there is a chance of event happening is 50/(8*60*60)= .001736.
How can I do this with random generation algorithm?</p>
<... | [
{
"answer_id": 288046,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "r RAND_MAX double chance = r / RAND_MAX;\n double chance = 1.0 * r / RAND_MAX;\n"
},
{
"answer_id": 288133,
"... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33411/"
] |
288,038 | <p>I'm writing a simple program to browse the local network and pass on filenames to mplayer using "system". However, sometimes filenames contain spaces or quotes.
Obviously I could write my own function to escape those, but I'm not sure exactly what characters do or do not need escaping.</p>
<p>Is there a function av... | [
{
"answer_id": 288067,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "'...' ' '\"'\"' system(\"mplayer 'foo'\\\"'\\\"' bar'\"); foo bar \" \\n \" \\\""
},
{
"answer_id":... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34014/"
] |
288,044 | <p>I am using a <code>ListView</code> to display the main screen of my application.<br>
The main screen is essentially a <code>menu</code> to get into the different sections of application. Currently, I have the <code>ListView</code> whose contents are added programmatically in the <code>onCreate</code> method. </p>
... | [
{
"answer_id": 339021,
"author": "jasonhudgins",
"author_id": 24590,
"author_profile": "https://Stackoverflow.com/users/24590",
"pm_score": 5,
"selected": true,
"text": "public View getView(int position, View convertView, ViewGroup parent) {\n\n View row = inflater.inflate(R.layout.me... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37436/"
] |
288,045 | <p>I am accessing a .NET COM object from C++. I want to know the version information about this COM object. When I open the TLB in OLEVIEW.exe I can see the version information associated with the coclass. How can I access this information from C++? This is the information I get:</p>
<pre><code>[
uuid(XXXXXXXX-XXXX-... | [
{
"answer_id": 339021,
"author": "jasonhudgins",
"author_id": 24590,
"author_profile": "https://Stackoverflow.com/users/24590",
"pm_score": 5,
"selected": true,
"text": "public View getView(int position, View convertView, ViewGroup parent) {\n\n View row = inflater.inflate(R.layout.me... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8661/"
] |
288,047 | <p>I have some UserControls that I created in ProjectA. I have ProjectB that has a windows form that I want to put the controls on. Both of these projects are in a single solution. There's a reference to ProjectA from ProjectB so it can "see" the UserControls.</p>
<p>However, the UserControls do not show up in the ... | [
{
"answer_id": 1672504,
"author": "DavidMB",
"author_id": 202441,
"author_profile": "https://Stackoverflow.com/users/202441",
"pm_score": 1,
"selected": false,
"text": "MyCustomControls MyCustomControls AutoToolboxPopulate"
},
{
"answer_id": 8235736,
"author": "Dan7",
"au... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9516/"
] |
288,061 | <p>I have often wondered why it is that non-English speaking programmers are forced to use a different language when programming when it would seem to be so easy to offer an IDE that could replace keywords with localized versions. Why can't the Germans use a "während..macht" loop?</p>
<p>Do programmers in Japan, Germa... | [
{
"answer_id": 289056,
"author": "Ferruccio",
"author_id": 4086,
"author_profile": "https://Stackoverflow.com/users/4086",
"pm_score": 0,
"selected": false,
"text": "if for"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288061",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30018/"
] |
288,062 | <p>It seems as though the following calls do what you'd expect (close the stream and not allow any further input - anything waiting for input on the stream returns error), but is it guaranteed to be correct across all compilers/platforms?</p>
<pre><code>close(fileno(stdin));
fclose(stdin);
</code></pre>
| [
{
"answer_id": 5925575,
"author": "R.. GitHub STOP HELPING ICE",
"author_id": 379897,
"author_profile": "https://Stackoverflow.com/users/379897",
"pm_score": 5,
"selected": false,
"text": "fclose(stdin) stdin close(fileno(stdin)) stdin EBADF int fd = open(\"/dev/null\", O_WRONLY);\ndup2(... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5963/"
] |
288,068 | <p>I need to add localization to the exceptions thrown by my application as a lot are ApplicationExceptions and handled and logged to an error report. Ideally I want to create a new Exception, imheriting from ApplicationException that I can pass the resource key as well as arguments to, so that the exception messsage ... | [
{
"answer_id": 288129,
"author": "labilbe",
"author_id": 1195872,
"author_profile": "https://Stackoverflow.com/users/1195872",
"pm_score": 3,
"selected": true,
"text": "\nnamespace eMill.Model.Exceptions\n{\n public sealed class AccountNotFoundException : EmillException\n {\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288068",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6684/"
] |
288,070 | <p>I am using a WCF service and a net.tcp endpoint with serviceAuthentication's principal PermissionMode set to UseWindowsGroups.</p>
<p>Currently in the implementation of the service i am using the PrincipalPermission attribute to set the role requirements for each method. </p>
<pre><code> [PrincipalPermissio... | [
{
"answer_id": 288758,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 3,
"selected": true,
"text": "public string method1()\n{\n PrincipalPermission p = new PrincipalPermission(null, \"Administrators\");\n p.Demand();\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37444/"
] |
288,084 | <p>Is there any other way to get a list of file names via <code>T-SQL</code> other than </p>
<pre><code>INSERT INTO @backups(filename)
EXEC master.sys.xp_cmdshell 'DIR /b c:\some folder with sql backups in it
</code></pre>
<p>I am attempting to get a list of SQL backup files from a folder to restore and I do NOT want... | [
{
"answer_id": 288759,
"author": "Kevin Crumley",
"author_id": 1818,
"author_profile": "https://Stackoverflow.com/users/1818",
"pm_score": 1,
"selected": false,
"text": "RESTORE FILELISTONLY disk='FULL_PATH_TO_YOUR_FILE'"
},
{
"answer_id": 16380244,
"author": "Jeff Moden",
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4096/"
] |
288,111 | <p>I have an HTTPHandler that is reading in a set of CSS files and combining them and then GZipping them. However, some of the CSS files contain a Byte Order Mark (due to a bug in TFS 2005 auto merge) and in FireFox the BOM is being read as part of the actual content so it's screwing up my class names etc. How can I ... | [
{
"answer_id": 289114,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": 3,
"selected": false,
"text": "var name = GetFileName();\nvar bytes = System.IO.File.ReadAllBytes(name);\nSystem.IO.File.WriteAllBytes(name, bytes.Skip(... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
288,121 | <p>I want to commit a large amount of XML files which have been modified. However, within the directory that I want to recursively search through, there are many folders/files which have been added locally, these I do not want to commit.</p>
<p>Is there a way to do this on the command line?</p>
<p>Update: I should ha... | [
{
"answer_id": 288170,
"author": "Jason Coco",
"author_id": 34218,
"author_profile": "https://Stackoverflow.com/users/34218",
"pm_score": 2,
"selected": false,
"text": "svnadmin lslocks /path/to/repository\n svnadmin rmlocks /path/to/repository /project/path/to/locked/file\n svn --force ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4120/"
] |
288,127 | <p>I would like to include some code coverage into our nightly build process. We're using CruiseControl, Ant, and Buckminster. Buckminster drives checkout from multiple repositories, and the PDE building and packaging of the product.</p>
<p><strong>Has any one any experience integrating code coverage into an RCP headl... | [
{
"answer_id": 296506,
"author": "jamesh",
"author_id": 4737,
"author_profile": "https://Stackoverflow.com/users/4737",
"pm_score": 3,
"selected": true,
"text": "osgi.parentClassloader=app ext boot fwk app"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4737/"
] |
288,138 | <p>this is not a primary key, but merely used as a marker in existing system that marks these items with a 1 letter code ie 'N' for new, 'R' for return, etc. I was going to go with a varchar(50) as the data type but wondering if there's anything wrong with say varchar(2) instead aiming for efficiency. thx!</p>
| [
{
"answer_id": 289072,
"author": "Ian Varley",
"author_id": 37539,
"author_profile": "https://Stackoverflow.com/users/37539",
"pm_score": 1,
"selected": false,
"text": "CREATE TABLE Product_Status (\n status_id INT NOT NULL PRIMARY KEY, \n description VARCHAR(50) NOT NULL\n)\nINSER... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35286/"
] |
288,142 | <p>I'm trying to watch the execution of a VB6 app and I'm running into an issue because once I enter the debugger and then hit <code>Continue</code>, it no longer lets me step through the code until I hit another break point. I want to be able to execute a program without stepping through something until I hit a poin... | [
{
"answer_id": 288159,
"author": "George Mastros",
"author_id": 1408129,
"author_profile": "https://Stackoverflow.com/users/1408129",
"pm_score": 1,
"selected": false,
"text": "Debug.Assert False\n"
},
{
"answer_id": 290720,
"author": "RS Conley",
"author_id": 7890,
"... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16562/"
] |
288,153 | <p>I would like to know How to create a fps-game with SDL lib? </p>
<p>Are there any books that explain with examples? </p>
| [
{
"answer_id": 288376,
"author": "David Frenkel",
"author_id": 28747,
"author_profile": "https://Stackoverflow.com/users/28747",
"pm_score": 5,
"selected": true,
"text": " xxxxxxxxxxxxxxxxxxxxxxxx\n xx..........P..........x\n xxxxxxx...........I....x\n xR....xxx...........E..x\n xx......... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24639/"
] |
288,157 | <p>Say we are traversing a graph and want to quickly determine if a node has been seen before or not. We have a few set preconditions.</p>
<ol>
<li>Nodes have been marked with integers values 1..N</li>
<li>Graph is implemented with nodes having an adjacency list</li>
<li>Every integer value from 1..N occurs in the gra... | [
{
"answer_id": 288254,
"author": "namin",
"author_id": 34596,
"author_profile": "https://Stackoverflow.com/users/34596",
"pm_score": 3,
"selected": false,
"text": "insert member"
},
{
"answer_id": 874172,
"author": "Dario",
"author_id": 105459,
"author_profile": "http... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288157",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,178 | <p>I have been trying to learn more about lambda expressions lately, and thought of a interesting exercise...</p>
<p>is there a way to simplify a c++ integration function like this:</p>
<pre><code>// Integral Function
double integrate(double a, double b, double (*f)(double))
{
double sum = 0.0;
// Evaluate i... | [
{
"answer_id": 288311,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 4,
"selected": true,
"text": "public double Integrate(double a,double b, Func<double, double> f)\n{\n double sum = 0.0;\n\n for (int n =... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,182 | <p>Where should I be logging exceptions? At the data service tier(ExecuteDataSet, etc.) and/or at the data access layer and/or at the business layer?</p>
| [
{
"answer_id": 288215,
"author": "James McMahon",
"author_id": 20774,
"author_profile": "https://Stackoverflow.com/users/20774",
"pm_score": 1,
"selected": false,
"text": "main {\n try {\n application code\n } catch {\n preform logging\n }\n}\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34214/"
] |
288,190 | <p>How do I ignore all files within a folder under source control?</p>
<p><code>/project/published/</code> is a folder I want to keep</p>
<p><code>/project/published/some_file(s)</code> are files/folders I don't want</p>
<p>More Details: Currently when I go to commit changes for my project I see a lot of files that ... | [
{
"answer_id": 288213,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 2,
"selected": false,
"text": "svn propset svn:ignore published/*\n svn propset svn propset svn:ignore [value] [target]\n svn propset svn:ignor... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,192 | <p>I'm writing Application A and DLL B, both in C#.NET. How do I do the following: </p>
<ol>
<li>A calls function in B </li>
<li>Want B to use delegate/callback to update status in UI of A </li>
</ol>
<p>This is <em>not</em> about BackgroundWorker...that part works fine in A. What I can't see is how to let B know ... | [
{
"answer_id": 288234,
"author": "Jeromy Irvine",
"author_id": 8223,
"author_profile": "https://Stackoverflow.com/users/8223",
"pm_score": 4,
"selected": false,
"text": "public delegate void CallbackDelegate(string status);\n\npublic void DoWork(string param, CallbackDelegate callback)\n... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,200 | <p>We're having a bit of fun here at work. It all started with one of the guys setting up a Hackintosh and we were wondering whether it was faster than a Windows Box of (nearly) same specs that we have. So we decided to write a little test for it. Just a simple Prime number calculator. It's written in Java and tells us... | [
{
"answer_id": 288252,
"author": "BP.",
"author_id": 36984,
"author_profile": "https://Stackoverflow.com/users/36984",
"pm_score": 1,
"selected": false,
"text": "for (int i = 2; i < top; i++)"
},
{
"answer_id": 288263,
"author": "Sani Singh Huttunen",
"author_id": 26742,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18340/"
] |
288,210 | <p>I used to do this:</p>
<pre><code>SELECT layerID
FROM layers
WHERE ownerID = ?
AND collectionID = ?
</code></pre>
<p>Which would give me an array of layerID's, and then I'd loop and do this for each one:</p>
<pre><code>SELECT DATA
FROM drawings
WHERE layerID = ?
</code></pre>
<p>And it all worked fine. So now I'... | [
{
"answer_id": 288237,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 4,
"selected": true,
"text": "SELECT d.DATA, d.layerID \nFROM drawings AS d \nINNER JOIN layers AS l ON d.layerID = l.layerID \nWHERE l.ownerID = ? AND... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14569/"
] |
288,217 | <p>I am working on a C++ app which internally has some controller objects that are created and destroyed regularly (using new). It is necessary that these controllers register themselves with another object (let's call it controllerSupervisor), and unregister themselves when they are destructed.</p>
<p>The problem I a... | [
{
"answer_id": 288223,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "!= 0"
},
{
"answer_id": 288272,
"author": "maccullt",
"author_id": 4945,
"author_profil... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27101/"
] |
288,222 | <p>In SQL Server (in my case, 2005) how can I add the identity property to an existing table column using T-SQL?</p>
<p>Something like:</p>
<pre><code>alter table tblFoo
alter column bar identity(1,1)
</code></pre>
| [
{
"answer_id": 590913,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": -1,
"selected": false,
"text": "alter table tablename \nalter column columnname \nadd Identity(100,1)\n"
},
{
"answer_id": 912795,
"author": "Nat... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30529/"
] |
288,255 | <p>While testing a console app, I set the properties of the console window to be only 3 lines high. </p>
<p>This change has somehow stuck, meaning that new console windows default to 3 lines high. If I create a new shortcut on the desktop, and point it to cmd.exe, the window that opens is 3 lines high. </p>
<p>Of cou... | [
{
"answer_id": 288286,
"author": "Duncan Smart",
"author_id": 1278,
"author_profile": "https://Stackoverflow.com/users/1278",
"pm_score": 4,
"selected": false,
"text": "HKEY_CURRENT_USER\\Console\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14357/"
] |
288,277 | <p>I have a JavaScript variable which holds an HTML page and due to the setup I need to extract everything between <code><div id="LiveArea"></code> and <code></div></code> from that variable using JavaScript.</p>
<p>Any help is greatly appreciated.</p>
| [
{
"answer_id": 288297,
"author": "mmattax",
"author_id": 1638,
"author_profile": "https://Stackoverflow.com/users/1638",
"pm_score": 1,
"selected": false,
"text": "\nvar e = document.getElementById('LiveArea');\nif(e) alert(e.innerHTML);\n\n"
},
{
"answer_id": 288326,
"author... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,282 | <p>Here's some code I have:</p>
<pre><code>MyClass* MyClass::getInstance()
{
static MyClass instance;
return &instance;
}
</code></pre>
<p>I want to look into this singleton's current values. But I'm currently paused three hours into execution, and the reason I'm paused is that I'm out of memory. So I can't... | [
{
"answer_id": 288329,
"author": "Nathan Kitchen",
"author_id": 31000,
"author_profile": "https://Stackoverflow.com/users/31000",
"pm_score": 1,
"selected": false,
"text": "int f() {\n static int xyz = 0;\n ++xyz;\n\n return xyz;\n}\n"
},
{
"answer_id": 292962,
"auth... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4790/"
] |
288,294 | <p>This may be too generic a question as is but...
I am stumped by trying to move through the directories from within a shell script. I'm not a *nix power user, but I am comfortable working through the command line for most tasks. I'd like to call a script that can move 'me' to a directory instead of just the script pr... | [
{
"answer_id": 288308,
"author": "Magus",
"author_id": 2188,
"author_profile": "https://Stackoverflow.com/users/2188",
"pm_score": 0,
"selected": false,
"text": "alias goto='cd /path_to_work/usr/dir'\n source ~/.bashrc\n"
},
{
"answer_id": 288314,
"author": "Mitch Haile",
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
288,298 | <p>How much code documentation in your .NET source is too much?</p>
<p>Some background: I inherited a large codebase that I've talked about in some of the other questions I've posted here on SO. One of the "features" of this codebase is a God Class, a single static class with >3000 lines of code encompassing several d... | [
{
"answer_id": 560540,
"author": "Chris S",
"author_id": 21574,
"author_profile": "https://Stackoverflow.com/users/21574",
"pm_score": 3,
"selected": false,
"text": "/// <include file=\"Documentation/XML/YourClass.xml\" path=\"//documentation/members[@name='YourClass']/*\"/>\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7565/"
] |
288,304 | <p>I have some .NET remoting code where a factory method, implemented in some server side class, returns interfaces to concrete objects, also executing on the very same server. .NET remoting automagically creates proxies and allows me to pass the interfaces across to the client, which can then call them directly.</p>
... | [
{
"answer_id": 288425,
"author": "Pierre Arnaud",
"author_id": 4597,
"author_profile": "https://Stackoverflow.com/users/4597",
"pm_score": 1,
"selected": false,
"text": "ChannelFactory IFactory ServiceHost IFoo ServiceHost IFactory IFactory IFoo factory.GetFoo (); EndPointAddress10 Chann... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4597/"
] |
288,319 | <p>I realized the solution to this problem while I was creating the documentation to ASK this question...so I am posting the answer if for no other reason than to keep me from wasting time on this in the future</p>
| [
{
"answer_id": 288328,
"author": "Jay Corbett",
"author_id": 2755,
"author_profile": "https://Stackoverflow.com/users/2755",
"pm_score": 2,
"selected": false,
"text": "<html>\n<head>\n<style>\n #upperDiv {width:200px; height:20px; text-align:center; cursor:pointer; }\n #lowerDiv {width:2... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2755/"
] |
288,349 | <p>Does anyone know of a good alternative to cron? I would like something that can be run with different time zones.</p>
| [
{
"answer_id": 288399,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": "Date"
},
{
"answer_id": 5895518,
"author": "mecano",
"author_id": 731772,
"author_profile": "https://Stackov... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30636/"
] |
288,350 | <p>Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, will Application_End be triggered automatically? + Are there any other reasons why Application_End could be triggered?</p>
| [
{
"answer_id": 288411,
"author": "Dillie-O",
"author_id": 71,
"author_profile": "https://Stackoverflow.com/users/71",
"pm_score": 6,
"selected": true,
"text": "application_end"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26521/"
] |
288,357 | <p>So if I have:</p>
<pre><code>public class ChildClass : BaseClass
{
public new virtual string TempProperty { get; set; }
}
public class BaseClass
{
public virtual string TempProperty { get; set; }
}
</code></pre>
<p>How can I use reflection to see that ChildClass is hiding the Base implementation of TempPr... | [
{
"answer_id": 288372,
"author": "JaredPar",
"author_id": 23283,
"author_profile": "https://Stackoverflow.com/users/23283",
"pm_score": -1,
"selected": false,
"text": "Module Module1\n\n Class Foo\n Public Function SomeFunc() As Integer\n Return 42\n End Funct... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
288,364 | <p>I have two system calls GetSystemTime() and GetThreadTimes() that I need to calculate the CPU utilization by a given Win32 thread.</p>
<p>For the sake of accuracy, I need to ensure that both GetSystemTime() and GetThreadTimes() are executed atomically; i.e. there should be no context switch in between a call to Get... | [
{
"answer_id": 288403,
"author": "Nicholas Mancuso",
"author_id": 8945,
"author_profile": "https://Stackoverflow.com/users/8945",
"pm_score": 2,
"selected": false,
"text": "perc = ( perc > 100.0f ) ? 100.0f : perc;\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/288364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33870/"
] |
288,368 | <p>Do any of the existing JavaScript frameworks have a non-regex <code>replace()</code> function,
or has this already been posted on the web somewhere as a one-off function?</p>
<p>For example I want to replace <code>"@!#$123=%"</code> and I don't want to worry about which characters to escape. Most languages seem to ... | [
{
"answer_id": 288384,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 6,
"selected": true,
"text": "replace() var string = '@!#$123=%';\nvar newstring = string.replace('@!#$123=%', 'hi');\n"
},
{
"answer_id": 6724957,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
288,374 | <p>A method I work with that is called tens of thousands of times started throwing exceptions recently. In most debugging circumstances I would set a breakpoint at the top of this method and run through until I reach the call I'm interested in with a parameter value that triggers the exception. In this case that woul... | [
{
"answer_id": 288521,
"author": "asponge",
"author_id": 19449,
"author_profile": "https://Stackoverflow.com/users/19449",
"pm_score": 4,
"selected": true,
"text": "class Foo\n{\n // Bar() is called many, many times\n void Bar(string str)\n {\n try\n {\n\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28350/"
] |
288,392 | <p>My ASP.NET application needs a number of supporting services to run periodically in the background. For example:</p>
<ul>
<li>I need to query the database (or cache) every 1-5 minutes, identify overdue work items and notify users by email</li>
<li>I need to generate nightly reports that are then emailed to subscrib... | [
{
"answer_id": 288539,
"author": "Cristian Libardo",
"author_id": 16526,
"author_profile": "https://Stackoverflow.com/users/16526",
"pm_score": 1,
"selected": false,
"text": "Timer timer = new Timer(intervalSeconds * 1000)\ntimer.Elapsed += delegate\n{\n // do the meat\n};\ntimer.Star... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
288,409 | <p>If I create a UserControl and add some objects to it, how can I grab the HTML it would render?</p>
<p>ex.</p>
<pre><code>UserControl myControl = new UserControl();
myControl.Controls.Add(new TextBox());
// ...something happens
return strHTMLofControl;
</code></pre>
<p>I'd like to just convert a newly built User... | [
{
"answer_id": 288414,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": ".RenderControl()"
},
{
"answer_id": 288419,
"author": "azamsharp",
"author_id": 3797,
"author_prof... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25538/"
] |
288,412 | <p>I did a few tests with TouchJSON last night and it worked pretty well in general for simple cases. I'm using the following code to read some JSON content from a file, and deserialize it:</p>
<pre><code>NSString *jsonString = [[NSString alloc] initWithContentsOfFile:@"data.json"];
NSData *jsonData = [jsonString data... | [
{
"answer_id": 289175,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 0,
"selected": false,
"text": "{\n \"objects\": [{\n \"id\": \"123456\",\n \"name\": \"touchjson\"\n }, {\n \"id\": \"3456\",\n \"name\":... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
288,413 | <p>I am using this code to verify a behavior of a method I am testing:</p>
<pre><code> _repository.Expect(f => f.FindAll(t => t.STATUS_CD == "A"))
.Returns(new List<JSOFile>())
.AtMostOnce()
.Verifiable();
</code></pre>
<p>_repository is defined as:</p>
<pre><code>private Mock<IReposito... | [
{
"answer_id": 288509,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Func<JSOFile, bool> _myDelegate;\n\n_repository.Stub(f => FindAll(null)).IgnoreArguments()\n .Do( (Func<Func<JSOFile, bool>,... | 2008/11/13 | [
"https://Stackoverflow.com/questions/288413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10589/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.