qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
292,167 | <p>I have the following regex expression to match html links:</p>
<pre><code><a\s*href=['|"](http:\/\/(.*?)\S['|"]>
</code></pre>
<p>it kind of works. Except not really. Because it grabs everything after the < a href...
and just keeps going. I want to exclude the quote characters from that last \S match. Is ... | [
{
"answer_id": 292193,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 1,
"selected": false,
"text": ">>> import re\n>>> regex = '<a\\s+href=[\"\\'](http://(.*?))[\"\\']>'\n>>> string = '<a href=\"http://google.com/test/this\">'\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
292,169 | <p>I'm already familiar with the standard Java package naming convention of using a domain name to create a unique package name (i.e. package <code>com.stackoverflow.widgets</code>). However, I've never seen any recommendations for how to choose package names for personal projects. I assume because this is because this... | [
{
"answer_id": 292175,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 7,
"selected": true,
"text": "com. net. com.john"
},
{
"answer_id": 292234,
"author": "Don Kirkby",
"author_id": 4794,
"author_profi... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17862/"
] |
292,204 | <p>I need to find whether the user clicking the browser back button or Refresh button.</p>
<p>I need to redirect the page to Error page when he clicks the back or refresh button. How to do this.</p>
<p>I need to do this in javascript for my ASP.net page</p>
| [
{
"answer_id": 292251,
"author": "Joel Martinez",
"author_id": 5416,
"author_profile": "https://Stackoverflow.com/users/5416",
"pm_score": 1,
"selected": false,
"text": "<html><body onload=\"location.replace('someURL.asp')\"></body></html>\n"
},
{
"answer_id": 10455109,
"auth... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
292,230 | <p>I have the following table structure</p>
<pre><code>CREATE TABLE `table` (
`id` int(11) NOT NULL auto_increment,
`date_expired` datetime NOT NULL,
`user_id` int(11) NOT NULL,
`foreign_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `date_expired` (`date_expired`,`user_id`,`foreign_id`),
KEY `use... | [
{
"answer_id": 292249,
"author": "Kendrick Erickson",
"author_id": 37882,
"author_profile": "https://Stackoverflow.com/users/37882",
"pm_score": 4,
"selected": true,
"text": "user_id date_expired foreign_id user_id user_id id"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
292,233 | <p>I'm pretty green with web services and WCF, and I'm using Windows integrated authentication - how do I get the username on the server-side interface? I believe that I'm supposed to implement a custom Behavior, or perhaps something with WCF Sessions? Any clues would be super-handy.</p>
| [
{
"answer_id": 292266,
"author": "Joel Martinez",
"author_id": 5416,
"author_profile": "https://Stackoverflow.com/users/5416",
"pm_score": -1,
"selected": false,
"text": "WindowsIdentity.GetCurrent();"
},
{
"answer_id": 292329,
"author": "Mitch Baker",
"author_id": 37896,... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5728/"
] |
292,254 | <p>Trying to create a random string, x characters in length using 0-9 and a-z/A-Z and can't seem to find a good example, any ideas?</p>
| [
{
"answer_id": 292283,
"author": "Joel Spolsky",
"author_id": 4,
"author_profile": "https://Stackoverflow.com/users/4",
"pm_score": 5,
"selected": false,
"text": "Function RandomString(cb As Integer) As String\n\n Randomize\n Dim rgch As String\n rgch = \"abcdefghijklmnopqrstuvw... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,256 | <p>I'm a simple soul with simple needs, and I'm trying to configure a form. I detest forms.</p>
<p>It needs to have JavaScript to transfer the data, it needs to send an e-mail with the data to an e-mail address, and it needs to redirect visitors to a pdf. CGI has always been confusing to me, and I don't know much Ja... | [
{
"answer_id": 292443,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 1,
"selected": false,
"text": "<script type=\"text/javascript\" src=\"jquery.js\"></script>\n<script type=\"text/javascript\" src=\"script.js\"></scrip... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,257 | <p>My page has two components that depend on JavaScript. On the left-hand side, there is attribute-based navigation (abn). And the right-hand side is the Result of the abn.</p>
<p>There is an event handler for abn and an event handler for the result (both are on clicks)
Whenever the user clicks on the abn, I do an Ajax... | [
{
"answer_id": 292951,
"author": "Alan Storm",
"author_id": 4668,
"author_profile": "https://Stackoverflow.com/users/4668",
"pm_score": 0,
"selected": false,
"text": "function iAmCalledWhenSomeoneClicksOnAbn(){\n alert(\"I was called, w00t!\");\n //...rest of function\n}\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,265 | <p>What are the coolest new features that you guys are looking for, or that you've heard are releasing in c# 4.0.</p>
| [
{
"answer_id": 292273,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": false,
"text": "Person p = new Person (name: \"Jon\", age: 32);\n"
},
{
"answer_id": 292289,
"author": "Christian C. Salvadó... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37881/"
] |
292,274 | <p>I read through the Wikipedia article <em><a href="https://en.wikipedia.org/wiki/Type_system#Existential_types" rel="noreferrer">Existential types</a></em>. I gathered that they're called existential types because of the existential operator (∃). I'm not sure what the point of it is, though. What's the difference bet... | [
{
"answer_id": 292293,
"author": "user35910",
"author_id": 35910,
"author_profile": "https://Stackoverflow.com/users/35910",
"pm_score": -1,
"selected": false,
"text": "abstract class MyType<T>{\n private T a;\n\n public abstract int f(T x);\n}\n"
},
{
"answer_id": 742763,
... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15055/"
] |
292,279 | <p>I have a function which gets a key from the user and generates a Hashtable (on a pattern specified by the key). After creating a Hashtable, I would like to populate a JTable so that each each column represents a key and every rows represents the values associated with the key. I tried everything but couldn't get thi... | [
{
"answer_id": 292287,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 3,
"selected": true,
"text": "new AbstractTableModel() {\n public String getColumnName(int col) {\n return columnNames[col].toString();\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33203/"
] |
292,295 | <p>We are supposed to instantiate our entities through a factory since they are set up differently on the client and server. I want to make sure this is the case but cant quite get it to work.</p>
<pre><code>public interface IEntityFactory
{
TEntity Create<TEntity>() where TEntity : new();
}
public abstract... | [
{
"answer_id": 292541,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "internal"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37889/"
] |
292,307 | <p>How do I select the unique elements from the list <code>{0, 1, 2, 2, 2, 3, 4, 4, 5}</code> so that I get <code>{0, 1, 3, 5}</code>, effectively removing <em>all instances of</em> the repeated elements <code>{2, 4}</code>?</p>
| [
{
"answer_id": 292310,
"author": "CVertex",
"author_id": 209,
"author_profile": "https://Stackoverflow.com/users/209",
"pm_score": 4,
"selected": false,
"text": "var nums = new int{ 0...4,4,5};\nvar distinct = nums.Distinct();\n"
},
{
"answer_id": 292317,
"author": "Bryan Wat... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/976/"
] |
292,308 | <p>I always see the code like this in the blogs: </p>
<pre><code>$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebService.asmx/HelloWorld",
data: "{}",
dataType: "json",
... | [
{
"answer_id": 292321,
"author": "mavera",
"author_id": 439507,
"author_profile": "https://Stackoverflow.com/users/439507",
"pm_score": 0,
"selected": false,
"text": " $(document).ready(function() { \n $('#clKaydet').click(function() {\n $.ajax({\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/439507/"
] |
292,357 | <p>What are the differences between <a href="https://git-scm.com/docs/git-pull" rel="noreferrer"><code>git pull</code></a> and <a href="https://git-scm.com/docs/git-fetch" rel="noreferrer"><code>git fetch</code></a>?</p>
| [
{
"answer_id": 292359,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 14,
"selected": true,
"text": "git pull git fetch git merge git fetch refs/remotes/<remote>/ refs/heads git pull git pull git pull git fetch git merge F... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
292,363 | <p>I recently wrote a class for an assignment in which I had to store names in an ArrayList (in java). I initialized the ArrayList as an instance variable <code>private ArrayList<String> names</code>. Later when I checked my work against the solution, I noticed that they had initialized their ArrayList in the <co... | [
{
"answer_id": 292906,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": false,
"text": "final final /* DON'T DO THIS! */\nColor color = null;\nswitch(colorCode) {\n case RED: color = new Color(\"crimson\"); bre... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
292,378 | <p>I have a number of user permissions that are tested throughout my ASP.NET application. These permission values are referenced in an Enum so that I can conveniently test permissions like so:</p>
<ul>
<li>btnCreate.Enabled = PermissionManager.TestPermission(Permission.AllowCreate);</li>
</ul>
<p>However, I also have... | [
{
"answer_id": 292386,
"author": "Ruben",
"author_id": 21733,
"author_profile": "https://Stackoverflow.com/users/21733",
"pm_score": 1,
"selected": false,
"text": "public enum MyEnum : int \n{\n None =0,\n Value = 1,\n AnotherValue =2 \n}\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
292,380 | <p>I want to discard all remaining characters in a string as soon as one of several unwanted characters is encountered.</p>
<p>As soon as a blacklisted character is encountered, the string before that point should be returned.</p>
<p>For instance, if I have an array:</p>
<pre><code>$chars = array("a", "b... | [
{
"answer_id": 292391,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 4,
"selected": true,
"text": "<?php\n\n$mask = \"abc\";\n\n$string = \"log dog hat bat\";\n\n$result = substr($string,0,strcspn($string,$mask));\n\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
292,395 | <p>I'm writing a simple templating layer in PHP but I've got myself a little stuck. Here's how it works at the moment:</p>
<p>Firstly I use <code>fetch_template</code> to load the template contents from the database - this works (and I collect all the templates at startup if you're interested).</p>
<p>I use PHP varia... | [
{
"answer_id": 292400,
"author": "Dave Vogt",
"author_id": 35189,
"author_profile": "https://Stackoverflow.com/users/35189",
"pm_score": 3,
"selected": false,
"text": "function output_template($template, $vars) {\n extract($vars);\n eval('return \"' . $template . '\";');\n}\n"
},... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2025/"
] |
292,403 | <p>Say that I have two models- Users and Accounts. Each account can have at most n users associated with it, and a user can only be associated with one account. </p>
<p>It would seem natural to say that User </p>
<pre><code>belongs_to :account
</code></pre>
<p>and Account </p>
<pre><code>has_many :users
</code></pr... | [
{
"answer_id": 292473,
"author": "Raimonds Simanovskis",
"author_id": 16829,
"author_profile": "https://Stackoverflow.com/users/16829",
"pm_score": 4,
"selected": true,
"text": "class User\n belongs_to :account\nend\n class User\n validates_each :account do |user, attr, value|\n use... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292403",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35345/"
] |
292,437 | <p>In .net (C#), If you have two types discovered through reflection is it possible to determine if one can be cast to the other? (implicit and/or explicit).</p>
<p>What I'm trying to do is create a library that allows users to specify that a property on one type is mapped to a property on another type. Everything is ... | [
{
"answer_id": 1809539,
"author": "Alex Marshall",
"author_id": 32232,
"author_profile": "https://Stackoverflow.com/users/32232",
"pm_score": 2,
"selected": false,
"text": "to.GetType().IsAssignableFrom(from.GetType());\n"
},
{
"answer_id": 4640305,
"author": "ephere",
"a... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11921/"
] |
292,450 | <p>I need to do some process injection using C++ but I would prefer to use C# for everything other than the low level stuff. I have heard about "function wrapping" and "marshaling" and have done quite a bit of google searching and have found bits of information here and there but I am still really lacking. </p>
<p>Thi... | [
{
"answer_id": 292582,
"author": "Arnout",
"author_id": 3496,
"author_profile": "https://Stackoverflow.com/users/3496",
"pm_score": 4,
"selected": true,
"text": "static extern DllImport"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/67445/"
] |
292,453 | <p>I'm looking into the feasibility of adding a function to my Rails-based intranet site that allows users to upload files.</p>
<p>Two purposes:
My users are widely distributed geographically and linking to documents on the shared network storage doesn't always work (different addresses, DNS entries and stuff outside ... | [
{
"answer_id": 294102,
"author": "blindgaenger",
"author_id": 38045,
"author_profile": "https://Stackoverflow.com/users/38045",
"pm_score": 3,
"selected": false,
"text": "<% form_for :upload, :url => {:action=>:upload}, :html=>{:multipart=>true} do |f| %>\n <%= f.file_field :file %>\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1060/"
] |
292,458 | <p>If you have a lot of Stored Procedures and you change the name of a column of a table, is there a way to check which Stored Procedures won't work any longer?</p>
<hr>
<p><strong>Update</strong>: I've read some of the answers and it's clear to me that there's is no easy way to do this. Would it be easier to move aw... | [
{
"answer_id": 292487,
"author": "Meff",
"author_id": 9647,
"author_profile": "https://Stackoverflow.com/users/9647",
"pm_score": 2,
"selected": false,
"text": "SELECT DISTINCT Object_Name(ID) \nFROM SysComments \nWHERE text LIKE '%Table%'\nAND text LIKE '%Column%'\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26521/"
] |
292,464 | <p>Since I've started using NetBeans, I've learned of some <a href="http://www.netbeans.org/kb/60/java/gui-db.html" rel="nofollow noreferrer">powerful ways</a> to abstract away the process of creating Java database applications with automatically generated UI, beans bindings, and a bunch of other stuff I only vaguely u... | [
{
"answer_id": 292470,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 3,
"selected": true,
"text": " Connection con = DriverManager.getConnection\n ( \"jdbc:myDriver:wombat\", \"myLogin\",\"myPassword\");... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19825/"
] |
292,516 | <p>I would like such empty span tags (filled with <code>&nbsp;</code> and space) to be removed:</p>
<p><code><span> &nbsp; &nbsp; &nbsp; </span></code></p>
<p>I've tried with this regex, but it needs adjusting: </p>
<p><code>(<span>(&nbsp;|\s)*</span>)</code></p>
<p><code... | [
{
"answer_id": 292520,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": "qr{<span[^>]*(/>|>\\s*?</span>)}\n"
},
{
"answer_id": 292538,
"author": "PhiLho",
"author_id": 15459,... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,535 | <p>Every time that I change a value in the designer after saving it, the .designer.cs file will be deleted. </p>
<p>Can anyone tell me how can I fix this problem?</p>
| [
{
"answer_id": 292605,
"author": "gius",
"author_id": 19712,
"author_profile": "https://Stackoverflow.com/users/19712",
"pm_score": 5,
"selected": true,
"text": "using DataContext.cs DataContext.designer.cs namespace"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34623/"
] |
292,544 | <p>Just that... I get a string which contains a path to a file plus some arguments. How can I recognize the path? I thought about the index of the '.' in the file... but I don't like it.<br>
What about using regular expressions? Can anyone point me in the right direction?</p>
<p>Regards</p>
<p>Edit: Theses are valid ... | [
{
"answer_id": 292579,
"author": "Frode Lillerud",
"author_id": 33431,
"author_profile": "https://Stackoverflow.com/users/33431",
"pm_score": 3,
"selected": false,
"text": "bool isPath = System.IO.Path.GetDirectoryName(@\"C:\\MyFolder\\SomeFile.exe -i -d\") != String.Empty;\nif (isPath)\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23893/"
] |
292,548 | <p>I trying to learn swt, and I use maven for all my builds and eclipse for my IDE. When getting the swt jars out of the maven repository, I get:</p>
<pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3034 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1... | [
{
"answer_id": 292799,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 4,
"selected": true,
"text": ".so .jnilib .dll .so java.library.path -D UnsatisifedLinkError"
},
{
"answer_id": 9985251,
"author": "uris... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28068/"
] |
292,551 | <p>Here's the problem: </p>
<p>I have to modify an existing Excel spreadsheet using .NET. The spreadsheet is hugely complex, and I just have to add data in some predefined areas.</p>
<p>I'm investigating my options, and Excel Automation/InterOp is out of the question, as I'm implementing an ASP.NET website, and Excel... | [
{
"answer_id": 292561,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 0,
"selected": false,
"text": "<html><body>\n<table>\n<tr><td><b>Column A</b></td><td><b>Column B</b></td></tr>\n<tr><td><font color=\"red\">-154</b></td><t... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10932/"
] |
292,552 | <p>I'm wondering to using extension method to avoid checking for null in hierarchy.
The example:</p>
<pre><code>// GetItems(), GetFirstOrDefault(), GetProduct(), GetIDProduct() are extension methods like:
public static SomeType GetSomeProperty( this XYZ obj ) {
if ( object.ReferenceEquals( obj, null ) ) { return d... | [
{
"answer_id": 292565,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 2,
"selected": false,
"text": "Guid? idProduct = null;\nInvoice invoice = this.Invoce;\n\nif (invoice != null && \n invoice.Items != null &&\n invoic... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20382/"
] |
292,558 | <p>How can I draw a concave corner rectangle in WPF?</p>
| [
{
"answer_id": 292569,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": "do you mean a rectangle with concave corners?, ie: \n ____________________\n | |\n __| ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292558",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37918/"
] |
292,564 | <p>I have looked at the SQL Server 2008 feature comparison matrix and it lists the express/web and workgroup editions as having the SSIS runtime. Does this mean it is possible to develop SSIS packages using the developer edition, and then deploy and run them on a server running one of the lowly SQL Server editions such... | [
{
"answer_id": 2645213,
"author": "Jon Webb",
"author_id": 317483,
"author_profile": "https://Stackoverflow.com/users/317483",
"pm_score": 3,
"selected": false,
"text": "Description: The product level is insufficient for component \"<component>\" (1828)."
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1982/"
] |
292,587 | <p>I'm writing a J2ME application. One of the pieces is something that polls the contents of a directory periodically, and, if there are any new things, paints them on the screen. I've done this by having the UI form launch a polling thread with a pointer back to itself, and when the polling thread finds something it... | [
{
"answer_id": 292658,
"author": "Fernando Miguélez",
"author_id": 34880,
"author_profile": "https://Stackoverflow.com/users/34880",
"pm_score": 1,
"selected": false,
"text": "public void itemRemoved(final ModelEvent me)\n{\n final TableViewer tableViewer = this.viewer;\n\n if (table... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8207/"
] |
292,615 | <p>As the question says, how do I set the value of a DropDownList control using jQuery?</p>
| [
{
"answer_id": 292620,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 10,
"selected": true,
"text": "$(\"#mydropdownlist\").val(\"thevalue\");\n"
},
{
"answer_id": 8165399,
"author": "mattsson",
"author_id": ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
292,618 | <p>I need to store of 100-200 data in mysql, the data which would be separated by pipes..</p>
<p>any idea how to store it on mysql? should I use a single column or should I make many multiple columns? I don't know exactly how many data users will input. </p>
<p>I made a form, it halted at the part where multiple data... | [
{
"answer_id": 292640,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 3,
"selected": true,
"text": "sourceID data\n-------- ----\n 1 100\n 1 200\n 1 300\n ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37922/"
] |
292,642 | <p>I have a page that spits out db data in long horizontal tables. </p>
<p>I need to print it nicely so it does not cut off. Any tips ?</p>
| [
{
"answer_id": 293347,
"author": "Morten Bergfall",
"author_id": 447694,
"author_profile": "https://Stackoverflow.com/users/447694",
"pm_score": 3,
"selected": false,
"text": "<style type=\"text/css\" media=\"print\"> em display:none"
},
{
"answer_id": 293366,
"author": "Korn... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35513/"
] |
292,646 | <p>I need to pick up list items from an list, and then perform operations like adding event handlers on them. I can think of two ways of doing this.</p>
<p>HTML:</p>
<pre><code> <ul id="list">
<li id="listItem-0"> first item </li>
<li id="listItem-1"> second item </li>
... | [
{
"answer_id": 292675,
"author": "J c",
"author_id": 25837,
"author_profile": "https://Stackoverflow.com/users/25837",
"pm_score": 3,
"selected": true,
"text": "<li key=\"myKey\">\n\n//oData is a object (eg. var oData = {};) that has been populated with properties\n//whose value is the d... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30252/"
] |
292,660 | <p>Using <strong>only MySQL</strong>, I'm seeing if it's possible run an insert statement ONLY if the table is new. I successfully created a user variable to see if the table exists. The problem is that you can't use "WHERE" along with an insert statement. Any ideas on how to get this working?</p>
<pre><code>// See if... | [
{
"answer_id": 292662,
"author": "FlySwat",
"author_id": 1965,
"author_profile": "https://Stackoverflow.com/users/1965",
"pm_score": 4,
"selected": true,
"text": "IF @TableExists > 0 THEN\n BEGIN\n INSERT INTO country (name) VALUES ('Afghanistan'),('Aland Islands');\n END\n"
... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32881/"
] |
292,667 | <p>Let's start with the following snippet:</p>
<pre><code>Foreach(Record item in RecordList){
..
item = UpdateRecord(item, 5);
..
}
</code></pre>
<p>The UpdateRecode function changes some field of item and returns the altered object. In this case the compiler throws an exception saying that the item can not be ... | [
{
"answer_id": 292678,
"author": "Cristian Libardo",
"author_id": 16526,
"author_profile": "https://Stackoverflow.com/users/16526",
"pm_score": 0,
"selected": false,
"text": "foreach(Record item in RecordList){\n ..\n yield return GetUpdatedRecord(item, 5);\n ..\n}\n"
},
{
"an... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31722/"
] |
292,676 | <p>Unlike C++, in C# you can't overload the assignment operator. </p>
<p>I'm doing a custom Number class for arithmetic operations with very large numbers and I want it to have the look-and-feel of the built-in numerical types like int, decimal, etc. I've overloaded the arithmetic operators, but the assignment remains... | [
{
"answer_id": 292685,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": false,
"text": "MyType * a = new MyType();\nMyType * b = new MyType(); \na = b; /* only exchange pointers. will not change ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,706 | <p>I have a table like the following:</p>
<pre><code>transaction_id
user_id
other_user_id
trans_type
amount
</code></pre>
<p>This table is used to maintain the account transactions for a finance type app.</p>
<p>Its double entry accounting so a transfer from User A to B would insert two rows into the table looking l... | [
{
"answer_id": 293015,
"author": "rgmarcha",
"author_id": 20642,
"author_profile": "https://Stackoverflow.com/users/20642",
"pm_score": 1,
"selected": false,
"text": "begin transaction;\nupdate db.accounts set lock=1 where account_id='Bob' and lock=0;\nif (update is NOT successful) # loc... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,710 | <p>I'm working on something that needs a webpage to go full screen. The screen must become completely white. </p>
<p>Is there anyway that I can do this without flash or silverlight?
Thanks in advance</p>
<p>edit: Im not trying to force anybody into fullscreen, this will be mainly used by a couple of people. Even so ... | [
{
"answer_id": 292727,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 1,
"selected": false,
"text": "window.open (\"http://stackoverflow.com\", \"\",\"fullscreen=yes\");\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292710",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013/"
] |
292,711 | <p>How are you managing your usage of <a href="http://dojotoolkit.org/projects/dojox" rel="nofollow noreferrer">DojoX</a> code or widgets in a production application?</p>
<p>The <a href="http://dojotoolkit.org/" rel="nofollow noreferrer">Dojo Toolkit</a> is comprised of Core, Dijit, and DojoX. As an incubator for new ... | [
{
"answer_id": 300892,
"author": "Eugene Lazutkin",
"author_id": 26394,
"author_profile": "https://Stackoverflow.com/users/26394",
"pm_score": 3,
"selected": true,
"text": "dojo.provide(\"dojox.charting.abc\");\n// the rest of the file\n...\n dojo.provide(\"my.patched_abc\");\n// now I i... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,715 | <p>I am having some problems with events being raised from the non-UI thread, in that i dont wish to have to handle the If me.invokerequired on every event handler added to the thread in Form1.</p>
<p>I am sure i have read somewhere how to use a delegate event (on SO) but i am unable to find it.</p>
<pre><code>Public... | [
{
"answer_id": 292758,
"author": "Hans Passant",
"author_id": 17034,
"author_profile": "https://Stackoverflow.com/users/17034",
"pm_score": 3,
"selected": true,
"text": " Private Delegate Sub SomethingHappenedDelegate(ByVal result As Integer)\n\n Private Sub Work()\n For i As Intege... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292715",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1500/"
] |
292,740 | <p>I am implementing a very simple file database. I have 2 basic operations: </p>
<pre><code>void Insert(const std::string & i_record)
{
//create or append to the file
m_fileStream.open(m_fileName.c_str(), std::ios::out | std::ios::app);
if (m_fileStream.is_open())
{
m_fileStream << i... | [
{
"answer_id": 292764,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": true,
"text": " while (!m_fileStream.eof())\n {\n getline (m_fileStream, line);\n results.push_back(lin... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21634/"
] |
292,756 | <p>In my master pages I have <code><form ... action="" ...></code>, in pre SP1, if I viewed the source the action attribute would be an empty string. In SP1 the action attribute is overridden "MyPage.aspx?MyParams", unfortunately, this causes my postbacks to fail as I have additional pathinfo in the URL (ie. MyP... | [
{
"answer_id": 292943,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 3,
"selected": false,
"text": "<form /> <form /> <form name=\"form1\" method=\"post\" runat=\"server\" action=\"test.aspx\"></form>\n <form name=\"form1\"... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7138/"
] |
292,767 | <p>So, I'm reasonably new to both unit testing and mocking in C# and .NET; I'm using xUnit.net and Rhino Mocks respectively. I'm a convert, and I'm focussing on writing behaviour specifications, I guess, instead of being purely TDD. Bah, semantics; I want an automated safety net to work above, essentially.</p>
<p>A ... | [
{
"answer_id": 292943,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 3,
"selected": false,
"text": "<form /> <form /> <form name=\"form1\" method=\"post\" runat=\"server\" action=\"test.aspx\"></form>\n <form name=\"form1\"... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20971/"
] |
292,774 | <p>I am trying to animate an object, let's say its a car. I want it go from point</p>
<p><em>x1,y1,z1</em></p>
<p>to point <em>x2,y2,z2</em> . It moves to those points, but it appears to be <em>drifting</em> rather than pointing in the direction of motion. So my question is: how can I solve this issue in my updatefra... | [
{
"answer_id": 302766,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 0,
"selected": false,
"text": "x = r.sin(2πt/n)\n vx = dx/dt = r.(2π/n)cos(2πt/n) \n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1748529/"
] |
292,779 | <p>When I create a graph after using range.copy and range.paste it leaves the paste range selected, and then when I create a graph a few lines later, it uses the selection as the first series in the plot. I can delete the series, but is there a more elegant way to do this? I tried </p>
<pre><code>Set selection = not... | [
{
"answer_id": 292836,
"author": "Fionnuala",
"author_id": 2548,
"author_profile": "https://Stackoverflow.com/users/2548",
"pm_score": 2,
"selected": false,
"text": "Sub UnSelectActiveCell()\n Dim R As Range\n Dim RR As Range\n For Each R In Selection.Cells\n If StrComp(R... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292779",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30441/"
] |
292,787 | <p>I can get simple examples to work fine as long as there's no master page involved. All I want to do is click a button and have it say "hello world" with the javascript in a .js file, using a master page. Any help very much appreciated :)</p>
| [
{
"answer_id": 292833,
"author": "gius",
"author_id": 19712,
"author_profile": "https://Stackoverflow.com/users/19712",
"pm_score": 4,
"selected": false,
"text": "<script type=\"text/javascript\" src=\"jquery.js\" />"
},
{
"answer_id": 292839,
"author": "tvanfosson",
"aut... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37939/"
] |
292,806 | <p>I'm not sure how to search for this answer, so I'll go ahead and ask it.</p>
<p>In my rails project I have a User model and a foo model. A user can have one or more foo models assigned to it. I have accomplished this by adding </p>
<pre><code>has_many :foo, :through => :user_foo
</code></pre>
<p>in my user mod... | [
{
"answer_id": 292819,
"author": "John Topley",
"author_id": 1450,
"author_profile": "https://Stackoverflow.com/users/1450",
"pm_score": 3,
"selected": true,
"text": "belongs_to :user def index\n @foos = Foo.all\nend\n"
},
{
"answer_id": 294479,
"author": "wzzrd",
"autho... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292806",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23458/"
] |
292,820 | <p>In a code review, I stumbled over this (simplified) code fragment to unregister an event handler:</p>
<pre><code> Fire -= new MyDelegate(OnFire);
</code></pre>
<p>I thought that this does not unregister the event handler because it creates a new delegate which had never been registered before. But searching MSDN I... | [
{
"answer_id": 292840,
"author": "Bradley Grainger",
"author_id": 23633,
"author_profile": "https://Stackoverflow.com/users/23633",
"pm_score": 7,
"selected": true,
"text": "Delegate.Combine Delegate.Remove Fire = (MyDelegate) Delegate.Remove(Fire, new MyDelegate(Program.OnFire));\n Dele... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23772/"
] |
292,826 | <p>I have a canvas in Flex that shall be able only to be scrolled in vertical direction, so I set the attributes of the canvas as follows:</p>
<pre><code>verticalScrollPolicy="auto" horizontalScrollPolicy="off"
</code></pre>
<p>The problem here is that the vertical scrollbar covers the content when it appears - altou... | [
{
"answer_id": 294093,
"author": "hasseg",
"author_id": 4111,
"author_profile": "https://Stackoverflow.com/users/4111",
"pm_score": 2,
"selected": false,
"text": "ScrollPolicy.ON height"
},
{
"answer_id": 2455633,
"author": "LE GALL Benoît",
"author_id": 244911,
"auth... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7524/"
] |
292,841 | <p>I would like to know how to get the name of the property that a method parameter value came from. The code snippet below shows what I want to do:</p>
<pre><code>Person peep = new Person();
Dictionary<object, string> mapping = new Dictionary<object, string>();
mapping[peep.FirstName] = "Name";
Dictionary... | [
{
"answer_id": 292875,
"author": "ckramer",
"author_id": 20504,
"author_profile": "https://Stackoverflow.com/users/20504",
"pm_score": 1,
"selected": true,
"text": "mapping[peep.FirstName] = \"Name\";\n mapping[\"FirstName\"] = \"Name\";\n var mapping = new Dictionary<Expression<Action<T... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/215086/"
] |
292,844 | <p>I try to keep it brief and concise. I have to write a program that takes queries in SQL form and searches an XML. Right now I am trying to disassemble a string into logical pieces so I can work with them. I have a string as input and want to get a MatchCollection as output.</p>
<p>Please not that the test string be... | [
{
"answer_id": 293103,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 2,
"selected": false,
"text": "@\"(?<select>\\Aselect .+)[\\n\\r]\" +\n@\"(?<from>\\s*from .+)[\\n\\r]\" +\n@\"(?<where>\\s*where .+)[\\n\\r]\" +\n@... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,851 | <p>I am trying to insert a new row into my table which holds the same data as the one I am trying to select from the same table but with a different <code>user_id</code> and without a fixed value for <code>auto_id</code> since that is an auto_increment field, and setting <code>ti</code> to NOW(). Below is my mockup que... | [
{
"answer_id": 293103,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 2,
"selected": false,
"text": "@\"(?<select>\\Aselect .+)[\\n\\r]\" +\n@\"(?<from>\\s*from .+)[\\n\\r]\" +\n@\"(?<where>\\s*where .+)[\\n\\r]\" +\n@... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,861 | <p>I have a form that has default values describing what should go into the field (replacing a label). When the user focuses a field this function is called:</p>
<pre><code>function clear_input(element)
{
element.value = "";
element.onfocus = null;
}
</code></pre>
<p>The onfocus is set to null so that if the ... | [
{
"answer_id": 292869,
"author": "keparo",
"author_id": 19468,
"author_profile": "https://Stackoverflow.com/users/19468",
"pm_score": 3,
"selected": false,
"text": "element.onfocus = clear_input;\n element.onfocus = function () { \n clear_input( param, param2 ); \n};\n function clear_... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
292,883 | <p>I have an app that writes messages to the event log. The source I'm passing in to EventLog.WriteEntry does not exist, so the Framework tries to create the source by adding it to the registry. It works fine if the user is an Admin by I get the following whe the user is not an admin:</p>
<p>"System.Security.SecurityE... | [
{
"answer_id": 295582,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 2,
"selected": true,
"text": "Run regedt32\nNavigate to the following key:\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Eventlog\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21386/"
] |
292,887 | <p>What is the best way to store DateTime in SQL for different timezones and different locales<br>
There a few questions/answers about timezones, but none is addressing the locale problems.
DateTime.ToUniversalTime is locale specific, and I need it locale independent.</p>
<p>For example:</p>
<pre><code> DateTime.Now... | [
{
"answer_id": 295582,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 2,
"selected": true,
"text": "Run regedt32\nNavigate to the following key:\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Eventlog\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37955/"
] |
292,893 | <p>This code is causing a memory leak for me, and I'm not sure why.</p>
<p>[EDIT] Included code from <a href="http://paste.pocoo.org/show/91254/" rel="nofollow noreferrer">here</a> into question:</p>
<pre><code>#include "src/base.cpp"
typedef std::map<std::string, AlObj*, std::less<std::string>,
gc_alloc... | [
{
"answer_id": 292931,
"author": "Martin York",
"author_id": 14065,
"author_profile": "https://Stackoverflow.com/users/14065",
"pm_score": 2,
"selected": false,
"text": "std::pair<const std::string, AlObj*>\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37181/"
] |
292,914 | <p>Does anyone know because all the places I've tried seem to timeout!</p>
| [
{
"answer_id": 12755564,
"author": "Deepak Lamichhane",
"author_id": 551087,
"author_profile": "https://Stackoverflow.com/users/551087",
"pm_score": 2,
"selected": false,
"text": "http://findjar.com/jar/javax/servlet/jstl/1.2/jstl-1.2.jar.html\n"
},
{
"answer_id": 20868920,
"... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16684/"
] |
292,935 | <p>which one of the two is more spread? I want to read out the version number from <a href="http://freshmeat.net/projects-xml/mysql/mysql.xml?branch_id=46519" rel="nofollow noreferrer">http://freshmeat.net/projects-xml/mysql/mysql.xml?branch_id=46519</a> but I want to use the one which more people have.</p>
<p>If you ... | [
{
"answer_id": 292975,
"author": "troelskn",
"author_id": 18180,
"author_profile": "https://Stackoverflow.com/users/18180",
"pm_score": 4,
"selected": true,
"text": "DomDocument DomXPath DomDocument DomXPath"
},
{
"answer_id": 293128,
"author": "Ciaran McNulty",
"author_i... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19929/"
] |
292,941 | <p>I've rewritten my family web site using JavaScript (JQuery) making Ajax calls to PHP on the back end. It's your standard "bunch of image thumbnails and one main image, and when you click on a thumbnail image the main image changes" kind of thing. Everything is working as expected when using Firefox, but on... | [
{
"answer_id": 292969,
"author": "Glenn",
"author_id": 25191,
"author_profile": "https://Stackoverflow.com/users/25191",
"pm_score": 0,
"selected": false,
"text": "var inProcess = 0;\n\nfunction eventHandler() {\n\n if (inProcess == 0) {\n\n inProcess = 1;\n\n // do stuff\n\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1821/"
] |
292,966 | <p>I found this web site (photoblog)
<a href="http://www.OneReaction.net/" rel="nofollow noreferrer">http://www.OneReaction.net/</a></p>
<p>and I am very curious how this is done:
1) From source code you don't see the image URL
2) How to overlay the copyright information on the image without changing the underlying p... | [
{
"answer_id": 293120,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 3,
"selected": true,
"text": "HttpHandler web.config /photos/*.jpg"
},
{
"answer_id": 304563,
"author": "Todd Smith",
"author_id": 31624,
... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20067/"
] |
292,967 | <p>Is there any way to restrict users with administrative privileges from managing specific Windows service based applications? I would like to restrict administrators from stopping or re-starting my service very similar to the Windows event log service. What are some of the more popular approaches or recommended appro... | [
{
"answer_id": 293144,
"author": "Igal Serban",
"author_id": 25737,
"author_profile": "https://Stackoverflow.com/users/25737",
"pm_score": 1,
"selected": false,
"text": "ServicesToRun = new ServiceBase[] { new Service1() };\nServicesToRun[0].CanStop = false;\n"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/292967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37450/"
] |
292,991 | <p>I need to allow the vertical scrollbar in a multiselect listbox (VB6) however, when the control is disabled, I can't scroll.</p>
<p>I would think there is an API to allow this, but my favorite <a href="http://vbnet.mvps.org" rel="nofollow noreferrer">VB6 site (MVPS VB.NET)</a> does not have a way.</p>
<p>I toyed w... | [
{
"answer_id": 293069,
"author": "Chetan S",
"author_id": 31284,
"author_profile": "https://Stackoverflow.com/users/31284",
"pm_score": 1,
"selected": false,
"text": "SelectionMode SelectionIndexChanged SelectionIndex"
},
{
"answer_id": 294608,
"author": "Mike Spross",
"a... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
292,993 | <p>What's the secret to getting ClaimsResponse working with <a href="http://code.google.com/p/dotnetopenid/" rel="noreferrer">DotNetOpenId</a>?</p>
<p>For example, in this bit of code (from <a href="http://www.hanselman.com/blog/CategoryView.aspx?category=DasBlog" rel="noreferrer">Scott Hanselman's blog</a>) the Claim... | [
{
"answer_id": 293185,
"author": "OJ.",
"author_id": 611,
"author_profile": "https://Stackoverflow.com/users/611",
"pm_score": 2,
"selected": false,
"text": "var request = openid.CreateRequest(openid_identifier);\nvar fields = new ClaimsRequest();\nfields.Email = DemandLevel.Require;\nfi... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19020/"
] |
292,997 | <p>can you set SO_RCVTIMEO and SO_SNDTIMEO socket options in boost asio?</p>
<p>If so how?</p>
<p>Note I know you can use timers instead, but I'd like to know about these socket options in particular. </p>
| [
{
"answer_id": 293012,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 2,
"selected": false,
"text": "boost::asio::detail::socket_option boost/asio/socket_base.hpp typedef boost::asio::detail::socket_option::timeval<SOL_SOCKET... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
292,998 | <p>Do I need a UUID to program for the iPhone? I was told I need this, how can I get a UUID</p>
| [
{
"answer_id": 293012,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 2,
"selected": false,
"text": "boost::asio::detail::socket_option boost/asio/socket_base.hpp typedef boost::asio::detail::socket_option::timeval<SOL_SOCKET... | 2008/11/15 | [
"https://Stackoverflow.com/questions/292998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,000 | <p>I need an algorithm to determine if a sentence, paragraph or article is negative or positive in tone... or better yet, how negative or positive.</p>
<p>For instance:</p>
<blockquote>
<blockquote>
<p>Jason is the worst SO user I have ever witnessed (-10)</p>
<p>Jason is an SO user (0)</p>
<p... | [
{
"answer_id": 7154888,
"author": "user906811",
"author_id": 906811,
"author_profile": "https://Stackoverflow.com/users/906811",
"pm_score": -1,
"selected": false,
"text": " use Algorithm::NaiveBayes;\n my $nb = Algorithm::NaiveBayes->new;\n\n $nb->add_instance\n (attribu... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16794/"
] |
293,006 | <p>We've trying to separate a big code base into logical modules. I would like some recommendations for tools as well as whatever experiences you might have had with this sort of thing. </p>
<p>The application consists of a server WAR and several rich-clients distributed in JARs. The trouble is that it's all in one bi... | [
{
"answer_id": 293032,
"author": "mmr",
"author_id": 21981,
"author_profile": "https://Stackoverflow.com/users/21981",
"pm_score": 1,
"selected": false,
"text": "COleDateTime const char*"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/293006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
293,007 | <p>I want do something like this:</p>
<pre><code>Button btn1 = new Button();
btn1.Click += new EventHandler(btn1_Click);
Button btn2 = new Button();
// Take whatever event got assigned to btn1 and assign it to btn2.
btn2.Click += btn1.Click; // The compiler says no...
</code></pre>
<p>Where btn1_Click is already defi... | [
{
"answer_id": 293010,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "OnClick btn1 btn2 btn1.RaiseClickEvent() using System;\nusing System.Drawing;\nusing System.Reflection;\nusing System.Wi... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14606/"
] |
293,021 | <p>I have a working TYPO3 extension. It is attached <a href="http://wiki.orbeon.com/forms/doc/developer-guide/form-runner-typo3-extension" rel="nofollow noreferrer">this wiki page</a>. How can I change the code of this extension so it is of the USER_INT type? I.e. I don't want TYPO3 to cache the output of this plugin, ... | [
{
"answer_id": 560914,
"author": "arturh",
"author_id": 4186,
"author_profile": "https://Stackoverflow.com/users/4186",
"pm_score": 3,
"selected": false,
"text": "var $pi_checkCHash = true;\n $this->pi_USER_INT_obj=1; // Configuring so caching is not expected. This value means that no... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293021",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5295/"
] |
293,029 | <p>I'm creating a rather "dirty" business connector of my own here, and I'm having trouble finding those "custom fields" that have been created. </p>
<p>They show up in AX - but in the SQL-database, they are not mentioned at all... I have a hunch that all custom fields are stored somewhere else in the database, so tha... | [
{
"answer_id": 560914,
"author": "arturh",
"author_id": 4186,
"author_profile": "https://Stackoverflow.com/users/4186",
"pm_score": 3,
"selected": false,
"text": "var $pi_checkCHash = true;\n $this->pi_USER_INT_obj=1; // Configuring so caching is not expected. This value means that no... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37280/"
] |
293,040 | <p>Is there any persistence solution for Common Lisp, such as Elephant, that allows function persistence? Currently my app stores an identifier on the db and later searches in a function table which it is, but this method does not allow dynamically created functions to be stored.</p>
| [
{
"answer_id": 293118,
"author": "Rich",
"author_id": 22003,
"author_profile": "https://Stackoverflow.com/users/22003",
"pm_score": 3,
"selected": true,
"text": "cl-user(1): (compile (defun hello () (format t \"~&Hello~%\")))\nhello\nnil\nnil\ncl-user(2): (excl:fasl-write (symbol-functio... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34479/"
] |
293,070 | <p>I'm trying to build a Java regular expression to match "<code>.jar!</code>"</p>
<p>The catch is that I don't want the matcher to consume the exclamation mark. I tried using <code>Pattern.compile("\\.jar(?=!)")</code> but that failed. As did escaping the exclamation mark.</p>
<p>Can anyone get this to work or is th... | [
{
"answer_id": 293077,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 0,
"selected": false,
"text": "Pattern.compile(\"\\\\.jar(?=[!])\")\n use strict;\nuse warnings;\n\n\nmy @data = qw( .jar .jar! .jarx .jarx! );\n\n\... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731/"
] |
293,081 | <p>So standard Agile philosophy would recommend making your domain classes simple POCOs which are Persisted using a separate proxy layer via data access objects (like NHibernate does it). It also recommends getting as high unit test coverage as possible. </p>
<p>Does it make any sense to write tests for these simple ... | [
{
"answer_id": 293093,
"author": "Bryan Watts",
"author_id": 37815,
"author_profile": "https://Stackoverflow.com/users/37815",
"pm_score": 1,
"selected": false,
"text": "Contents"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/293081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
293,090 | <p>I think I'm pretty good at using semantic markup on my pages but I still have a handful of classes like this:</p>
<pre><code>/**** Aligns ****/
.right_align { text-align: right; }
.left_align { text-align: left; }
.center_align { text-align: center; }
</code></pre>
<p>Which, technically, is a no-no. But when yo... | [
{
"answer_id": 293099,
"author": "Jeromy Irvine",
"author_id": 8223,
"author_profile": "https://Stackoverflow.com/users/8223",
"pm_score": 1,
"selected": false,
"text": "right_align style"
},
{
"answer_id": 293102,
"author": "alex",
"author_id": 26787,
"author_profile... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
293,100 | <p>I have a do-while loop that's supposed to do three things, go through a text file line by line, the text file contains pathnames and filenames (C:\Folder\file1.txt).</p>
<p>If the line contains a certain string, it then copies a file to that location, renames it to what it is named in the text file, and then replace... | [
{
"answer_id": 293124,
"author": "pipTheGeek",
"author_id": 28552,
"author_profile": "https://Stackoverflow.com/users/28552",
"pm_score": 1,
"selected": false,
"text": "#3 = Replace$(#3, \"abc\", \"xyz\")\n Private Sub Command2_Click()\n Dim LineData As String\n Dim FileHandle As Integer... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293100",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,114 | <p>I am trying to run a java based tool using a command line syntax as the following: java -cp archive.jar archiveFolder.theMainClassName.Although the class I am searching for, a main class, "theMainClassName" is in the archive.jar and in the archiveFolder given at input, I keep getting the error that my class is not s... | [
{
"answer_id": 293116,
"author": "PhiLho",
"author_id": 15459,
"author_profile": "https://Stackoverflow.com/users/15459",
"pm_score": 1,
"selected": false,
"text": "java -jar archive.jar"
},
{
"answer_id": 293122,
"author": "Jason Coco",
"author_id": 34218,
"author_pr... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23486/"
] |
293,117 | <p>By convention our DB only alows the use of stored procedures for INSERT, UPDATE and DELETE. For some tables / types there is no DELETE stored procedure, because it is not allowed to delete rows. (You can only update the status of such a type to "deleted"). e.g. a customer may be marked as deleted but is never really... | [
{
"answer_id": 293174,
"author": "Bryan Watts",
"author_id": 37815,
"author_profile": "https://Stackoverflow.com/users/37815",
"pm_score": 0,
"selected": false,
"text": "DeleteOnSubmit Table<TEntity> OnValidate InvalidOperationException DataContext DataContext"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/293117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36546/"
] |
293,134 | <p>Let's say I have a line of text like this</p>
<pre><code>Small 0.0..20.0 0.00 1.49 25.71 41.05 12.31 0.00 80.56
</code></pre>
<p>I want to capture the last six numbers and ignore the <em>Small</em> and the first two groups of numbers.</p>
<p>For this exercise, let's ignore the fact that it migh... | [
{
"answer_id": 293150,
"author": "Tim Pietzcker",
"author_id": 20670,
"author_profile": "https://Stackoverflow.com/users/20670",
"pm_score": 3,
"selected": false,
"text": "^Small\\s+[0-9.]+\\s+[0-9.]+\\s+([0-9.]+)\\s+([0-9.]+)\\s+([0-9.]+)\\s+([0-9.]+)\\s+([0-9.]+)\\s+([0-9.]+)\n >>> pie... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/305/"
] |
293,158 | <p>I'm attempting to create a Wizard type control in VB6 and have run into a stumbling block.</p>
<p>I'd like to allow users of the control to be able to add and manage CWizardPage(s) to the design time control using a property page.</p>
<p>The first approach I used was to add the Wizard pages to the OCX directly usi... | [
{
"answer_id": 294665,
"author": "Mike Spross",
"author_id": 17862,
"author_profile": "https://Stackoverflow.com/users/17862",
"pm_score": 1,
"selected": false,
"text": "Add Controls myTextBox frmMyForm.Controls.Add \"VB.TextBox\", \"myTextBox\""
},
{
"answer_id": 294778,
"au... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1293123/"
] |
293,160 | <p>I'm writing an application that includes a plugin system in a different assembly.</p>
<p>The problem is that the plugin system needs to get application settings from the main app (like the directory to look for plugins).</p>
<p>How is this done, or am I going about this the wrong way?</p>
<p>Edit: I was encourage... | [
{
"answer_id": 293197,
"author": "Frode Lillerud",
"author_id": 33431,
"author_profile": "https://Stackoverflow.com/users/33431",
"pm_score": 2,
"selected": false,
"text": "//Get the configuration for the current appDomain\nSystem.Configuration.Configuration config = ConfigurationManager... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13395/"
] |
293,168 | <p>Suppose I have an interval (a,b), and a number of subintervals {(a<sub>i</sub>,b<sub>i</sub>)}<sub>i</sub> whose union is all of (a,b). Is there an efficient way to choose a minimal-cardinality subset of these subintervals which still covers (a,b)?</p>
| [
{
"answer_id": 293184,
"author": "Artelius",
"author_id": 31945,
"author_profile": "https://Stackoverflow.com/users/31945",
"pm_score": 1,
"selected": false,
"text": "//works backwards from the end\nint minCard(int current, int must_end_after)\n{\n if (current < 0)\n if (must_e... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1941213/"
] |
293,208 | <p>I am making some plots in Perl using <a href="http://search.cpan.org/dist/GD-Graph" rel="nofollow noreferrer">GD::Graph</a> and some of the data is outside the area I would like to display, but instead of being truncated off the chart outside the graphing area, it is being drawn over the title, legend, and axis labe... | [
{
"answer_id": 294605,
"author": "RET",
"author_id": 14750,
"author_profile": "https://Stackoverflow.com/users/14750",
"pm_score": 0,
"selected": false,
"text": "y_max_value y_max_value use Tie::RangeHash ;\nmy $y_ranges = new Tie::RangeHash Type => Tie::RangeHash::TYPE_NUMBER;\n$y_range... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13912/"
] |
293,213 | <p>What are the best and worst emacs key bindings in development software? Ever since I learned it, I find myself trying to use C-p and C-n to move up and down in everything that has a text box on it.</p>
<p>I'm perpetually annoyed by software that has an emacs mode that's pretty obviously either put together by some... | [
{
"answer_id": 293688,
"author": "bendin",
"author_id": 33412,
"author_profile": "https://Stackoverflow.com/users/33412",
"pm_score": 4,
"selected": true,
"text": "G^%$&^% F^%$ C-k (kill-line) is bound to (insert-this-crap `print(\"code sample\");`)\nC-b (backward-char) is bound to (... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
293,215 | <p>In the early days of .NET, I <i>believe</i> there was an attribute you could decorate a class with to specify a default property.</p>
<p>According to some articles I've found, this appears to have been yanked from the framework at some point, because it was a little confusing, and I can see how that is the case. </... | [
{
"answer_id": 293225,
"author": "hangy",
"author_id": 11963,
"author_profile": "https://Stackoverflow.com/users/11963",
"pm_score": 1,
"selected": false,
"text": "DefaultProperty"
},
{
"answer_id": 293248,
"author": "tvanfosson",
"author_id": 12950,
"author_profile":... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16082/"
] |
293,216 | <p>I ran into a scenario where LINQ to SQL acts very strangely. I would like to know if I'm doing something wrong. But I think there is a real possibility that it's a bug.</p>
<p>The code pasted below isn't my real code. It is a simplified version I created for this post, using the Northwind database.</p>
<p>A little... | [
{
"answer_id": 293227,
"author": "Brian",
"author_id": 19299,
"author_profile": "https://Stackoverflow.com/users/19299",
"pm_score": 4,
"selected": true,
"text": "oFilter foreach foreach(var oFilter in filterList)\n{\n var filter = oFilter; // add this\n switch (oFilter.column) // ... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30725/"
] |
293,236 | <p>I'm slowly moving from PHP5 to Python on some personal projects, and I'm currently loving the experience. Before choosing to go down the Python route I looked at Ruby. What I did notice from the ruby community was that monkey-patching was both common and highly-regarded. I also came across a <strong>lot</strong> of ... | [
{
"answer_id": 293253,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 2,
"selected": false,
"text": "setTimeout(function(){ \n foo(args); \n}, 5000 ); \n foo.delay( 5000 , args );\n foo.delay.delay( 500, [ 500, arg... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293236",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30478/"
] |
293,239 | <p>I'm trying to complete the last part of my Haskell homework and I'm stuck, my code so far:</p>
<pre><code>data Entry = Entry (String, String)
class Lexico a where
(<!), (=!), (>!) :: a -> a -> Bool
instance Lexico Entry where
Entry (a,_) <! Entry (b,_) = a < b
Entry (a,_) =! Entry (... | [
{
"answer_id": 293286,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 2,
"selected": false,
"text": "Array listArray"
},
{
"answer_id": 293555,
"author": "ja.",
"author_id": 15467,
"author_profile": "http... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5387/"
] |
293,247 | <p>I've read a lot about the pros and cons of sizing with either relative or absolute font sizes. Fixed sizes don't zoom in IE6 but that's not much of an issue these days. Accessibility is important, but I assume that all good accessibility software is built to deal with these issues?</p>
<p>I guess it mainly comes do... | [
{
"answer_id": 293308,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 1,
"selected": false,
"text": "pt em %"
}
] | 2008/11/15 | [
"https://Stackoverflow.com/questions/293247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37947/"
] |
293,254 | <p>I'm using C# and .NET 3.5. I need to generate and store some T-SQL insert statements which will be executed later on a remote server.</p>
<p>For example, I have an array of Employees:</p>
<pre><code>new Employee[]
{
new Employee { ID = 5, Name = "Frank Grimes" },
new Employee { ID = 6, Name = "Tim O'Reilly" ... | [
{
"answer_id": 293272,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 4,
"selected": false,
"text": "SqlCommand cmd = new SqlCommand(\n \"INSERT INTO Employees (id, name) VALUES (@id, @name)\", conn);\n\nSqlParam... | 2008/11/15 | [
"https://Stackoverflow.com/questions/293254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5142/"
] |
293,275 | <p>I am trying to <strong>synchronize</strong> the horizontal <strong>scroll position</strong> of 2 <strong>WPF DataGrid</strong> controls.</p>
<p>I am subscribing to the <strong>ScrollChanged</strong> event of the first DataGrid:</p>
<pre><code><toolkit:DataGrid x:Name="SourceGrid" ScrollViewer.ScrollChanged="Sou... | [
{
"answer_id": 293766,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 1,
"selected": false,
"text": "ScrollViewer"
},
{
"answer_id": 17308608,
"author": "JJ_Coder4Hire",
"author_id": 1944063,
"author... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33272/"
] |
293,276 | <p>I have a custom security principal object which I set in the global.asax for the current thread and all is well, no problems normally.</p>
<p>However, I'm just adding a dynamic image feature by having a page serve up the image and whenever that dynamic image page is loaded the System.Web.HttpContext.Current.Session... | [
{
"answer_id": 293354,
"author": "JoshBerke",
"author_id": 26160,
"author_profile": "https://Stackoverflow.com/users/26160",
"pm_score": 6,
"selected": true,
"text": "public class Images : IHttpHandler, System.Web.SessionState.IRequiresSessionState\n{ }\n"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/293276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8939/"
] |
293,285 | <p>Basically I'm about to start work on a site and I'd like something that I can add into my .htaccess file (or elsewhere) that'll work like this pseudo code: (my ip will be in place of 127.0.0.1)</p>
<pre><code>if (visitors_ip <> 127.0.0.1)
redirectmatch ^(.*)$ http://www.example.com/under-construction.html... | [
{
"answer_id": 293298,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 6,
"selected": true,
"text": "RewriteEngine On\nRewriteBase /\nRewriteCond %{REMOTE_ADDR} !^127\\.0\\.0\\.1\n\nRewriteCond %{REQUEST_URI} !/mypage\\.html$ \n... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/428190/"
] |
293,300 | <p>I'm having an error where I am not sure what caused it.</p>
<p>Here is the error:</p>
<pre><code>Exception Type: OperationalError
Exception Value:
(1054, "Unknown column 'user_id' in 'field list'")
</code></pre>
<p>Does anyone know why I am getting this error? I can't figure it out. Everything seems to be... | [
{
"answer_id": 293335,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 3,
"selected": false,
"text": "user_id Idea User id id pk id pk"
}
] | 2008/11/16 | [
"https://Stackoverflow.com/questions/293300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23695/"
] |
293,302 | <p>I have a Rails app with some basic models. The website displays data retrieved from other sources. So I need to write a Ruby script that creates new instances in my database. I know I can do that with the test hooks, but I'm not sure that makes sense here.</p>
<p>I'm not sure what this task should look like, how I ... | [
{
"answer_id": 293346,
"author": "Hates_",
"author_id": 3410,
"author_profile": "https://Stackoverflow.com/users/3410",
"pm_score": 1,
"selected": false,
"text": "ActiveRecord::Base.establish_connection(\n :adapter => \"mysql\",\n :username => \"root\",\n :host => \"localho... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
293,311 | <p>What's the best method to pass parameters to SQLCommand? You can do:</p>
<pre><code>cmd.Parameters.Add("@Name", SqlDbType.VarChar, 20).Value = "Bob";
</code></pre>
<p>or</p>
<pre><code>cmd.Parameters.Add("@Name", SqlDbType.VarChar).Value = "Bob";
</code></pre>
<p>or</p>
<pre><code>cmd.Parameters.Add("@Name").Va... | [
{
"answer_id": 293315,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 7,
"selected": true,
"text": "AddWithValue() cmd.Parameters.AddWithValue(\"@Name\", \"Bob\");\n"
},
{
"answer_id": 294978,
"author": "Pet... | 2008/11/16 | [
"https://Stackoverflow.com/questions/293311",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36400/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.