text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I cancel a server control event in the client side? I have an asp.net image button and I want to cancel the click event incase he fails the client side validation... how do I do that?
A: There is an OnClientClick event you can set this to your javascript function. If you return true it will continue to the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Amazon EC2 Sql Performance I'm considering using Amazon's EC2 with a windows instance & SQL. I've seen some criticism of the perf of the SQL instances here. I'm wondering if any SOers have and first hand experience and can comment on the performance.
A: I've just fired up a 32bit Server 2003 m1 small instance with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: T-SQL : Using { fn NOW() } in WHERE I was reviewing some SQL queries and I saw a select statement that looked like this
SELECT *
FROM dbo.mytable
WHERE (dbo.mytable.[Date] < { fn NOW() })
What is the purpose of using a WHERE statement like this?
Wouldn't be easier to use a simple GETDATE()?
A: http://www.sqlserve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is the best compiler to use when you want to experiment with C++0x features? What is the best compiler to experiment with C++0x features? I have been experimenting with GNU g++ 4.4.
A: Definitely GCC Trunk. ConceptGCC misses many features GCC trunk has. It is being merged into GCC currently though. It has all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Parse email content from quoted reply I'm trying to figure out how to parse out the text of an email from any quoted reply text that it might include. I've noticed that usually email clients will put an "On such and such date so and so wrote" or prefix the lines with an angle bracket. Unfortunately, not everyone d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: How can I prevent a webform from submiting on 'Enter' I have a type ahead text field, and when the user hits "Enter" I want to make an ajax call and not submit the form at the same time. My html looks like this:
<input id="drug_name" class="drugs_field" type="text" size="30" onkeypress="handleKeyPress(event,this.for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: merge with hibernate causing error with dirty objects I'm using Hibernate with Spring in my application. I have been consistently using detached objects and reattaching them whenever I need to make calls to the database. I'm using hibernate template to take care of managing the connections for me.
My data structure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JVM Launched via CreateProcess() Loses Classpath Library I launch the following command line (process) from a Windows VC++ 6 program using CreateProcess (or _spawnv()):
*
*java -cp c:\dir\updates.jar;c:\dir\main.jar Main
and class updates in updates.jar (overiding some in main.jar) are not read or found. It is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF Custom Control with Item/Data Templates I know how to create a custom user control in WPF but how can I make it so that someone can provide an ItemTemplate?
I have a user control that is a mixture of several other WPF controls, one of them being a ListBox. I'd like to let the user of the control specify the cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio: How to store an image resource as an Embedded Resource? By default when you add an image (icon, bitmap, etc.) as a resource to your project, the image's Build Action is set to None. This is done because the image is magically stored inside a .resources file.
I want the resource to be stored as an embe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How does SCN_TO_TIMESTAMP work? Does the SCN itself encode a timestamp or is it a lookup from some table.
From an AskTom post he explains that the timestamp to +/-3seconds is stored in raw field in smon_scn_time. IS that where the function is going to get the value?
If so, when is that table purged if ever? If so,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create friendly url's in asp.net 2 I tried using the IHttpModule and managed to convert the urls just fine,
but all of my images returned path error (all going through the new url directory).
whats the solution?
A: You need to make sure that you use the "~/" path notation on your images and make sure that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET threading in this code Here is my code:
ThreadStart threadStart = controller.OpenFile;
Thread thread = new Thread(threadStart);
thread.Start();
In the OpenFile function, my code looks like:
System.Console.Error.WriteLine("Launching");
The code in OpenFile doesn't get executed for 30 seconds exactly. It start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I convert a string to a decimal in unity javascript? How do I convert a string to a decimal in unity javascript?
A: Do you mean javascript in Unity 3D?
If you are: Unity uses Mono, so you should have access to float.Parse(str) or decimal.Parse(str).
(Or the qualified names System.Single.Parse(str) or Syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing attributes applied to method in derived class from base class So I've got a case where I'd like to be able to apply attributes to a (virtual) method in a derived class, but I'd like to be able to give a default implementation that uses those attributes in my base class.
My original plan for doing this was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Calling java from PHP exec I am doing the following in PHP:
exec('java -jar "/opt/flex3/lib/mxmlc.jar" +flexlib "/opt/flex3/frameworks" MyAS3App.as -default-size 360 280 -output MyAS3App.swf');
When I run this from the command line, it runs fine and finishes in a second or two.
When I run this command from PHP exec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does VS2008 have somewhat C++0x support? Does VS2008 have somewhat C++0x standard support?
DUPLICATE Visual Studio support for new C / C++ standards?
A: No afaik. I believe VS2010 will have more support:
http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en
htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find all Foreign Key errors with Oracle SET CONSTRAINTS ALL DEFERRED I am using:
set constraints all deferred;
(lots of deletes and inserts)
commit;
This works as expected. If there are any broken relationships then the commit fails and an error is raised listing ONE of the FKs that it fails on.
The user fixes the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to set (unix) permissions when creating a file in SAP ABAP? you would think this would be obvious, but searching through documentation, SAP forums, Googling, etc., I've been spectacularly unsuccessful. I'm creating a file in ABAP on a solaris filesystem using the following code:
OPEN DATASET p_file FOR OUTPUT I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In PL/SQL, can I pass the table schema of a cursor FROM clause via a stored procedure parameter? In PL/SQL, I would like to pass in a "source" schema as a parameter to a stored procedure. For instance:
BEGIN
CURSOR my_cursor IS
SELECT my_field FROM <schema>.my_table
...
I want the 'schema' value to come ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Script Minification and Continuous Integration with MSBuild On a recent project I have been working on in C#/ASP.NET I have some fairly complicated JavaScript files and some nifty Style Sheets. As these script resources grow in size it is advisable to minify the resources and keep your web pages as light as possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How best to export native data to Excel without introducing dependency on Office? Our product has the requirement of exporting its native format (essentially an XML file) to Excel for viewing/editing. However, what this entails is having a dependency on Excel (or Office) itself for our product build - something that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Membership.GetUser() & MARS I'm using asp.net membership, and need to make a call to Membership.GetUser() while I have another open SQL connection, but my code dies at that call. I have MultipleActiveResultSets=True in the connection string that is used by both my code and the Membership provider. It appears that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'using' statement vs 'try finally' I've got a bunch of properties which I am going to use read/write locks on. I can implement them either with a try finally or a using clause.
In the try finally I would acquire the lock before the try, and release in the finally. In the using clause, I would create a class which ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: How do I collapse elements in a Report Table? I have an SSRS report where I need to collapse data into a summary column like so:
+Program
-Program2
Program2DataElement1 | Program2DataElement2 | etc.
How does one doe this? I see it in other reports, but can't for the life of me find the area to set it up. When I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best practice to render JSON data in JSPs? I need to render JSON data in my JSPs for some AJAX requests. I'd like to know what's the best way to do it in terms of easy to use and stability.
A: Assuming you want to generate the JSON from one or more Java objects, the following is a fairly straightforward ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Semantic value of span The span element seems to be exactly like a div, but at the in-line level rather than at the block level. However, I can't seem to think of any beneficial logical divisions that the span element can provide.
A single sentence, or word if not contained in a sentence, seems to be the smallest l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to add event handler with Prototype new Element() constructor? I'm inserting an img tag into my document with the new Element constructor like this (this works just fine):
$('placeholder').insert(new Element("img", {id:'something', src:myImage}))
I would like to trigger a function when this image loads, but I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JIRA SOAP API documentation? I'm building some custom tools to work against a JIRA install, and the exposed SOAP API is great, except that none of the arguments are named.
For example, the prototype for getIssue is:
RemoteIssue getIssue (string in0, string in1);
All of the SOAP RPC methods follow this convention, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to set the date/time in C# How do I set the date/time of the computer in C#?
A: You can set the date using Microsoft.VisualBasic.Today and Microsoft.VisualBasic.TimeOfDay, although they're subject to security restrictions.
Yes, it's strange accessing the Microsoft,VisualBasic namespace, but there doesn't appear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Vertical Text with jQuery I'm looking to vertically align text by adding <br /> tags between characters with jQuery.
<div id="foo"><label>Vertical Text</label></div>
would look like this:
V
e
r
t
i
c
a
l
T
e
x
t
A: Mr Kurt's answer works well for a single id, but if you want something more useful that can be app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: MVC LINQ to SQL Table Join Record Display Im having problems displaying records to my view when passing viewdata to a user control.
This is only apparent for linq to sql objects where I am using table joins.
The exception I receive is "Unable to cast object of type '<>f__AnonymousType410[System.String,System.Int32,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using MSTest as site/environment monitoring tool We currently use Hp SiteScope for monitoring synthetic transactions across some of our web apps. This works pretty well except for the licensing cost for each synthetic transaction makes it prohibitive to ensure adequate coverage across our applications.
So, an altern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In WPF how do I specify the path to a file nested in a Directory using XAML? I am trying to do this...
<Image x:Name="imgGroupImage" Source="Images\unlock.png" Margin="0,0,5,0" />
But I get this error...
Cannot convert string 'Images\unlock.png' in attribute 'Source' to object of type 'System.Windows.Media.ImageSo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Flex - URLLoader and HTTPService I use URLLoader to load data into my Flex app (mostly XML) and my buddy who is doing the same thing mostly uses HTTPService. Is there a specific or valid reason to use on over the other?
A: HTTPService inherits AbstractInvoker which allows you to use tokens and responders which you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can commenting be added to news articles in an existing Sharepoint 2007 news site? A client is asking to incorporate commenting on their news articles. They're using the Sharepoint news site template for their news publishing, etc. They want a simple commenting system, much like what is available on most blog en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you use NSPasteBoard to paste into another application? I found out how to get the content of the NSPasteboard, and to copy it into my active application. I haven't found a way to paste it into another application, just how to paste it into my current application.
If you're wondering why I would want to do this,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: question on how to use sql server integrated service I have a table called book with, the attrbutes are booked_id, yearmon, and day_01....day_31. Now i need to unpivot the table and transform day_01...day_31 into rows, I have successed in doing that, but the problem is that my yearmon is a format of 200805 and i nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are foreign keys indexed automatically in SQL Server? Would the following SQL statement automatically create an index on Table1.Table1Column, or must one be explicitly created?
Database engine is SQL Server 2000
CREATE TABLE [Table1] (
. . .
CONSTRAINT [FK_Table1_Table2] FOREIGN KEY
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Displaying XML in Grid View-newbie I am trying to do something in VisualWebDev 2008 Express that I thought would be simple, but it is not working. I want to display data from an XML file so I added the XMLDataSource to my page, pointed it to the XML file, and then added the GridView and connected it to the datasourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I use reflection to get properties explicitly implementing an interface? More specifically, if I have:
public class TempClass : TempInterface
{
int TempInterface.TempProperty
{
get;
set;
}
int TempInterface.TempProperty2
{
get;
set;
}
public int Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Why do I get a 1720 error when my InstallShield setup tries to run my VBS custom action? The Custom Action is configured as follows:
Custom Action Name: MyCustomAction
VBScript Filename: <PathVar01>\MyFolder\MyVBSfile.vbs
ScriptFunction: MyFunction
Return Processing: Synchronous (Check exit code)
In-Script Executio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where best to instantiate and close a Silverlight-enabled WCF Service from the Silverlight app? When using a Silverlight-enabled WCF service, where is the best place to instantiate the service and to call the CloseAsync() method?
Should you say, instantiate an instance each time you need to make a call to the servic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do I need to use a popular framework? I've been a PHP developer for many years now, with many tools under my belt; tools that I've either developed myself, or free-to-use solutions that I have learned to trust.
I looked into CodeIgniter recently, and discovered that they have many classes and helper routines to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: C++ multithreading tutorial Is there a good tutorial on working with (programming) threads in Visual Studio 2005? Not MFC related, just native C++ (no .NET).
A: You may take a look at the following OpenMP tutorials. This doesn't concern all concepts of multithreading in VC++, but OpenMP only, which VC++ supports. O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What is the best practice to store a "saved search" in a database I am working an a search page that allows users to search for houses for sale. Typical search criteria include price/zip code/# bedrooms/etc.
I would like to allow the user to save this criteria in a database and email new homes daily.
I could either:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Return multiple values from a SQL Server function How would I return multiple values (say, a number and a string) from a user-defined function in SQL Server?
A: Erland Sommarskog has an exhaustive post about passing data in SQL Server located here:
http://www.sommarskog.se/share_data.html
He covers SQL Server 2000,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: working with incredibly large numbers in .NET I'm trying to work through the problems on projecteuler.net but I keep running into a couple of problems.
The first is a question of storing large quanities of elements in a List<t>. I keep getting OutOfMemoryException's when storing large quantities in the list.
Now I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: What's the best way to implement friendly URL in ASP.net? What's the best way to implement friendly URL in ASP.net?
A: The ASP.NET Routing Framework provided in .NET 3.5 SP1 is a good one.
Although it is very new, it can handles many URL-related tasks and most frequently used URL-friendly schemes very well.
It can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to bind the results of a public method in xaml.cs to a control in xaml? Let's take a very simple example:
*
*In my window1.xaml, i have a label
control named 'lblProduct'.
*In my window1.xaml.cs, i have a
public method called
CalculateProduct(Int Var1, Int
Var2). CalculateProduct will, as
you may... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reverse Method for an Array of int I have this as Main
int[] M ={ 10, 2, 30, 4, 50, 6, 7, 80 };
MyMath.Reverse(M);
for (int i = 0; i < M.Length; i++)
Console.WriteLine(M[i].ToString() + ", ");
After I created the class MyMath I made the Reverse method
public int Reverse(Array M)
{
int len = M.Length;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Looking for a hack to prevent rewriting an app without using session variables Our company uses an app that was originally ColdFusion + Access later converted to classic ASP + MS Sql for task/time tracking called the request system. It's broken down by department, so there's one for MIS, marketing, logistics, etc. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET: How to send file from database to printer? I have an ASP.NET 2.0 (C#) webpage with a link that pulls a blob from a MS SQL database and ouputs it in the appropriat file format, i.e., Word, WordPerfect, PDF.
My users would like to print these files with one click. Right now they have to click the link to open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find timed out statements in SQL 2005 profiler I'm trying to find SQL statements that timed out using the SQL 2005 profiler. Is there a way to set such a filter?
A: In Profiler, you can add the event "Attention" under "Errors and Warnings". It's definition is
Collects all attention events, such as
clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to script an OLE component using Python I would like to use Python to script an application that advertises itself as providing an OLE component. How should I get started?
I don't yet know what methods I need to call on the COMponents I will be accessing. Should I use win32com to load those components, and then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Microsoft Visual Studio Tools for Office. Is it worth using? It seems like deployment of VSTO code is very cumbersome.
My use case is I need to enforce a certain content structure in word. Am I better of doing it all in VBA?
A: It really depends on what makes most sense for your project. If it's only going to be f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get the document-level templates into Visual Studio Tools for Office (VSTO) "To summarize: if you install VSTO 2005 SE on top of a clean VS 2005 Professional, you won't have the document-level templates. If you want to have them you need to have VS 2005 Team Suite/Team Edition or you need to install the previ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get a filtererd datatable from a XSL transform I am trying to run a DataTable through an XSL tranform and then put the results back into a DataTable. My DataTable is coming up empty. Any help would be great.
Dim finalExelList As New DataTable
Dim xlsMyList = New XPath.XPathDocument(New StringReader(myList.Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: External Tool Development for SQL Server Management Studio 2005 Does anyone have any experience of developing external tools for SSMS 2005.
Ideally I would like to be able to interact with the query windows directly, for example, taking the query text from the window to perform some processing on it.
Any pointers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005 What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to use StreamReader in C# (newbie) I'm trying to read the contents of a text file, in this case a list of computer names (Computer1, computer2 etc,) and I thought that StreamReader would be what you would use but when I do the following:
StreamReader arrComputer = new StreamReader(FileDialog.filename)();
I got ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I search for unpublished Plone content in an IPython debug shell? I like to use IPython's zope profile to inspect my Plone instance, but a few annoying permissions differences come up compared to inserting a breakpoint and hitting it with the admin user.
For example, I would like to iterate over the content o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can anyone recommend a decent FOSS PDF generator for Python? I need a basic pdf generator that'll let me toss some images and text into a pdf file. The ability to have some basic drawing commands (lines and so forth) would also be a plus.
I did read through this question, but I really don't need a report generator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Silverlight/Flash webcast software, similar to Channel 9 PDC 2008 Anyone have recommendations for webcast software, similar to the Silverlight app here: http://channel9.msdn.com/pdc2008/TL57/
I looked at a couple other questions posted here, but I don't want a hosted solution.
A: The PDC Channel 9 Site is using the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is MSDE supported on Windows Server 2008? I know MSDE is no longer supported on Vista, is this also the case for Windows Server 2008?
A: Just to have this on the question for reference...
MSDE has been supplanted by SQL Server Express (same idea), which does run on Vista/2008. Links are:
*
*wikipedia
*2005 Expr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS7: URL rewrite http://web1.com/web1/def.aspx to http://web1.com/def.aspx I have to have my website stored in a subfolder of my domain root. Is there a way to rewrite the URLs so that it doesn't appear to be stored in a subfolder? It doesn't matter to me if this is done at the IIS level or in the web.config.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Clone multiple SVN projects with git-svn I have a large Java app that is split up into multiple projects. Each project has its own folder in a Subversion repository like so:
AccountingCore
*
*trunk
*branches
*tags
Common
*
*trunk
*branches
*tags
WebCommon
*
*trunk
*branches
*tags
etc...
I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the most elegant way of bubble-sorting in F#? What is the most elegant way of bubble-sorting in F#?
UPDATE
As pointed out in one of the answers, bubble sorting isn't efficient in a functional language to begin with. A humourously-cynical commenter also pointed out that bubble sorting is only appropriate when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: get 65K records only listed in combo box from a table of 155K records I have a table of 155K records. I can scroll only 65K records in combo box of a form having recordsource with query or sql, selecting three fields from that table. Why it does not list all 155K records even the query, which I am using as recordso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I clone an entire Document using the Java DOM? I'm looking for a reliable, implementation-independent way to clone an entire Document. The Javadocs specifically say that calling cloneNode on a Document is implementation-specific. I've tried passing the Document through a no-op Transformer, but the resultin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I use composition with inheritance? I'm going to try to ask my question in the context of a simple example...
Let's say I have an abstract base class Car. Car has-a basic Engine object. I have a method StartEngine() in the abstract Car class that delegates the starting of the engine to the Engine object.
Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Anyone Know a good tutorial of how Crystal Reports for Visual Studio works? I am stuck building reports that will be generated by a custom application using the Crystal Reports 9.1.5 that comes with Visual Studio 2003. In addition to the editor being one of the most infuriating things I've ever had to work with I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Deploy a project using Git push Is it possible to deploy a website using git push? I have a hunch it has something to do with using git hooks to perform a git reset --hard on the server side, but how would I go about accomplishing this?
A: The way I do it is I have a bare Git repository on my deployment server wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "417"
} |
Q: UTF-8 all the way through
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.
Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1331"
} |
Q: Does Visual Studio have anything like Borland's CodeGuard? Is there anything in Visual Studio that will report memory leaks like Codeguard?
eg:
Error 00001. 0x300010 (Thread 0x0FA4):
Resource leak: The object (0xC65D84) was never deleted
The object (0x00C65D84) [size: 4 bytes] was created with new
| element2.cpp li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing Code Analysis Rules in MSBuild I am trying my hardest to define a list of CodeAnalysisRules that should be omitted from the Code Analysis tools when MSBuild executes my TFSBuild.proj file.
But each time I test it, my list of Code Analysis Rules to exclude are ignored and Team Build just simply honors the Cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a better way to compare general performance of .Net and Java in an eCommerce setting than the "pet store"? I've been using the Java Pet Store and .Net Pet Store examples for years when comparing Java EE and .Net performance in an eBusiness type setting.
Is there a better way to compare the performance of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I get a collection of all the colors in System.Drawing.Color? How can I extract the list of colors in the System.Drawing.Color struct into a collection or array?
Is there a more efficient way of getting a collection of colors than using this struct as a base?
A: Try this:
foreach (KnownColor knownColor in E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: JSON in Flex. "Access of undefined property JSON" I am trying to parse JSON in an Adobe Flex app, using http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/'>This Tutorial
Unfortunately, Flex Builder 3 is flagging a "Access of undefined property JSON" error on the line
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a VB.net equivalent for C#'s ! operator? After two years of C#, I'm now back to VB.net because of my current job. In C#, I can do a short hand testing for null or false value on a string variable like this:
if(!String.IsNullOrEmpty(blah))
{
...code goes here
}
however I'm a little confused about how to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Determine whether user is logged in What's the best/most efficient way whether the user of my .NET web application is currently logged in.
I'm currently using Membership.GetUser() != null, but now that I realize that this involves a DB-roundtrip, I wonder if there's a better way. Maybe HttpContext.Current.User.Ident... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to invoke a C# web service through PHP? I've written a web service using ASP.NET (in C#) and I'm attempting to write an example PHP client using NuSOAP. Where I'm tripped up on are examples of how to do this; some show soapval being used (and I don't quite understand the parameters - for example passing false a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert a Picture Box image pixels to a Byte Array in VB6 I have a VB6 picture box that gets an image from a video capture device.
I'm trying to figure out how to then convert the picture box to a byte array.
A: Private Type BITMAP
bmType As Long
bmWidth As Long
bmHeight As Long
bmWidthBytes As Long... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I resize pngs with transparency in PHP? I'm attempting to resize pngs with transparent backgrounds in PHP and the code samples I've found online don't work for me. Here's the code I'm using, advice will be much appreciated!
$this->image = imagecreatefrompng($filename);
imagesavealpha($this->image, true);
$ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Import a module from a relative path How do I import a Python module given its relative path?
For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py?
Here's a visual representation:
dirFoo\
Foo.py
dirBar\
Bar.py
Foo wishes to include Bar, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "799"
} |
Q: How can I style XML with CSS for viewing in a browser without first transforming to (X)HTML? I know that CSS can be used to control the presentation of (X)HTML in modern browsers. I was under the impression that this was possible for arbitrary XML as well. (Am I mistaken?)
A concrete example: given the following XM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: hidden information in wxGrid I've got a wxGrid that I populate dynamically. I'd like to store some information with each row that shouldn't be displayed to the user. What is the best way to associate data with a row? Should I just create a hidden column or is there a better way?
A: Creating a hidden column is the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WSE 3.0 on framework 3.5 under Program Files(X86) I am deploying a web application to a windows server 2003 machine.
The application uses WSE 3.0, and targets framework 3.5.
WSE is installed on the server under C:\Program Files(X86)\Microsoft WSE\v3.0.
WSE is installed in the GAC on the server also.
when I run the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do Fold in T-SQL? If I have data in the following format
id subid text
1 1 Hello
1 2 World
1 3 !
2 1 B
2 2 B
2 3 Q
And would like it in this format:
id fold
1 HelloWorld!
2 BBQ
How could I accomplish it in T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which style of Ruby string quoting do you favour? Which style of Ruby string quoting do you favour? Up until now I've always used 'single quotes' unless the string contains certain escape sequences or interpolation, in which case I obviously have to use "double quotes".
However, is there really any reason not to jus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Handling a timed out FutureTask Let's say I do something in Java like:
RemoteResponse response = null;
try {
FutureTask task new FutureTask(....);
executor.execute(task);
response = task.get(1000, TimeUnits.MILLISECONDS);
}
catch( TimeoutException te ) {
.. should I do something special here? ...
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Linq to Sql, how can I get a particular result from a query? I want to get the last result returned from this query. How do I do this? Last and LastOrDefault aren't supported by Linq to Sql.
var docs = (from d in db.Documents
where d.Version > 1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to rename an application server in WebSphere Application Server 6.0.2.23 We are repurposing an application server running WebSphere 6.0.2.23. I would like to rename the various application server to better reflect its new role.
How can you rename an application server?
It seems like wsadmin can do it, but I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Adding Days to a Date but Excluding Weekends Given a date how can I add a number of days to it, but exclude weekends. For example, given 11/12/2008 (Wednesday) and adding five will result in 11/19/2008 (Wednesday) rather than 11/17/2008 (Monday).
I can think of a simple solution like looping through each day to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: An object reference is required for the non-static field, method, or property Ok. I'm having an issue with the following bit of code:
StreamReader arrComputer = new StreamReader(FileDialog.FileName);
My first question had been answered already now my second question focuses on the tail end of this code.
I'm readin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a custom build provider in an ASP.NET Web Application I'm trying to find a way to generate an enums class dynamically from lookup tables in a database and still have the convenience of a normal class (i.e. intellisense).
I've spent the past few hours trying to figure out how to get a custom BuildProvider to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Resend to MSMQ after exception I'm trying to put a Message back into an MSMQ when an exception is thrown. The following code appears to work but the Message is not put back in the queue?
Message msg = null;
try
{
MessageQueue MQueue = new MessageQueue(txtMsgQPath.Text);
msg = MQueue.ReceiveById(txtQItemToRea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Load usercontrols using Ajax Im trying to find a best practice to load usercontrols using Ajax.
My first approach where simply using an UpdatePanel and popuplating it with LoadControl() on ajax postbacks but this would rerender other loaded usercontrols in the same UpdatePanel. Also I cannot have a predefined set of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What would cause a ERROR_INTERNET_INCORRECT_HANDLE_TYPE (12018) with InternetQueryOption? I'm working on a simple little function to download a file from an SSL-enabled website using the WinInet functions, namely InternetOpen and InternetOpenURL. I had was initially failing the call to InternetOpenURL with a ERROR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I change the format of a date from the command line? What's the quickest way to convert a date in one format, say
2008-06-01
to a date in another format, say
Sun 1st June 2008
The important bit is actually the 'Sun' because depending on the dayname, I may need to fiddle other things around - in a non-d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/279329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.