text stringlengths 8 267k | meta dict |
|---|---|
Q: UI During Custom Installer Action What is the correct way to display UI during a custom installer action?
I would like my UI to be modal on the install dialog, or alternatively, I'd like a way to display text/progress from my custom action in the installer dislog.
The installer is a VS2005 setup project and the cust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a good lightweight multiplatform C++ timer queue? What I'm looking for is a simple timer queue possibly with an external timing source and a poll method (in this way it will be multi-platform). Each enqueued message could be an object implementing a simple interface with a virtual onTimer() member function.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a good description of the "system call" mechanism used in OSes? I am looking for a good primer or technical description of the System Call mechanism that is used by operating systems to transition from user space to the kernel to invoke functions such as "open", "read", "write", etc...
Is there anything oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ORM: Handwritten schema or auto-generated? Should I use a hand-written schema for my projected developed in a high-level language (such as Python, Ruby) or should I let my ORM solution auto-generate it?
Eventually I will need to migrate without destroying all the data. It's okay to be tied to a specific RDBMS but it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: XML vs Text for Non-web development applications I do alot of systems programming where my apps have no chance of being used to communicate over the web or viewed through a browser. But, there has been some push by management to use XML. For example, if I want to keep a time log I could use a text file like this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Keyboard shortcuts in an XBAP I would like to support keyboard shortcuts in my WPF XBAP application, such as Ctrl+O for 'Open' etc. How do I disable the browsers built-in keyboard shortcuts and replace them with my own?
A: You can't disable the browser's built-in handling of keys. It's not your place as browser co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Spring.net + Nhibernate Integration Tests Pass When They Should Not I'm using Spring.net with NHiberante (HibernateTemplate) to implement my DAO's.
I also have some integration tests, that extend from 'AbstractTransactionalDbProviderSpringContextTests '.
DI is working fine, and all test pass BUT sometimes they pass ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read console output in j2me cellphones? Where does System.out.println() go? When writing j2me applications for cellphones, using System.out.println() prints on the console if using an emulator. However, when the code is deployed on a cellphone, where does the console output go?
If it is impossible to see this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/126999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's a good compression library for Java? I need to compress portions of our application's network traffic for performance. I presume this means I need to stay away from some of the newer algorithms like bzip2, which I think I have heard is slower.
A: You can use Deflater/Inflater which is built into the JDK. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: VBA PowerPoint Online Guide and How to Record a Macro Could anyone recommend to me a good online guide to PowerPoint VBA? Also, does anyone has advice on how to record a macro in PowerPoint?
A: Microsoft remove macro recorder from PowerPoint 2007.
To view the struct of objects use Watch (Shift +F9) in object.
For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Returning an 'any kind of input iterator' instead of a vector::iterator or a list::iterator Suppose I want to implement in C++ a data-structure to store oriented graphs. Arcs will be stored in Nodes thanks to STL containers. I'd like users to be able to iterate over the arcs of a node, in an STL-like way.
The issue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I check my byte flag, verifying that a specific bit is at 1 or 0? I use a byte to store some flag like 10101010, and I would like to know how to verify that a specific bit is at 1 or 0.
A: As an extension of Patrick Desjardins' answer:
When doing bit-manipulation it really helps to have a very solid knowled... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Comparing cold-start to warm start Our application takes significantly more time to launch after a reboot (cold start) than if it was already opened once (warm start).
Most (if not all) the difference seems to come from loading DLLs, when the DLLs' are in cached memory pages they load much faster. We tried using Cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why is it not a good idea to use SOAP for communicating with the front end (ie web browser)? Why is it not a good idea to use SOAP for communicating with the front end? For example, a web browser using JavaScript.
A: If the web browser is your only client then I would have to agree that SOAP is overkill.
However, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Copy / Put text on the clipboard with FireFox, Safari and Chrome In Internet Explorer I can use the clipboardData object to access the clipboard. How can I do that in FireFox, Safari and/or Chrome?
A: As of 2017, you can do this:
function copyStringToClipboard (string) {
function handler (event){
event.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: How to UAC elevate a COM component with .NET I've found an article on how to elevate a COM object written in C++ by calling
CoCreateInstanceAsAdmin. But what I have not been able to find or do, is a way to implement a component of my .NET (c#) application as a COM object and then call into that object to execute th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Find out number of capture groups in Python regular expressions Is there a way to determine how many capture groups there are in a given regular expression?
I would like to be able to do the follwing:
def groups(regexp, s):
""" Returns the first result of re.findall, or an empty default
>>> groups(r'(\d)(\d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Does .NET Framework 3.5 SP1 require restart? We have a production machine and are trying to slowly introduce some 3.0 and up features on our web application. 3.5 is installed but I would like to upgrade to SP1, I would just like to know if it requires a restart of the machine in the end so I can schedule some down t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: GridView Row to Object Type In ASP.NET, if I databind a gridview with a array of objects lets say , how can I retrieve and use foo(index) when the user selects the row?
i.e.
dim fooArr() as foo;
gv1.datasource = fooArr;
gv1.databind();
On Row Select
Private Sub gv1_RowCommand(ByVal sender As Object, ByVal e As Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why do VS2008 spawn one Cassini for each web-site/application when going into debug mode? I have quite a big solution here with a lot of different web applications and sites, around 10-15 of them.
When I attach VS2008 to any process (most likely Nunit.exe or something similar) I get one Cassini process per website/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the preferred method of commenting JavaScript objects and methods? I'm used to Atlas where the preferred (from what I know) method is to use XML comments such as:
/// <summary>
/// Method to calculate distance between two points
/// </summary>
///
/// <param name="pointA">First point</param>
/// <param nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: So, who should daemonize? The script or the caller? I'm always wondering who should do it. In Ruby, we have the Daemons library which allows Ruby scripts to daemonize themselves. And then, looking at God (a process monitoring tool, similar to monit) page, I see that God can daemonize processes.
Any definitive answ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Convert integer to binary string I was wondering if there was an easy way in SQL to convert an integer to its binary representation and then store it as a varchar.
For example 5 would be converted to "101" and stored as a varchar.
A: this is a generic base converter
http://dpatrickcaldwell.blogspot.com/2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How to test for object existence in Firebird SQL? I need to test whether various types of database objects exist in a given database, and I don't know how to formulate these tests in Firebird SQL. Each test has the form "Does object of type X with name Y exist?". For example, I need to test whether a table with a gi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Resolve Windows device path to drive letter How do you resolve an NT style device path, e.g. \Device\CdRom0, to its logical drive letter, e.g. G:\ ?
Edit: A Volume Name isn't the same as a Device Path so unfortunately GetVolumePathNamesForVolumeName() won't work.
A: Hopefully the following piece of code will give y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Sample Code for R? Does anyone know a good online resource for example of R code?
The programs do not have to be written for illustrative purposes, I am really just looking for some places where a bunch of R code has been written to give me a sense of the syntax and capabilities of the language?
Edit: I have read th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Is it possible to create INTERNATIONAL permalinks? i was wondering how you deal with permalinks on international sites. By permalink i mean some link which is unique and human readable.
E.g. for english phrases its no problem e.g. /product/some-title/
but what do you do if the product title is in e.g chinese langua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: QTP_errObject CaptureBitmap May I request you to clarify the issue I have with QTP err object.
I am trying to capture the screen shot of an object on which error occured.
I use the code object.captureBitmap(filename) to achieve this.
I would like to know if it is possible to get the screen shot of the entire page wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine differences in two lists of data This is an exercise for the CS guys to shine with the theory.
Imagine you have 2 containers with elements. Folders, URLs, Files, Strings, it really doesn't matter.
What is AN algorithm to calculate the added and the removed?
Notice: If there are many ways to solve th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to change slow parametrized inserts into fast bulk copy (even from memory) I had someting like this in my code (.Net 2.0, MS SQL)
SqlConnection connection = new SqlConnection(@"Data Source=localhost;Initial
Catalog=DataBase;Integrated Security=True");
connection.Open();
SqlCommand cmdInsert = connection.Cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to check if an index exists on a table field in MySQL How do I check if an index exists on a table field in MySQL?
I've needed to Google this multiple times, so I'm sharing my Q/A.
A: SHOW KEYS FROM tablename WHERE Key_name='unique key name'
will show if a unique key exists in the table.
A: Use the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "123"
} |
Q: Could you explain STA and MTA? Can you explain STA and MTA in your own words?
Also, what are apartment threads and do they pertain only to COM? If so, why?
A: I find the existing explanations too gobbledygook. Here's my explanation in plain English:
STA:
If a thread creates a COM object that's set to STA (when call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "409"
} |
Q: Good Haskell coding style of if/else control block? I'm learning Haskell in the hope that it will help me get closer to functional programming. Previously, I've mostly used languages with C-like syntax, like C, Java, and D.
I have a little question about the coding style of an if/else control block used by the tutor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do I get the full name of the current user from a SQL Reporting Services 2008 report? I know that the name of the user account can be retrieved from the built in variable User!UserID but how can I get the full user name of the user?
I guess it would be possible to hook up some .NET code and do a Active Directory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using 'this' as a parameter to a method call in a constructor I have a constructor like as follows:
public Agent(){
this.name = "John";
this.id = 9;
this.setTopWorldAgent(this, "Top_World_Agent", true);
}
I'm getting a null pointer exception here in the method call. It appears to be because I'm using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: log4net/c# - Different layout based on the level Is there any way to have different layout based on level of the log message when using log4net? Say, if it is a fatal error, I want to see all kind of information possible - class name, method name, line number etc. But for normal, debug and warning, I want to see onl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Does Class need to implement IEnumerable to use Foreach This is in C#, I have a class that I am using from some else's DLL. It does not implement IEnumerable but has 2 methods that pass back a IEnumerator. Is there a way I can use a foreach loop on these. The class I am using is sealed.
A: Re: If foreach doesn't re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Contextual Natural Language Resources, Where Do I Start? Where can i find some .Net or conceptual resources to start working with Natural Language where I can pull context and subjects from text. I wish not to work with word frequency algorithms.
A: To find resources in part of speech tagging (a natural language pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET client app: how to reach Web Services in case of proxy? We are developing a .NET 2.0 winform application. The application needs to access Web Services. Yet, we are encountering issues with users behind proxies.
Popular windows backup applications (think Mozy) are providing a moderately complex dialog window ded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to bind extenders to controls on clientside I have some dynamically created inputs which are not server-side controls. I want to relate them to some CalendarExtender and MaskedEditExtender on the clientside. Is there a way to do that?
A: Yes I think it may be possible here is how:
On the server side set the Beh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ to XML Newbie Question: Returning More Than One Result Greetings!
I'm working on wrapping my head around LINQ. If I had some XML such as this loaded into an XDocument object:
<Root>
<GroupA>
<Item attrib1="aaa" attrib2="000" attrib3="true" />
</GroupA>
<GroupB>
<Item attrib1="bbb" at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does NHaml have a content_for ability for layouts? I am currently starting a project utilizing ASP.NET MVC and would like to use NHaml as my view engine as I love Haml from Rails/Merb. The main issue I face is the laying out of my pages. In Webforms, I would place a ContentPlaceHolder in the head so that other pages... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ScriptManager.RegisterClientScript in a UserControl within a FormView inside an Async Panel I'm having an annoying problem registering a javascript event from inside a user control within a formview in an Async panel. I go to my formview, and press a button to switch into insert mode. This doesn't do a full page pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't select Primary Output as target of shortcut in Visual Studio 2005 setup project I've Added a setup project to my solution (didn't use the wizard) I then added the primary output of the Windows Application I have coded to the Applcation Folder node (Right click the setup project in Solution-Explorer and select ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to subclass a C struct in C++ and use pointers to the struct in C code? Is there a side effect in doing this:
C code:
struct foo {
int k;
};
int ret_foo(const struct foo* f){
return f.k;
}
C++ code:
class bar : public foo {
int my_bar() {
return ret_foo( (foo)this );
}
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is there any way, in java, to check on the status of a windows service? I am looking for a library that will allow me to look up the status of a windows service to verify that the service is started and running. I looked into the Sigar library, but it is GPL and therefor I cannot use it. A Commercial or BSD(ish) l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Are there any all-in-one packages that help install wamp on a production server? I need to install amp on a windows2003 production server. I'd like, if possible, an integrated install/management tool so I don't have to install/integrate the components of amp separately. Those that I've found are 'development' server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What methods for measuring progress during a release sprint are effective EDIT TO IMPROVE CLARITY
Scrum suggests that you split your development into a number of sprints. Each sprint being a fixed duration. At the end of each sprint you ask the client if you should release the software. If they say yes, you perform ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Problem Exporting DataGrid to Excel I first got an error usign the code below, explaining that "DataGridLinkButton' must be placed inside a form tag with runat=server."
Now I've tried setting AllowSorting to false, as well as removing the sort expression from each column, with the same error. Then I tried creating ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any sed like utility for cmd.exe? I want to programmatically edit file content using windows command line (cmd.exe). In *nix there is sed for this tasks. Are there any useful native equivalents (cmd or ps) in windows?
A: You could try powershell. There are get-content and set-content commandlets build in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "189"
} |
Q: gss_acquire_cred returning Key table entry not found error I have been trying to follow the guidelines in this Microsoft article to authenticate
against Apache with Kerberos and AD. I have successfully tested the communication between the apache server and the AD server with kinit. However when I attempt to access ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java constants in JSP I have a class that defines the names of various constants, e.g.
class Constants {
public static final String ATTR_CURRENT_USER = "current.user";
}
I would like to use these constants within a JSP without using Scriptlet code such as:
<%@ page import="com.example.Constants" %>
<%= Constant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Decipher Client-Side Rules binary definition for Microsoft Outlook Outlook saves its client-side rule definitions in a binary blob in a hidden message in the Inbox folder of the default store for a profile. The hidden message is named "Outlook Rules Organizer" with a message class IPM.RuleOrganizer. The binary blob ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: S/MIME libraries for .net? I need to create S/MIME messages using C# (as specified in RFC 2633, "S/MIME Version 3 message specification", and RFC 3335).
The only S/MIME library I can find is a commercial library (http://www.example-code.com/csharp/smime.asp), which is no good for us.
Are there any existing libraries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Programming Languages and Design Patterns different programming languages have different features or lack certain features. Design patterns are a way to work around those shortcomings. I have seen the books and lists about design patterns in static, object oriented languages (Java, C++), but also the Videos about de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the debug memory fill patterns in Visual Studio C++ and Windows? In Visual Studio, we've all had "baadf00d", have seen seen "CC" and "CD" when inspecting variables in the debugger in C++ during run-time.
From what I understand, "CC" is in DEBUG mode only to indicate when a memory has been new() or alloc() a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "241"
} |
Q: Route-problem regarding Url-encoded Umlauts (using the Zend-framework) Today I stumbled about a Problem which seems to be a bug in the Zend-Framework. Given the following route:
<test>
<route>citytest/:city</route>
<defaults>
<controller>result</controller>
<action>test</action>
</default... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Finding the name of a variable in C I was asked a question in C last night and I did not know the answer since I have not used C much since college so I thought maybe I could find the answer here instead of just forgetting about it.
If a person has a define such as:
#define count 1
Can that person find the variable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .NET SOAP Common types Is there a way when creating web services to specify the types to use? Specifically, I want to be able to use the same type on both the client and server to reduce duplication of code.
Over simplified example:
public class Name
{
public string FirstName {get; set;}
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java annotations for design patterns? Is there a project that maintains annotations for patterns?
For example, when I write a builder, I want to mark it with @Builder.
Annotating in this way immediately provides a clear idea of what the code implements. Also, the Javadoc of the @Builder annotation can reference expl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Source code search with Google Desktop Is there a indexing plugin for GDS that allows for source code search? I see some for specific types (Java, C++, ...) and one for "any text". These are nice, but I would like one that allows for many/configurable extensions (HTML, CSS, JS, VB, C#, Java, Python, ...). A huge ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Controls do not appear on dynamically created user control I have user control named DateTimeUC which has two textboxes on its markup:
<asp:TextBox ID="dateTextBox" runat="server"></asp:TextBox>
<asp:TextBox ID="timeTextBox" runat="server"></asp:TextBox>
I am dynamically creating this control in another user contro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: History not visible in VSS, now what? I've been tasked with "fixing" an old VSS database. At this point in time, we are considering migrating to TFS, but for the time being, if we could get VSS back to a stable condition, it would provide some peace of mind.
We're starting to get worried that VSS is going to die on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using OpenID as a login for my website - redundant providers How do I support redundancy on my OpenID login website?
For instance, I have users that demand 100% uptime (yeah, right, but let's get as close as we can).
Some of them use less available providers (ie, myphpid on their own website, or an ID on a startup ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: GNU compiler warning "class has virtual functions but non-virtual destructor" I have defined an interface in C++, i.e. a class containing only pure virtual functions.
I want to explicitly forbid users of the interface to delete the object through a pointer to the interface, so I declared a protected and non-virtual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: What are the naming conventions that you use while coding? What are the naming conventions that you use while coding?
A: I hope we will not discuss prefixes for field names and brace styles here :)
Here is my bible for .NET:
Also MSDN gives solid guidelines.
Another useful source is MS Internal Coding Guidelines
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to write a class library for OLE Automation? I have Excel add-in which I add so many class modules that it is now very bulky. I want to convert it into a type library or a COM package so that I can re-use it for the other apps in the MS Office suite.
I ported the add-in to Visual Studio as a class library projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Contributing to Python I'm a pretty inexperienced programmer (can make tk apps, text processing, sort of understand oop), but Python is so awesome that I would like to help the community. What's the best way for a beginner to contribute?
A: *
*Add to the docs. it is downright crappy
*Help out other users on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using shell_exec('passwd') to change a user's password I need to be able to change the users' password through a web page (in a controlled environment).
So, for that, I'm using this code:
<?php
$output = shell_exec("sudo -u dummy passwd testUser testUserPassword");
$output2 = shell_exec("dummyPassword");
echo $outpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Server Management Studio won't start A coworker of mine has this problem, apparently after installing Re#, which seems totally irrelevant. But perhaps it isn't.
Could not load file or assembly "SqlManagerUi, Version=9.0.242.0..." or one of its dependencies. The module was expected to contain an assembly manifest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: looking for simulated annealing implementation in VB Is anyone aware of a reasonably well documented example of simulated annealing in Visual Basic that I can examine and adapt?
A: This project looks pretty well documented: http://www.codeproject.com/KB/recipes/simulatedAnnealingTSP.aspx. It's C# but contains only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Detecting WPF Validation Errors In WPF you can setup validation based on errors thrown in your Data Layer during Data Binding using the ExceptionValidationRule or DataErrorValidationRule.
Suppose you had a bunch of controls set up this way and you had a Save button. When the user clicks the Save button, you need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: How do you deploy a WAR that's inside an EAR as the root (/) context in Glassfish? I have an EAR file that contains two WARs, war1.war and war2.war. My application.xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Dump CCWs and RCWs in a mixed managed/unmanaged process I have a mixed managed/unmanaged environment (Visual Studio and ReSharper) and I suspect CCW or RCW leak. Is there any way to dump all currently allocated wrappers and identify their source/target? I have WinDbg, SOS & SOSEx, so I can see total number of RCWs a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What guidelines for HTML email design are there? What guidelines can you give for rich HTML formatting in emails while maintaining good visual stability across many clients and web based email interfaces?
An unrelated answer on a question on Stack Overflow suggested:
http://www.campaignmonitor.com/blog/archives/2008... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "105"
} |
Q: Resizing Controls in MFC I am writing a program which has two panes (via CSplitter), however I am having problems figuring out out to resize the controls in each frame. For simplicity, can someone tell me how I would do it for a basic frame with a single CEdit control?
I'm fairly sure it is to do with the CEdit::On... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Capture right-click'd text on Outlook Message Content I'd like to know if it's possible to capture the text when a user right-click's on an Outlook message, and then add items to the right-click menu depending on the type of text.
This is an example of what I'd like to do. If there's a message (mail item) with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I reorder the fields/columns in a SharePoint view? I'm adding a new field to a list and view. To add the field to the view, I'm using this code:
view.ViewFields.Add("My New Field");
However this just tacks it on to the end of the view. How do I add the field to a particular column, or rearrange the field ord... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should I allow 'allow_url_fopen' in PHP? We have a couple of developers asking for allow_url_fopen to be enabled on our server. What's the norm these days and if libcurl is enabled is there really any good reason to allow?
Environment is: Windows 2003, PHP 5.2.6, FastCGI
A: I think the answer comes down to how well... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Guidelines for designing classes for dependency injection This question about unit testing best practices mentions designing classes for dependency injection. This got me thinking as to what exactly that might mean.
Having just started working with inversion of control containers I have some ideas on the issue, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WPF ListBoxItem selection problem I have a listbox where the items contain checkboxes:
<ListBox Style="{StaticResource CheckBoxListStyle}" Name="EditListBox">
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Click="Checkbox_Click" IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" Content="{Bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Does Cache activity prevent IIS from unloading an ASP.NET app? I want to add a scheduled task to a client's ASP.NET app. These posts cover the idea well:
*
*https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/
*What is the Best Practice to Kick-off Maintenance Process on ASP.NET
*"Out of Band"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is your favourite Windbg tip/trick? I have come to realize that Windbg is a very powerful debugger for the Windows platform & I learn something new about it once in a while. Can fellow Windbg users share some of their mad skills?
ps: I am not looking for a nifty command, those can be found in the documentation.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How do I programmatically close an InfoPath form in C#? Is it possible to close an InfoPath form programmatically? I know that it can be configured as a form rule / action but I want to close the form via code.
A: Use the ApplicationClass.XDocuments.Close method and pass it your document object:
using System;
usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WPF locbaml-ed application and runtime language switch? i wonder if there is a simple solution to change language of a wpf application during runtime. i used locbaml to globalize all the resources. Setting the Current Thread's UICulture in the App-constructor works fine, but when i try to chang it a little bit later... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use JVLC (Java bindings for VLC)? I'm trying to use JVLC but I can't seem to get it work. I've downloaded the jar, I installed VLC and passed the -D argument to the JVM telling it where VLC is installed. I also tried:
NativeLibrary.addSearchPath("libvlc", "C:\\Program Files\\VideoLAN\\VLC");
with no luck. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Caps Lock as Esc in Mac OS X How do I make Caps Lock work like Esc in Mac OS X?
A: I wasn't happy with any of the answers here, and went looking for a command-line solution.
In macOS Sierra 10.12, Apple introduced a new way for users to remap keys.
*
*No need to fiddle around with system GUIs
*No special p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "504"
} |
Q: How to make an International Soundex? E.g. the Soundex algorithm is optimized for English. Is there a more universal algorithm that would apply across large families of languages?
A: SOUNDEX is indeed English-oriented. Two others that take a wider variety of phonetic differences into account are: Double Metaphone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Flex: Loading assets into externally loaded modules So, I have Flex project that loads a Module using the ModuleManager - not the module loader. The problem that I'm having is that to load an external asset (like a video or image) the path to load that asset has to be relative to the Module swf...not relative to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Transferring extended ascii characters with unknown encoding to a Twisted XMLRPC from C# Basically I want to pass a string which contains Spanish text that could be in one of several encodings (Latin-1, CP-1252, or UTF-8 to name a few). Once it gets to the XMLRPC I can detect the encoding, but I won't know it befor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I enable applets on Mac Firefox 3.0.1? I have Java 1.5.0 installed on a Mac OS machine. I have the Java Embedding Plugin 0.9.6.4 installed and java enabled on the preferences panel. When I go to http://java.com/en/download/help/testvm.xml the applet appears blank. Does anyone has an idea of what is happening?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Editing XML as a dictionary in python? I'm trying to generate customized xml files from a template xml file in python.
Conceptually, I want to read in the template xml, remove some elements, change some text attributes, and write the new xml out to a file. I wanted it to work something like this:
conf_base = Conve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are the access restrictions on accessing a DSN We are running part of our app as a windows service and it needs to b able to access DSNs in order to import through ODBC. However there seem to be a lot of restrictions found through trial and error on what DSNs it can access. For example it seems that it cannot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get a webservice connection to work from Access 2003 runtime install? I have an Access 2003 application that communicates with a Webservice to get articles from a central database. It runs fine in a full Access install but when I make runtime install with Package Wizard included in Access 2003 developer ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to programmatically change the work flow between SSIS control flow tasks? I have an SSIS package, which depending on a boolean variable, should either go to a Script Task or an Email task.(Note: the paths are coming from a Script Task)
I recall in the old dts designer there was a way to do this via code. What is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForms in Excel (2002) and add-ons Good morning,
I am about to start writing an Excel add-in for Excel 2002. The add-in needs to call a form. Obviously, I can write the form within VBA.
My question is -- is there an easy/good way of calling a .NET (I am using 3.5) from Excel, and have the form be able to write s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which design is better for a class that simply runs a self-contained computation? I'm currently working on a class that calculates the difference between two objects. I'm trying to decide what the best design for this class would be. I see two options:
1) Single-use class instance. Takes the objects to diff in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I install DBD::mysql so I can use it with Maatkit? I'm trying to install Maatkit following the maatkit instructions. I can't get past having to install DBD::mysql. "Warning: prerequisite DBD::mysql 1 not found."
When I try to install DBD::mysql from cpan, I get very helpful "make had returned bad status, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the advantages/disadvantages for distributing multi stage tasks via JMS or JavaSpaces? When trying to distribute work that requires a multiple stage processing pipeline what are the communication, synchronization and throughput costs limitations in JMS vs JavaSpaces?
A: If you want SEDA, sending messages f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a good tool for MySQL that will help me optimise my queries and index settings? I use MySQL in a fairly complex web site (PHP driven).
Ideally, there would be a tool I could use that would help me test the SQL queries I am using and suggest better table indexes that will improve performance and avoid table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/127630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.