text stringlengths 8 267k | meta dict |
|---|---|
Q: Color Cell Based on Value in Cell Using a macro I have consolidated info from several workbooks into one sheet in new workbook.
In one column I have created a named range called ColRange. That column has numbers ranging from -350 to 500.
How do I change the color of the cells based on the value of the text in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding types to the std namespace Is it acceptable to add types to the std namespace. For example, I want a TCHAR-friendly string, so is the following acceptable?
#include <string>
namespace std
{
typedef basic_string<TCHAR> tstring;
}
Or should I use my own namespace?
A: You should use your own namespace as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is the best way to reuse pages from one website in another? I'm developing a new ASP .NET website which is effectively a subset of the pages in another site we've just released. Two or three of the pages will need minor tweaks but nothing significant.
The obvious answer is to simply copy all of the code and mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is SQLite suitable for use in a production website? I'm rewriting a PHP+MySQL site that averages 40-50 hits a day using Django.
Is SQLite a suitable database to use here? Are there any advantages/disadvantages between them?
I'm just using the db to store a blog and the users who can edit it. I am using fulltext sea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DotNet version of Windows Scripting Host Good morning,
I work in a small shop (only two of us) and we currently manage more .vbs scripts that we would like to (we would like to manage zero). One of the nice things about these scripts is that it's quick to make changes (as necessary) and go back to our day jobs.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: binding to linq inherited types in asp.net I have a Linq-to-SQL data model that includes a type Party which is sub classed twice for Company and Individual. I am trying to bind two repeaters to Linq-to-SQL queries as follows
Dim oComp As IEnumerable(Of Company)
Dim oInd As IEnumerable(Of Individual)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python type-error issue I'm writing a simple program to help generate orders for a game I'm a member of. It falls into the catergory of programmes I don't actually need. But now I've started I want it to work. It all pretty much runs smoothly but I can't figure out how to stop a type-error ocurring about half way th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: css: Should I limit the use of universal selectors (*.classname vs a.classname)? I have a question about css selectors.
Say I have the following html
<div class="message">
<div class="messageheader">
<div class='name'>A news story</div>
</div>
</div>
In the css I could refer to the class called name either... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the issue with using the nant script to run msbuild to register the assembly? I'm running MSBuild from a NAnt script. When it tries to register one of my assemblies for com interop, the script stops like it's stuck.
If I run regasm.exe on the assembly, it succeeds. Even if I run MSBuild itself from the com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can Anyone Explain This Struts 2 AJAX Strange Refresh Behaviour? We have the following code (listed below) in our JSP. We are seeing the action configured in the href of the div id=pwcercontainer being called twice. Can't work out exactly why. Replacing the containing sx:div label="Admin Record Deployment" with a pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .net: threading debug What are some of the techniques available to debug multi threading issues in .net environment.
A: Debugging and unit-testing multithreaded code is notoriously difficult, and I don't believe there are any tried and true solutions to debugging multiple threads.
However, you can make it easier to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the class System.Web.httpApplicationFactory? I see it in my call stack, but can't find it in the framework I have a class Application that my global.asax inherits from. The class has this method:
protected void Application_Start(object sender, EventArgs e)
{
// ...
}
In my understanding this is basicall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tracking or Notifying DB Changes - Inserts and Updates mostly How do I track or get notified whenever a record is inserted or updated in a DB? I would like to notify an external application of the changes in near real time whenever such changes in DB occur. Are there DBMS independent and application programming lang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How are binding specified for Interface Builder plugins? I'm creating an Interface Builder plugin for an NSView subclass. I've been following the Interface Builder Plug-in Programming Guide but it's not answer all my questions. My class has one NSString property and 4 NSColor properties which I want to create bindin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VSS projects, do they have to be set as 'readonly' or can I make the files writetable? In my working folder of a VSS project, is it alright if I make all the files/folders writable? i.e. not readonly?
A: It is ok, but why should you?
The read only state is a safeguard so you can't change code that is not locked. A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# put date into program when compiled I was thinking about how to create a program that would only be valid for X period of time, (within a C# app).
What I was thinking was that you would have the current date as a constant inside the program and it would check to see if it is X days older than that. Naturally I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the difference between HANDLE and HFILE in WinAPI? WinAPI OpenFile function returns HFILE, and GetFileTime for instance needs HANDLE. When I feed it with (HANDLE)some_hFile it seems to work fine. Is there any difference in this types, or one of these is simply rudimental?
A: OpenFile is a 16-bit Windows bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Link an ODBC table in Access 2007 I have an Access 2002 application which links an Oracle table via ODBC with this code:
Set HRSWsp = CreateWorkspace("CONNODBC", "", "", dbUseODBC)
Set HRSConn = HRSWsp.OpenConnection("HRSCONN", dbDriverPrompt, , "ODBC;")
DoCmd.TransferDatabase acLink, "Database ODBC", HRSConn.Connec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Linq to create crosstab results
Possible Duplicate:
Is it possible to Pivot data using LINQ?
I'm wondering if its at all possible to create crosstab style results with Linq.
I have some data that looks like the following:
var list = new[]
{
new {GroupId = 1, Country = "UK", Value = 10},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: ASP.NET MVC Beta 1 - Will My Existing User Controls Work In My Views As-Is? I understand that you can now create MVC-specific user controls, but will my existing standard ASCX user controls work in an MVC view?
I understand that MVC pages have a completely different lifecycle but will, for example, a Page_Load meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL database size Microsoft SQL Server has a nice feature, which allows a database to be automatically expanded when it becomes full. In MySQL, I understand that a database is, in fact, a directory with a bunch of files corresponding to various objects. Does it mean that a concept of database size is not applicabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problem with Pseudoclass and text-decoration:underline in IE6 I am using a piece of html something like the following:-
<a class="somePseudoClass" title="Blablabla">Something</a>
and I have the following css in an imported file.
a.somePseudoClass:hover {color: #000000; text-decoration: underline;}
This works p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactoring "extreme" SQL queries I have a business user who tried his hand at writing his own SQL query for a report of project statistics (e.g. number of tasks, milestones, etc.). The query starts off declaring a temp table of 80+ columns. There are then almost 70 UPDATE statements to the temp table over almost 50... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add a WiX custom action that happens only on uninstall (via MSI)? I would like to modify an MSI installer (created through WiX) to delete an entire directory on uninstall.
I understand the RemoveFile and RemoveFolder options in WiX, but these are not robust enough to recursively delete an entire folder that h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "179"
} |
Q: Tools to encrypt sql server database I don't want customers to be able to make backups of my sql server database and access the tables data etc.
I know there are some products that will encrypt the data in the tables, and their product will decrypt it when displaying in my application.
What products do you guys know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Currency formatting in Python I am looking to format a number like 188518982.18 to £188,518,982.18 using Python.
How can I do this?
A: There are already a dozen solutions here, but I believe the one below is the best, because:
*
*it is simple
*obeys the OS locale
*no external lib is needed
*you can make it con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "198"
} |
Q: What build tool do you use professionally? At home, I use CTRL+SHIFT+B or F7 or whatever key sequence initiates the build for my build tool. At work, this doesn't quite cut it.
At my first job (an internship) we used a product called Visual Build, which I have come to like very much. It's the best build tool I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Replace Temp with Query The Replace Temp with Query refactoring method is recommended quite widely now but
seems to be very inefficient for very little gain.
The method from the Martin Fowler's site gives the following example:
Extract the expression into a method. Replace all references to the temp with the expre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Possible to get type of an aliased type in c#? Type.GetType("System.String")
Is there a lookup for the aliases available somewhere?
Type.GetType("string")
returns null.
A: The "aliases" are part of the language definition. You need to look them up in the language spec in question. They are compiled away, and don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: The ';' character, hexadecimal value 0x3B, cannot be included in a name I have seen the error "The ';' character, hexadecimal value 0x3B, cannot be included in a name." in my log files for an ASP.NET Web App. The url that's logged looks something like this:
mypage.aspx?paramone=one+two&paramtwo=zero+1
So my fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disabling PUT TRACE DELETE request in Apache Tomcat 6.0 I need to disable PUT, DELETE & TRACE HTTP requests on my Application Server, Apache Tomcat 6.0.
All other sources, i have searched till now, have directed me towards the limit parameter in httpd.conf, Hence I'd put it before-hand that I am not using Apache Web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Techniques for redesigning convoluted UI I'm sure you've all seen them. Line of Business UIs that have logic such as: "When ComboA is selected, query for values based on that selection, and populate Textbox B", or "When ButtonC is pressed, disable Textboxes C and D", and on and on ... it gets particularly bad when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: trimming a string in a JSTL expression I have the following line in a JSP page:
<c:if test="${postAuditBean.postAudit.authority == authority.value}">
I would like change this comparison to first trim leading and trailing spaces from both the left and right hand expressions prior to comparison... as in something lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to include output of PHP script in Python driven Plone site? I need to have the output of a PHP snippet in a Plone site. It was delivered to be a small library that has a display() function, in PHP, that outputs a line of text. But I need to put it in a Plone site. Do you have any recommendations?
I was thinking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Steps in the memory allocation process for Java objects What happens in the memory when a class instantiates the following object?
public class SomeObject{
private String strSomeProperty;
public SomeObject(String strSomeProperty){
this.strSomeProperty = strSomeProperty;
}
public void setSo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: TransactionScope Error against Sql Server 2000 - The partner transaction manager has disabled its support for remote/network transactions I am trying to set up a simple transaction for my Linq-to-Sql actions against my Sql 2000 database. Using TransactionScope it looks like this:
using (TransactionScope transaction... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I use a .NET 2.0 dll in classic ASP? I have a c# .NET DLL compiled against the .NET 2.0 framework.
A customer uses classic ASP but needs the functionality of the .NET DLL. Is there a way for them to use the DLL?
A: You would need to consume the .NET dll as a COM callable wrapper.
This generally involves mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: js horizontal slide effect I'm currently using jQuery and am looking for a way to slide an image left as a new image slides left into its place.
Specifically, I have a static image of an iphone. When I click a link, I need the current image displaying on the iphone's image viewer to slide out to the left as the new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Execute javascript function after asp.net postback without Ajax I wish to execute a javascript function after asp.net postback with out using ajax.
I've tried the following in my even method with no luck:
Page.ClientScript.RegisterStartupScript(GetType(), "ShowPopup", "showCheckOutPopIn('Livraison',556);");
A: Sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/320999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: What are the advantages of dynamic scoping? I've learned that static scoping is the only sane way to do things, and that dynamic scoping is the tool of the devil, and results only from poor implementations of interpreters/compilers.
Then I saw this snippet from a Common Lisp vs. Scheme article:
Both Lexically and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Skype taking over urls We have some issues in our application with skype taking over some of our urls, replacing them with a skype plug in that enables you to start calls. Looks like skype thinks they are phone numbers. I was wondering if there are some way to mark our urls such that skype doesn't think they are pho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Making functions non override-able I know python functions are virtual by default. Let's say I have this:
class Foo:
def __init__(self, args):
do some stuff
def goo():
print "You can overload me"
def roo():
print "You cannot overload me"
I don't want them to be able to do this:
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Java GUI described in XML My company currently evaluates the development of a Java FAT client. It should support a dynamic GUI and has as much logic as possible on the server side. Hence the idea came up to send the screen as XML to the FAT client, show it to the user and send the entered data similar to "html form"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Reduce deadlock on PAGE level on update query on MS SQL I have some funny deadlock caused by a stupid simple SQL UPDATE query, on a flat plain table, under default "READ COMMITED" transaction.
UPDATE table SET column=@P1 WHERE PK=@P2
Column PK is varchar(11), has a clustered index on it.
no trigger or table relatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Links in c# textbox I have a custom Jabber IM client and I'm having a problem with links. When something like http://something.com is entered I want it to show up as a link in the message window. The message window is a standard c# textbox. Is there a way to mark it as a link so that it can be clicked and open th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Sharing an ObjectDataProvider in WPF I am trying to share an ObjectDataProvider resource between my main application and a user control. I define the odp in a separate resource dictionary file that is included in the app and the user control.
<ObjectDataProvider x:Key="AsymmetricFrameHolder"
ObjectType="{x:Type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to view load test reports by individual request in Visual Studio Team edition When performance testing a web site using the Load Web Test of Visual Studio one gets a summary of the results. Useful measures are shown, like the average response time, maximum response time etc.
One thing that intrigues me is being... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I use an email template txt file and retain formatting? I'm using a preformatted text file as a template for emails. The file has line breaks where I want them. I'd like to use this template to send a plain text email, but when I do I'm losing all formatting. Line breaks are stripped.
How do I parse this file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encrypting data in Cocoa, decoding in PHP The situation I'm trying to solve: in my Cocoa app, I need to encrypt a string with a symmetric cipher, POST it to PHP, and have that script decode the data. The process needs to work in reverse for returning an answer (PHP encodes, Cocoa decodes).
I'm missing something bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Derivative of a Higher-Order Function This is in the context of Automatic Differentiation - what would such a system do with a function like map, or filter - or even one of the SKI Combinators?
Example: I have the following function:
def func(x):
return sum(map(lambda a: a**x, range(20)))
What would its derivat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Returning multiple values from a C++ function Is there a preferred way to return multiple values from a C++ function? For example, imagine a function that divides two integers and returns both the quotient and the remainder. One way I commonly see is to use reference parameters:
void divide(int dividend, int divis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "346"
} |
Q: Cant Access File because it is being used by another process I have an ASP.NET program where i am downloading a file from web using DownloadFile method of webClient Class and the do some modifications on it. then i am Saving it to another folder with a unique name.When I am getting this error
The process cannot acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I include a DTD in an XML file that will be loaded using getResourceAsStream()? I have an xml file ('videofaq.xml') that defines a DTD using the following DOCTYPE
<!DOCTYPE video-faq SYSTEM "videofaq.dtd">
I am loading the file from the classpath (from a JAR actually) at Servlet initialization time using:
ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write a form editor? I'm trying to write a print layout editor in VB6 or VB.Net, and am looking for some reference articles to help get me started.
The idea is that the editor will be used to define print "areas" for invoice or statement layouts, by allowing the user to draw the box for customer address, inv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is the order of an arraylist guaranteed in C#.NET? If I'm using an ArrayList in C#.NET, is the order guaranteed to stay the same as the order I add items to it?
A: Yes, it is, unless some piece of your code changes the order by e.g. swapping.
A: Yes, elements are always added to the end (unless you specify otherwi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Privilege elevation on MSI uninstall with Installshield and user dialog I need to achieve the following:
The uninstallation of an MSI should present a user dialog based on which Windows Installer knows how exactly to remove the software (in this case: The user must choose whether or not to remove databases as well).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I keep data in sync during deployment? I have the occasion to produce Drupal web sites using development, staging, and production environments. Keeping the code in sync between the sites is a simple task using subversion. What is not so simple is propagating changes to the database data (not just the schem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP-MVC Forms authentication - cookie not persisting I have my own linq to sql database with a nice login method which gives me back a user.
I have followed the 101 examples there on the web as to how to add the cookie to the client.
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running Selenium from a Java process How would you run the Selenium process (thread) from a Java process so I don't have to start Selenium by hand?
A: The server:
import org.openqa.selenium.server.SeleniumServer;
public class SeleniumServerControl {
private static final SeleniumServerControl instance = new Seleni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I pre-set arguments in JavaScript function call? (Partial Function Application) I am trying to write a JavaScript function that will return its first argument(function) with all the rest of its arguments as preset parameters to that function.
So:
function out(a, b) {
document.write(a + " " + b);
}
funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: What is the short cut in eclipse to terminate debugging/running? What is the shortcut in eclipse to terminate debugging/running? Looking under Preferences -> Keys says Ctrl + F2 but it doesn't work.
A: Have a debug view open on your perspective (Alt+Shift+Q, Q -> find Debug). Once your application is running, use C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Forking Subversion Project I've never forked a project before so I'm a little stumped as to how to proceed. I have a project that I use on my own that I release as a BSD licensed project (Project A). At work I want to use that code but with modifications specific to our company (Project B) but I want to be able to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I create a cross reference table/query for my data? I have two simple tables in my database. A "card" table that contains Id, Name, and text of a card, and a "rulings" table which contains the Id of the card, and text detailing the rulings for the card.
Often enough in the ruling text, there is a reference to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to open a password protected shared network folder using VB.NET? I need to open a password protected shared folder on a network to gain access to an Access 97 database. How do I open the folder and pass in the password?
A: found here http://www.mredkj.com/vbnet/vbnetmapdrive.html
Public Declare Function WNetAdd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I make the computer beep in C#? How do I make the computer's internal speaker beep in C# without external speakers?
A: I just came across this question while searching for the solution for myself.
You might consider calling the system beep function by running some kernel32 stuff.
using System.Runtime.Intero... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: Word 2008 macro to SVN ADD current document I want to invoke "svn add" on the current Word 2008 document. I've got a shell script that will svn commit it later. I don't want that shell script to indiscriminately svn add files so I'd like to be able to do it from a button in Word 2008 tied to a macro or appleScript.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I install modules into the maven repository using Netbeans embedded Maven? I have the Maven plugin for NetBeans and it successfully set up a local repository for me. Now I need to add a 3rd party library (specifically Oracle JDBC driver) to my repository. The build fails with instructions on how to install a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: EMail from ASP .NET I have used the smtp class to send emails through code.
Can I use the classes in the .net framework to display emails received on a page without having to use something like exchange sdk?
How would I go about using gmail pop and smtp server information in .net web apps (with the .net classes) t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Check for any int type in C#? I have a function that, among other things, takes in an object and a Type, and converts the object into that Type. However, the input object is often a double, and the type some variation of int (uint, long, etc.). I want this to work if a round number is passed in as a double (like 4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Putting JVM arguments in a file to be picked up at runtime I'm building a jar of my current application, which required several JVM arguments to be set.
Is there a way of setting these JVM arguments in a file rather than on the command line?
I've done some hunting and it looks like I might be able to do something wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Good Programming Practices for Macro Definitions (#define) in C For example, never define a macro like this:
#define DANGER 60 + 2
This can potentially be dangerous when we do an operation like this:
int wrong_value = DANGER * 2; // Expecting 124
Instead, define like this because you don't know how the user of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: .Net FormStartPosition.CenterScreen not centering I am trying to center a form in VB.net. Instead of centering the form, it ends up about halfway between center and 0,0(upper left).
I am using the code
Me.StartPosition = FormStartPosition.CenterScreen
Which is called from the IntializeDisplay Method, which in turn ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking for file-extensions in PHP with Regular expressions I'm reading all the files in a single directory and I want to filter on JPG,JPEG,GIF and PNG.
Both capital and small letters. Those are the only files to be accepted.
I am currently using this:
$testPics = takeFiles($picsDir, "([^\s]+(?=\.(jpg|JPG|jpeg|JPE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to create an XPS document in a WCF service to store and return? I've got a WCF service as middle tier, and on some occasions I need to create a printable document, store it for future reference in the database, and return it to the client.
My first choice as file format was XPS, so I'd like to create an XPS docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript parent variables value irregularities? I have the following code:
var address;
getAddress(0,0);
function getAddress(latlng)
{
if (latlng != null)
{
geocoder.getLocations(latlng,
function(addresses)
{
if(addresses.Status.code == 200)
{
address = addresses.Placemark... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to do a wildcard search in sql server 2005? So I have a stored procedure that accepts a product code like 1234567890. I want to facilitate a wildcard search option for those products. (i.e. 123456*) and have it return all those products that match. What is the best way to do this?
I have in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I test database-related code with NUnit? I want to write unit tests with NUnit that hit the database. I'd like to have the database in a consistent state for each test. I thought transactions would allow me to "undo" each test so I searched around and found several articles from 2004-05 on the topic:
*
*ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Why does tabbing to a DojoX grid result in a JavaScript "Can't move focus to control" error? Problem
I've got a number of Dojo components on a page. When the user tries to tab from an input like component to a grid like component, I get a JavaScript "Can't move focus to control" error. The user base uses IE6.
Sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is git with cvs faster than cvs alone? My team works on a project in cvs containing about 20,000 Java files. Because of the number of files, it takes a while to do a cvs update. I typically keep about 5 copies of the entire tree checked out, to make it easy to check in different requests without worrying about whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Mail from iSeries with attachment Is there a way to send an email from an iSeries terminal, adding an attachment from the IFS? I know how to send a normal email using the SNDDST utility.
A: There is two main methods of doing this.
*
*The Do-It-Yourselfer will use QtmmSendMail API
*Otherwise there are several o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I debug IL code generated at runtime using Reflection.Emit I am trying to generate some code at runtime using the DynamicMethod class in the Reflection.Emit namespace but for some reason its throwing a "VerificationException". Here is the IL code I am trying to use...
ldarg.1
ldarg.0
ldfld, System.String Firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Haxe in the field I had a fresh look at Haxe again recently and realized that I had overlooked some of its elegance before. But I guess it lacks some visibility among the developers still.
So my question is, does anybody here use it for production? If so, how do you use it? What are the gotchas or difficulties you e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: WPF PasswordBox: How do I warn a user that Caps Lock is enabled? Does anyone know how to implement the standard bubble message that warns users whenever Caps Lock is enabled and a password control has focus? Is this built into the .NET framework, or do I need to write my own class to do this?
A: You could add a ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: VS2008 Navigate to class definition add-in I am looking for a Visual Studio add-in that would analyze the text around the cursor position and navigate to the corresponding class definition.
For example I have this XML file that is currently open:
<object id="abc" type="MyProject.Foo.Bar, MyProject"/>
If I put the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to merge a collection of collections in Linq I would like to be able to fusion an IEnumerable<IEnumerable<T>> into IEnumerable<T> (i.e. merge all individual collections into one). The Union operators only applies to two collections. Any idea?
A: Try
var it = GetTheNestedCase();
return it.SelectMany(x => x);
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Event on a click everywhere on the page outside of the specific div I'd like to hide a div when user click anywhere on the page outside of that div. How can I do that using raw javascript or jQuery?
A: Attach a click event to the document to hide the div:
$(document).click(function(e) {
$('#somediv').hide();
});... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Dead code identification (C++) I have a large legacy C++ project compiled under Visual Studio 2008. I know there is a reasonably amount of 'dead' code that is not accessed anywhere -- methods that are not called, whole classes that are not used.
I'm looking for a tool that will identify this by static analysis.
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Use existing languages in BNF with TinyPG? How can I use these BNF grammars which are in GOLD meta-syntax (RegExp + BNF) with TinyPG? I'm new to BNF so approximately what sort of conversion will I have to do to convert BNF to EBNF?
I believe it should be pretty simple since TinyPG needs RegExp + EBNF in comparison t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to capture image from client webcam in asp.net I am working on an ASP.Net application and I want users to be able to take a picture with their local webcam and then upload it to the server.
I can, of course, rely on users doing this manually via their locally installed software, save the image as a file and do a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to customize an Execute method of ObjectQuery? I have a partition-like database schema in my database.
There's one 'partitioning' table named SITE and every other table has a foreign key to that table (SITE\_FK).
I wrote a partial class for an ObjectContext adding a SITE\_ID property and a constructor that sets ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to setup sub-domains like blogspot What should do to setup a sub-domain for the users when they sign-up into my site.
What are the infrastructure required? I am using Linux servers.
A: You can either use a specific DNS (CNAME or A/AAAA) entry for each known subdomain, or a wild-card DNS entry that'll accept *.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Drop down list box with dynamic month and year in Date Prompt in Cognos I want to add the current month, and the previous two months to a prompt, for a user to select.
e.g. if this month is 2008 Nov, ddlbox should show the following:
112008
102008
092008
How can I do this?
A: <asp:DropDownList ID="DropDownList1"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what's the difference between declaring as new and as something = new something in vb.net? I have see code like this
Dim s as something = new something
Dim s as new something
what's the difference? is there any?
A: A slight difference.
The first allows you to do:
Dim s as ParentType = new InheritedType
The second... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Text file split libraries in Java My program receives large CSV files and transforms them to XML files. In order to have better performance I would like to split this files in smaller segments of (for example) 500 lines. What are the available Java libraries for splitting text files?
A: I don't understand what you'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Found unexpected inside <<<>>>. This is not a valid child element I am trying to validate xml file against schema using XML::Validator::Schema.
But it gives me this error:
Found unexpected <Submission> inside <<<<ROOT>>>>. This is not a valid child element. [Ln: 2, Col:119]
Note: <Submission> is the very first el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Recommendations for column-oriented database I've found databases typically come in two flavors, your traditional row-oriented RDBMS or an object oriented database (OODBMS). However, in the mid 90s I remember, a new breed of databases showing up that were column oriented. Some of these were given the term 4GL, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to check return packet contents in ICMP Ping / Echo? When validating ping echo's, it seems that utilities / libraries often only check the checksum of the packet, and don't actually confirm that the payload sent out matches the payload that was returned. For instance, Wireshark's ICMP parser only checks for bad ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Highlight the difference between two strings in PHP What is the easiest way to highlight the difference between two strings in PHP?
I'm thinking along the lines of the Stack Overflow edit history page, where new text is in green and removed text is in red. If there are any pre-written functions or classes available,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "146"
} |
Q: FFMPEG Frame to DirectX Surface Given a pointer to an AVFrame from FFMPEG's avcodec_decode_video() function how do I copy the image to a DirectX surface? (Assume I have a pointer to an appropriately sized DX X8R8G8B8 surface.)
Thanks.
John.
A: You can use FFMPEG's img_convert() function to simultaneously copy the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the reason not to use select *? I've seen a number of people claim that you should specifically name each column you want in your select query.
Assuming I'm going to use all of the columns anyway, why would I not use SELECT *?
Even considering the question *SQL query - Select * from view or Select col1, col2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/321299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "143"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.