qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
358,350 | <p>I have a list, and each item is linked, is there a way I can alternate the background colors for each item?</p>
<pre><code><ul>
<li><a href="link">Link 1</a></li>
<li><a href="link">Link 2</a></li>
<li><a href="link">Link 3</a></... | [
{
"answer_id": 358357,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": -1,
"selected": false,
"text": "li, li + li + li, li + li + li + li + li {\n background-color: black;\n}\n\nli + li, li + li + li + li {\n background-col... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26130/"
] |
358,387 | <p>Basically what the title says...</p>
<p>I need to have an image that when clicked, I call script.php for instance and in that PHP script file, I get the image coordinates where the mouse was clicked.</p>
<p>Is this possible?</p>
<p><strong>EDIT:</strong><br />
After a couple of answers I realized I didn't describ... | [
{
"answer_id": 358401,
"author": "jmucchiello",
"author_id": 44065,
"author_profile": "https://Stackoverflow.com/users/44065",
"pm_score": 2,
"selected": false,
"text": "name=\"foo\""
},
{
"answer_id": 358512,
"author": "recursive",
"author_id": 44743,
"author_profile... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40480/"
] |
358,389 | <p>I just finished watching the Google clean code video on YouTube (see <a href="http://googletesting.blogspot.com/" rel="nofollow noreferrer">link</a>, first article) about removing <code>if</code> statements from your code and using polymorphism instead. </p>
<p>After watching the video I had a look at some code th... | [
{
"answer_id": 358403,
"author": "Andrew Kennan",
"author_id": 22506,
"author_profile": "https://Stackoverflow.com/users/22506",
"pm_score": 0,
"selected": false,
"text": "public class Thing\n{\n public IValueFetcher ValueFetcher { get; set; }\n\n public int Number \n { \n get \n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358389",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
358,397 | <p><strong>Is it possible for some Javascript to detect whether Skype is installed or not?</strong></p>
<p>The reason I ask is that I'd like to change a link's href based on that: if Skype isn't installed, show a popup explaining what Skype is and how to install it, if it is installed, change the link to <code>skype:m... | [
{
"answer_id": 358421,
"author": "some",
"author_id": 36866,
"author_profile": "https://Stackoverflow.com/users/36866",
"pm_score": 3,
"selected": false,
"text": "function isSkypeInstalled(str) {\n try {\n /*@cc_on\n //The Microsoft way, thanks to the conditional comment... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358397",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
358,398 | <p>I have a class called myClass which defines post() and get() methods. </p>
<p>From <em>index.html</em>, I have a form with an action that calls myClass.post() which grabs some data from the data base, sets a couple variables and sends the user to <em>new.html</em>. </p>
<p>now, <em>new.html</em> has a form which c... | [
{
"answer_id": 358613,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https://Stackoverflow.com/users/42188",
"pm_score": 1,
"selected": false,
"text": "def save_foo(request):\n if request.method == 'POST':\n save(request.POST)\n return HttpRedirect(reverse(\n... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1179/"
] |
358,410 | <p>Can anybody let me know the query to find all the tables that has a date columns on it.</p>
<p>Thanks</p>
| [
{
"answer_id": 358424,
"author": "RobS",
"author_id": 18471,
"author_profile": "https://Stackoverflow.com/users/18471",
"pm_score": 4,
"selected": false,
"text": " select distinct c.TABLE_NAME \n from INFORMATION_SCHEMA.COLUMNS as c\n where c.DATA_TYPE = 'datetime'\n"
},
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,430 | <p>I want to implement a simple 2 part FormWizard.
Form 1 will by dynamically generated something like this:</p>
<pre><code>class BuyAppleForm(forms.Form):
creditcard = forms.ChoiceField(widget = forms.RadioSelect)
type = forms.ChoiceField(widget = forms.RadioSelect)
def __init__(self,*args, **kwargs):
... | [
{
"answer_id": 358556,
"author": "Krystian Cybulski",
"author_id": 45226,
"author_profile": "https://Stackoverflow.com/users/45226",
"pm_score": 1,
"selected": true,
"text": "buy_apples"
},
{
"answer_id": 4858044,
"author": "Zak Patterson",
"author_id": 597745,
"autho... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45226/"
] |
358,443 | <p>I'm trying to get some WPF concepts down, so I've put together a simple example of what I'm trying to do. I would like to set a custom property of a user control, and have it be used by an element within the control.</p>
<p>I've been researching and experimenting, but I'm not fully understanding everything here. An... | [
{
"answer_id": 358458,
"author": "bendewey",
"author_id": 37881,
"author_profile": "https://Stackoverflow.com/users/37881",
"pm_score": 0,
"selected": false,
"text": "<Ellipse app:CircleInSquare.CircleColor=\"Blue\" />\n"
},
{
"answer_id": 358535,
"author": "Jobi Joy",
"a... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/641985/"
] |
358,449 | <p>When using ASP.NET protected configuration, how can I encrypt the config with just the public key?</p>
<p>I can export a public key file. I would like to then use this public key to encrypt the configuration files on another server for later deployment. However, I can't figure out how to get aspnet_regiis to use ... | [
{
"answer_id": 358458,
"author": "bendewey",
"author_id": 37881,
"author_profile": "https://Stackoverflow.com/users/37881",
"pm_score": 0,
"selected": false,
"text": "<Ellipse app:CircleInSquare.CircleColor=\"Blue\" />\n"
},
{
"answer_id": 358535,
"author": "Jobi Joy",
"a... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24954/"
] |
358,457 | <p>I think I shall reframe my question from </p>
<p>Where should you use BlockingQueue Implementations instead of Simple Queue Implementations ?</p>
<p>to </p>
<p><strong>What are the advantages/disadvantages of BlockingQueue over Queue implementations taking into consideration aspects like speed,concurrency or othe... | [
{
"answer_id": 358464,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 2,
"selected": false,
"text": "BlockingQueue"
},
{
"answer_id": 358558,
"author": "erickson",
"author_id": 3474,
"author_profile"... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45232/"
] |
358,471 | <p>I am writing a program that requires the use of XMODEM to transfer data from a sensor device. I'd like to avoid having to write my own XMODEM code, so I was wondering if anyone knew if there was a python XMODEM module available anywhere?</p>
| [
{
"answer_id": 705300,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "def xmodem_send(serial, file):\nt, anim = 0, '|/-\\\\'\nserial.setTimeout(1)\nwhile 1:\n if serial.read(1) != NAK:\n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,495 | <p>I have designing the TabMenu Like following</p>
<pre><code><script type="text/javascript">
$(function() {
$('#container-1').tabs();
$('#container-2').tabs();
}
</script>
.....
<div id="container-1">
<ul>
<li><a href="#fragment-1"><span id="start"&g... | [
{
"answer_id": 358508,
"author": "ChadT",
"author_id": 23300,
"author_profile": "https://Stackoverflow.com/users/23300",
"pm_score": 1,
"selected": false,
"text": "<li><a href=\"#fragment-1\"><span id=\"end\">Last</span></a></li>\n"
},
{
"answer_id": 359486,
"author": "Manik"... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
358,500 | <p>I want to select a blob col from one table, base64 encode it and insert it into another tables. Is there any way to do this without round tripping the data out of the DB and through my app?</p>
| [
{
"answer_id": 7088614,
"author": "lepe",
"author_id": 196507,
"author_profile": "https://Stackoverflow.com/users/196507",
"pm_score": 3,
"selected": false,
"text": "sys_eval(CONCAT(\"echo '\",myField,\"' | base64\"));\n"
},
{
"answer_id": 12138609,
"author": "WOLFF",
"au... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1343/"
] |
358,501 | <p>I'm trying to add a custom font as a resource in my application.
I have a "CustomFont" directory in the application and all the fonts inside of it are set to "Resource"</p>
<pre><code><Window.Resources>
<Style x:Key="Gotham-XLight">
<Setter Property="TextElement.FontFamily"
... | [
{
"answer_id": 358511,
"author": "joshperry",
"author_id": 30587,
"author_profile": "https://Stackoverflow.com/users/30587",
"pm_score": 3,
"selected": false,
"text": "<Window.Resources>\n <Style x:Key=\"Gotham-XLight\">\n <Setter Property=\"TextElement.FontFamily\" Value=\"Cus... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22451/"
] |
358,533 | <p>I am curious to learn <a href="http://www.boost.org/" rel="noreferrer">Boost</a>. But I wanted to ask:</p>
<ul>
<li>How important is it to make the effort to learn Boost?</li>
<li>What prerequisites should one have before jumping on Boost?</li>
</ul>
<p>Why I am curious to know about Boost is that many people are ... | [
{
"answer_id": 358691,
"author": "Anteru",
"author_id": 39912,
"author_profile": "https://Stackoverflow.com/users/39912",
"pm_score": 2,
"selected": false,
"text": "shared_ptr"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38038/"
] |
358,538 | <p>I'm trying to develop an application that will use getImageData in javascript in Firefox 3, but I am getting a "<code>NS_ERROR_DOM_SECURITY_ERR</code>" on the getImageData call. The javascript and the image are both currently being served from by hard drive, which is apparently a security violation? When this is liv... | [
{
"answer_id": 366493,
"author": "Justin Love",
"author_id": 30203,
"author_profile": "https://Stackoverflow.com/users/30203",
"pm_score": 3,
"selected": false,
"text": " var data;\n try {\n try {\n data = context.getImageData(sx, sy, sw, sh).data;\n } catch (e) {\n net... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2652/"
] |
358,542 | <p>How to find fifth highest salary in a single query in SQL Server</p>
| [
{
"answer_id": 358547,
"author": "Jayden",
"author_id": 44873,
"author_profile": "https://Stackoverflow.com/users/44873",
"pm_score": 5,
"selected": false,
"text": "select\n *\nfrom\n(\n Select\n SalesOrderID, CustomerID, Row_Number() Over (Order By SalesOrderID) as RunningCount\n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45241/"
] |
358,546 | <p>Sorry, I thought this was an inheritance question: it was an ArrayList question all along!</p>
<p>Ok, my problem is more specific than I thought. So I have two families of classes. Cards, and Zones. Zones are boxes for holding card. </p>
<p>The first two subClasses of Zone, ZoneList and ZoneMap are meant to be two... | [
{
"answer_id": 358579,
"author": "Scanningcrew",
"author_id": 45219,
"author_profile": "https://Stackoverflow.com/users/45219",
"pm_score": 1,
"selected": false,
"text": "Zonelist"
},
{
"answer_id": 358610,
"author": "Marc Novakowski",
"author_id": 27020,
"author_prof... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29182/"
] |
358,601 | <p>There are 2 radiobutton and a hyperlink.
if select 'radiobutton1' the hyperlink is enabled.
if select 'radiobutton2' the hyperlink is disabled.
i can use jquery to disable the hyperlink, but can't enable it.
How to enable the hyperlink with jquery?</p>
| [
{
"answer_id": 358665,
"author": "seanb",
"author_id": 3354,
"author_profile": "https://Stackoverflow.com/users/3354",
"pm_score": 2,
"selected": false,
"text": "$(\"#hyperlink1\").click(function(){ \n // return true or false based on your radio buttons \n ret... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,603 | <p>I have a problem I have got stuck on. </p>
<p>I want to export my Access table to an Excel file. Currently, I do that using <code>DoCmd.TransferSpreadsheet</code>, but I want some kind of formatting to be done on the exported data. Can I format that data I am sending to Excel or do I have to write a macro in Excel ... | [
{
"answer_id": 358935,
"author": "Berzerk",
"author_id": 37599,
"author_profile": "https://Stackoverflow.com/users/37599",
"pm_score": 2,
"selected": false,
"text": "Sub Makro1()\n''\nConst sDB = \"c:\\db1.mdb\"\nConst sSQL = \"SELECT * FROM Table1\"\n\n With ActiveSheet.QueryTables.A... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,609 | <p>I am developing a Tool in vb.net and need find out Activex Controls from MS Access DB forms. I am able to conut number of controls in form, but unable to get the Activex Controls only from the form. Can any one have any idea how to achieve this, please suggest. </p>
| [
{
"answer_id": 359240,
"author": "Gary Kindel",
"author_id": 44597,
"author_profile": "https://Stackoverflow.com/users/44597",
"pm_score": 0,
"selected": false,
"text": "Dim oAccess As Access.Application\n\n' Start a new instance of Access for Automation:\noAccess = New Access.Applicatio... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45255/"
] |
358,617 | <p>How can I create a file dsn for connecting to an AS400 system using the iSeries ODBC driver?</p>
<p>The iSeries ODBC driver allows many settings to be configured. Where can I find a list of all properties that can be set in the file DSN?</p>
| [
{
"answer_id": 358628,
"author": "Gustavo Rubio",
"author_id": 14533,
"author_profile": "https://Stackoverflow.com/users/14533",
"pm_score": 2,
"selected": false,
"text": "[ODBC]\nDRIVER=iSeries Access ODBC Driver\nSystem=server;\nUid=user;\nPwd=password;\nInitial Catalog=library;\n"
}... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,645 | <p>In IIS7 for Vista, you can select your machine and it gives you several options in which you can use to configure your system. Where is this file stored at? It seems like there's a big master.config file which stores all my settings like the "Connection Strings" which are inherited by the webpages. </p>
<p>Suppo... | [
{
"answer_id": 358653,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\CONFIG"
},
{
"answer_id": 358664,
"author": "VonC",
"a... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
358,654 | <p>I need to specify path to dlls referenced by assembly in .config file.
Problem is that path can be found in env. variable.
Is it possible to use some sort of %DLLPATH% macro in .config file?</p>
| [
{
"answer_id": 358678,
"author": "Prensen",
"author_id": 43633,
"author_profile": "https://Stackoverflow.com/users/43633",
"pm_score": 5,
"selected": false,
"text": "<configuration>\n <appSettings>\n <add key=\"mypath\" value=\"%DLLPATH%\\foo\\bar\"/>\n </appSettings>\n</configurati... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35425/"
] |
358,663 | <p>this question can create a misunderstanding: I know I have to use CSS to validate successfully my document as XHTML 1.0 Transitional. The fact is that I have to embed in my webpage a picture composed by zeros and ones created with <a href="http://www.text-image.com/index.html" rel="noreferrer" title="text image">tex... | [
{
"answer_id": 358667,
"author": "Ryan Doherty",
"author_id": 956,
"author_profile": "https://Stackoverflow.com/users/956",
"pm_score": 6,
"selected": true,
"text": "<font color=\"#000000\">0001100000101101100011</font>"
},
{
"answer_id": 358703,
"author": "BraveSirFoobar",
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41977/"
] |
358,681 | <p>I'm trying to generate my models from a schema.xml file on OSX 10.5 with the latest versions of PHP & Propel 1.3 & Phing. All the model classes actually get created, then it just dies, right at the last step. I have already tried </p>
<blockquote>
<p>chmod -R 777 ./application/config</p>
</blockquote>
<p... | [
{
"answer_id": 360603,
"author": "lo_fye",
"author_id": 3407,
"author_profile": "https://Stackoverflow.com/users/3407",
"pm_score": 2,
"selected": true,
"text": "<datasource id=\"models\"> <!-- this ID must match <database name=\"\"> in schema.xml -->\n"
},
{
"answer_id": 3248287... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3407/"
] |
358,687 | <p>I currently have a database that is 20GB in size.
I've run a few scripts which show on each tables size (and other incredibly useful information such as index stuff) and the biggest table is 1.1 million records which takes up 150MB of data. We have less than 50 tables most of which take up less than 1MB of data.</p>... | [
{
"answer_id": 358707,
"author": "Bernhard Hofmann",
"author_id": 39722,
"author_profile": "https://Stackoverflow.com/users/39722",
"pm_score": 1,
"selected": false,
"text": "DECLARE @DbName NVARCHAR(128)\nSET @DbName = DB_NAME(DB_ID())\nDBCC UPDATEUSAGE(@DbName)\n"
},
{
"answer_... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18217/"
] |
358,700 | <p>I have 3 projects in my VS solution. One of them is a Web app, the second one is a Windows Service and the last one a Setup project for my Web app. </p>
<p>What I want is by the end of the installation of the web app in my setup project, within my custom action to try and install my windows service given that I hav... | [
{
"answer_id": 358704,
"author": "lakshmanaraj",
"author_id": 44541,
"author_profile": "https://Stackoverflow.com/users/44541",
"pm_score": 5,
"selected": false,
"text": "System.Configuration.Install"
},
{
"answer_id": 637728,
"author": "Konstantinos",
"author_id": 17443,... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17443/"
] |
358,714 | <p>I know that in C#, if you write <code>~MyClass()</code>, this basically translates to <code>override System.Object.Finalize()</code>. So, whether you write the <em>destructor</em> or not, every type in CLR will have a <code>Finalize()</code> method in it (of <code>System.Object</code> at least).</p>
<p>1] So, does ... | [
{
"answer_id": 358715,
"author": "mmx",
"author_id": 33708,
"author_profile": "https://Stackoverflow.com/users/33708",
"pm_score": 0,
"selected": false,
"text": "Finalize()"
},
{
"answer_id": 358716,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https:... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42913/"
] |
358,718 | <p>I have a fairly expensive array calculation (SpectralResponse) which I like to keep to a minimum. I figured the best way is to store them and bring it back up when same array is needed again in the future. The decision is made using BasicParameters.</p>
<p>So right now, I use a LinkedList of object for the arrays o... | [
{
"answer_id": 376220,
"author": "Nicholas White",
"author_id": 42543,
"author_profile": "https://Stackoverflow.com/users/42543",
"pm_score": 0,
"selected": false,
"text": "if (responseNumbers.get(i) == responseNum)"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9774/"
] |
358,721 | <p>I have a scenario when I start 3..10 threads with ThreadPool.
Each thread does its job and returns to the ThreadPool.
What are possible options to be notified in main thread when all background threads have finished?</p>
<p>Currently I'm using a homegrown method with incrementing a variable for each of created thre... | [
{
"answer_id": 358733,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "Interlocked.Decrement"
},
{
"answer_id": 358879,
"author": "DonkeyMaster",
"author_id": 5178,
"aut... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/430254/"
] |
358,730 | <p>I have a jsp page with two radio tags. </p>
<p>The page contains a struts2 form. When I submit the form one of two radio must be automatically checked.</p>
<p>Is it possible to do that?</p>
| [
{
"answer_id": 358749,
"author": "annakata",
"author_id": 13018,
"author_profile": "https://Stackoverflow.com/users/13018",
"pm_score": 3,
"selected": true,
"text": "checked=\"checked\""
},
{
"answer_id": 358750,
"author": "VonC",
"author_id": 6309,
"author_profile": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39339/"
] |
358,760 | <p>I am implementing a database design that has a vehicle table, vehicle engine and vehicle gear table with SQL 2005.</p>
<p>Each table has an ID that is a SQL identity number, and each engine and gear has a relation with the vehicle ID.
So before I create a vehicle I must create an engine and gear.</p>
<p>How could ... | [
{
"answer_id": 358863,
"author": "Carl",
"author_id": 2136,
"author_profile": "https://Stackoverflow.com/users/2136",
"pm_score": 0,
"selected": false,
"text": "CREATE VIEW VehicleComplete AS SELECT * FROM Vehicle INNER JOIN VehicleEngine USING(VehicleID)\n\nUPDATE VehicleComplete SET Re... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38963/"
] |
358,764 | <p>I need to exclude files with the following pattern:</p>
<p>ProjectFoo.Data[0-9]{14}.lgp</p>
<p>How can I use RegEx for (Visual)SVN ignore list?</p>
| [
{
"answer_id": 358928,
"author": "Bert Huijben",
"author_id": 2094,
"author_profile": "https://Stackoverflow.com/users/2094",
"pm_score": 4,
"selected": true,
"text": "ProjectFoo.Data[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].lgp\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2104/"
] |
358,772 | <p>With Symfony's Action Security if a user has not been identified he will be forwarded to the default login action as defined in the applications settings.yml file. How would I forward the user to the originally requested action after the user is successfully authenticated?</p>
| [
{
"answer_id": 364228,
"author": "deresh",
"author_id": 11851,
"author_profile": "https://Stackoverflow.com/users/11851",
"pm_score": 4,
"selected": true,
"text": "if(!$this->getUser()->hasParameter('referer'))\n{\n $this->getUser()->setParameter('referer',$this->getRequest()->getRefere... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/200521/"
] |
358,780 | <p>I have a method, which will accept a parameter of a JQuery Object and will calculate totals for a section. So if you give it a JQuery Object of a div containing the section it will calculate a total for it</p>
<p>so you can do this:</p>
<p>var $totalcompletion = CalculateSectionCompletion(jQuery("#Section1"));</p>... | [
{
"answer_id": 358806,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 3,
"selected": true,
"text": "jQuery(\"div.SectionContainer\").each( function(i, valueOfElement){\n CalculateSectionCompletion($(valueOfElement));\n});\n"... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45279/"
] |
358,783 | <p>I have a script which uses pexpect to start a CLI program. It works a bit like a shell where you get a prompt where you can enter some commands.</p>
<p>The problem I have, I think, is that this program uses a coloured prompt.</p>
<p>This is what I do </p>
<pre><code>import pprint
import pexpect
1 a = pexpect.spa... | [
{
"answer_id": 358794,
"author": "csl",
"author_id": 21028,
"author_profile": "https://Stackoverflow.com/users/21028",
"pm_score": 2,
"selected": false,
"text": "shell_cmd = 'ls -l | grep LOG > log_list.txt'\nchild = pexpect.spawn('/bin/bash', ['-c', shell_cmd])\nchild.expect(pexpect.EOF... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358783",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12126/"
] |
358,786 | <p>What are the patterns and dos and don'ts when one is writing tests for <a href="http://javolution.org/" rel="nofollow noreferrer">Javolution</a> tests? In particular I was wondering:</p>
<ul>
<li>TestCase.execute() does not allow throwing of exceptions. How to deal with them? Rethrow as RuntimeException or store in... | [
{
"answer_id": 385911,
"author": "Hans-Peter Störr",
"author_id": 21499,
"author_profile": "https://Stackoverflow.com/users/21499",
"pm_score": 0,
"selected": false,
"text": "protected final javolution.testing.TestCase test;\n\npublic JavolutionJUnit4Adapter(javolution.testing.TestCase t... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21499/"
] |
358,788 | <p>I've problem with sending HTML mails with <a href="http://phpmailer.worxware.com/index.php?pg=phpmailer" rel="nofollow noreferrer">PHPMailer</a>. I make a <a href="http://en.wikipedia.org/wiki/Smarty" rel="nofollow noreferrer">Smarty</a> template and I got all the HTML code from it. But when I send mail, I got the m... | [
{
"answer_id": 2209829,
"author": "useless",
"author_id": 267351,
"author_profile": "https://Stackoverflow.com/users/267351",
"pm_score": 3,
"selected": false,
"text": " $body = <<< YOUR_HTML_WITH_CSS_STYLE_TAGS\n<html>\n<head>\n <style>\n body * {width:1px;}\n #adiv ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/461736/"
] |
358,789 | <p>We are having a problem where IE6 (the only browser we have noticed this happening on) seems to be caching an empty version of our main stylesheet. The only way to resolve the problem is to request the stylesheet directly by typing the its url directly into the browser, and then when you refresh the page, it will a... | [
{
"answer_id": 360240,
"author": "Grant Wagner",
"author_id": 9254,
"author_profile": "https://Stackoverflow.com/users/9254",
"pm_score": 1,
"selected": false,
"text": "Content-type"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,791 | <pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="Stylesheet.css" rel="stylesheet" type... | [
{
"answer_id": 358811,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 1,
"selected": false,
"text": "<div>"
},
{
"answer_id": 453478,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stack... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,792 | <p>I'm writing a DLL which talks to Excel via its IDispatch interface. From VBA I pass in a Variant containing <code>Application.Caller</code> from which I draw the IDispatch pointer via <code>.pDispVal</code>. </p>
<p>What I'd like to know is how to query the interface via that IDispatch pointer. I want to set up a c... | [
{
"answer_id": 358811,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 1,
"selected": false,
"text": "<div>"
},
{
"answer_id": 453478,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stack... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358792",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/426/"
] |
358,793 | <p>I am looking for a specific desgin pattern.</p>
<p>For example i have an article class, clsArticle. This class contains member variables like Id, title, author, article, and so on. Imagine i want to show all the articles in a list. So somewhere i have to create a method getAllArticles(). Since clsArticle is not res... | [
{
"answer_id": 358817,
"author": "OscarRyz",
"author_id": 20654,
"author_profile": "https://Stackoverflow.com/users/20654",
"pm_score": 3,
"selected": true,
"text": "ArticleFactory.getAll(): Article[]\n"
},
{
"answer_id": 358858,
"author": "Claymore",
"author_id": 7510,
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40676/"
] |
358,797 | <p>I am working on an application where i need to transfer mails from a mailbox to anoter one.I can not send these mails using smtp because this willchange the header information .I am using C# and out look api to process mails . is thre any way i can transfer mails to other mail box without changing mail header.</p>... | [
{
"answer_id": 360354,
"author": "Oliver Giesen",
"author_id": 9784,
"author_profile": "https://Stackoverflow.com/users/9784",
"pm_score": 0,
"selected": false,
"text": "MailItem.Move"
},
{
"answer_id": 374136,
"author": "Kapil",
"author_id": 45280,
"author_profile": ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45280/"
] |
358,802 | <p>In our project I have several <a href="http://www.junit.org/" rel="noreferrer">JUnit</a> tests that e.g. take every file from a directory and run a test on it. If I implement a <code>testEveryFileInDirectory</code> method in the <code>TestCase</code> this shows up as only one test that may fail or succeed. But I am ... | [
{
"answer_id": 358884,
"author": "Michael Borgwardt",
"author_id": 16883,
"author_profile": "https://Stackoverflow.com/users/16883",
"pm_score": 2,
"selected": false,
"text": "TestSuite"
},
{
"answer_id": 358926,
"author": "bruno conde",
"author_id": 31136,
"author_pr... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21499/"
] |
358,821 | <p>I've just started to use linq to sql and have run into a problem with inserting a record with an auto incrementing field.</p>
<p>I have created a new instance of a company object defined by linq. it has initialised an auto incrementing field 'companyID' to 0.
InsertOnSubmit() fails with the following invalidOperati... | [
{
"answer_id": 4000204,
"author": "ingamx",
"author_id": 484589,
"author_profile": "https://Stackoverflow.com/users/484589",
"pm_score": 2,
"selected": false,
"text": "\"OnInsert\""
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18966/"
] |
358,826 | <p>I've been trying to fix this for two hours straight and I can't figure it out.</p>
<pre><code>onclick = "location='exceltest.asp?vanjaar=<%=vanjaar%>&vanmaand=<%=vanmaand%>&vandag=<%=vandag%>&totjaar=<%=totjaar%>&totmaand=<%=totmaand%>&totdag=<%=totdag%>'"
</c... | [
{
"answer_id": 358853,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 2,
"selected": false,
"text": "&"
},
{
"answer_id": 358861,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https:... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42389/"
] |
358,834 | <p>If I want to create a .NET object in the powershell I write something like the following:</p>
<pre><code>[System.Reflection.Assembly]::LoadWithPartialName("System.Xml") | out-null"
$doc = new-object -typename System.Xml.XmlDocument"
</code></pre>
<p>If I want to call a static .Net method I use a command similar to... | [
{
"answer_id": 358919,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 2,
"selected": false,
"text": "// type \"Assembly\" in the \"System.Reflection\" namespace\n[System.Reflection.Assembly] \n\n// member method \"LoadWithP... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
358,835 | <p>Assuming the following hypothetical inheritance hierarchy:</p>
<pre><code>public interface IA
{
int ID { get; set; }
}
public interface IB : IA
{
string Name { get; set; }
}
</code></pre>
<p>Using reflection and making the following call: </p>
<pre><code>typeof(IB).GetProperties(BindingFlags.Public | Binding... | [
{
"answer_id": 358857,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": false,
"text": "interface ILow { void Low();}\ninterface IFoo : ILow { void Foo();}\ninterface IBar { void Bar();}\ninterface ITest :... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31770/"
] |
358,874 | <p>I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip.</p>
<p>To add the tip I'm using the <code>title</code> attribute. I've looked around the usual sites and using the basic tem... | [
{
"answer_id": 358880,
"author": "Stefan Mai",
"author_id": 13257,
"author_profile": "https://Stackoverflow.com/users/13257",
"pm_score": 7,
"selected": false,
"text": " "
},
{
"answer_id": 358885,
"author": "Greg Dean",
"author_id": 1200558,
"author_profile": "ht... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358874",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32027/"
] |
358,891 | <p>I want another developer to run a Perl script I have written. The script uses many CPAN modules that have to be installed before the script can be run. Is it possible to make the script (or the <code>perl</code> binary) to dump a list of all the missing modules? Perl prints out the missing modules’ names when I atte... | [
{
"answer_id": 358959,
"author": "innaM",
"author_id": 7498,
"author_profile": "https://Stackoverflow.com/users/7498",
"pm_score": 5,
"selected": true,
"text": "%INC"
},
{
"answer_id": 360423,
"author": "brian d foy",
"author_id": 2766176,
"author_profile": "https://S... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17279/"
] |
358,894 | <p>I am wondering if Unittesting and using statements can really go hand in hand as there is no way to mock the disposable object instantiated in the using statement. How would I be able to effectively unittest a method containing the following using statement?</p>
<pre>
public void MyMethod()
{
using(MyDisposableC... | [
{
"answer_id": 359013,
"author": "Gishu",
"author_id": 1695,
"author_profile": "https://Stackoverflow.com/users/1695",
"pm_score": 2,
"selected": false,
"text": "interface IResource : IDisposable\n{\n void DoSomething();\n}\n\nclass DisposableResource : IResource\n{\n public vo... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32313/"
] |
358,912 | <p>I have a string. I need to replace all instances of a given array of strings from this original string - how would I do that?</p>
<p>Currently I am using...</p>
<pre><code>var inputString = "this is my original string.";
var replacement = "";
var pattern = string.Join("|", arrayOfStringsToRemove);
Regex.Replace(i... | [
{
"answer_id": 358917,
"author": "adam",
"author_id": 33604,
"author_profile": "https://Stackoverflow.com/users/33604",
"pm_score": 0,
"selected": false,
"text": "\\\n"
},
{
"answer_id": 358923,
"author": "muhuk",
"author_id": 42188,
"author_profile": "https://Stackov... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39561/"
] |
358,927 | <p>I have a table called ApprovalTasks... Approvals has a status column</p>
<p>I also have a view called ApprovalsView</p>
<p>When I try a straight update :</p>
<pre><code>update ApprovalTasks set Status = 2 where ApprovalTaskID = 48
</code></pre>
<p>I'm getting this error message: </p>
<pre><code>Msg 2601, Level ... | [
{
"answer_id": 358962,
"author": "Nick Kavadias",
"author_id": 40067,
"author_profile": "https://Stackoverflow.com/users/40067",
"pm_score": 3,
"selected": true,
"text": "DISABLE TRIGGER ALL ON ApprovalTasks"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41291/"
] |
358,931 | <p>I need to copy a text from a textbox into the clipboard with ASP.NET. I want a code that is comparable with Mozilla Firefox and IE.</p>
| [
{
"answer_id": 358955,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 3,
"selected": true,
"text": "// set the clipboard\nvar x = 'Whatever you want on the clipboard';\nwindow.clipboardData.setData('Text',x);\n\n// get the cl... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
358,934 | <pre><code>include("conn.php");
$result = mysql_query("SELECT * FROM sggame");
while($row = mysql_fetch_assoc($result));
{
$id = $row['id'];
echo $id;
echo 'working?';
}
</code></pre>
<p>The above code simply doesn't return anything out of the db. The row name is correct and the loop runs, showing that th... | [
{
"answer_id": 358943,
"author": "Aron Rotteveel",
"author_id": 11568,
"author_profile": "https://Stackoverflow.com/users/11568",
"pm_score": 3,
"selected": true,
"text": "while($row = mysql_fetch_assoc($result));\n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31677/"
] |
358,949 | <p>I am looking in to ways to enable a site to basically have something like:</p>
<p><a href="http://mysite.com/" rel="nofollow noreferrer">http://mysite.com/</a><strong>en-US</strong>/index.aspx`</p>
<p>Where the "en-US" can vary by culture..</p>
<p>This culture in the URL will then basically set the <code>CurrentU... | [
{
"answer_id": 359024,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 1,
"selected": false,
"text": "Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)\n ' Code that runs on application startup\n ... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
358,951 | <p>I have a solution that contains a good deal of projects, </p>
<p>I would like to remove the source control bindings completely, how can I do this?</p>
<p><strong>Update:</strong>
What I really want to do is move one solution and its projects from TFS 2005 -> 2008. Thats why I am removing the bindings, is there a b... | [
{
"answer_id": 6137843,
"author": "Matt Frear",
"author_id": 32598,
"author_profile": "https://Stackoverflow.com/users/32598",
"pm_score": 7,
"selected": false,
"text": "\"Go Offline\n\nThe Team Foundation Server http://some-other-guys-tfs-server/ \nis currently unavailable.\n\nThe solut... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41291/"
] |
358,952 | <p>This one is weird,</p>
<p><a href="http://www.pickledegg.orchardhostings6.co.uk/bug/wp-test.php" rel="nofollow noreferrer">I have a page that consists of a html table in a div called 'rates-viewer'</a>. If you load this page in IE (6 or 7), you will notice that the contents of the table headers is misaligned over t... | [
{
"answer_id": 6137843,
"author": "Matt Frear",
"author_id": 32598,
"author_profile": "https://Stackoverflow.com/users/32598",
"pm_score": 7,
"selected": false,
"text": "\"Go Offline\n\nThe Team Foundation Server http://some-other-guys-tfs-server/ \nis currently unavailable.\n\nThe solut... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
358,972 | <p>I'm creating a xml-file for display in Excel using _di_IXMLDocument. But for some tags I get an unwanted extra (empty) xmlns attribute witch makes the file unreadable for Excel...
This is what i do:</p>
<pre><code>...
_di_IXMLNode worksheet = workbook->AddChild("Worksheet");
worksheet->SetAttribute("s... | [
{
"answer_id": 359279,
"author": "c0m4",
"author_id": 2079,
"author_profile": "https://Stackoverflow.com/users/2079",
"pm_score": 1,
"selected": true,
"text": "_di_IXMLNode worksheet = workbook->AddChild(\"Worksheet\",\"workbooks-namespace\",false);\nworksheet->SetAttribute(\"ss:Name\",N... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2079/"
] |
358,973 | <p>In a simple dialog app, using designer, I've set up the usual shortcut keys for cut, copy, paste and delete in the edit menu.</p>
<p>My problem is that I only want to handle delete events when a certain tree control is in focus. Otherwise, in my datagrid control for example, I want delete to work as usual.</p>
<p>... | [
{
"answer_id": 359075,
"author": "Wolf5",
"author_id": 37643,
"author_profile": "https://Stackoverflow.com/users/37643",
"pm_score": 3,
"selected": true,
"text": "keycombination"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/358973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11828/"
] |
358,974 | <p>Is there a way to add an attribute to an xml node (which I have the xpath of) using nant?
Tried xmlpoke but it looks like it can only update existing attributes.</p>
<p>thanks.</p>
| [
{
"answer_id": 3982825,
"author": "Christopher Stott",
"author_id": 134595,
"author_profile": "https://Stackoverflow.com/users/134595",
"pm_score": 2,
"selected": false,
"text": "<script language=\"C#\" prefix=\"test\" >\n <references>\n <include name=\"System.Xml.dll\"... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19956/"
] |
358,999 | <p>I need to retrieve the Build Status from TeamCity in the form of XML, RSS format would be ideal.</p>
<p>I am familiar with the RSS feed within Teamcity but that is of no use as it is more of a history view. I am looking for something more like the page generated by the Status Widget but in XML form. (FYI, the statu... | [
{
"answer_id": 4600764,
"author": "brasskazoo",
"author_id": 6340,
"author_profile": "https://Stackoverflow.com/users/6340",
"pm_score": 3,
"selected": true,
"text": "Syndication Feed"
},
{
"answer_id": 26777420,
"author": "Alfons",
"author_id": 2771739,
"author_profi... | 2008/12/11 | [
"https://Stackoverflow.com/questions/358999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20406/"
] |
359,029 | <p>I'm having an extremely weird problem with a PHP script of mine.</p>
<p>I'm uploading a couple of files and having PHP put them all in one folder.
I've have trouble with random files being sent and random ones not being sent. So I debugged it and I got a very weird result from the $_FILES[] array.</p>
<p>I tried i... | [
{
"answer_id": 359056,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 1,
"selected": false,
"text": "if (!empty($_FILES['addFile']) && is_array($_FILES['addFile']['name'])) {\n $length = count($_FILES['addFile']['n... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11795/"
] |
359,031 | <p>Following are the PHP code lines which I am using to open a PDF file:</p>
<pre><code>$pdf_generartor = new PDFlib();
$doc = $pdf_generartor -> open_pdi_document("Report.pdf", "") or die ("ERROR: " . $pdf_generartor -> get_errmsg());
</code></pre>
<p>Though the file is at required location, every time I rece... | [
{
"answer_id": 359049,
"author": "benlumley",
"author_id": 39161,
"author_profile": "https://Stackoverflow.com/users/39161",
"pm_score": 1,
"selected": false,
"text": "echo realpath('Report.pdf');\n"
},
{
"answer_id": 385589,
"author": "Anil",
"author_id": 45284,
"aut... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6561/"
] |
359,036 | <p>My program run fine from anywhere else on my drive apart from the Program Files directory (windows XP), I am logged on as administrator so I have full permissions to the drive. It runs fine from the root of c: the windows directory basically anywhere else apart from Program Files. I have recreated this problem on 4 ... | [
{
"answer_id": 359066,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 2,
"selected": false,
"text": "LogDebug('before 1');\nStatement1;\nLogDebug('before 2');\nStatement2;\nLogDebug('before 3');\nStatement3;\nLogDebug(... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,041 | <p>I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too. I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is). I need to do this because we want to perform the initial request ... | [
{
"answer_id": 359299,
"author": "Xetius",
"author_id": 274,
"author_profile": "https://Stackoverflow.com/users/274",
"pm_score": 4,
"selected": true,
"text": "string getString = \"GET /path/mypage.htm HTTP/1.1\\r\\nHost: www.mysite.mobi\\r\\nConnection: Close\\r\\n\\r\\n\";\nEncoding AS... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/274/"
] |
359,043 | <p>I'm writing code to generate character-based pagination. I have articles in my site that I want to split up based on length.</p>
<p>The code I have so far is working albeit two issues:</p>
<ol>
<li>It's splitting pages in the middle of words and HTML tags; I want it to
only split after a complete word, tag, or a p... | [
{
"answer_id": 359062,
"author": "benlumley",
"author_id": 39161,
"author_profile": "https://Stackoverflow.com/users/39161",
"pm_score": 0,
"selected": false,
"text": "$NoOfPages = round((double)$ArticleLength / (double)$CharsPerPage);\n"
},
{
"answer_id": 359067,
"author": "... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,047 | <p>How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?</p>
| [
{
"answer_id": 359050,
"author": "gnud",
"author_id": 27204,
"author_profile": "https://Stackoverflow.com/users/27204",
"pm_score": 12,
"selected": true,
"text": "$_SERVER['REQUEST_METHOD']\n"
},
{
"answer_id": 897311,
"author": "neu242",
"author_id": 13365,
"author_p... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
359,052 | <p>I need to send PUT and DELETE along with POST, GET to a REST API how can I do it?</p>
| [
{
"answer_id": 360112,
"author": "skamradt",
"author_id": 9217,
"author_profile": "https://Stackoverflow.com/users/9217",
"pm_score": 2,
"selected": false,
"text": "function HttpPutBinary(const URL: string; const Data: TStream): Boolean;\nvar\n HTTP: THTTPSend;\nbegin\n HTTP := THTTPSe... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/115/"
] |
359,087 | <p>If i do jQuery(expr).change( function), then I can get an event function to fire when the user makes a change to the value.</p>
<p>Is it possible to get this to fire if it's changed programatically, ie if I call jQuery(expr).val("moo").</p>
<p>or if some Plain old JavaScript changes it's value?</p>
<p>Thanks for ... | [
{
"answer_id": 359129,
"author": "Sander Versluys",
"author_id": 2172,
"author_profile": "https://Stackoverflow.com/users/2172",
"pm_score": 5,
"selected": true,
"text": "jQuery('#element').change();\n"
},
{
"answer_id": 359140,
"author": "Adam Bellaire",
"author_id": 216... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45279/"
] |
359,099 | <p>I'm trying to refactor a large, old project and one thing I've noticed is a range of different Iterator implementations:</p>
<pre><code>while($iterator->moveNext()) {
$item = $iterator->current();
// do something with $item;
}
for($iterator = getIterator(), $iterator->HasNext()) {
$item = $... | [
{
"answer_id": 359117,
"author": "Kent Fredric",
"author_id": 15614,
"author_profile": "https://Stackoverflow.com/users/15614",
"pm_score": 1,
"selected": false,
"text": "for( $object as $i => $v ) \n"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20074/"
] |
359,109 | <p>How can I set up GNU screen to allow the mouse's scrollwheel to scroll around in the scrollback buffer? I tried to Google about this, but most hits were on how to allow applications inside screen to use the scrollwheel.</p>
| [
{
"answer_id": 1125947,
"author": "Pistos",
"author_id": 28558,
"author_profile": "https://Stackoverflow.com/users/28558",
"pm_score": 10,
"selected": true,
"text": "~/.screenrc"
},
{
"answer_id": 3474732,
"author": "Tommi R.",
"author_id": 128698,
"author_profile": "... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13051/"
] |
359,120 | <p>for testing purposes i need an recursive directory with some files, that comes to maximum path-length.</p>
<p>The Script used for the creation consists only of two for-loops, as followed:</p>
<pre><code>for /L %%a in (1 1 255) do @(
mkdir %%a
&& cd %%a
&& for /L %%b in (1 1 %random%) do... | [
{
"answer_id": 359135,
"author": "Patrick Cuff",
"author_id": 7903,
"author_profile": "https://Stackoverflow.com/users/7903",
"pm_score": 2,
"selected": true,
"text": "@echo OFF\n\nfor /L %%a in (1 1 255) do (\n @echo a = %%a\n mkdir %%a\n cd %%a\n for /L %%b in (1 1 %random%... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359120",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44532/"
] |
359,122 | <p>I am looking at depency injection, I can see the benefits but I am having problems with the syntax it creates. I have this example</p>
<pre><code>public class BusinessProducts
{
IDataContext _dx;
BusinessProducts(IDataContext dx)
{
_dx = dx;
}
public List<Product> GetProducts()
{
... | [
{
"answer_id": 359146,
"author": "krosenvold",
"author_id": 23691,
"author_profile": "https://Stackoverflow.com/users/23691",
"pm_score": 2,
"selected": false,
"text": "new BusinessProducts(dataContextImplementation)\n"
},
{
"answer_id": 359189,
"author": "Szymon Rozga",
... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29519/"
] |
359,125 | <p>This is a fairly basic question, which for some reason, a proper solution escapes me at the moment. I am dealing with a 3rd-party SDK which declares the following structure:</p>
<pre><code>struct VstEvents
{
VstInt32 numEvents; ///< number of Events in array
VstIntPtr reserved; ///< zero (Reserved ... | [
{
"answer_id": 359136,
"author": "epatel",
"author_id": 842,
"author_profile": "https://Stackoverflow.com/users/842",
"pm_score": 2,
"selected": true,
"text": "struct VstEvents *evnts;\n\nevnts = (struct VstEvents*)malloc(sizeof(struct VstEvents) + \n num... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359125",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14302/"
] |
359,126 | <p>I'm using Crystal Reports 11 (and VB6) to open a report file, load the data from an Access database and either print the report to a printer or export the report to another .rpt file (for later printing without the database)</p>
<p>Even for small amounts of data the process is somewhat slow. Profiling showed about ... | [
{
"answer_id": 359136,
"author": "epatel",
"author_id": 842,
"author_profile": "https://Stackoverflow.com/users/842",
"pm_score": 2,
"selected": true,
"text": "struct VstEvents *evnts;\n\nevnts = (struct VstEvents*)malloc(sizeof(struct VstEvents) + \n num... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23368/"
] |
359,128 | <p>When a ComboBox is clicked this causes it to be selected in the window. Is there a way to perform the equivalent of a javascript blur()</p>
| [
{
"answer_id": 359158,
"author": "arul",
"author_id": 15409,
"author_profile": "https://Stackoverflow.com/users/15409",
"pm_score": 3,
"selected": true,
"text": "comboBox1.TopLevelControl.Focus();\n"
},
{
"answer_id": 6341225,
"author": "Roey",
"author_id": 314905,
"a... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359128",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32055/"
] |
359,147 | <p>Related to this question:
<a href="https://stackoverflow.com/questions/353207/url-characters-replacement-in-jsp-with-urlrewrite">URL characters replacement in JSP with UrlRewrite</a></p>
<p>I want to have masked URLs in this JSP Java EE web project.
For example if I had this:</p>
<pre><code>http://mysite.com/prod... | [
{
"answer_id": 359306,
"author": "Yuval",
"author_id": 2819,
"author_profile": "https://Stackoverflow.com/users/2819",
"pm_score": 1,
"selected": true,
"text": "http://mysite.com/product-Programming-Book"
},
{
"answer_id": 367745,
"author": "tegbains",
"author_id": 19419,... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359147",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1492/"
] |
359,206 | <p>I have seen these two approaches for constant declaration which are to be used in the project.</p>
<ol>
<li><p>Constants in a public module. </p></li>
<li><p>Constants in a NonInheritable(Sealed) class </p></li>
</ol>
<p>Does anybody uses any other approach for the constant declartion ?</p>
<p>Is there any differ... | [
{
"answer_id": 359215,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "Math.Pi"
}
] | 2008/12/11 | [
"https://Stackoverflow.com/questions/359206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41968/"
] |
359,213 | <p>On a Unix systems it's very easy to compile the CLASSPATH by using find:</p>
<pre><code>LIBDIR=`find lib/ -name \*.jar`
for DIR in $LIBDIR:
do
CLASSPATH="$CLASSPATH:$DIR"
done
java -classpath $CLASSPATH com.example.MyClass
</code></pre>
<p>What would be the aquivalent in a Windows batchfile?</p>
| [
{
"answer_id": 359242,
"author": "MrG",
"author_id": 33429,
"author_profile": "https://Stackoverflow.com/users/33429",
"pm_score": 3,
"selected": true,
"text": "setlocal ENABLEDELAYEDEXPANSION\nFOR /R .\\lib %%G IN (*.jar) DO set CLASSPATH=!CLASSPATH!;%%G\n\njava -classpath %CLASSPATH% c... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359213",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33429/"
] |
359,217 | <p>I have a WPF ListView which repeats the data vertically. I cannot figure out how to make it repeat horizontally, like the slideshow view in Windows Explorer. My current ListView definition is:</p>
<pre><code><ListView ItemsSource="{StaticResource MyDataList}" ItemTemplate="{StaticResource ListViewTemplate}">
... | [
{
"answer_id": 359418,
"author": "Boyan",
"author_id": 38106,
"author_profile": "https://Stackoverflow.com/users/38106",
"pm_score": 9,
"selected": true,
"text": "<ListView.ItemsPanel>\n <ItemsPanelTemplate>\n <StackPanel Orientation=\"Horizontal\"></StackPanel>\n </ItemsPan... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26221/"
] |
359,229 | <p>I am working on an application which draws a simple dot grid. I would like the mouse to snap between the points on the grid, eventually to draw lines on the grid.</p>
<p>I have a method which takes in the current mouse location (X,Y) and calculates the nearest grid coordinate.</p>
<p>When I create an event and att... | [
{
"answer_id": 359922,
"author": "user21826",
"author_id": 21826,
"author_profile": "https://Stackoverflow.com/users/21826",
"pm_score": 2,
"selected": true,
"text": "\nImports System\nImports System.Drawing\nImports System.Windows.Forms\n\nModule modSnap\n\n Public Const strApplicati... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,232 | <p>I'm using Windows XP Service Pack 3 and have Command Extensions enabled by default in the Windows Registry.
Somehow, the following command does not work on this version of Windows but if I run it in Windows Server 2003 or Windows Vista Business, it works just fine. Any clue?</p>
<p>The problem is that on Windows XP... | [
{
"answer_id": 359274,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 1,
"selected": false,
"text": "@echo off\nfor /f \"tokens=1 delims=: \" %%A in ('tasklist /FI \"IMAGENAME eq java.exe\" /NH') do (\n If \"%%A\" == \"java.e... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,237 | <p>This is a somewhat bizarre question. My objectives are to understand the language design decision and to identify the possibilities of reflection in C++.</p>
<ol>
<li><p>Why C++ language committee did not go towards implementing reflection in the language? Is reflection too difficult in a language that does not run... | [
{
"answer_id": 359462,
"author": "jalf",
"author_id": 33213,
"author_profile": "https://Stackoverflow.com/users/33213",
"pm_score": 10,
"selected": true,
"text": "#include"
},
{
"answer_id": 1411360,
"author": "Community",
"author_id": -1,
"author_profile": "https://S... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19501/"
] |
359,257 | <p>In SQL server 2005 this query</p>
<pre><code>select len(cast('the quick brown fox jumped over the lazy dog' as varchar))
</code></pre>
<p>returns 30 as length while the supplied string has more characters. This seems to be the default. Why 30, and not 32 or any other power of 2?</p>
<p><strong>[EDIT]</strong> I a... | [
{
"answer_id": 359289,
"author": "curtisk",
"author_id": 17651,
"author_profile": "https://Stackoverflow.com/users/17651",
"pm_score": 7,
"selected": true,
"text": "SELECT CAST('the quick brown fox jumped over the lazy dog' AS VARCHAR(45))\n"
},
{
"answer_id": 11529344,
"auth... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6399/"
] |
359,284 | <p>I have a method which prints out the order of a set of images. I need to submit this to a new php page.</p>
<p>I have a form which currently prints out the order to the same page.</p>
<pre><code><form action="mainpage.php" method="post">
<div style="clear:both;padding-bottom:10px">
<input type=... | [
{
"answer_id": 359305,
"author": "jumoel",
"author_id": 1555170,
"author_profile": "https://Stackoverflow.com/users/1555170",
"pm_score": 2,
"selected": false,
"text": "document.formname.submit();\n"
},
{
"answer_id": 359338,
"author": "smoothdeveloper",
"author_id": 1704... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
359,287 | <p>I am writing an <a href="http://www.eclipse.com" rel="nofollow noreferrer">Eclipse</a> plug-in that loads resources from a central database. I would like to use <a href="http://www.hibernate.org" rel="nofollow noreferrer">Hibernate</a> to access that database. </p>
<p>So how would I add this as a dependency to my p... | [
{
"answer_id": 359676,
"author": "Mario Ortegón",
"author_id": 2309,
"author_profile": "https://Stackoverflow.com/users/2309",
"pm_score": 1,
"selected": false,
"text": "Manifest-Version: 1.0\nBundle-ManifestVersion: 2\nBundle-Name: Solarmetric Kodo\nBundle-SymbolicName: com.solarmetric.... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1969/"
] |
359,290 | <p>How is it possible to get the FxCop custom dictionary to work correctly?</p>
<p>I have tried adding words to be recognised to the file 'CustomDictionary.xml', which is kept in the same folder as the FxCop project file. This does not seem to work, as I still get the 'Identifiers should be spelled correctly' FxCop m... | [
{
"answer_id": 446429,
"author": "spinodal",
"author_id": 11374,
"author_profile": "https://Stackoverflow.com/users/11374",
"pm_score": 5,
"selected": false,
"text": "<Dictionary>\n <Words>\n <Recognized>\n <Word>\"productname\"</Word>\n <Word>\"companyna... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15985/"
] |
359,298 | <p>I have data from a table in a database (string) that contain text and price. I extract the price from the data but my problem is that sometime I can Convert it to float and sometime not.</p>
<p>I have noticed that :</p>
<pre><code>Convert.ToSingle(m.Groups[1].Value);
</code></pre>
<p>It works but not always becau... | [
{
"answer_id": 359311,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 6,
"selected": true,
"text": "Convert.ToSingle(m.Groups[1].Value, CultureInfo.InvariantCulture.NumberFormat);\n"
},
{
"answer_id": 359... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14441/"
] |
359,303 | <p>I have a IBAction such as:</p>
<pre><code>- (IBAction)showPicker:(id)sender;
</code></pre>
<p>How can I get the name of the control from the sender variable?</p>
<p>I am typically a c# coder so have tried the following to no avail</p>
<pre><code>senderName = ((UIButton *)sender).name;
</code></pre>
<p>I need so... | [
{
"answer_id": 359358,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 2,
"selected": false,
"text": "name"
},
{
"answer_id": 359369,
"author": "Matthew Schinckel",
"author_id": 188,
"author_prof... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359303",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/258/"
] |
359,315 | <p>How to configure JAXB unmarshaller so it will trim leading and trailing whitespaces from strings?</p>
<p>For instance let's consider a simple binding between a Java bean and XML using JAXB annotations:</p>
<pre><code>@XmlRootElement(name="bean")
class Bean {
@XmlElement(required=true)
String name;
@XmlEle... | [
{
"answer_id": 359363,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 4,
"selected": true,
"text": "public class MyNormalizedStringAdapter extends XmlAdapter<String, String> {\n\n @Override\n public String marshal... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359315",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42201/"
] |
359,320 | <p>I want to create a delegate type in C# inside a method for the purpose of creating Anonymous methods.</p>
<p>For example:</p>
<pre><code>public void MyMethod(){
delegate int Sum(int a, int b);
Sum mySumImplementation=delegate (int a, int b) {return a+b;}
Console.WriteLine(mySumImplementation(1,1).ToStri... | [
{
"answer_id": 359339,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "public void MyMethod(){\n Func<int, int, int> mySumImplementation = \n delegate (int a, int b) { return a+b; };... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32582/"
] |
359,321 | <p>I have the following SQL query:</p>
<pre><code>select expr1, operator, expr2, count(*) as c
from log_keyword_fulltext
group by expr1, operator, expr2
order by c desc limit 2000;
</code></pre>
<p>Problem: The <code>count(*)</code> as part of my order by is killing my application, probably because it don't use in... | [
{
"answer_id": 359364,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": -1,
"selected": false,
"text": "create foo as \n select expr1, operator, expr2, count(*) as c\n from log_keyword_fulltext \n group by expr1, ope... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18642/"
] |
359,328 | <p>I have the following javascript code, which loads without error, however the update function does not actually seem functional, as get_Records.php is never loaded. I can not test if get_auction.php is loaded as it is loaded from within get_records.php</p>
<p><strong>One of my main concerns</strong> is that I am doi... | [
{
"answer_id": 359368,
"author": "Jan Aagaard",
"author_id": 37147,
"author_profile": "https://Stackoverflow.com/users/37147",
"pm_score": 0,
"selected": false,
"text": "windows.alert(\"GetXmlHttpObject started.\");"
},
{
"answer_id": 359387,
"author": "Tom Haigh",
"autho... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
359,332 | <p>I refactor my code and I am looking for a solution to grep my source files for something like</p>
<pre><code>if ( user && user.name && user.name.length() < 128 ) ...
</code></pre>
<p>in order to replace it later with ruby's andand or groovy's ?. operator (safe navigation operator).</p>
| [
{
"answer_id": 362870,
"author": "krusty.ar",
"author_id": 43981,
"author_profile": "https://Stackoverflow.com/users/43981",
"pm_score": 2,
"selected": false,
"text": "line = \"user && user.name && user.name.length()\"\np line.match(/(?:(\\w*)(?:\\s\\&\\&\\s(\\1\\.(\\w*)))(?:\\s\\&\\&\\s... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45327/"
] |
359,342 | <p>For a web application, I would like to create a simple but effective licensing system. In C#, this is a little difficult, since my decryption method could be viewed by anyone with Reflector installed.</p>
<p>What are some methods for encrypting files in C# that are fairly tamper-proof?</p>
| [
{
"answer_id": 359923,
"author": "Wolfwyrd",
"author_id": 15570,
"author_profile": "https://Stackoverflow.com/users/15570",
"pm_score": 6,
"selected": true,
"text": "sn -k c:\\keypair.snk\n"
},
{
"answer_id": 1316907,
"author": "mark",
"author_id": 161372,
"author_pro... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31516/"
] |
359,347 | <p>I would like to execute multiple commands in a row:</p>
<p>i.e. (just to illustrate my need):</p>
<p><code>cmd</code> (the shell)</p>
<p>then</p>
<p><code>cd dir</code></p>
<p>and</p>
<p><code>ls</code></p>
<p>and read the result of the <code>ls</code>.</p>
<p>Any idea with <code>subprocess</code> module?</p... | [
{
"answer_id": 359355,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 2,
"selected": false,
"text": "subprocess.Popen()"
},
{
"answer_id": 359432,
"author": "Oli",
"author_id": 22035,
"author_profile": "h... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18648/"
] |
359,351 | <p>I have a multi-user eclipse (3.4) installation with a shared master configuration area.
Users need to override <code>user.name</code> with their full name and the usual method (adding -Duser.name=... to eclipse.ini) is not suitable since the override must be per-user.
I've tried setting user.name in config.ini (insi... | [
{
"answer_id": 359417,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 3,
"selected": true,
"text": ".cmd"
},
{
"answer_id": 359443,
"author": "jamesh",
"author_id": 4737,
"author_profile": "https://Stackoverf... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42448/"
] |
359,354 | <p>I'm trying to use the EntLib 3.1 within .net code for a dll which is registered for COM interop. Where do I put the config file? </p>
<p>Alternatively, is there a way to specify within the dll code where it should get the entlib config from? Since my dll will be called from COM I don't always know what exe will be ... | [
{
"answer_id": 360308,
"author": "Rory",
"author_id": 8479,
"author_profile": "https://Stackoverflow.com/users/8479",
"pm_score": 3,
"selected": true,
"text": " string dllConfigFilename = Assembly.GetExecutingAssembly().Location + \".config\";\n FileConfigurationSource exce... | 2008/12/11 | [
"https://Stackoverflow.com/questions/359354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8479/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.