qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
385,714 | <p>When I am trying to cast <code>Object obj</code> to Type <code>T</code>, if it can not be cast then there is something wrong.</p>
<p>And after I cast the object I will be looking for working with the cast object.</p>
<p>Rather I will be expecting to get an exception at the place where I will be casting it than say... | [
{
"answer_id": 385727,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "TryCast"
},
{
"answer_id": 385729,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41968/"
] |
385,730 | <p>I have a number of projects in a solution file that have unit tests written for them and I want to set them up to be run by our continuous integration server. However, because many of the tests have been written poorly and have not been run regularly, there are many that are failing.</p>
<p>I don't have the time at ... | [
{
"answer_id": 385734,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 4,
"selected": true,
"text": "[Test, Ignore(\"Test needs rewrite\")]\n"
},
{
"answer_id": 385758,
"author": "krosenvold",
"author_id": 236... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39532/"
] |
385,784 | <p>In Silverlight 2 I'm using a usercontrol which inherits the datacontext of the page that it's embedded on. This datacontext contains question text, a question type and a collection of answers. In the user control is a listbox which is bound to the collection of answers. As shown below:</p>
<pre><code><ListBox Da... | [
{
"answer_id": 509947,
"author": "geofftnz",
"author_id": 20122,
"author_profile": "https://Stackoverflow.com/users/20122",
"pm_score": 1,
"selected": false,
"text": "class ViewModel{\n ObservableCollection<ComboboxListItemType> DataForTheComboBoxList;\n ObservableCollection<MyData... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36086/"
] |
385,793 | <p>What's the best way to programmatically start an application on login for Windows? I know you can do it by adding an item to the startup folder in the start menu, but I want to have an option in my application to turn it off and on.</p>
| [
{
"answer_id": 385797,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 4,
"selected": true,
"text": "Registry.SetValue(@\"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\",\n \"MyStartUp\"... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23339/"
] |
385,796 | <p>The regular code snippet of syncing data with sync framework is this:</p>
<pre><code>LocalDBSyncAgent syncAgent = new LocalDBSyncAgent();
Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize();
</code></pre>
<p>Do anynody knows a way to sync a subset of my tables.
Note not the data insid... | [
{
"answer_id": 386511,
"author": "Bramha Ghosh",
"author_id": 3268,
"author_profile": "https://Stackoverflow.com/users/3268",
"pm_score": 3,
"selected": true,
"text": "public class SampleSyncAgent : Microsoft.Synchronization.SyncAgent\n {\n\n public SampleSyncAgent()\n {\n\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11659/"
] |
385,809 | <p>I have a MS SQL table that I don't have any control over and I need to write to. This table has a int primary key that isn't automatically incremented. I can't use stored procs and I would like to use Linq to SQL since it makes other processing very easy.</p>
<p>My current solution is to read the last value, increm... | [
{
"answer_id": 385814,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "var maxId = dc.Logs.Max(s => s.ID);\n"
},
{
"answer_id": 385848,
"author": "alextansc",
"author_id": 1958... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385809",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11063/"
] |
385,824 | <p>Of all these methods what's being run and in what order??
I guess the first question to ask is whats being run first?</p>
<p><strong>And why does th.start() start run()?</strong></p>
<pre><code>import java.applet.*;
import java.awt.*;
import javax.swing.JFrame;
public class BallApplet extends Applet implements R... | [
{
"answer_id": 385833,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": true,
"text": "init()"
},
{
"answer_id": 385843,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https:... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51518/"
] |
385,837 | <p>In the past I've written sites in ASP.NET just to get nice reusable templating via master pages (layouts) and user controls (partials). I'm talking about sites that have no more complicated code in them than simple variable substitution in templates - I'm just using it to keep my HTML organized. It's great to be abl... | [
{
"answer_id": 1813695,
"author": "user220623",
"author_id": 220623,
"author_profile": "https://Stackoverflow.com/users/220623",
"pm_score": 2,
"selected": true,
"text": "<h:define name=\"header\">\n some header contents\n</h:define>\n\n...\n\n<h:header />\n\n<h:include file=\"middle_pa... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11284/"
] |
385,841 | <p>Is it better to use NGEN an ASP.NET application when we know it is not going to change much? Or is the JIT good enough?</p>
<p>The only reason I asked was because <a href="http://www.codeguru.com/columns/experts/article.php/c4651" rel="nofollow noreferrer">this article by Jeffrey Richter</a> in 2002 says :</p>
<bl... | [
{
"answer_id": 937971,
"author": "foson",
"author_id": 22539,
"author_profile": "https://Stackoverflow.com/users/22539",
"pm_score": 3,
"selected": false,
"text": "C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/385841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
385,853 | <p>I have an application with a view containing several subviews. The subviews did not implement any touchesbegins logic. The Superview implemented all touchesbegins logic and manipulated each subview respectively if it was touched (determined by hit testing). </p>
<p>I have since been converting my subviews to lay... | [
{
"answer_id": 386216,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 2,
"selected": true,
"text": "userInteractionEnabled"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/385853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48311/"
] |
385,861 | <p>Our whole system is being designed around REST and are now considering how processes which are quite clearly RPC in intent can be mapped to RESTful resources without using verbs in the URL. Our remote procedure call is used to rebuild our search index when a content listing has been modified elsewhere.</p>
<p>What ... | [
{
"answer_id": 734800,
"author": "Mark Renouf",
"author_id": 758,
"author_profile": "https://Stackoverflow.com/users/758",
"pm_score": 2,
"selected": false,
"text": "201 Created\nLocation: /index_updates/a9283b734e\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/385861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37196/"
] |
385,890 | <p>I have created a one-time subscription in SSRS report manager 2008. However I keep getting duplicate emails sent out by the subscription. The interval between each email is about 30 minutes. </p>
<p>I have checked SQL agent job and it looks the SQL agent job is created correctly. It just runs once and after that th... | [
{
"answer_id": 419570,
"author": "Ken Yao",
"author_id": 42356,
"author_profile": "https://Stackoverflow.com/users/42356",
"pm_score": 3,
"selected": true,
"text": "<system.diagnostics>\n <switches>\n <add name=\"DefaultTraceSwitch\" value=\"3\" />\n </switches> </system.dia... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385890",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42356/"
] |
385,895 | <p>What is the preferred naming convention for Django model classes?</p>
| [
{
"answer_id": 385951,
"author": "Ben",
"author_id": 11522,
"author_profile": "https://Stackoverflow.com/users/11522",
"pm_score": 3,
"selected": false,
"text": "Person\nTelephoneNumber\n"
},
{
"answer_id": 386054,
"author": "Baishampayan Ghose",
"author_id": 8024,
"a... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1897/"
] |
385,907 | <p>I have to write a Java Client to connect to an SSL server. The server uses openssl certificate, and is configured to do Client Auth.</p>
<p>I can't seem to locate any useful resources online that can help me (who doesn't know anything about openssl and much about SSL) to understand who to go about implementing my C... | [
{
"answer_id": 387639,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": false,
"text": "KeyStore tks = KeyStore.getInstance(KeyStore.getDefaultType());\ntks.load(...); /* Load the trust key store with root CAs. ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29860/"
] |
385,910 | <p>I am new to Silverlight 2.0 and I am actually trying to deploy the Silverlight as webpart in Sharepoint 2007.</p>
<p>I have done the following Installations:</p>
<ol>
<li>VS 2008 with SP1</li>
<li>Silverlight 2.0 SDK and exe</li>
<li>Silverlight Tools for VS 2008</li>
<li>MOSS 2007</li>
</ol>
<p>I have created th... | [
{
"answer_id": 387399,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<script src=\"/ScriptResource.axd?d=Un3ROg6ZO8lU8fUlhDz-soUWbkyxgh5pk-teueIPxbpft-XX1Z5TrN4P3iF-wiGinTLoxOt5mA420kQULjqoDnUjO5... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
385,912 | <p>I need to convert a passed in argument (single object or collection) to an Array. I don't know what the argument is. If it is an Array already, I want to leave it, otherwise create a one-element array from it. I'm looking to <strong>allow both <code>method(:objs => obj)</code> and <code>method(:objs => [obj1, ... | [
{
"answer_id": 385937,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 2,
"selected": false,
"text": "Object.to_a"
},
{
"answer_id": 386124,
"author": "krusty.ar",
"author_id": 43981,
"author_pr... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13216/"
] |
385,913 | <p>Why wasn't the Java "throws" clause (in method declaration) included in C#?</p>
| [
{
"answer_id": 397732,
"author": "Thomas Danecker",
"author_id": 9632,
"author_profile": "https://Stackoverflow.com/users/9632",
"pm_score": 1,
"selected": false,
"text": "TryParse"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/385913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38325/"
] |
385,916 | <p>I want to copy a file to a FTP server using wxFTP, but I would like to do this without blocking the UI, and much better, while displaying a progress bar. Can I do this without extra thread?</p>
<p>I'm using wxLua, but I can adapt a solution written in any language as long as it uses a wxWidgets binding.</p>
| [
{
"answer_id": 385938,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 0,
"selected": false,
"text": "canRead()"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/385916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14443/"
] |
385,919 | <p>I face a problem when I try to get value from primary table in my mapping file.</p>
<p>My tables:</p>
<pre><code>CREATE TABLE Customer
(
[CustomerId] INT PRIMARY KEY,
[FullName] NVARCHAR(50) NOT NULL
)
CREATE TABLE CustomerOrder
(
[CustomerOrderId] INT PRIMARY KEY,
[CustomerId] INT,
[Transacti... | [
{
"answer_id": 386073,
"author": "James Gregory",
"author_id": 27206,
"author_profile": "https://Stackoverflow.com/users/27206",
"pm_score": 2,
"selected": true,
"text": "public class CustomerOrder\n{\n public int Id { get; set; }\n public Customer Customer { get; set; }\n}\n\npublic c... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35700/"
] |
385,925 | <p>When you run a JUnit 4 ParameterizedTest with the Eclipse TestRunner, the graphical representation is rather dumb: for each test you have a node called <code>[0]</code>, <code>[1]</code>, etc.
Is it possible give the tests <code>[0]</code>, <code>[1]</code>, etc. explicit names? Implementing a <code>toString</code> ... | [
{
"answer_id": 386082,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 3,
"selected": false,
"text": "Parameterized"
},
{
"answer_id": 4050011,
"author": "Jakub Holý",
"author_id": 204205,
"author_pro... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21499/"
] |
385,928 | <p>I want to show a modeless dialog on the screen and display some information in it.</p>
<p>However if I use it the following way, it has some problems:</p>
<pre><code>function()
{
showdialog(XXX).
//heavy work.
update the dialog..
//heavy work.
update the dialog...
}
</code></pre>
<p>It seems the dialog displayed,... | [
{
"answer_id": 385979,
"author": "jussij",
"author_id": 14738,
"author_profile": "https://Stackoverflow.com/users/14738",
"pm_score": 3,
"selected": false,
"text": "void ProcessMessages()\n{\n MSG msg;\n CWinApp* pApp = AfxGetApp();\n while (PeekMessage(&msg, NULL, 0, 0, PM_NORE... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25749/"
] |
385,945 | <p>I want to capture all the requests going to <code>*.jpg</code> files on my server. To do so, I have created an HttpHandler whose code is as follows:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.IO;
using System.Globalization;
namespace MyHandler
{... | [
{
"answer_id": 385953,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 2,
"selected": false,
"text": "<httpHandlers>\n <add verb=\"\" path=\".jpg\" type=\"MyHandler.NewHandler,MyHandler\"/>\n</httpHandlers> \n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/385945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
385,959 | <p>Lets say you have a model like the following:</p>
<pre><code>class Stock < ActiveRecord::Base
# Positions
BUY = 1
SELL = 2
end
</code></pre>
<p>And in that class as an attribute of type integer called 'position' that can hold any of the above values. What is the Rails best practice for converting those in... | [
{
"answer_id": 385990,
"author": "DanSingerman",
"author_id": 43965,
"author_profile": "https://Stackoverflow.com/users/43965",
"pm_score": 0,
"selected": false,
"text": "stock.position.name\n"
},
{
"answer_id": 389189,
"author": "maurycy",
"author_id": 48541,
"author... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48321/"
] |
385,960 | <p>Say I have the following code:</p>
<pre><code>function One() {}
One.prototype.x = undefined;
function Two() {}
var o = new One();
var t = new Two();
</code></pre>
<p><code>o.x</code> and <code>t.x</code> will both evaluate to <code>undefined</code>. <code>o.hasOwnProperty('x')</code> and <code>t.hasOwnProperty('... | [
{
"answer_id": 385962,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 0,
"selected": false,
"text": "var definedProperties = [];\nfor (var prop in o) definedProperties.push(prop);\n\nif (o.x === undefined && contains(prop, ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385960",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
385,975 | <p>What do you consider "best practice" when it comes to error handling errors in a consistent way in a C library.</p>
<p>There are two ways I've been thinking of:</p>
<p>Always return error code. A typical function would look like this:</p>
<pre><code>MYAPI_ERROR getObjectSize(MYAPIHandle h, int* returnedSize);
</c... | [
{
"answer_id": 385998,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": false,
"text": "stdio"
},
{
"answer_id": 386008,
"author": "Ilya",
"author_id": 6807,
"author_profile": "https://Stackov... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11758/"
] |
385,986 | <p>I would like to cache my most database heavy actions in my asp.net-mvc site.
In my research I have found </p>
<ul>
<li><a href="http://haacked.com/archive/2008/11/05/donut-caching-in-asp.net-mvc.aspx" rel="noreferrer">donut caching</a> on Phil's blog</li>
<li><a href="http://weblogs.asp.net/rashid/archive/2008/03/2... | [
{
"answer_id": 388175,
"author": "Matthew",
"author_id": 20162,
"author_profile": "https://Stackoverflow.com/users/20162",
"pm_score": 7,
"selected": true,
"text": "System.Web.HttpContext.Current.Cache"
},
{
"answer_id": 47410405,
"author": "Nikki",
"author_id": 1434834,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/385986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
386,006 | <p>I have the table (Product_Id, category priority, atribute1, atribute2...) in MS Access, and I am trying to make a query that orders the data grouped by Category and ordered by the highest priority. Priority can be Null, so it should be placed at the end.
Example:
Table</p>
<pre><code>1, 100, 2, atr1, atr2
2, 300, ... | [
{
"answer_id": 386025,
"author": "Unsliced",
"author_id": 2902,
"author_profile": "https://Stackoverflow.com/users/2902",
"pm_score": 0,
"selected": false,
"text": "select t1.* \nfrom myTable t1 \njoin \n( \n\n select category, min(coalesce(priority, 1000)) weight\n from my... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,017 | <p>I have methods with <strong>more than one parameter</strong> that are guarded against bad input by throwing ArgumentNullExceptions and ArgumentExceptions whenever any parameter is null.</p>
<p>So there are two obvious ways to test this:</p>
<ul>
<li>One test per Parameter using the [ExpectedException] attribute</l... | [
{
"answer_id": 386037,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "public void ExpectException<T>(Action action) where T : Exception\n{\n try\n {\n action();\n Assert.... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21699/"
] |
386,034 | <p>If I'd like to control the IP phone from my web application, how should I begin?</p>
<p>Let's say I have a standalone IP phone connected to the provider of IP telephony services. On the other side I have a server-side web application for the sales support. I'd like to initiate a call on my phone from this web appli... | [
{
"answer_id": 386037,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "public void ExpectException<T>(Action action) where T : Exception\n{\n try\n {\n action();\n Assert.... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25956/"
] |
386,039 | <p>I have a problem.
I need to host grid with controls in ScrollViewer to prevent textbox from being either truncated or collapsed to zero-with at the UI. Also I want the with of textbox to be expanded when user change windows width.
I'm setting Window's content to following code</p>
<pre><code><DockPanel>
&... | [
{
"answer_id": 387338,
"author": "Robert Macnee",
"author_id": 19273,
"author_profile": "https://Stackoverflow.com/users/19273",
"pm_score": 6,
"selected": true,
"text": "<DockPanel>\n <TreeView Width=\"150\" DockPanel.Dock=\"Left\"/>\n <ScrollViewer HorizontalScrollBarVisibility=\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47856/"
] |
386,040 | <p>ORACLE does not permit NULL values in any of the columns that comprise a primary key. It appears that the same is true of most other "enterprise-level" systems.</p>
<p>At the same time, most systems also allow <em>unique</em> contraints on nullable columns.</p>
<p>Why is it that unique constraints can have NULLs b... | [
{
"answer_id": 386061,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 9,
"selected": true,
"text": "NULL = NULL"
},
{
"answer_id": 16124563,
"author": "zxq9",
"author_id": 988678,
"author_profile": "http... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33080/"
] |
386,042 | <p>I want to have a checkbox for terms and conditions, label of which should contain a link to a page with, well, terms and conditions.</p>
<p>The following field will have the label with the tags escaped.</p>
<pre><code>BooleanField(label="I agree to <a href='terms-conditions.html'>terms&conditions</a&g... | [
{
"answer_id": 386065,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 4,
"selected": true,
"text": "<label>I agree to terms&conditions</label>\n"
},
{
"answer_id": 387482,
"author": "jb.",
"author_id": 37522... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5978/"
] |
386,044 | <p>JavaScript does funky automatic conversions with objects:</p>
<pre><code>var o = {toString: function() {return "40"; }};
print(o + o);
print((o+1)+o);
print((o*2) + (+o));
</code></pre>
<p>will print:</p>
<pre><code>4040
40140
120
</code></pre>
<p>This is because +, if any of the arguments are objects/strings, w... | [
{
"answer_id": 386048,
"author": "Claudiu",
"author_id": 15055,
"author_profile": "https://Stackoverflow.com/users/15055",
"pm_score": 2,
"selected": false,
"text": "var a = {toString: function() {return \"40\"; }};\nnl(typeof a);\nnl(typeof +a);\nnl(typeof a);\nnl(typeof (a++));\nnl(a);... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
386,046 | <p>I am writing a website with PHP. Since it will need to be accessed by anyone on the network to access the internet I have to create a mobile version. How do I best check if it's a mobile device? I don't want to have a switch statement with 50 devices at the end since I don't only want to support the iPhone.</p>
<p>... | [
{
"answer_id": 701925,
"author": "jb.",
"author_id": 37522,
"author_profile": "https://Stackoverflow.com/users/37522",
"pm_score": 2,
"selected": false,
"text": "import re\n\n# Some mobile browsers which look like desktop browsers.\nRE_MOBILE = {\n \"iphone\" : re.compile(\"ip(hone|od... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19929/"
] |
386,063 | <p>Im writing a .net webforms app. It has a number of classes, for example users, bookings etc.
At the moment I have a number of manager classes, say bookingManager, that manage these classes. For example when creating a new booking, you call the add method in the bookingManager, and pass a booking. It then checks the ... | [
{
"answer_id": 386109,
"author": "caltuntas",
"author_id": 36474,
"author_profile": "https://Stackoverflow.com/users/36474",
"pm_score": 2,
"selected": false,
"text": "buttonClicked(Eventargs...)\n{\n presenter.Save();\n}\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386063",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8768/"
] |
386,064 | <p>I want to create a lst file from a sql script</p>
<p>Here is my code:</p>
<pre><code>BEGIN
DECLARE
loc_bia_foracid GAM.foracid%TYPE;
loc_fba_foracid GAM.foracid%TYPE;
out_spool VARCHAR2(32000);
BEGIN
loc_bia_foracid:= '&loc_bia_foracid';
loc_fba_foracid:= '&loc_fba_foracid';
out_spool := out_spool || '|' ... | [
{
"answer_id": 386858,
"author": "darreljnz",
"author_id": 10538,
"author_profile": "https://Stackoverflow.com/users/10538",
"pm_score": 0,
"selected": false,
"text": "CREATE OR REPLACE FUNCTION make_lst(\n pis_bia_foracid IN GAM.foracid%TYPE,\n pis_fba_foracid IN GAM.foracid%TYPE)\nRE... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,066 | <p>I'm implementing a locking and copy protection system for my software. I've shut every hole that would allow someone to break my lock (well, that's a little too optimistic, I know!) but the last thing is this:</p>
<p>I hear crackers can change Windows DLLs like Kernel32.dll in a way that the API I use returns a val... | [
{
"answer_id": 386606,
"author": "HTTP 410",
"author_id": 13118,
"author_profile": "https://Stackoverflow.com/users/13118",
"pm_score": 4,
"selected": true,
"text": "C:\\Windows\\system32>sigcheck kernel32.dll\nSigcheck v1.5\nCopyright (C) 2004-2008 Mark Russinovich\nSysinternals - www.s... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41389/"
] |
386,067 | <p>Using ASP.net, how do you write ANSI characters to a text file?</p>
<p>I need to write this file's text to the web browser. Do they support ANSI?</p>
| [
{
"answer_id": 386119,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 2,
"selected": false,
"text": "FileStream fs = new FileStream(fileName,\n FileMode.CreateNew, FileAccess.Write, FileShare.None);\nStreamWriter ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386067",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
386,076 | <p>I have a book coming on F#, but at the moment I am pretty uninformed, so I thought I'd ask.
From very little I know of F#, I am struggling to see what it gains me over C# bar a possible syntactic neatness. There seems nothing conceptually new, or that isn't do-able in piian C#</p>
<p>I did Forth way back when (20 ... | [
{
"answer_id": 471986,
"author": "MichaelGG",
"author_id": 27012,
"author_profile": "https://Stackoverflow.com/users/27012",
"pm_score": 3,
"selected": false,
"text": " let snd (a,b) = b\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41557/"
] |
386,079 | <p>I would like to use an SQL Server table as an action queue. So whenever the table is non-empty, I'd like some sort of notification to my <a href="http://www.visualdataflex.com/" rel="nofollow noreferrer">VDF</a> application, in order to avoid constantly polling the database. VDF relies on using <a href="http://en.wi... | [
{
"answer_id": 388780,
"author": "seanyboy",
"author_id": 1726,
"author_profile": "https://Stackoverflow.com/users/1726",
"pm_score": 1,
"selected": false,
"text": "{ Published = True }\n{ Description = \"Test the service is alive - returns 'Hello World'\" }\nFunction HelloWorld Return... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386079",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18651/"
] |
386,083 | <p>I am trying to use <a href="https://stackoverflow.com/questions/46663/how-do-you-send-email-from-a-java-app-using-gmail#47452">Bill the Lizard's code</a> to send an email using Google Apps. I am getting this error: </p>
<pre><code>Exception in thread "main" javax.mail.SendFailedException: Sending failed;
nested e... | [
{
"answer_id": 386166,
"author": "Zach Scrivena",
"author_id": 20029,
"author_profile": "https://Stackoverflow.com/users/20029",
"pm_score": 2,
"selected": false,
"text": "private static void send(\n final String username,\n final String password,\n final String reci... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2138/"
] |
386,088 | <p>I am using the following code to attempt to read a large file (280Mb) into a byte array from a UNC path</p>
<pre><code>public void ReadWholeArray(string fileName, byte[] data)
{
int offset = 0;
int remaining = data.Length;
log.Debug("ReadWholeArray");
FileStream stream = new FileStream(fileName, F... | [
{
"answer_id": 2480004,
"author": "John Saunders",
"author_id": 76337,
"author_profile": "https://Stackoverflow.com/users/76337",
"pm_score": 1,
"selected": false,
"text": "FileStream"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/983/"
] |
386,094 | <p>the following js works fine in FF2 but in IE6 the dropdown always selects one option to early, IE -> testix2 vs. FF2 -> testix3
If we add an alertBox somewhere in the script, it also works fine in IE6.
But how to solve this without an alertBox?</p>
<p>tia</p>
<pre><code><script language="JavaScript" type="text/... | [
{
"answer_id": 386127,
"author": "Tom Haigh",
"author_id": 22224,
"author_profile": "https://Stackoverflow.com/users/22224",
"pm_score": 3,
"selected": true,
"text": "var i = 0;\nfor (i in productCategoryLevel2) {\n var optL2 = document.createElement('option');\n\n optL2.text = pro... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28968/"
] |
386,107 | <p>I've written my first JQuery plugin and one of it's dependancies is an external css stylesheet. Do you think this is an acceptable strategy to include this in the distributable or should I embed style information in the plugin itself? Should I ship with no style information at all? The visual elements of the plugin ... | [
{
"answer_id": 386210,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 3,
"selected": true,
"text": "jquery.js\nlicence.txt\nreadme.txt\nui\\*.js\nthemes\\*.css\ntests\\\ndemos\\\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386107",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39655/"
] |
386,111 | <p>My app needs to play some audio files and I want to fade-out the iPod sound, play my file, and then as soon as my audio stops playing fade-in iPod again (just like iPhone handles iPod music when an incoming call comes in)</p>
<p>I'm setting up my app's Audio Session to be kAudioSessionCategory_MediaPlayback and the... | [
{
"answer_id": 1003642,
"author": "Aleksandar Vacić",
"author_id": 108859,
"author_profile": "https://Stackoverflow.com/users/108859",
"pm_score": 2,
"selected": false,
"text": "#import <MediaPlayer/MediaPlayer.h>\n...\n[[MPMusicPlayerController iPodMusicPlayer] pause]\n...(play your aud... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44091/"
] |
386,115 | <p>I've been coding in Ruby for sometime now, but I don't understand when to use:</p>
<pre><code>def self.METHOD_NAME
end
</code></pre>
<p>or just:</p>
<pre><code>def METHOD_NAME
end
</code></pre>
<p>In any Rails model. Is "self" a modifier like private in Java? When should I use it and when not?. Thanks a ton.</p>... | [
{
"answer_id": 386132,
"author": "DanSingerman",
"author_id": 43965,
"author_profile": "https://Stackoverflow.com/users/43965",
"pm_score": 8,
"selected": true,
"text": "def self.method_name\nend\n"
},
{
"answer_id": 386164,
"author": "krusty.ar",
"author_id": 43981,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44916/"
] |
386,122 | <p>I would like to know if there is a function to correctly escape string literals for filter expressions. e.g.:</p>
<pre><code>DataTable.Select(String.Format("[name] = '{0}'", MyName))
</code></pre>
<p>If MyName contains ' or a number of other key characters an exception is generated. The <a href="http://msd... | [
{
"answer_id": 2928226,
"author": "Rory",
"author_id": 8479,
"author_profile": "https://Stackoverflow.com/users/8479",
"pm_score": 5,
"selected": false,
"text": "private string EscapeLikeValue(string value)\n{\n StringBuilder sb = new StringBuilder(value.Length);\n for (int i = 0; ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31395/"
] |
386,131 | <p>I want to keep viewstate of a specific page in session but following code block does not help me, what might I be missing?</p>
<p>So here is the code-behind file content of my page;</p>
<pre><code> public partial class ConfigurationEditorWebForm : PageBase
{
protected void Page_Load(object sender, E... | [
{
"answer_id": 484656,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 2,
"selected": false,
"text": "protected override PageStatePersister PageStatePersister\n{\n get\n {\n return new SessionPageStatePersister(t... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35012/"
] |
386,142 | <p>Can anyone provide a good example of IHttpHnalder for handling Image Type. I want to resize the image that's hosted on my server</p>
| [
{
"answer_id": 415988,
"author": "peSHIr",
"author_id": 50846,
"author_profile": "https://Stackoverflow.com/users/50846",
"pm_score": 1,
"selected": false,
"text": "BlobStreams"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,150 | <p>Drupal Aggregator core module is a useful one but suffers many problems. There are many talking about improving it in Drupal 7.</p>
<p>Right now I'm using Aggregator module which comes with Drupal 6. I'm building an aggregation site, and there is one BIG problem. Sometimes feeds contain HTML tags attributes (e.g. s... | [
{
"answer_id": 3653501,
"author": "Daniel Canet",
"author_id": 440848,
"author_profile": "https://Stackoverflow.com/users/440848",
"pm_score": 0,
"selected": false,
"text": "<?php\nfunction aggregator_filter_xss($value) {\n return filter_xss($value, preg_split('/\\s+|<|>/', variable_get... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44100/"
] |
386,151 | <p>I want to convert strings to bit-fields.Also,convert them to binary and then use.
Need help with this..help me ..</p>
| [
{
"answer_id": 386188,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": ">>> from struct import *\n>>> pack('hhl', 1, 2, 3)\n'\\x00\\x01\\x00\\x02\\x00\\x00\\x00\\x03'\n>>> unpack('hhl', '\\x00\\x01... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46646/"
] |
386,155 | <p>I'm doing some research in code generation from xsd schema files.
My requirements:</p>
<ul>
<li>Must generate C# 2.0 code (or above), using generic collections where needed.</li>
<li>Must generate comments from the xsd comments</li>
<li>Must generate fully serializable code.</li>
<li>Should be able to generate res... | [
{
"answer_id": 4731379,
"author": "Xcalibur",
"author_id": 317739,
"author_profile": "https://Stackoverflow.com/users/317739",
"pm_score": 7,
"selected": true,
"text": "@echo off\n\nset XsdPath=C:\\schemas\nset OutPath=%XsdPath%\\Code\nset ExePath=C:\\Progra~1\\Xsd2Code\nset Namespace=In... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386155",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6399/"
] |
386,162 | <p>If i SELECT a row for updating in MS SQL Server, and want to have it locked till i either update or cancel, which option is better :-</p>
<p>1) Use a query hint like UPDLOCK
2) Use REPEATABLE READ isolation level for the transaction
3) any other option.</p>
<p>Thanks,
Chak.</p>
| [
{
"answer_id": 386301,
"author": "HTTP 410",
"author_id": 13118,
"author_profile": "https://Stackoverflow.com/users/13118",
"pm_score": 3,
"selected": false,
"text": "BEGIN TRAN\n\nSELECT *\nFROM authors AU\nWITH (HOLDLOCK, ROWLOCK)\nWHERE AU.au_id = '274-80-9391'\n\n/* Do all your ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,174 | <p>Steps:<br />
- Installed Mysql Server 2005 <br />
- Downloaded Mysql++, built both debug and release version.<br />
- Ran install.hta and selected a directory<br />
- Added library/include directory in MSVC++ 2008<br />
- Included mysql++.h in my application<br />
- Moved .dll files (libMYSQL.dll and mysqlpp.dll and... | [
{
"answer_id": 414081,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 2,
"selected": false,
"text": "mysqlpp::Connection* conn;\n"
},
{
"answer_id": 414096,
"author": "Martin York",
"author_id": 14065,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,183 | <p>i have a sub with this signature</p>
<pre><code>Public Sub Save(ByVal obj As IPta)
</code></pre>
<p>now i want the create a instance of Generic.PtaDao(of T) with the type of obj, which could be anything that inherits from my base class Pta</p>
<p>how can i do that?
i already found a c# example
<a href="https://st... | [
{
"answer_id": 386267,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "Public Sub Save(Of T As { IPta, New })(ByVal obj As T)\n Dim foo As New T\n ' Do more stuff here\nEnd Sub\n"
},
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12406/"
] |
386,189 | <p>Is there any way that I could get the source of a website (as a string preferably), let's say www.google.com, from some c# code inside code behind of asp.net website?</p>
<p>edit: of course i mean html code - in every browser you can view it using "view <strong>source</strong>" in context menu.</p>
| [
{
"answer_id": 386217,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 4,
"selected": true,
"text": "class Program\n{\n static void Main(string[] args)\n {\n using (WebClient client = new WebClient())\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40872/"
] |
386,200 | <p>So my goal here is to have a single search field in an application that will be able to search multiple tables and return results.</p>
<p>For example, two of these tables are "performers" and "venues" and there are the following performers: "John Andrews","Andrew Smith","John Doe" and the following venues: "St. And... | [
{
"answer_id": 388134,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 0,
"selected": false,
"text": " SELECT tblPerson.PersonID, tblPerson.LastName & \", \" & tblPerson.FirstName, \"Person\"\n FROM tblPerson \n WHER... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
386,211 | <p>I posted this <a href="https://stackoverflow.com/questions/385442/linq-submitchanges-not-updating-certain-fields">question</a> yesterday evening, which has led me to discover a <strong>huge</strong> problem!</p>
<p>I have a decimal column in my database called Units, anytime I set the value of the column to a NON Z... | [
{
"answer_id": 386367,
"author": "Gaspar Nagy",
"author_id": 26530,
"author_profile": "https://Stackoverflow.com/users/26530",
"pm_score": 2,
"selected": false,
"text": "using (DataClasses1DataContext ctx = new DataClasses1DataContext())\n{\n var obj = ctx.DecimalColumnTables.First();... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
386,220 | <p>I have a bunch of compile time asserts, such as:</p>
<pre><code>CASSERT(isTrue) or CASSERT2(isTrue, prefix_)
</code></pre>
<p>When compiling with GCC I get many warnings like <code>'prefix_LineNumber' defined but not used</code>. Is there a way I can hide warnings for compile time asserts? I had no luck searching ... | [
{
"answer_id": 386237,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 2,
"selected": false,
"text": "-Wunused-label"
},
{
"answer_id": 386273,
"author": "Community",
"author_id": -1,
"author_profile"... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386220",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,252 | <p>I want to keep the class simple and not defined a constructor so i can do Pt data = {0, 5};
so i figured the best way convert Pt_t from a short to long or vice versa is to do something like this.</p>
<pre><code>template <class T>
struct Pt_t
{
T x, y;
template <class T2> operator Pt_t<T2>(... | [
{
"answer_id": 386262,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 1,
"selected": false,
"text": "Pt_t<T2>"
},
{
"answer_id": 386263,
"author": "eduffy",
"author_id": 7536,
"author_profile": "htt... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,265 | <p>At the root of my d: drive, TortoiseSVN is showing the question mark decorators on all the folders. The d: drive is not a SVN working copy. How do I remove the decorators?</p>
| [
{
"answer_id": 386279,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 5,
"selected": true,
"text": "c:\\*\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6013/"
] |
386,281 | <p>I have an HTML page with multiple checkboxes.</p>
<p>I need one more checkbox by the name "select all". When I select this checkbox all checkboxes in the HTML page must be selected. How can I do this?</p>
| [
{
"answer_id": 386303,
"author": "Can Berk Güder",
"author_id": 2119,
"author_profile": "https://Stackoverflow.com/users/2119",
"pm_score": 8,
"selected": false,
"text": "<script language=\"JavaScript\">\nfunction toggle(source) {\n checkboxes = document.getElementsByName('foo');\n for... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48094/"
] |
386,294 | <p>What is the maximum length of a valid email address? Is it defined by any standard?</p>
| [
{
"answer_id": 574698,
"author": "Dominic Sayers",
"author_id": 63349,
"author_profile": "https://Stackoverflow.com/users/63349",
"pm_score": 11,
"selected": true,
"text": "Path = \"<\" [ A-d-l \":\" ] Mailbox \">\"\n"
},
{
"answer_id": 66187864,
"author": "HoldOffHunger",
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20305/"
] |
386,304 | <p>I am working on a migration project, here we are migrating large set of C++ libraries from Mainframe to Solaris. We have complted migration sucessfully, but while running the application, some places it crashes with 'signal SEGV (no mapping at the fault address)'. </p>
<p>Since the application supports on windows a... | [
{
"answer_id": 386320,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "map<string,CDBBindParam,less<string> >m_BindMap;\n\n\n\nCNumString ns(CNumStringTraits(0,2,'0'));\nns = m_BindMap.size();\nstr... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,307 | <p>I have an access database with many tables. I am looking for a field which may or may not exist in one or many of the tables. How do I check if it exists or not? (without querying each table of course)</p>
| [
{
"answer_id": 386326,
"author": "Paul Mitchell",
"author_id": 38966,
"author_profile": "https://Stackoverflow.com/users/38966",
"pm_score": -1,
"selected": false,
"text": "SELECT * FROM sysobjects WHERE xtype = 'U' AND name = 'myTable'\n"
},
{
"answer_id": 386366,
"author": ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
386,308 | <p>When creating a criteria for NHibernate all criteria are added as <code>AND</code>.</p>
<p>For instance:</p>
<pre><code>session.CreateCriteria(typeof(someobject))
.Add(critiera)
.Add(other_criteria)
</code></pre>
<p>then end result will be</p>
<pre><code>SELECT ...
FROM ...
WHERE criteria **AND** other_criteria
... | [
{
"answer_id": 386329,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 2,
"selected": false,
"text": "Restrictions.or"
},
{
"answer_id": 386339,
"author": "James Gregory",
"author_id": 27206,
"author_profi... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30719/"
] |
386,315 | <p>I am in the process of refactoring our BI layers to make our code more "loosely coupled" and I was interested to hear what you guys thought might be interesting improvements to make?</p>
<p>At present, our API is something like the following:-</p>
<pre><code>// Fetch a collection of objects
ProductCollection prods... | [
{
"answer_id": 386443,
"author": "Marco Tolk",
"author_id": 23764,
"author_profile": "https://Stackoverflow.com/users/23764",
"pm_score": 4,
"selected": true,
"text": "Repository.Save(ObjectOfAnyType);\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38911/"
] |
386,319 | <p>Hi I'm trying to fix a bit of test html to work with opera/chrome. It's using the <a href="http://www.alistapart.com/articles/holygrail" rel="nofollow noreferrer">holygrail box model from matt levine</a>. </p>
<p>In IE and firefox it looks like</p>
<p><a href="http://img187.imageshack.us/img187/4049/writedn1.jpg" ... | [
{
"answer_id": 386501,
"author": "zenazn",
"author_id": 46848,
"author_profile": "https://Stackoverflow.com/users/46848",
"pm_score": 3,
"selected": true,
"text": "#content{\n padding-right:300px;\n background:#F00;\n}\n#main{\n padding:5px 15px;\n width: 100%;\n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/253/"
] |
386,321 | <p>I am html page with 5 checkboxes</p>
<p>My requirement is to have one morecheckboxes "Select All" which is used to select all 5 checkboxes.</p>
<p>Thanks in advance</p>
<p><strong>Closed</strong> as exact duplicate of <a href="https://stackoverflow.com/questions/386281/how-to-implement-select-all-check-box-in-htm... | [
{
"answer_id": 386332,
"author": "Mark Carpenter",
"author_id": 47645,
"author_profile": "https://Stackoverflow.com/users/47645",
"pm_score": 2,
"selected": false,
"text": "function CheckAll(value){\n document.getElementByID(\"CheckBox1\").checked = value;\n document.getElementByID... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48094/"
] |
386,341 | <p>I have a ticks value of 28000000000 which should be 480 minutes but how can I be sure? How do I convert a ticks value to minutes?</p>
| [
{
"answer_id": 386351,
"author": "thinkbeforecoding",
"author_id": 47001,
"author_profile": "https://Stackoverflow.com/users/47001",
"pm_score": 5,
"selected": false,
"text": "TimeSpan duration = new TimeSpan(tickCount)\ndouble minutes = duration.TotalMinutes;\n"
},
{
"answer_id"... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,345 | <p>Socket has a constructor that takes a winsock SOCKET as parameter and stores it in a private variable:</p>
<pre><code>Socket::Socket(SOCKET s) {
this->s = s;
}
</code></pre>
<p>I'm trying to make a class "GameSocket" that will parse data from my Socket class:</p>
<pre><code>class GameSocket : public Socket... | [
{
"answer_id": 386365,
"author": "David Allan Finch",
"author_id": 27417,
"author_profile": "https://Stackoverflow.com/users/27417",
"pm_score": 4,
"selected": true,
"text": "class GameSocket : public Socket {\n\npublic:\n\n // you need to add\n GameSocket(SOCKET s) : Socket(s) {}\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,374 | <p>What is the best way to encrypt a value in INI file?</p>
<p>Using Encryption/Decryption key??</p>
| [
{
"answer_id": 386595,
"author": "Dutch Masters",
"author_id": 42037,
"author_profile": "https://Stackoverflow.com/users/42037",
"pm_score": 2,
"selected": false,
"text": "import random\nimport base64\ndef tinycode(key, text, reverse=False):\n \"(de)crypt stuff\"\n rand = random.Ra... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386374",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,377 | <p>I'm trying to produce a pretty simple XML schema for an XML similar to the following:</p>
<pre><code><messages>
<item>
<important_tag></important_tag>
</item>
<item>
<important_tag></important_tag>
<tag2></tag2>
</item>
<item... | [
{
"answer_id": 407546,
"author": "13ren",
"author_id": 50979,
"author_profile": "https://Stackoverflow.com/users/50979",
"pm_score": 4,
"selected": true,
"text": "<xs:element ref=\"important_tag\" minOccurs=\"0\"/>\n<xs:any minOccurs=\"0\"/>\n"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48369/"
] |
386,378 | <p>Answers provided have all been great, I mentioned in the comments of Alnitak's answer that I would need to go take a look at my CSV Generation script because for whatever reason it wasn't outputting UTF-8. </p>
<p>As was correctly pointed out, it WAS outputting UTF-8 - the problem existed with Ye Olde Microsoft Exc... | [
{
"answer_id": 386396,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 5,
"selected": true,
"text": "0x00a3"
},
{
"answer_id": 4150271,
"author": "Ben",
"author_id": 439008,
"author_profile": "https://Stack... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42428/"
] |
386,380 | <p>I've a table with a lot of registers (more than 2 million). It's a transaction table but I need a report with a lot of joins. Whats the best practice to index that table because it's consuming too much time.</p>
<p>I'm paging the table using the storedprocedure paging method but I need an index because when I want ... | [
{
"answer_id": 386602,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": " SELECT \n TBL.*\n FROM\n FOREINGDATABASE..TABLENAME TBL\n LEFT JOIN Status S \n ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,465 | <p>I'm looking to rewrite a pretty intensive CRUD type ASP.NET page to utilize ajax calls (specifically jQuery ajax). My concern in doing this is that the user may be on this page longer than the forms authentication timeout. Because of this, I'm thinking that I should extend the forms authentication ticket with each... | [
{
"answer_id": 387021,
"author": "Trick Jarrett",
"author_id": 12073,
"author_profile": "https://Stackoverflow.com/users/12073",
"pm_score": -1,
"selected": false,
"text": "$.ajax('ajax.php',{timeout: 60000},function (data) {\nalert(data);\n}\n"
},
{
"answer_id": 7231326,
"au... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17692/"
] |
386,476 | <p>I have a table where I'm storing Lat/Long coordinates, and I want to make a query where I want to get all the records that are within a distance of a certain point.</p>
<p>This table has about 10 million records, and there's an index over the Lat/Long fields</p>
<p>This does not need to be precise. Among other th... | [
{
"answer_id": 386522,
"author": "George Mastros",
"author_id": 1408129,
"author_profile": "https://Stackoverflow.com/users/1408129",
"pm_score": 3,
"selected": true,
"text": "CREATE FUNCTION [dbo].[SquareDistance] \n(@Lat1 float, @Long1 float, @Lat2 float, @Long2 float)\nRETURNS float\n... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3314/"
] |
386,484 | <p>I don't want my window to be resized either "only horizontally" or "only vertically." Is there a property I can set on my window that can enforce this, or is there a nifty code-behind trick I can use?</p>
| [
{
"answer_id": 387110,
"author": "Gant",
"author_id": 12460,
"author_profile": "https://Stackoverflow.com/users/12460",
"pm_score": 4,
"selected": false,
"text": "<Window x:Class=\"TestWPF.Window1\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\"h... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47645/"
] |
386,487 | <p>How do I best capture the HTML (in my instance, for logging) rendered by an aspx-page?</p>
<p>I dont want to have to write back to the page using Response.Write, since it messes up my site layout.</p>
<p>Using the Response.OutputStream or Response.Output's stream results in an ArgumentException ({System.ArgumentEx... | [
{
"answer_id": 386502,
"author": "annakata",
"author_id": 13018,
"author_profile": "https://Stackoverflow.com/users/13018",
"pm_score": 2,
"selected": false,
"text": "public class ObserverStream : Stream\n{\n private byte[] buffer = null;\n private Stream observed = null;\n\n public O... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386487",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33067/"
] |
386,493 | <p>There is one aspect of TDD which I never fully understood.</p>
<p>Suppose somebody asked you to implement a simple Stack object. If you've done your design properly, you will come to a very minimal and clean API. Suppose: <code>push()</code>, <code>pop()</code> and <code>isEmpty()</code>. Anything more than that is... | [
{
"answer_id": 386586,
"author": "James Gregory",
"author_id": 27206,
"author_profile": "https://Stackoverflow.com/users/27206",
"pm_score": 2,
"selected": false,
"text": "[Test]\npublic void new_instance_should_be_empty()\n{\n var stack = new Stack();\n\n Assert.That(stack.IsEmpty(), ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24545/"
] |
386,495 | <p>How do you determine if a letter is in the range from A-Z or Digit 0-9? We are getting some corrupted data "I_999Š=ÄÖÆaðøñòòñ".</p>
<p>I thought I could use Char.IsLetterOrDigit("Š") to ID the corrupted data from "I_999Š", but unexpectedly this is returning true. I need to trap this, any thoughts?</p>
| [
{
"answer_id": 386528,
"author": "P Daddy",
"author_id": 36388,
"author_profile": "https://Stackoverflow.com/users/36388",
"pm_score": 1,
"selected": false,
"text": "For Each m As Match In Regex.Matches(\"I_999Š=ÄÖÆaðøñòòñ\", \"[^A-Z0-9]\")\n '' Found a bad character\nNext\n"
},
{... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
386,500 | <p>How can I initialize a list containing generic objects whose types can be different?</p>
<p>For example, I have the following:</p>
<pre><code>this.Wheres = new List<Where<>>();
</code></pre>
<p>As you know, <> is not valid syntax. However, sometimes the type passed to Where will be a string and som... | [
{
"answer_id": 386508,
"author": "Sergio",
"author_id": 32037,
"author_profile": "https://Stackoverflow.com/users/32037",
"pm_score": 1,
"selected": false,
"text": "this.Wheres = new List<Object>();\n"
},
{
"answer_id": 386514,
"author": "Jon Skeet",
"author_id": 22656,
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31516/"
] |
386,506 | <p>I am having a problem with binding values in my ActionScript components. I basically want to set the value of a a variable in my component to a value in the model, and have the component variable automatically update when the model value is updated. I think that I just don't fully understand how data binding works i... | [
{
"answer_id": 474866,
"author": "Eric Belair",
"author_id": 31298,
"author_profile": "https://Stackoverflow.com/users/31298",
"pm_score": 2,
"selected": true,
"text": "/* Type1Lists.mxml */\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TwoLists xmlns:mx=\"http://www.adobe.com/2006/mxml\... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31298/"
] |
386,520 | <p>Just as the title says, I see a lot of editors touting macro recording as a feature but cannot find a way to take advantage of these functions myself. So what can you use it for? The type where you can record mouse movement and/or keystrokes? Is it really that helpful to people out there? Specifically, I deal wi... | [
{
"answer_id": 386541,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 3,
"selected": true,
"text": "C-x ("
},
{
"answer_id": 386551,
"author": "rjzii",
"author_id": 1185,
"author_profile": "https:... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16631/"
] |
386,544 | <p>Just wondering if there is any best practice for DAL to represent null value (from a nullable column).</p>
<p>We currently have our own in-house DAL and are representing null value with int.MinValue. However, this rise concerns with developers thinking that when comparing values, we are purposely imposing another ... | [
{
"answer_id": 386557,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "Nullable<int>"
},
{
"answer_id": 386967,
"author": "Robert Rossney",
"author_id": 19403,
"author_pro... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31206/"
] |
386,554 | <p>for a paper I'm looking for an <em>real-life</em> C function which uses volatile variables. That in itself is not hard to find, but I am looking for a function in which the value of the volatile variable must change <strong>during</strong> the course of the execution of the function, for a particular branch of the ... | [
{
"answer_id": 386917,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": true,
"text": "static int volatile busTimeoutSeen;\n\nint busTimeoutISR(int irq) {\n busTimeoutSeen = 1;\n return 1; /* ... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386554",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21369/"
] |
386,555 | <p>We have a large enterprise consisting of many apps both old and new backed by Oracle 10G. When blocking sessions or deadlocks occur and we get trace reports it would be super handy to be able to have embedded some details in the sql so that we know both what app, and specifically where it was executed from. In add... | [
{
"answer_id": 386669,
"author": "Mr. Shiny and New 安宇",
"author_id": 7867,
"author_profile": "https://Stackoverflow.com/users/7867",
"pm_score": 0,
"selected": false,
"text": "String sql = \"SELECT * FROM USERS WHERE ID = ?\";\nConnection con = getConnection();\nPreparedStatement ps = c... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9192/"
] |
386,559 | <p>I need to delete a temporary file from my C++ windows application (developed in Borland C++ Builder). Currently I use a simple:</p>
<pre><code>system("del tempfile.tmp");
</code></pre>
<p>This causes a console window to flash in front of my app and it doesn't look very professional. How do I do this without the co... | [
{
"answer_id": 386565,
"author": "Paul Stephenson",
"author_id": 5536,
"author_profile": "https://Stackoverflow.com/users/5536",
"pm_score": 5,
"selected": true,
"text": "#include <windows.h>"
},
{
"answer_id": 386572,
"author": "SmacL",
"author_id": 22564,
"author_pr... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386559",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2079/"
] |
386,576 | <p>I'm working on a multilingual flex application that has to run in 27+ languages, including asian, hebrew and arabic, as well as all european languages.</p>
<p>We work with an embedded font (Myriad Pro) and have plenty of styles in a css that make use of that embedded font. We've tested with a modified version of My... | [
{
"answer_id": 402446,
"author": "Brandon",
"author_id": 23133,
"author_profile": "https://Stackoverflow.com/users/23133",
"pm_score": 1,
"selected": false,
"text": "fontWeight=bold"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48375/"
] |
386,583 | <p>I have a Java Applet (JApplet). This Applet uses a JComponent(PanelAux) to show values and images that change periodically. But the applet doesn't refresh itself. What can I do to refresh my applet? </p>
<pre><code>//--------------------------------------------RUN
public void run()
while (true) {
try {... | [
{
"answer_id": 386605,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 2,
"selected": false,
"text": "paint()"
},
{
"answer_id": 386673,
"author": "coobird",
"author_id": 17172,
"author_profile": "h... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386583",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,604 | <p>I have a program where I generate bitstreams, of about 80 to 150 bits or so, which I would like to compress, because I'm going to turn them into some kind of ASCII string so people can transmit them around.</p>
<p>Does anyone know of a good, free bit-aware compressor that might work on such a stream? My main proble... | [
{
"answer_id": 395705,
"author": "afeldspar",
"author_id": 33904,
"author_profile": "https://Stackoverflow.com/users/33904",
"pm_score": 2,
"selected": false,
"text": "N"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27074/"
] |
386,609 | <p>I have a text file with dos elements - hex(00) for example. I need to read it and convert it. I have tried to use <code>utf8toansi</code>, but this removes the whole line with hex(00). Are there any way to convert to text in the whole file ?
I am using <code>win32</code>, <code>RadStudio2007</code>, <code>Delphi</c... | [
{
"answer_id": 386654,
"author": "mghie",
"author_id": 30568,
"author_profile": "https://Stackoverflow.com/users/30568",
"pm_score": 2,
"selected": false,
"text": "procedure TForm1.Button1Click(Sender: TObject);\nvar\n FileStream: TStream;\n MemStream: TMemoryStream;\n P: PChar;\n s:... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15138/"
] |
386,612 | <p>I'm learning how to use Greasemonkey, and was wondering what the <code>@namespace</code> metadata id is for. </p>
<p>Does it have to be a web address? Or can it be a folder/directory on my computer? </p>
<p>Does it even need to be filled in?</p>
| [
{
"answer_id": 386616,
"author": "Joachim Sauer",
"author_id": 40342,
"author_profile": "https://Stackoverflow.com/users/40342",
"pm_score": 7,
"selected": true,
"text": "foobar"
},
{
"answer_id": 386675,
"author": "Athena",
"author_id": 17846,
"author_profile": "http... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41718/"
] |
386,624 | <p>I want to implement in my MFC application project this logic, which written in C# looks like:</p>
<pre><code>XmlSerializer ser = new XmlSerializer(typeof(A_CLASS));
StringBuilder sb = new StringBuilder();
XmlWriterSettings sett = new XmlWriterSettings();
sett.Indent = true;
sett.IndentChars = "\t";
using (XmlWriter... | [
{
"answer_id": 386696,
"author": "Reunanen",
"author_id": 19254,
"author_profile": "https://Stackoverflow.com/users/19254",
"pm_score": 1,
"selected": false,
"text": "xml_oarchive"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
386,652 | <p>What are the tips/techniques when you need to persist classes with inheritance to relational database that doesn't support inheritance?</p>
<p>Say I have this classic example:</p>
<pre><code>Person -> Employee -> Manager
-> Team lead
-> Developer
-> Custo... | [
{
"answer_id": 386683,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 5,
"selected": false,
"text": "vehicle"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386652",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3055/"
] |
386,655 | <p>Has anyone ever had code in Python, that turned out not to perform fast enough?</p>
<p>I mean, you were forced to <em>choose another language</em> because of it?</p>
<p>We are investigating using Python for a couple of larger projects, and my feeling is that in most cases, Python is plenty fast enough for most sce... | [
{
"answer_id": 501942,
"author": "RSabet",
"author_id": 49219,
"author_profile": "https://Stackoverflow.com/users/49219",
"pm_score": 2,
"selected": false,
"text": "os.listdir"
}
] | 2008/12/22 | [
"https://Stackoverflow.com/questions/386655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42037/"
] |
386,656 | <p>Each client is identified by a hash, passed along with every request to the server. What's the best way to handle tracking a users session in this case?</p>
<p>I'm using restful_authentication for user accounts etc. A large percentage of requests are expected to originate without a user account but just the unique ... | [
{
"answer_id": 387213,
"author": "zenazn",
"author_id": 46848,
"author_profile": "https://Stackoverflow.com/users/46848",
"pm_score": 1,
"selected": false,
"text": "session"
},
{
"answer_id": 392704,
"author": "August Lilleaas",
"author_id": 26051,
"author_profile": "... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46758/"
] |
386,662 | <p>I've been working on some data transformation tasks in SSIS. Visual Studio has gotten better in 2008 in it's usability, but I find there are some things that annoy me (i.e. When I delete something in the Package Explorer it refreshs the whole screen bringing me back to the top of the tree. Also, lack of some keyboar... | [
{
"answer_id": 387213,
"author": "zenazn",
"author_id": 46848,
"author_profile": "https://Stackoverflow.com/users/46848",
"pm_score": 1,
"selected": false,
"text": "session"
},
{
"answer_id": 392704,
"author": "August Lilleaas",
"author_id": 26051,
"author_profile": "... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37726/"
] |
386,664 | <p>I'm having a hard time with the setup statement in Python's timeit.Timer(stmt, setup_stmt). I appreciate any help to get me out of this tricky problem:</p>
<p>So my sniplet looks like this:</p>
<pre><code>def compare(string1, string2):
# compare 2 strings
if __name__ = '__main__':
str1 = "This string has ... | [
{
"answer_id": 386718,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 4,
"selected": true,
"text": "t = timeit.Timer('compare(p1, p2)', \"from __main__ import compare; p1=%r; p2=%r\" % (str1,str2))\n"
},
{
"answer_id... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386664",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8203/"
] |
386,709 | <p>Is this valid and correct?</p>
<pre><code>RewriteRule ^myOldPage.html$ /index.php#info [R]
</code></pre>
<p>I'm specifically interested about the <code>#info</code> part.</p>
| [
{
"answer_id": 386739,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 0,
"selected": false,
"text": "RewriteRule ^myOldPage.html$ /index.php?info=true [R]\n"
},
{
"answer_id": 386764,
"author": "Chris Van Opstal",
... | 2008/12/22 | [
"https://Stackoverflow.com/questions/386709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.