qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
308,456 | <p>I have a table containing the runtimes for generators on different sites, and I want to select the most recent entry for each site. Each generator is run once or twice a week.</p>
<p>I have a query that will do this, but I wonder if it's the best option. I can't help thinking that using WHERE x IN (SELECT ...) is... | [
{
"answer_id": 308471,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 0,
"selected": false,
"text": "$maxids = 'SELECT MAX(start) AS start FROM generator_logs GROUP BY site_id';\n$q =\" \n SELECT id, site_id, st... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33161/"
] |
308,460 | <p>I have been going back and forth between C# and Java for the last 8 years. </p>
<p>One thing that strikes me is that I have completely stopped using the "Template Method" design pattern in C#. Actually, in C# I Have come to think of this pattern as an anti-pattern. </p>
<p><a href="http://en.wikipedia.org/wiki/Tem... | [
{
"answer_id": 3292618,
"author": "dsimcha",
"author_id": 23903,
"author_profile": "https://Stackoverflow.com/users/23903",
"pm_score": 2,
"selected": false,
"text": "doIt() beforeDoIt() afterDoIt()"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
308,466 | <p>I have to delete some rows from a data table. I've heard that it is not ok to change a collection while iterating through it. So instead of a for loop in which I check if a row meets the demands for deletion and then mark it as deleted, I should first iterate through the data table and add all of the rows in a list,... | [
{
"answer_id": 308486,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 5,
"selected": true,
"text": "for var l = new List<int>();\n\n l.Add(0);\n l.Add(1);\n l.Add(2);\n l.Add(3);\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308466",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1360/"
] |
308,476 | <p>What is the fastest way to find out whether two <code>ICollection<T></code> collections contain precisely the same entries? Brute force is clear, I was wondering if there is a more elegant method.</p>
<p>We are using C# 2.0, so no extension methods if possible, please!</p>
<p>Edit: the answer would be intere... | [
{
"answer_id": 308524,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "[Tested]\n\npublic virtual bool ContainsAll<U>(SCG.IEnumerable<U> items) where U : T\n{\n HashBag<T> res = new HashBag<T>(item... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6091/"
] |
308,477 | <p>How much do using smart pointers, particularly boost::shared_ptr cost more compared to bare pointers in terms of time and memory? Is using bare pointers better for performance intensive parts of gaming/embedded systems? Would you recommend using bare pointers or smart pointers for performance intensive components? <... | [
{
"answer_id": 308507,
"author": "Nicola Bonelli",
"author_id": 19630,
"author_profile": "https://Stackoverflow.com/users/19630",
"pm_score": 3,
"selected": false,
"text": "shared_ptr<> #include <iostream>\n#include <tr1/memory>\n\nint main()\n{\n#ifdef USE_SHARED_PTR\n std::tr1::shar... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308477",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19501/"
] |
308,479 | <p>Can anybody help me out to know the possible reasons for which Apple store can reject or raise objection to submit any iPhone application.</p>
| [
{
"answer_id": 2624340,
"author": "sixtyfootersdude",
"author_id": 251589,
"author_profile": "https://Stackoverflow.com/users/251589",
"pm_score": 3,
"selected": false,
"text": "If (yes) reject if(yes) reject"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39599/"
] |
308,481 | <p>I often use this recursive 'visitor' in F#</p>
<pre><code>let rec visitor dir filter=
seq { yield! Directory.GetFiles(dir, filter)
for subdir in Directory.GetDirectories(dir) do yield! visitor subdir filter}
</code></pre>
<p>Recently I've started working on implementing some F# functionality in C#,... | [
{
"answer_id": 308610,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 5,
"selected": true,
"text": "yield! foreach yield"
},
{
"answer_id": 309337,
"author": "Tomas Petricek",
"author_id": 33518,
"autho... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
308,491 | <p>Is it possible to get Mercurial to show progress of long-running push or pull operation? Google tells me basically "no", but does somebody know better? I was expecting something like <code>hg pull -v</code>...</p>
| [
{
"answer_id": 308515,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 6,
"selected": true,
"text": "hg pull -v \n hg --debug -v pull \n"
},
{
"answer_id": 901638,
"author": "Martin Geisler",
"author_id... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6846/"
] |
308,492 | <p>In Postgresql you can create additional Aggregate Functions with </p>
<pre><code>CREATE AGGREGATE name(...);
</code></pre>
<p>But this gives an error if the aggregate already exists inside the database, so how can I check if a Aggregate already exists in the Postgres Database? </p>
| [
{
"answer_id": 308500,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 4,
"selected": true,
"text": "SELECT * FROM pg_proc WHERE proname = 'name' AND proisagg; \n"
},
{
"answer_id": 56543864,
"author": "gave... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39644/"
] |
308,499 | <p>I want to float a div to the right at the top of my page. It contains a 50px square image, but currently it impacts on the layout of the top 50px on the page.</p>
<p>Currently its:</p>
<pre><code><div style="float: right;">
...
</div>
</code></pre>
<p>I tried z-index as I thought that would be the a... | [
{
"answer_id": 308519,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 2,
"selected": false,
"text": "position"
},
{
"answer_id": 308520,
"author": "Richard Garside",
"author_id": 31569,
"author_profile": "ht... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39643/"
] |
308,501 | <p>I want to check that two passwords are the same using Dojo.</p>
<p>Here is the HTML I have:</p>
<p><code></p>
<blockquote>
<p><code><form id="form" action="." dojoType="dijit.form.Form" /</code>></p>
<p><code><p</code>>Password: <code><input type="password"<br>
name="password1"<br>
id=... | [
{
"answer_id": 308666,
"author": "Richard Garside",
"author_id": 31569,
"author_profile": "https://Stackoverflow.com/users/31569",
"pm_score": 1,
"selected": false,
"text": "\n <p>Confirm: <input type=\"password\"\n name=\"password2\"\n id=\"password2\"\n dojoType=\"dijit.form.Valida... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31569/"
] |
308,511 | <p>I have a .Net 1.1 web application sitting in a folder called C:\inetpub\wwwroot\MyTestApp, where 'MyTestApp' is a virtual directory and is configured to be on ASP.Net version 1.1.4322 in IIS 5.1.</p>
<p>In the root directory (C:\inetpub\wwwroot) there is a web.config file for a .Net2.0 application, because the root... | [
{
"answer_id": 308542,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 1,
"selected": false,
"text": "Web.config Machine.config"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7585/"
] |
308,514 | <p>In firefox when you add an onclick event handler to a method an event object is automatically passed to that method. This allows, among other things, the ability to detect which specific element was clicked. For example</p>
<pre><code>document.body.onclick = handleClick;
function handleClick(e)
{
// this works... | [
{
"answer_id": 308523,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "event"
},
{
"answer_id": 308526,
"author": "Simon",
"author_id": 33036,
"author_profile": "https://Stackov... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28882/"
] |
308,547 | <p>I am using a custom validator to compare value in two text box. This is comparing the values fine. But it says "025" and "25" are different.. can this do a float comparision.</p>
<p>the custom validator i am using is </p>
<pre><code><asp:CompareValidator id="compval" runat="server" ControlToValidate="txtBox1"
... | [
{
"answer_id": 311875,
"author": "Stefan",
"author_id": 30604,
"author_profile": "https://Stackoverflow.com/users/30604",
"pm_score": 1,
"selected": false,
"text": "<asp:CompareValidator ID=\"cv1\" runat=\"server\" ControlToCompare=\"txt1\" ControlToValidate=\"txt2\" Operator=\"Equal\" T... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20951/"
] |
308,555 | <p>I have this Java code (JPA):</p>
<pre><code>String queryString = "SELECT b , sum(v.votedPoints) as votedPoint " +
" FROM Bookmarks b " +
" LEFT OUTER JOIN Votes v " +
" on (v.organizationId = b.organizationId) " +
... | [
{
"answer_id": 308568,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "\""
},
{
"answer_id": 308589,
"author": "JesperE",
"author_id": 13051,
"author_profile": "https://Stackover... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39626/"
] |
308,581 | <p>Is it better to have all the private members, then all the protected ones, then all the public ones? Or the reverse? Or should there be multiple private, protected and public labels so that the operations can be kept separate from the constructors and so on? What issues should I take into account when making this... | [
{
"answer_id": 308660,
"author": "David Rodríguez - dribeas",
"author_id": 36565,
"author_profile": "https://Stackoverflow.com/users/36565",
"pm_score": 2,
"selected": false,
"text": "class Example1 {\npublic:\n void publicOperation();\nprivate:\n void privateOperation1_();\n void ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11575/"
] |
308,588 | <p>I am struggling to get an Epson "ESC/POS" printer to print barcodes (Using Delphi) and want to test if the printer is not faulty. Do you know where I can find a program to print a barcode in "ESC/POS"? I suppose as a last resort an OPOS program will also be OK.</p>
<p>Also, a demo Delphi Program that works will als... | [
{
"answer_id": 308829,
"author": "Re0sless",
"author_id": 2098,
"author_profile": "https://Stackoverflow.com/users/2098",
"pm_score": 4,
"selected": true,
"text": "{**\n* @param a ean13 barcode numeric value\n* @return the escpos code for the barcode print\n* Description uses es... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535708/"
] |
308,590 | <p>I'm running JBoss 4.0.5 on Windows 2003 x64 and wonder if there is any way to get a dump of all threads? </p>
<ul>
<li><p>It's stared with FireDaemon so I don't have a console windows in which to ctrl-break.</p></li>
<li><p>It's running under java 1.5 so jstack won't work.</p></li>
<li><p>I tried some program some... | [
{
"answer_id": 308604,
"author": "Gowri",
"author_id": 3253,
"author_profile": "https://Stackoverflow.com/users/3253",
"pm_score": 0,
"selected": false,
"text": "Thread.getAllStackTraces()"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30354/"
] |
308,601 | <p>I am working on a Windows application which needs to be able to update itself. When a button is pressed it starts the installer and then the parent application exits. At some point during the installer, the installer attempts to rename the directory that the parent application was running from and fails with "Access... | [
{
"answer_id": 308604,
"author": "Gowri",
"author_id": 3253,
"author_profile": "https://Stackoverflow.com/users/3253",
"pm_score": 0,
"selected": false,
"text": "Thread.getAllStackTraces()"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
308,605 | <p>I've got a Django application that works nicely. I'm adding REST services. I'm looking for some additional input on my REST strategy. </p>
<p>Here are some examples of things I'm wringing my hands over.</p>
<ul>
<li>Right now, I'm using the Django-REST API with a pile of patches. </li>
<li>I'm thinking of fall... | [
{
"answer_id": 1510095,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 5,
"selected": false,
"text": "GET /account/profile HTTP/1.1\nHost: example.com\nAccept: application/json\n GET /account/profile.json HTTP/1.1\nHost: ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308605",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10661/"
] |
308,609 | <p>As as part of my daily routine, I have the misfortune of administering an ancient, once "just internal" JSP web application that relies on the following authentication schema:</p>
<pre><code>...
// Validate the user name and password.
if ((user != null) && (password != null) && (
(user.equals("... | [
{
"answer_id": 308677,
"author": "carson",
"author_id": 25343,
"author_profile": "https://Stackoverflow.com/users/25343",
"pm_score": 3,
"selected": true,
"text": "try\n{\n String digestInput = \"queen\";\n\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageD... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
308,615 | <p>Please feel free to correct me if I am wrong at any point...</p>
<p>I am trying to read a <a href="http://en.wikipedia.org/wiki/Comma-separated_values" rel="nofollow noreferrer">CSV</a> (comma separated values) file using .NET file I/O classes. Now the problem is, this CSV file may contain some fields with soft car... | [
{
"answer_id": 308648,
"author": "configurator",
"author_id": 9536,
"author_profile": "https://Stackoverflow.com/users/9536",
"pm_score": 4,
"selected": true,
"text": "public class LineReader : IDisposable\n{\n private Stream stream;\n private BinaryReader reader;\n\n public Lin... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39648/"
] |
308,619 | <p>With a vector defined as <code>std::vector<std::string></code>,
Wondering why the following is valid:</p>
<pre><code>if ( vecMetaData[0] != "Some string" )
{
...
</code></pre>
<p>But not this:</p>
<pre><code>switch ( vecMetaData[1] )
{
...
</code></pre>
<p>Visual studio complains :</p>
<pre>... | [
{
"answer_id": 308676,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 1,
"selected": false,
"text": "std::map<std::string, boost::function> StringSwitch; StringSwitch[\"Some string\"](arguments...)"
},
{
"answer_id... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308619",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18664/"
] |
308,620 | <p>I have a simple database with two tables. Users and Configurations. A user has a foreign key to link it to a particular configuration.</p>
<p>I am having a strange problem where the following query always causes an inner join to the Configuration table regardless of the second parameter value. As far as I can tell,... | [
{
"answer_id": 308676,
"author": "MSalters",
"author_id": 15416,
"author_profile": "https://Stackoverflow.com/users/15416",
"pm_score": 1,
"selected": false,
"text": "std::map<std::string, boost::function> StringSwitch; StringSwitch[\"Some string\"](arguments...)"
},
{
"answer_id... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
308,650 | <p>Anyone got any insight as to select x number of non-consecutive days worth of data? Dates are standard sql datetime. So for example I'd like to select 5 most recent days worth of data, but there could be many days gap between records, so just selecting records from 5 days ago and more recent will not do.</p>
| [
{
"answer_id": 308670,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 0,
"selected": false,
"text": "select *\nfrom data\nwhere datetime >=\n( select top 1 date\n from\n ( select top 5 date from\n ( select truncat... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39655/"
] |
308,659 | <p>I have a login screen that I force to be ssl, so like this:
<a href="https://www.foobar.com/login" rel="noreferrer">https://www.foobar.com/login</a>
then after they login, they get moved to the homepage:
<a href="https://www.foobar.com/dashbaord" rel="noreferrer">https://www.foobar.com/dashbaord</a></p>
<p>However,... | [
{
"answer_id": 308671,
"author": "Piskvor left the building",
"author_id": 19746,
"author_profile": "https://Stackoverflow.com/users/19746",
"pm_score": 2,
"selected": false,
"text": "Secure"
},
{
"answer_id": 2153433,
"author": "monmonja",
"author_id": 258648,
"autho... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308659",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43/"
] |
308,667 | <p>I need to make a Control which shows only an outline, and I need to place it over a control that's showing a video. If I make my Control transparent, then the video is obscured, because transparent controls are painted by their parent control and the video isn't painted by the control; it's shown using DirectShow o... | [
{
"answer_id": 308708,
"author": "Skizz",
"author_id": 1898,
"author_profile": "https://Stackoverflow.com/users/1898",
"pm_score": -1,
"selected": false,
"text": "Form.TransparencyKey"
},
{
"answer_id": 20849282,
"author": "Pieterjan De Clippel",
"author_id": 3147047,
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
308,683 | <p>When I create a new <code>Date</code> object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT?</p>
| [
{
"answer_id": 308689,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 10,
"selected": true,
"text": "java.util.Date java.util.Date java.util.Date Date.toString() SimpleDateFormat"
},
{
"answer_id": 308704,
"au... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19888/"
] |
308,695 | <p>I'm working in C, and I have to concatenate a few things.</p>
<p>Right now I have this:</p>
<pre><code>message = strcat("TEXT ", var);
message2 = strcat(strcat("TEXT ", foo), strcat(" TEXT ", bar));
</code></pre>
<p>Now if you have experience in C I'm sure you realize that this gives you a segmentation fault whe... | [
{
"answer_id": 308712,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 10,
"selected": true,
"text": "char strcat src dest char *strcat(char *dest, const char *src);\n char str[80];\nstrcpy(str, \"these \");\nstrcat(str... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308695",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
308,703 | <p>Is there a way to change all the numeric keys to "Name" without looping through the array (so a php function)?</p>
<pre><code>[
0 => 'blabla',
1 => 'blabla',
2 => 'blblll',
// etc ...
]
</code></pre>
| [
{
"answer_id": 308731,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 5,
"selected": false,
"text": "$x =array(); \n$x['foo'] = 'bar' ; \n$x['foo'] = 'baz' ; #replaces 'bar'\n $x[0] --> $x['foo_0'] \n function rekey( ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
308,739 | <p>Could some one tell me how to capture SOAP messages passed between the client and the server webservice applications.</p>
<p>I tried using both tools.
pocket soap
<a href="http://www.pocketsoap.com/pocketsoap/" rel="nofollow noreferrer">http://www.pocketsoap.com/pocketsoap/</a></p>
<p>Fiddler
<a href="http://www.f... | [
{
"answer_id": 10438793,
"author": "E.Bailo",
"author_id": 1373471,
"author_profile": "https://Stackoverflow.com/users/1373471",
"pm_score": 1,
"selected": false,
"text": ".\n.\n.\n Serializer->EndEnvelope();\n/* ___________________ */\n\n char * bufferxml = NULL;\n\n _variant_t p... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32670/"
] |
308,746 | <p>I'm getting a segmentation fault in the following C code:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#... | [
{
"answer_id": 308763,
"author": "Graeme Perrow",
"author_id": 1821,
"author_profile": "https://Stackoverflow.com/users/1821",
"pm_score": 3,
"selected": false,
"text": "strcat( m, \"NICK\" ); m[0] = '\\0'; memset( m, 0, sizeof( m ) ); strcat strcpy strcat strcat strcpy"
},
{
"an... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
308,749 | <p>In many languages there's a pair of functions, <code>chr()</code> and <code>ord()</code>, which convert between numbers and character values. In some languages, <code>ord()</code> is called <code>asc()</code>.</p>
<p>Ruby has <code>Integer#chr</code>, which works great:</p>
<pre><code>>> 65.chr
A
</code></pr... | [
{
"answer_id": 308804,
"author": "dylanfm",
"author_id": 38795,
"author_profile": "https://Stackoverflow.com/users/38795",
"pm_score": 4,
"selected": false,
"text": "'A'.unpack('c')\n"
},
{
"answer_id": 308812,
"author": "Kent Fredric",
"author_id": 15614,
"author_pro... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39223/"
] |
308,752 | <p>I would like to know which one is the best material that I can hand out to my students about "<em>C# comments</em>".</p>
| [
{
"answer_id": 308762,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 2,
"selected": false,
"text": "//This is a single line comment\n /*\nMultiple lines\n*/\n /// <summary>\n /// This is a description\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18631/"
] |
308,756 | <p>Is it possible to check if a dynamically loaded assembly has been signed with a specific strong name?</p>
<p>Is it enough / secure to compare the values returned from <strong>AssemblyName.GetPublicKey()</strong> method?</p>
<pre><code>Assembly loaded = Assembly.LoadFile(path);
byte[] evidenceKey = loaded.GetName(... | [
{
"answer_id": 308762,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 2,
"selected": false,
"text": "//This is a single line comment\n /*\nMultiple lines\n*/\n /// <summary>\n /// This is a description\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25319/"
] |
308,772 | <p>I'm creating a public internet facing website which contains the email address of their salespeople. </p>
<p>What kind of programming options do I have to generate the "mailto" and display the email from that address but limit the spambots from picking up the address? </p>
| [
{
"answer_id": 309220,
"author": "Brian C. Lane",
"author_id": 27461,
"author_profile": "https://Stackoverflow.com/users/27461",
"pm_score": 2,
"selected": false,
"text": "<script name=\"mailto\" language=\"JavaScript\">\n //<![CDATA[\n\n function load()\n {\n c1 = \"bcl\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
308,802 | <p>I'm using the <a href="http://code.msdn.microsoft.com/silverlightut/" rel="noreferrer">Silverlight UnitTest framerwork</a> does anyone have a good example have how to unit test an application with it?
I'm using it quite successfully to unit test a silverlight class library.</p>
<p>Any pointers and links would be gr... | [
{
"answer_id": 16547022,
"author": "Michael",
"author_id": 986451,
"author_profile": "https://Stackoverflow.com/users/986451",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Net;\nusing System.Windows;\nusing System.Windows.Controls;\nusing System.Windows.Document... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39643/"
] |
308,813 | <p>I am using Apache Felix and its Declarative Services (SCR) to wire the service dependencies between bundles.</p>
<p>For example, if I need access to a java.util.Dictionary I can say the following to have SCR provide one:</p>
<pre><code>/**
* @scr.reference name=properties interface=java.util.Dictionary
*/
protect... | [
{
"answer_id": 322471,
"author": "Danail Nachev",
"author_id": 3219,
"author_profile": "https://Stackoverflow.com/users/3219",
"pm_score": 1,
"selected": false,
"text": "\n(name=myDictionary)\n"
},
{
"answer_id": 367987,
"author": "Alexander Klimetschek",
"author_id": 270... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14955/"
] |
308,820 | <p>I have big issue with url-rewriting for IIS 7.0.</p>
<p>I've written simple module for rewriting for my NET3.5/IIS7 web application. Here is a part of the code.</p>
<pre><code> public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
}
void... | [
{
"answer_id": 322471,
"author": "Danail Nachev",
"author_id": 3219,
"author_profile": "https://Stackoverflow.com/users/3219",
"pm_score": 1,
"selected": false,
"text": "\n(name=myDictionary)\n"
},
{
"answer_id": 367987,
"author": "Alexander Klimetschek",
"author_id": 270... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308820",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39656/"
] |
308,823 | <p>I have to define the grammar of a file like the one shown below.</p>
<p>//Sample file<br>
NameCount = 4<br>
Name = a<br>
Name = b<br>
Name = c<br>
Name = d<br>
//End of file<br></p>
<p>Now I am able to define tokens for <strong>NameCount</strong> and <strong>Name</strong>. But i have to define the file structure i... | [
{
"answer_id": 335674,
"author": "tcurdt",
"author_id": 33165,
"author_profile": "https://Stackoverflow.com/users/33165",
"pm_score": 4,
"selected": true,
"text": "grammar test;\n\n@members {\n private int count = 0;\n private int names = 0;\n}\n\nfile\n : count (name)+\n {\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27784/"
] |
308,826 | <p>The code below works. But if I comment out the line <code>Dim objRequest As MSXML2.XMLHTTP</code> and uncomment the line <code>Dim objRequest As Object</code> it fails with the error message :</p>
<blockquote>
<p>The parameter is incorrect</p>
</blockquote>
<p>Why, and what (if anything) can I do about it?</p>
... | [
{
"answer_id": 308920,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "Dim strPostData As String\nDim objRequest As Object\n\nstrPostData = \"api_id=\" & strApiId & \"&user=\" & strUserName & \"... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39665/"
] |
308,832 | <p>How do I detect when an iOS app is launched for the first time?</p>
| [
{
"answer_id": 308846,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 2,
"selected": false,
"text": "registerDefaults:"
},
{
"answer_id": 308861,
"author": "Noah Witherspoon",
"author_id": 30618,
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36182/"
] |
308,833 | <p>I need to transform an Oracle SQL statement into a Stored Procedure therefore users with less privileges can access certain data field:</p>
<pre><code>SELECT
info_field, data_field
FROM
table_one
WHERE
some_id = '<id>' -- I need this <id> to be the procedure's parameter
UNION ALL
SELECT
... | [
{
"answer_id": 308883,
"author": "Dave Costa",
"author_id": 6568,
"author_profile": "https://Stackoverflow.com/users/6568",
"pm_score": 1,
"selected": false,
"text": "PROCEDURE get_fields( the_id NUMBER,\n info_field_out OUT table_one.info_field%TYPE,\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
308,835 | <p>I'm finding myself doing a lot of things with associative arrays in PHP.</p>
<p>I was doing this:</p>
<pre><code> foreach ($item as $key=>$value) {
if ($arr[$key] == null) {
$arr[$key] = 0;
}
$arr[$key] += $other_arr[$value];
}
</code></pre>
<p>But then I realised that it works fine i... | [
{
"answer_id": 308852,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": true,
"text": "if (!isset($arr[$key]))\n $arr[$key] = 0;\n"
},
{
"answer_id": 32802974,
"author": "ajon",
"author_id": 106... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11522/"
] |
308,837 | <p>I have the following table</p>
<pre><code><td class="style2">
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Location</asp:ListItem>
<asp:ListItem>Name</asp:ListItem>
<asp:ListItem>SSN</asp:ListItem>
</asp:DropDow... | [
{
"answer_id": 308852,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": true,
"text": "if (!isset($arr[$key]))\n $arr[$key] = 0;\n"
},
{
"answer_id": 32802974,
"author": "ajon",
"author_id": 106... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38230/"
] |
308,850 | <p>Windows Forms:</p>
<p>For <code>System.Drawing</code> there is a way to get the font height. </p>
<pre><code>Font font = new Font("Arial", 10 , FontStyle.Regular);
float fontHeight = font.GetHeight();
</code></pre>
<p>But how do you get the other text metrics like average character width?</p>
| [
{
"answer_id": 308858,
"author": "Ramesh Soni",
"author_id": 191,
"author_profile": "https://Stackoverflow.com/users/191",
"pm_score": 3,
"selected": true,
"text": "private void MeasureStringMin(PaintEventArgs e)\n{\n\n // Set up string.\n string measureString = \"Measure String\";... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28343/"
] |
308,876 | <p>I am connecting to a MySQL DB trough a terminal who only have a program with an ODBC connection to a MySQL DB. I can put querys in the program, but not access MySQL directly.</p>
<p>I there a way to query the DB to obtain the list of fields in a table other than</p>
<pre><code>select * from table
</code></pre>
<p... | [
{
"answer_id": 308882,
"author": "Sebastian Hoitz",
"author_id": 9535,
"author_profile": "https://Stackoverflow.com/users/9535",
"pm_score": 2,
"selected": true,
"text": "describe *tablename*\n"
},
{
"answer_id": 308890,
"author": "Tomalak",
"author_id": 18771,
"autho... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2385/"
] |
308,892 | <p>I'm looking for a good open source message bus that is suitable for embedded Linux devices (Linux and uClinux).</p>
<p>It needs to satisfy the following criteria:</p>
<ul>
<li>Must be free software and LGPL or a more liberal license due to uClinux only supporting static linking</li>
<li>Must have a C API</li>
<li>... | [
{
"answer_id": 309021,
"author": "Ben Collins",
"author_id": 3279,
"author_profile": "https://Stackoverflow.com/users/3279",
"pm_score": 4,
"selected": true,
"text": "man mq_overview"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22247/"
] |
308,893 | <p>I have a problem with an ASP.NET application that is driving me nuts.</p>
<p>When a user leaves a page inactive for a period of time the session was timing out and error were being thrown due to session variables not being resolvable (I will error trap this anyway but this is not the problem).
I coded a 'defribulat... | [
{
"answer_id": 309033,
"author": "user39603",
"author_id": 39603,
"author_profile": "https://Stackoverflow.com/users/39603",
"pm_score": 1,
"selected": false,
"text": "slidingExpiration true"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31580/"
] |
308,905 | <p>I've been reading that some devs/dbas recommend using transactions in all database calls, even read-only calls. While I understand inserting/updating within a transaction what is the benefit of reading within a transaction?</p>
| [
{
"answer_id": 308910,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 7,
"selected": true,
"text": "myRows = query(SELECT * FROM A)\nmoreRows = query(SELECT * FROM B WHERE a_id IN myRows[id])\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
308,908 | <p>I have a data set that is organized in the following manner:</p>
<pre><code>Timestamp|A0001|A0002|A0003|A0004|B0001|B0002|B0003|B0004 ...
---------+-----+-----+-----+-----+-----+-----+-----+-----
2008-1-1 | 1 | 2 | 10 | 6 | 20 | 35 | 300 | 8
2008-1-2 | 5 | 2 | 9 | 3 | 50 | 38 | 290 | 2
2008... | [
{
"answer_id": 309274,
"author": "Brettski",
"author_id": 5836,
"author_profile": "https://Stackoverflow.com/users/5836",
"pm_score": 1,
"selected": false,
"text": "-- Create the temp table\nCREATE TABLE #s (item nvarchar(10), val int)\n\n-- Insert UNPIVOT product into the temp table\nIN... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31326/"
] |
308,926 | <p>How can I verify a given xpath string is valid in C#/.NET?</p>
<p>I'm not sure just running the XPath and catching exceptions is a valid solution (putting aside the bile in my throat for a moment) - what if tomorrow I run into some other input I haven't tested against?</p>
| [
{
"answer_id": 308953,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 5,
"selected": true,
"text": "XPathExpression try \n{\n XPathExpression.Compile(xPathString);\n}\ncatch (XPathException ex)\n{\n MessageBox.Show(\"... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308926",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
308,928 | <p>How do I add radio buttons as my parameter type in SSRS reports?</p>
<p>Thanks in advance,
Anna</p>
| [
{
"answer_id": 2340551,
"author": "pulkit",
"author_id": 281901,
"author_profile": "https://Stackoverflow.com/users/281901",
"pm_score": 3,
"selected": false,
"text": "=iif( Fields!m_chkDentalStatusGood.Value , Chr(158), Chr(153))\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
308,931 | <p>All, </p>
<p>I currently have my solution comprising of 2 Class librarys and a Web Site building within teamCity using Msbuild. Now I want to precompile the website and make it available as an artifact. However when i try to Precompile it using </p>
<pre><code><Target Name="PrecompileWeb" DependsOnTargets="Buil... | [
{
"answer_id": 308975,
"author": "Cory Foy",
"author_id": 4083,
"author_profile": "https://Stackoverflow.com/users/4083",
"pm_score": 3,
"selected": true,
"text": "Rebuild;ResolveReferences;_CopyWebApplication OutDir"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11802/"
] |
308,935 | <p>I'm preparing a string that will be <code>eval</code>'ed. The string will contain a clause built from an existing <code>Array</code>. I have the following:</p>
<pre><code>def stringify(arg)
return "[ '" + arg.join("', '") + "' ]" if arg.class == Array
"'#{arg}'"
end
a = [ 'a', 'b', 'c' ]
eval_str = 'p ' + ... | [
{
"answer_id": 308956,
"author": "dylanfm",
"author_id": 38795,
"author_profile": "https://Stackoverflow.com/users/38795",
"pm_score": 0,
"selected": false,
"text": ">> a = %w[a b c]\n=> [\"a\", \"b\", \"c\"]\n>> r = \"['#{a.join(\"', '\")}']\"\n=> \"['a', 'b', 'c']\"\n>> r.class\n=> Str... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308935",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39443/"
] |
308,954 | <p>I need a method to return a random string in the format:</p>
<p>Letter Number Letter Number Letter Number</p>
| [
{
"answer_id": 308960,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 2,
"selected": false,
"text": "private int RandomNumber(int min, int max)\n{\n Random random = new Random();\n return random.Next(min, m... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
308,963 | <p>What is the proper way to split up SQL statements to send to an Oracle ADO.NET client? For instance, lets say you have the following code in a text file and want to execute these statements:</p>
<pre><code>CREATE TABLE foo (bar VARCHAR2(100));
INSERT INTO foo (bar) VALUES('one');
INSERT INTO foo (bar) VALUES('two'... | [
{
"answer_id": 309003,
"author": "Tony Andrews",
"author_id": 18747,
"author_profile": "https://Stackoverflow.com/users/18747",
"pm_score": 3,
"selected": false,
"text": "BEGIN\n INSERT INTO foo (bar) VALUES('one');\n INSERT INTO foo (bar) VALUES('two');\nEND;\n BEGIN\n EXECUTE IMMEDI... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16501/"
] |
308,985 | <p>I'm coding a simple code editor for a very simple scripting language we use at work. My syntax highlighting code works fine if I do it on the entire <code>RichTextBox</code> (<code>rtbMain</code>) but when I try to get it to work on just that line, so I can run the function with <code>rtbMain</code> changes, it gets... | [
{
"answer_id": 776776,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "Private Sub HighLight(ByVal All As Boolean)\n Dim RegExp As System.Text.RegularExpressions.MatchCollection\n Dim RegExpM... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39143/"
] |
308,988 | <p>It is really annoying.</p>
<pre><code>Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new mainForm()); <-- pausing visual studio breaks here.
</code></pre>
<p>Thanks guys.</p>
| [
{
"answer_id": 309086,
"author": "kͩeͣmͮpͥ ͩ",
"author_id": 26479,
"author_profile": "https://Stackoverflow.com/users/26479",
"pm_score": 0,
"selected": false,
"text": "F9 i == 0"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/308988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11059/"
] |
308,999 | <p>In a comment on this <a href="https://stackoverflow.com/questions/306130/python-decorator-makes-function-forget-that-it-belongs-to-a-class#306277">answer to another question</a>, someone said that they weren't sure what <code>functools.wraps</code> was doing. So, I'm asking this question so that there will be a reco... | [
{
"answer_id": 309000,
"author": "Eli Courtwright",
"author_id": 1694,
"author_profile": "https://Stackoverflow.com/users/1694",
"pm_score": 11,
"selected": true,
"text": "def logged(func):\n def with_logging(*args, **kwargs):\n print(func.__name__ + \" was called\")\n r... | 2008/11/21 | [
"https://Stackoverflow.com/questions/308999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1694/"
] |
309,008 | <p>I want to write a function that accepts two objects as parameters and compare only the fields contained within the objects. I do not know what type the objects will be at design time, but the objects passed will be classes used within our application.</p>
<p>Is it possible to compare object's fields without knowing... | [
{
"answer_id": 309131,
"author": "Pondidum",
"author_id": 1500,
"author_profile": "https://Stackoverflow.com/users/1500",
"pm_score": 2,
"selected": false,
"text": "Public Overrides Function GetHashCode() As Integer\n Dim sb As New System.Text.StringBuilder\n\n sb.Append(_dateOfBir... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38595/"
] |
309,014 | <p>I am currently using osql with nant by calling a batch file with arguments. Here are the properties that are defined in my nant script (no, not real username/password values):</p>
<pre><code><property name="project.config" value="debug" />
<property name="server" value="(local)" />
<property name="da... | [
{
"answer_id": 309110,
"author": "devio",
"author_id": 21336,
"author_profile": "https://Stackoverflow.com/users/21336",
"pm_score": 0,
"selected": false,
"text": "SET Server=%1\nSET Database=%2\nSHIFT \nSHIFT\nosql -S %Server% ... %* -Q \"...%Database%...\"\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/309014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2779/"
] |
309,023 | <p>We have a Java application that needs to be brought to the foreground when a telecontrol mechanism activates something in the application.</p>
<p>In order to get this, we have realized in the called method of the class which represents the frame of our application (extension of a <code>JFrame</code>) following impl... | [
{
"answer_id": 310807,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 5,
"selected": false,
"text": "if(getState()!=Frame.NORMAL) { setState(Frame.NORMAL); }\ntoFront();\nrepaint();\n toFront setVisible(true);\ntoFront()... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15108/"
] |
309,035 | <p>I created a GridView in an ASP.NET application and used the Auto Format tool to apply an attractive style. Now I'm moving the style markup to the CSS sheet and I'm having a weird problem where the text in the header row isn't the correct color (it should be white but it shows up a bright blue). <strong>This proble... | [
{
"answer_id": 309123,
"author": "gabe",
"author_id": 34315,
"author_profile": "https://Stackoverflow.com/users/34315",
"pm_score": 1,
"selected": false,
"text": "\n.grid-header, .grid-footer { color: White; background-color: #507CD1; font-weight: bold; }\n \n.grid-header, .grid-footer {... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3161/"
] |
309,040 | <p>I've compiled a java project into a Jar file, and am having issues running it.</p>
<p>When I run:</p>
<pre><code>java -jar myJar.jar
</code></pre>
<p>I get the following error</p>
<pre><code>Could not find the main class: myClass
</code></pre>
<p>The class file is not in the root directory of the jar so I've tr... | [
{
"answer_id": 309058,
"author": "mipadi",
"author_id": 28804,
"author_profile": "https://Stackoverflow.com/users/28804",
"pm_score": 4,
"selected": true,
"text": "Main-Class main() my.cool.Class Main-Class my.cool.Class .java Class.java package my.cool; my.cool.Class $SRC/my/cool/Class.... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309040",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
309,049 | <p>I have a small ajax php application, which outputs data from a mysql db into a table. The rows are links, which when clicked will call an ajax function, which in turn will call another php file, which displays a different query from the same database in a layer without reloading the page.</p>
<p>I would like to kno... | [
{
"answer_id": 644203,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<?php\nif (isset($_POST['submit'])) {\n\n$myFile = \"/posts/edit/644203\";\n$fh = fopen($myFile, 'w') or die(\"can't open file... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
309,071 | <p>I'd like to find all the types inheriting from a base/interface. Anyone have a good method to do this? Ideas?</p>
<p>I know this is a strange request but its something I'm playing with none-the-less.</p>
| [
{
"answer_id": 309076,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "mscorlib IEnumerable using System;\nusing System.Collections;\nusing System.Linq;\nusing System.Reflection;\n\nclass Test... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1946/"
] |
309,081 | <p>I want to create a toggle button in html using css. I want it so that when you click on it , it stays pushed in and than when you click it on it again it pops out. </p>
<p>If theres no way of doing it just using css. Is there a way to do it using jQuery?</p>
| [
{
"answer_id": 309112,
"author": "Anand",
"author_id": 12649,
"author_profile": "https://Stackoverflow.com/users/12649",
"pm_score": 2,
"selected": false,
"text": "<a></a> var flag = 0;\nfunction toggle(){\nif(flag==0){\n document.getElementById(\"toggleDiv\").style.backgroundImage=\"... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309081",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1231/"
] |
309,098 | <p>How (i.e. using which API) is the virtual keyboard opened on Symbian S60 5th edition? The documentation seems to lack information about this.</p>
| [
{
"answer_id": 4315560,
"author": "tihi",
"author_id": 525309,
"author_profile": "https://Stackoverflow.com/users/525309",
"pm_score": 2,
"selected": false,
"text": "// lineEdit is an instance of QLineEdit \nQApplication::postEvent(lineEdit, new QEvent(QEvent::RequestSoftwareInputPane... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309098",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39684/"
] |
309,101 | <p>How do I get the <code>GridView</code> control to render the <code><thead></code> <code><tbody></code> tags? I know <code>.UseAccessibleHeaders</code> makes it put <code><th></code> instead of <code><td></code>, but I cant get the <code><thead></code> to appear.</p>
| [
{
"answer_id": 309119,
"author": "Phil Jenkins",
"author_id": 35496,
"author_profile": "https://Stackoverflow.com/users/35496",
"pm_score": 9,
"selected": true,
"text": "gv.HeaderRow.TableSection = TableRowSection.TableHeader;\n"
},
{
"answer_id": 808819,
"author": "ASalvo",
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28543/"
] |
309,115 | <p>I am creating a small app to teach myself ASP.NET MVC and JQuery, and one of the pages is a list of items in which some can be selected. Then I would like to press a button and send a List (or something equivalent) to my controller containing the ids of the items that were selected, using JQuery's Post function.</p>... | [
{
"answer_id": 310136,
"author": "MrDustpan",
"author_id": 34720,
"author_profile": "https://Stackoverflow.com/users/34720",
"pm_score": 9,
"selected": true,
"text": "function test()\n{\n var stringArray = new Array();\n stringArray[0] = \"item1\";\n stringArray[1] = \"item2\";\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/79101/"
] |
309,129 | <p>I got the following class :</p>
<pre><code>class ConstraintFailureSet(dict, Exception) :
"""
Container for constraint failures. It act as a constraint failure itself
but can contain other constraint failures that can be accessed with a dict syntax.
"""
def __init__(self, **failures) :
... | [
{
"answer_id": 309196,
"author": "Dave Costa",
"author_id": 6568,
"author_profile": "https://Stackoverflow.com/users/6568",
"pm_score": 2,
"selected": false,
"text": "dict Exception >>> class foo(dict, Exception):\n... pass\n... \nTraceback (most recent call last):\n File \"<stdin>\",... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9951/"
] |
309,149 | <p>When generating graphs and showing different sets of data it usually a good idea to difference the sets by color. So one line is red and the next is green and so on. The problem is then that when the number of datasets is unknown one needs to randomly generate these colors and often they end up very close to each ot... | [
{
"answer_id": 309193,
"author": "Sam Meldrum",
"author_id": 16005,
"author_profile": "https://Stackoverflow.com/users/16005",
"pm_score": 8,
"selected": true,
"text": "0, 0, 255\n0, 255, 0\n255, 0, 0\n 0, 255, 255\n255, 0, 255\n255, 255, 0\n 0, 0, 128\n0, 128, 0\n128, 0, 0\n0, 128, 128\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/298/"
] |
309,153 | <p>Is there a way to link to a chm file, and therein to a certain topic, from a Microsoft Word docx document? Something in the lines of:</p>
<blockquote>
<p>"For more information about this Property see [link ref="./SomeDirectory/somedocument.chm!Sometopic.Somesubtopic" text="MyClass.MyProperty"]</p>
</blockquote>
| [
{
"answer_id": 310510,
"author": "Frank V",
"author_id": 18196,
"author_profile": "https://Stackoverflow.com/users/18196",
"pm_score": 0,
"selected": false,
"text": "C:\\Helpfiles\\Help.chm#Topic\n"
},
{
"answer_id": 320800,
"author": "Dirk Vollmar",
"author_id": 40347,
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309153",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4227/"
] |
309,159 | <p>I'm trying to do some abstraction in Haskell98 but doen't know how to do it.</p>
<p>What I want to do is to define a class for types that may be converted into lists.</p>
<pre><code>toList :: a -> [b]
</code></pre>
<p>But I don't know how to define a class for this method. I brought up the following three idea... | [
{
"answer_id": 311234,
"author": "mattiast",
"author_id": 8272,
"author_profile": "https://Stackoverflow.com/users/8272",
"pm_score": -1,
"selected": false,
"text": "(HTree a) toList (HTree a b) -> [b] (HTree a b) -> [(a,b)] class ToList a where\n toList :: a b -> [b]\n\ndata HTree a ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9632/"
] |
309,161 | <p>Is it a simple case of just never using the this.XYZ construct?</p>
| [
{
"answer_id": 309182,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 4,
"selected": true,
"text": "this public MyType(int arg)\n{\n this.arg = arg;\n}\n public MyType(int arg)\n{\n _arg = arg;\n}\n"
},
{
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11538/"
] |
309,165 | <p>Let's say I have an int with the value of 1. How can I convert that int to a zero padded string, such as <code>00000001</code>?</p>
| [
{
"answer_id": 309194,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 5,
"selected": false,
"text": "DECLARE @iVal int = 1\nselect REPLACE(STR(@iVal, 8, 0), ' ', '0')\n"
},
{
"answer_id": 309207,
"author": "... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470/"
] |
309,203 | <p>I used a new Date() object to fill a field in a MySQL DB, but the actual value stored in that field is in my local timezone.</p>
<p>How can I configure MySQL to store it in the UTC/GMT timezone?</p>
<p>I think, configuring the connection string will help but I don't know how. There are many properties in the conne... | [
{
"answer_id": 309316,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 1,
"selected": false,
"text": "PreparedStatement stmt.setDate(2, date, Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")));\n"
},
{
"answer_id... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309203",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19888/"
] |
309,205 | <p>Since C# is strongly typed, do we really need to prefix variables anymore?</p>
<p>e.g.</p>
<pre><code>iUserAge
iCounter
strUsername
</code></pre>
<p>I used to prefix in the past, but <b>going forward I don't see any benefit</b>.</p>
| [
{
"answer_id": 309228,
"author": "George Stocker",
"author_id": 16587,
"author_profile": "https://Stackoverflow.com/users/16587",
"pm_score": 2,
"selected": false,
"text": "I ILoadable"
},
{
"answer_id": 309239,
"author": "Todd Smith",
"author_id": 31624,
"author_prof... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39677/"
] |
309,206 | <p>At the risk of becoming the village idiot, can someone explain to me why generics are called generics? I understand their usage and benefits, but if the <a href="http://dictionary.reference.com/browse/generic" rel="noreferrer">definition of generic</a> is "general" and generic collections are type safe, then why is... | [
{
"answer_id": 1793614,
"author": "Jason Orendorff",
"author_id": 94977,
"author_profile": "https://Stackoverflow.com/users/94977",
"pm_score": 4,
"selected": false,
"text": "generic"
},
{
"answer_id": 1793677,
"author": "Pavel Minaev",
"author_id": 111335,
"author_pr... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2034/"
] |
309,255 | <p>Does anyone know how to add a an MSBuild .proj file to my solution?</p>
<p>I was just given existing code from a vendor with a solution that references an MSBuild .proj file as one of its projects. When I open the solution, the project shows as (unavailable). It appears that I need to install some sort of project... | [
{
"answer_id": 6822820,
"author": "ShadowChaser",
"author_id": 497666,
"author_profile": "https://Stackoverflow.com/users/497666",
"pm_score": 2,
"selected": false,
"text": "<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n <ItemGroup>\n <ProjectReference Incl... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12497/"
] |
309,291 | <p>I'm writing an error handling module for a fairly complex system architected into layers. Sometimes our data layer throws obscure exceptions.</p>
<p>It would be really handy to log out the <i>values</i> of the parameters of the method that threw the exception. </p>
<p>I can reflect on the TargetSite property of th... | [
{
"answer_id": 309331,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 2,
"selected": false,
"text": "throw new ArgumentOutOfRangeException(string parameterName, \n object actualValue, string message);\n"
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3546/"
] |
309,292 | <p>I have an ARM kit beside me and a Linux kernel source code patched with Xenomai on my machine. I understand I can send data to the kit through an USB cable and a (windows-based, of course) software, but I'm stumped as to exactly <em>what</em> I should be sending that would make the kit run Linux.</p>
<p>(clarificat... | [
{
"answer_id": 309331,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 2,
"selected": false,
"text": "throw new ArgumentOutOfRangeException(string parameterName, \n object actualValue, string message);\n"
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309292",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39702/"
] |
309,303 | <p>Currently this expression <code>"I ([a-zA-z]\d]{3} "</code> returns when the following pattern is true:</p>
<pre>
I AAA
I Z99
</pre>
<p>I need to modify this so it will return a range of alphanumerics after the I from 2 to 13 that do not have a space.</p>
<p>Example:</p>
<pre>
I AAA
I A321
I ASHG310310
</pr... | [
{
"answer_id": 309335,
"author": "Raymond Martineau",
"author_id": 33952,
"author_profile": "https://Stackoverflow.com/users/33952",
"pm_score": 2,
"selected": false,
"text": "I ([a-zA-Z]|\\d){2,13}\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/309303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
309,322 | <p>For my personal stuff I just use the <code>svnadmin hotcopy</code> command once a week but for more mission critical repositories that include many developers, is that enough? Or should I spend the time to put together a more rigorous backup strategy that includes full backups and incremental backups?</p>
<p><code>... | [
{
"answer_id": 309463,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 2,
"selected": false,
"text": "python svn-backup-dumps.py svn-backup-dump.py post-commit schtasks"
},
{
"answer_id": 1667123,
"author": "Aar... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13841/"
] |
309,333 | <p>I have an enum construct like this:</p>
<pre><code>public enum EnumDisplayStatus
{
None = 1,
Visible = 2,
Hidden = 3,
MarkedForDeletion = 4
}
</code></pre>
<p>In my database, the enumerations are referenced by value. My question is, how can I turn the number representation of the enum back to t... | [
{
"answer_id": 309339,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 10,
"selected": true,
"text": "int ToString() int value = GetValueFromDb();\nvar enumDisplayStatus = (EnumDisplayStatus)value;\nstring stringValue = ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39655/"
] |
309,334 | <p>What features do you wish were in common languages? More precisely, I mean features which generally don't exist at all but would be nice to see, rather than, "I wish dynamic typing was popular."</p>
| [
{
"answer_id": 309365,
"author": "Brian",
"author_id": 18192,
"author_profile": "https://Stackoverflow.com/users/18192",
"pm_score": 0,
"selected": false,
"text": "type datafoobak = item.datafoobak\nitem.datafoobak = 'tootle'\nitem.handledata()\nitem.datafoobak = datafoobak\n item.datafo... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18192/"
] |
309,382 | <p>Say I have a xml document that looks like this</p>
<pre><code><foo>
<bar id="9" />
<bar id="4" />
<bar id="3" />
</foo>
</code></pre>
<p>I would like to use linq to reset the id's to 0, 1 ,2.
What would be the easiest way to do this?</p>
<p>Thanks</p>
| [
{
"answer_id": 309407,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "XElement xml = GetXml();\nvar i = 0;\nforeach (var e in xml.Elements(\"bar\"))\n e.SetAttributeValue(\"id\", i++);\n"
},
{... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29961/"
] |
309,396 | <p>I've got a few methods that should call <code>System.exit()</code> on certain inputs. Unfortunately, testing these cases causes JUnit to terminate! Putting the method calls in a new Thread doesn't seem to help, since <code>System.exit()</code> terminates the JVM, not just the current thread. Are there any common pat... | [
{
"answer_id": 309427,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 9,
"selected": true,
"text": "System.exit() System.exit() public class NoExitTestCase extends TestCase \n{\n\n protected static class ExitException extends... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1412/"
] |
309,402 | <p>In my php script which connects to mysql, I have to query 2 databases in the same script to get different information. More specifically Faxarchives in one database and Faxusers in the other. </p>
<p>In my code I query faxusers and then foreach user, I query Faxarchives to get the user history. </p>
<p>I might d... | [
{
"answer_id": 309552,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 0,
"selected": false,
"text": "SELECT sent, received \nFROM Faxarchive.faxarchivetable\nWHERE userid IN ( SELECT DISTINCT userid FROM Faxusers.faxuse... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18853/"
] |
309,405 | <p>Currently, we're storing the user's HTTP_REFERER so we can redirect the user back to the previous page they were browsing before they logged in.</p>
<p>Http Referer comes from the client and can be spoofed or blank. Is there a more secure/reliable method to deliver this handy user redirect?</p>
| [
{
"answer_id": 309418,
"author": "Andrew Bullock",
"author_id": 28543,
"author_profile": "https://Stackoverflow.com/users/28543",
"pm_score": 2,
"selected": false,
"text": "history.go(-1);\n"
},
{
"answer_id": 309428,
"author": "Greg",
"author_id": 24181,
"author_prof... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26180/"
] |
309,412 | <p>Is there any way to install Setuptools for Python 2.6 in Windows without having an exe installer? </p>
<p>There isn't one built at the moment, and the maintainer of Setuptools has stated that it will probably be a while before he'll get to it. </p>
<p>Does anyone know of a way to install it anyway?</p>
| [
{
"answer_id": 380007,
"author": "will-mvn",
"author_id": 47632,
"author_profile": "https://Stackoverflow.com/users/47632",
"pm_score": 3,
"selected": false,
"text": "python.exe setup.py bdist_wininst\n dist\\setuptools-0.6c9.win32.exe"
},
{
"answer_id": 2755659,
"author": "T... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/349836/"
] |
309,424 | <p>If you have a <code>java.io.InputStream</code> object, how should you process that object and produce a <code>String</code>?</p>
<hr />
<p>Suppose I have an <code>InputStream</code> that contains text data, and I want to convert it to a <code>String</code>, so for example I can write that to a log file.</p>
<p>What ... | [
{
"answer_id": 309448,
"author": "Harry Lime",
"author_id": 21590,
"author_profile": "https://Stackoverflow.com/users/21590",
"pm_score": 12,
"selected": true,
"text": "IOUtils InputStream StringWriter StringWriter writer = new StringWriter();\nIOUtils.copy(inputStream, writer, encoding)... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16616/"
] |
309,438 | <p>We have a JavaScript construct that will play .wav files within Firefox on Windows and MacOSX, but it does not work for Red Hat Linux. What extension do I need?</p>
| [
{
"answer_id": 309611,
"author": "luiscubal",
"author_id": 32775,
"author_profile": "https://Stackoverflow.com/users/32775",
"pm_score": 2,
"selected": false,
"text": "<audio>"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/309438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13930/"
] |
309,485 | <p>I recently have been moving a bunch of MP3s from various locations into a repository. I had been constructing the new file names using the ID3 tags (thanks, TagLib-Sharp!), and I noticed that I was getting a <code>System.NotSupportedException</code>: </p>
<blockquote>
<p><em>"The given path's format is not suppor... | [
{
"answer_id": 310797,
"author": "Dour High Arch",
"author_id": 22437,
"author_profile": "https://Stackoverflow.com/users/22437",
"pm_score": 2,
"selected": false,
"text": "Path.GetDirectoryName public static string SanitizePath(string path, char replaceChar)\n{\n int filenamePos = pa... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2683/"
] |
309,491 | <p>I'm using the following code to try to read the results of a <code>df</code> command in Linux using <code>popen</code>.</p>
<pre><code>#include <iostream> // file and std I/O functions
int main(int argc, char** argv) {
FILE* fp;
char * buffer;
long bufSize;
size_t ret_code;
fp = popen("d... | [
{
"answer_id": 309505,
"author": "flolo",
"author_id": 36472,
"author_profile": "https://Stackoverflow.com/users/36472",
"pm_score": 0,
"selected": false,
"text": "ftell ftell"
},
{
"answer_id": 309523,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https:... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1288/"
] |
309,494 | <p>I'm trying to make a program in Visual C# that has my one created class, and at application launch it creates an array of my class object, and this array of my object can be used all over the program. So any function, or a control's event can access the array of objects and their member variables.
I created my class... | [
{
"answer_id": 309519,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "public static class MyClassManager\n{\n private MyClass[] _myclasses;\n public MyClass[] MyClassArray\n {\n get\n {\n... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/117494/"
] |
309,495 | <p>I'm currently using <code>Win32ShellFolderManager2</code> and <code>ShellFolder.getLinkLocation</code> to resolve windows shortcuts in Java. Unfortunately, if the Java program is running as a service under Vista, <code>getLinkLocation</code>, this does not work. Specifically, I get an exception stating "Could not ge... | [
{
"answer_id": 352738,
"author": "Sam Brightman",
"author_id": 2492,
"author_profile": "https://Stackoverflow.com/users/2492",
"pm_score": 2,
"selected": false,
"text": "& 0xff byte int bytes2short import java.io.ByteArrayOutputStream;\nimport java.io.File;\nimport java.io.FileInputStrea... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15255/"
] |
309,496 | <p>How can I initialize a const / static array of structs as clearly as possible?</p>
<pre><code>class SomeClass
{
struct MyStruct
{
public string label;
public int id;
};
const MyStruct[] MyArray = {
{"a", 1}
{"b", 5}
{"q", 29}
};
};
</code></pre>
| [
{
"answer_id": 309528,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 7,
"selected": true,
"text": "ValueTuple class SomeClass\n{\n\n struct MyStruct\n {\n private readonly string label;\n private read... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4066/"
] |
309,497 | <p>My company has a requirement that all production sites pass an AppScan security scan. Sometimes, when we scan a SharePoint installation, the software detects a blind SQL injection vulnerability. I'm pretty sure this is a false positive--AppScan is probably interpreting some other activity in the HTTP response as suc... | [
{
"answer_id": 19728455,
"author": "kravietz",
"author_id": 1274149,
"author_profile": "https://Stackoverflow.com/users/1274149",
"pm_score": -1,
"selected": false,
"text": "WAITFOR DELAY"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/309497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.