text stringlengths 8 267k | meta dict |
|---|---|
Q: LinkButton not firing on production server This is a good candidate for the "Works on My Machine Certification Program".
I have the following code for a LinkButton...
<cc1:PopupDialog ID="pdFamilyPrompt" runat="server" CloseLink="false" Display="true">
<p>Do you wish to upgrade?</p>
<asp:HyperLink ID="hlYes" run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Real-world problems with naive shuffling I'm writing a number of articles meant to teach beginning programming concepts through the use of poker-related topics. Currently, I'm working on the subject of shuffling.
As Jeff Atwood points out on CodingHorror.com, one simple shuffling method (iterating through an array a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to purge some files from the history of git? I have migrated a couple of project from Subversion to git. It work really well but when I clone my repository, it's really long because I have all the history of a lot of .jar file included in the transfer.
Is there a way to keep only the latest version of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there any way to use a "constant" as hash key in Perl? Is there any way to use a constant as a hash key?
For example:
use constant X => 1;
my %x = (X => 'X');
The above code will create a hash with "X" as key and not 1 as key. Whereas, I want to use the value of constant X as key.
A: Most of the other folks ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Package naming conventions for domain object models What are some good package naming conventions for domain specific object models. For example, say you have a Person.java POJO, would you put it in a mydomain.model or mydomain.entity or mydomain.om (object model) package. The idea is to separate the MVC model ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What causes tables to need to be repaired? Every so often I get an error saying one of my tables "is marked as crashed and should be repaired". I then do a REPAIR TABLE and repair it. What causes them to be marked as crashed and how can I prevent it? I am using MyISAM tables with MySQL 5.0.45.
A: There can be a few... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I build C# ImageList Images from smaller component images? I'd like to make status icons for a C# WinForms TreeList control. The statuses are combinations of other statuses (eg. a user node might be inactive or banned or inactive and banned), and the status icon is comprised of non-overlapping, smaller glyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ADF business components through RMI vs EJB and Toplink What would the differences be in implementing remote business logic?
Currently we are planning on using ADF to develop front-end web applications (moving from Struts). What are the differences between the front end calling EJBs using TopLink vs ADF Business Comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a nice-looking DMG for Mac OS X using command-line tools? I need to create a nice installer for a Mac application. I want it to be a disk image (DMG), with a predefined size, layout and background image.
I need to do this programmatically in a script, to be integrated in an existing build system (mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "231"
} |
Q: Why use Jython when you could just use Java? The standard answer is that it's useful when you only need to write a few lines of code ...
I have both languages integrated inside of Eclipse. Because Eclipse handles the compiling, interpreting, running etc. both "run" exactly the same.
The Eclipse IDE for both is simil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: What's the name of Visual Studio Import UI Widget (picture inside) What's the name of the circled UI element here? And how do I access it using keyboard shortcuts? Sometimes it's nearly impossible to get the mouse to focus on it.
catch (ItemNotFoundException e)
{
}
A: I don't know the name, but the shortcuts ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best way to encrypt a clob? I am using Oracle 9 and JDBC and would like to encyrpt a clob as it is inserted into the DB. Ideally I'd like to be able to just insert the plaintext and have it encrypted by a stored procedure:
String SQL = "INSERT INTO table (ID, VALUE) values (?, encrypt(?))";
PreparedStat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to trim leading zeros from alphanumeric text in mysql function What mysql functions are there (if any) to trim leading zeros from an alphanumeric text field?
Field with value "00345ABC" would need to return "345ABC".
A: I believe you'd be best off with this:
SELECT TRIM(LEADING '0' FROM myField)
A: SELECT T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: IE Automation Book or Resource?? using MSHTML/ShDocVw VB.Net Can anyone recommend a book or a website that explains Internet Explorer Automation using VB.NET? I understand that mshtml and ShDocVw.dll can do this, but I need a resource that will explain it to me. I want to read/write values as well as click buttons.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Hosting control panel with Java EE Application Server support? I currently have WHM/cPanel on my server, but it doesn't integrate properly with any Java EE App Server. I installed Tomcat manually, and have made it work through Apache, but the configuration is more fragile than I'd like.
So, I'm trying to find a repl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Experience with SQLExpress for a multi-user commercial application? I have inherited a VB6/Access application that we have developed and sold for many years. We're going to SQL Server 2005 Express Edition and .Net.
The application can be multi-user. Currently the setup is simple for the customer -- Navigate to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/96997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Type checking on Caché Objects What is the point of type definition on method parameters on Caché Object (from Intersystems) since after it's pre-compiled to the .int format, it removes any typing information, thus making no difference at all?
A: Those types aren't used/checked internal to Cache code, but they are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to open Eclipse project as read-only? Does anyone know is there a way to open a project in Eclipse in read-only mode? If there is a lot of similar projects open it is easy to make changes to a wrong one.
A: Putting project in read-only mode is really useful, when you make another instance from the previous proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do you decompile a swf file I am the maintainer of a site that has allegedly 'lost' the source code to a flash swf file. How do I decompile this source?
Are there any programs online or offline that I could use?
A: Get the Sothink SWF decompiler. Not free, but worth it. Recently used it to decompile an SWF tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: std::map insert or std::map find? Assuming a map where you want to preserve existing entries. 20% of the time, the entry you are inserting is new data. Is there an advantage to doing std::map::find then std::map::insert using that returned iterator? Or is it quicker to attempt the insert and then act based on whet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: At which point in the lifecycle does GetConnectionInterface get called? I have this method on a webpart:
private IFilterData _filterData = null;
[ConnectionConsumer("Filter Data Consumer")]
public void GetConnectionInterface(IFilterData filterData)
{
_filterData = filterData;
}
Now, before I can call upon _fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can anyone give me a list of the Business Objects Error Codes and what they mean? Business Objects Web Services returns error codes and I have yet to find a good resource where these are listed and what they mean. I am currently getting an "The resultset was empty. (Error: WBP 42019)". Any ideas on where these mig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "get() const" vs. "getAsConst() const" Someone told me about a C++ style difference in their team. I have my own viewpoint on the subject, but I would be interested by pros and cons coming from everyone.
So, in case you have a class property you want to expose via two getters, one read/write, and the other, readonly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you limit height of a Sytem.Windows.Form to an exact value? What I am trying to achieve is a form that has a button on it that causes the Form to 'drop-down' and become larger, displaying more information. My current attempt is this:
private void btnExpand_Click(object sender, EventArgs e)
{
if (btnExpand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the C# version of VB.NET's InputBox? What is the C# version of VB.NET's InputBox?
A: There isn't one. If you really wanted to use the VB InputBox in C# you can. Just add reference to Microsoft.VisualBasic.dll and you'll find it there.
But I would suggest to not use it. It is ugly and outdated IMO.
A: Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "175"
} |
Q: How can I get the current exception in a WinForms TraceListener I am modifying an existing WinForms app which is setup with a custom TraceListener which logs any unhandled errors that occur in the app. It seems to me like the TraceListener gets the message part of the exception (which is what gets logged), but not t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: regular expression to parse LDAP dn I have the following string:
cn=abcd,cn=groups,dc=domain,dc=com
Can a regular expression be used here to extract the string after the first cn= and before the first ,? In the example above the answer should be abcd.
A: /^cn=([^,]+),/
A: Also, look for a pre-built LDAP parser.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is conditional compilation a valid mock/stub strategy for unit testing? In a recent question on stubbing, many answers suggested C# interfaces or delegates for implementing stubs, but one answer suggested using conditional compilation, retaining static binding in the production code. This answer was modded -2 at th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which software to use for continuous integration of a Java web project We're in an early stage of a new web project. The project will grow and become complex over time. From the beginning we will have unit and integration tests using JUnit and system tests using HtmlUnit. We might also add some static code analysis ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to implement paging for asp:DataList in .NET 2.0? I spent hours researching the problem, and just want to share a solution in case you ever need to implement paging for asp:DataList in .NET 2.0.
My specific requirement was to have "Previous" and "Next" links and page number links.
A: I moved this from the ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you run a script on login in *nix? I know I once know how to do this but... how do you run a script (bash is OK) on login in unix?
A: If you wish to run one script and only one script, you can make it that users default shell.
echo "/usr/bin/uptime" >> /etc/shells
vim /etc/passwd
* username:x:uid:grp:me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Ruby on Rails: no such file to load -- openssl on RedHat Linux Enterprise I am trying to do 'rake db:migrate' and getting the error message 'no such file to load -- openssl'. Both 'openssl' and 'openssl-devel' packages are installed. Others on Debian or Ubuntu seem to be able to get rid of this by installing 'libope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Internationalization sitemesh I'm using freemarker, SiteMesh and Spring framework.
For the pages I use ${requestContext.getMessage()} to get the message from message.properties. But for the decorators this doesn't work. How should I do to get the internationalization working for sitemesh?
A: You have to use the fmt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Must an SMTP client provide the MTA a globally resolvable hostname in the HELO? In short: I'm trying to figure out if I should tell a mail administrator of a friend's employer whether their mail configuration should be fixed, or if I should revise my own policy to be more liberal in what I accept, or neither.
A frie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a monitoring tool like xentop that will track historical data? I'd like to view historical data for guest cpu/memory/IO usage, rather than just current usage.
A: There is a perl program i have written that does this. See link text
It also supports logging to a URL.
Features:
perl xenstat.pl -- ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I get the calling instance from within a method via reflection/diagnostics? Is there a way via System.Reflection, System.Diagnostics or other to get a reference to the actual instance that is calling a static method without passing it in to the method itself?
For example, something along these lines
class A
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What is the "N+1 selects problem" in ORM (Object-Relational Mapping)? The "N+1 selects problem" is generally stated as a problem in Object-Relational mapping (ORM) discussions, and I understand that it has something to do with having to make a lot of database queries for something that seems simple in the object wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2114"
} |
Q: WebDev: What is the best way to do a multi-file upload? I want (barely computer literate) people to easily submit a large number of files (pictures) through my web application. Is there a simple, robust, free/cheap, widely used, standard tool/component (Flash or .NET - sorry no java runtime on the browser) that allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Installer: How do I create a start menu shortcut for Administrator only? I have a WSI installer package that I'm using to install my application. The application itself can be run by a normal user, but I have a configuration app that should only be run by a system administrator. Thus, I don't want it to ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Comparing C# and Java I learned Java in college, and then I was hired by a C# shop and have used that ever since. I spent my first week realizing that the two languages were almost identical, and the next two months figuring out the little differences. For the most part, was I noticing the things that Java had that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: 'AjaxControlToolkit' is undefined Error I am using the AjaxControlToolkit in VS2005, and it works fine. I do have some issues though, when I go to some pages I have, then click back, I get this JavaScript error:
'AjaxControlToolkit' is undefined
I have searched MSDN forums, and google, and tried many of the soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Barcode- and Character Recognition component for .Net I need to extract and decode barcodes and text from images. Is there any open source library available that helps to accomplish that task? If not, do you know a good commercial product?
A: Disclaimer: I work for Atalasoft.
DotImage + the Barcode Reader addon fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any HTTP proxies with explicit, configurable support for request/response buffering and delayed connections? When dealing with mobile clients it is very common to have multisecond delays during the transmission of HTTP requests. If you are serving pages or services out of a prefork Apache the child processes will be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: VS 2008 Post Build Step funny business Ok, here's the breakdown of my project: I have a web project with a "Scripts" subfolder. That folder contains a few javascript files and a copy of JSMin.exe along with a batch file that runs the JSMin.exe on a few of the files. I tried to set up a post build step of 'call "$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I capture an asterisk on the form's KeyUp event? OR, How do I get a KeyChar on the KeyUp event? I'm trying to hijack an asterisk with the form's KeyUp event. I can get the SHIFT key and the D8 key on the KeyUp event, but I can't get the * out of it. I can find it easily in the KeyPress event (e.KeyChar = "*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unix gettimeofday() - compatible algorithm for determining week within month? If I've got a time_t value from gettimeofday() or compatible in a Unix environment (e.g., Linux, BSD), is there a compact algorithm available that would be able to tell me the corresponding week number within the month?
Ideally the return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keyboard shortcut to close all tabs but current one in Visual Studio? Does anyone know a keyboard shortcut to close all tabs except for the current one in Visual Studio? And while we're at it, the shortcut for closing all tabs? Is there a Resharper option for this? I've looked in the past and have never been able to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: How can I determine the name of the currently focused process in C# For example if the user is currently running VS2008 then I want the value VS2008.
A: using System;
using System.Windows;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace FGHook
{
class ForegroundTracker
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: LINQ FormatException I currently have an existing database and I am using the LINQtoSQL generator tool to create the classes for me. The tool is working fine for this database and there are no errors with that tool.
When I run a LINQ to SQL query against the data, there is a row that has some invalid data somehow wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VB6 lost F1 help function after Install of VS2005, re-install of MSDN2001 did not work After installing VS2005 VB6 lost F1 function to MSDN Oct/2001 lib.
Suggestions to re-install MSDN did not work.
The only thing F1 works on now are ADO statements in VB6. Example ado1.recordset.recordcount If I highlight recordc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I find out what directory my console app is running in? How do I find out what directory my console app is running in with C#?
A: Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
A: In .NET, you can use System.Environment.CurrentDirectory to get the directory from which the process was starte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: WCF faults and exceptions I'm writing a WCF service for the first time. The service and all of its clients (at least for now) are written in C#. The service has to do a lot of input validation on the data it gets passed, so I need to have some way to indicate invalid data back to the client. I've been reading a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Fastest way to find objects from a collection matched by condition on string member Suppose I have a collection (be it an array, generic List, or whatever is the fastest solution to this problem) of a certain class, let's call it ClassFoo:
class ClassFoo
{
public string word;
public float score;
//... et... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: GCC dependency generation for a different output directory I'm using GCC to generate a dependency file, but my build rules put the output into a subdirectory. Is there a way to tell GCC to put my subdirectory prefix in the dependency file it generates for me?
gcc $(INCLUDES) -E -MM $(CFLAGS) $(SRC) >>$(DEP)
A: I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: MessageBox loses focus in maximized MDI form I have an MDI application (written in .NET 2.0) which lets users open multiple child forms. The child forms are always maximized inside the MDI parent. When the MDI parent is maximized and I attempt to do a MessageBox.Show, the MessageBox doesn't show. If I do an alt-t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TFSBuild.proj and Importing External Targets We want to store our overridden build targets in an external file and include that targets file in the TFSBuild.proj. We have a core set steps that happens and would like to get those additional steps by simply adding the import line to the TFSBuild.proj created by the wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Run macro automatically OnSave in Word I have a macro which refreshes all fields in a document (the equivalent of doing an F9 on the fields). I'd like to fire this macro automatically when the user saves the document.
Under options I can select "update fields when document is printed", but that's not what I want. In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I write a Windows batch script to copy the newest file from a directory? I need to copy the newest file in a directory to a new location. So far I've found resources on the forfiles command, a date-related question here, and another related question. I'm just having a bit of trouble putting the pieces togethe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Yield in VB.NET C# has the keyword called yield. VB.NET lacks this keyword. How have the Visual Basic programmers gotten around the lack of this keyword? Do they implement they own iterator class? Or do they try and code to avoid the need of an iterator?
The yield keyword does force the compiler to do some coding b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: How can I open a google chrome control in C# I know there is a way to add a IE control, how do you add a chrome control...? Is it even possible right now?
I'm need this because of the fast javascript VM found in chrome.
A: Check this out: Use chrome as browser in C#?
A: I searched around and I don't think Google C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get the underlying value of an enum I have the following enum declared:
public enum TransactionTypeCode { Shipment = 'S', Receipt = 'R' }
How do I get the value 'S' from a TransactionTypeCode.Shipment or 'R' from TransactionTypeCode.Receipt ?
Simply doing TransactionTypeCode.ToString() gives a string of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Physical Address in JAVA How do I get the physical addresses of my machine in Java?
A: As of Java 6, java.net.NetworkInterface class now has the method getHardwareAddress()
http://java.sun.com/javase/6/docs/api/java/net/NetworkInterface.html#getHardwareAddress()
If that's too new, there are UUID packages which try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I install PDT 2.0 in Eclipse Ganymede? I've been trying to install PDT in Eclipse 3.4 for a few hours now and I'm not having any success.
I have a previous installation of the Eclipse for Java EE developers (my main deal) distro and I just want to add the PDT to my install so I can also work on some of my web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does IE6 Support AES 256 bit encryption? Will IE6 negotiate a 256 bit AES SSL connection if the server is capable?
A: Sometimes there is just a plain and simple way of finding out. If you look at the internet explorer help > about internet explorer, it will tell you the max cipher bits that it supports, and on IE6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Good example of use of AppDomain I keep getting asked about AppDomains in interviews, and I know the basics:
*
*they are an isolation level within an application (making them different from applications)
*they can have threads (making them different from threads)
*exceptions in one appdomain do not affect anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Regexes and multiple multi-character delimeters Suppose you have the following string:
white sand, tall waves, warm sun
It's easy to write a regular expression that will match the delimiters, which the Java String.split() method can use to give you an array containing the tokens "white sand", "tall waves" and "warm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ API for returning sequences in a generic way If I am writing a library and I have a function that needs to return a sequence of values, I could do something like:
std::vector<int> get_sequence();
However, this requires the library user to use the std::vector<> container rather than allowing them to use whatever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How is a web service request handled in ASP.Net When a client makes a web service request, how does asp.net assign an instance of the service class to handle that request?
Is a new instance of the service class created per request or is there pooling happening or is there a singleton instance used to handle all requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Making a WinForms TextBox behave like your browser's address bar When a C# WinForms textbox receives focus, I want it to behave like your browser's address bar.
To see what I mean, click in your web browser's address bar. You'll notice the following behavior:
*
*Clicking in the textbox should select all the text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: Crystal Reports and LINQ Has anyone figured out how to use Crystal Reports with Linq to SQL?
A: You can convert your LINQ result set to a List, you need not strictly use a DataSet as the reports SetDataSource, you can supply a Crystal Reports data with an IEnumerable. Since List inherits from IEnumerable you can se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Rails SSL Requirement plugin -- shouldn't it check to see if you're in production mode before redirecting to https? Take a look at the ssl_requirement plugin.
Shouldn't it check to see if you're in production mode? We're seeing a redirect to https in development mode, which seems odd. Or is that the normal behavio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Given this XML, is there an xpath that will give me the 'test' and 'name' values? I need to get the value of the 'test' attribute in the xsl:when tag, and the 'name' attribute in the xsl:call-template tag. This xpath gets me pretty close:
..../xsl:template/xsl:choose/xsl:when
But that just returns the 'when' el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the ROWID from a Progress database I have a Progress database that I'm performing an ETL from. One of the tables that I'm reading from does not have a unique key on it, so I need to access the ROWID to be able to uniquely identify the row. What is the syntax for accessing the ROWID in Progress?
I unders... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Binding a null value to a property of a web user control Working on a somewhat complex page for configuring customers at work. The setup is that there's a main page, which contains various "panels" for various groups of settings.
In one case, there's an email address field on the main table and an "export" config... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Formatting of if Statements This isn't a holy war, this isn't a question of "which is better".
What are the pros of using the following format for single statement if blocks.
if (x) print "x is true";
if(x)
print "x is true";
As opposed to
if (x) { print "x is true"; }
if(x) {
print "x is true";
}
If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What libraries can I use to build a GUI with Erlang? What libraries can I use to build a GUI for an Erlang application? Please one option per answer.
A: I find it a little puzzling that anyone would want to write a GUI for a Erlang program in something other than Erlang? Erlang's concurrency model makes it an excel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to load a python module into a fresh interactive shell in Komodo? When using PyWin I can easily load a python file into a fresh interactive shell and I find this quite handy for prototyping and other exploratory tasks.
I would like to use Komodo as my python editor, but I haven't found a replacement for PyWin's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NHibernate, auditing and computed column values How is possible to set some special column values when update/insert entities via NHibernate without extending domain classes with special properties?
E.g. every table contains audit columns like CreatedBy, CreatedDate, UpdatedBy, UpdatedDate. But I dont want to add th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are all the valid self-closing elements in XHTML (as implemented by the major browsers)? What are all the valid self-closing elements (e.g. <br/>) in XHTML (as implemented by the major browsers)?
I know that XHTML technically allows any element to be self-closed, but I'm looking for a list of those elements sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "194"
} |
Q: Custom URL Extensions/Routing Without IIS Access I have a need to use extensionless URLs. I do not have access to IIS (6.0) so I cannot map requests to ASP.NET and handle with a HttpHandler/HttpModule. However, I can set a custom 404 page via web host control panel.
My current plan is to perform necessary logic in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the advantages and disadvantages of DTOs from a website performance perspective? What are the advantages and disadvantages of DTOs from a website performance perspective? (I'm talking in the case where the database is accessed on a different app server to the web server - and the web server could access the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to estimate the TCO of open source implementations I mean, this is Sakai, the open source project of a learning management system. But, really I'm clueless trying to estimate the hidden costs in one implementation project (on the technology side, not the pedagogy-stuff) in a small-medium scale institution.
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# 'generic' type problem C# question (.net 3.5). I have a class, ImageData, that has a field ushort[,] pixels. I am dealing with proprietary image formats. The ImageData class takes a file location in the constructor, then switches on file extension to determine how to decode. In several of the image files, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I escape a string inside JavaScript code inside an onClick handler? Maybe I'm just thinking about this too hard, but I'm having a problem figuring out what escaping to use on a string in some JavaScript code inside a link's onClick handler. Example:
<a href="#" onclick="SelectSurveyItem('<%itemid%>', '<%itemn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Has anyone got an example of aerith style swing mixed with GUI maintainability of SWT editing? My boss loves VB (we work in a Java shop) because he thinks it's easy to learn and maintain. We want to replace some of the VB with java equivalents using the Eclipse SWT editor, because we think it is almost as easy to ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best tool to track a process's memory usage over a long period of time in Windows? What is the best available tool to monitor the memory usage of my C#/.Net windows service over a long period of time. As far as I know, tools like perfmon can monitor the memory usage over a short period of time, but not g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Login failed for user 'username' - System.Data.SqlClient.SqlException with LINQ in external project / class library This might seem obvious but I've had this error when trying to use LINQ to SQL with my business logic in a separate class library project.
I've created the DBML in a class library, with all my busin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a control for a .Net WinForm app that will display HTML I have a .net (3.5) WinForms application and want to display some html on one of the forms. Is there a control that I can use for this?
A: Yep sure is, the WebBrowser control.
A: I was looking at the WebBrowser control but couldn't work out how to as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Static Analysis tool recommendation for Java? Being vaguely familiar with the Java world I was googling for a static analysis tool that would also was intelligent enough to fix the issues it finds. I ran at CodePro tool but, again, I'm new to the Java community and don't know the vendors.
What tool can you recommen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: What exactly is SQL Server 2005 User Mapping? In the new login dialog of the SQL Server 2005 Management Studio Express, what is the User Mapping actually doing? Am I restricting access to those databases that are checked? What if I check none?
A: It's mapping user rights to specific databases. If you don't check ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Good explanation of "Combinators" (For non mathematicians) Anyone got a good explanation of "combinators" (Y-combinators etc. and NOT the company)?
I'm looking for one for the practical programmer who understands recursion and higher-order functions, but doesn't have a strong theory or math background.
(Note: that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Make Maven to copy dependencies into target/lib How do I get my project's runtime dependencies copied into the target/lib folder?
As it is right now, after mvn clean install the target folder contains only my project's jar, but none of the runtime dependencies.
A: The best approach depends on what you want to do:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "287"
} |
Q: How do I determine darker or lighter color variant of a given color? Given a source color of any hue by the system or user, I'd like a simple algorithm I can use to work out a lighter or darker variants of the selected color. Similar to effects used on Windows Live Messenger for styling the user interface.
Language ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How can I get word wrap to work in Eclipse PDT for PHP files? Programming PHP in Eclipse PDT is predominately a joy: code completion, templates, method jumping, etc.
However, one thing that drives me crazy is that I can't get my lines in PHP files to word wrap so on long lines I'm typing out indefinitely to the righ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Visual Studio 2005 says I don't have permission to debug? I am new to visual studio/asp.net so please bear with me. Using vs 2005 and asp.net 3.5. I have vs installed on the production server. If I set the start option for the site to "use default web server" when I go to debug my website vs tries to open the sit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Filter on current date within Castor OQL I'm running the java cocoon 2 and castor oql. I'm trying to filter my oql query by today's date, but I can't seem to figure out (or find in google) the syntax of the date. The database is mySql, but the oql is mapped by the java classes... so doing a search on field_date >=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Game UI HUD What are some good tools and techniques for making in game UI? I'm looking for things that help artists-types create and animate game HUD (heads up display) UI and can be added to the game engine for real time playback.
A: If you are working with a middleware environment like Torque or Unity3D, they inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Absolute position, can someone explain this Here is a snippet of CSS that I need explained:
#section {
width: 860px;
background: url(/blah.png);
position: absolute;
top: 0;
left: 50%;
margin-left: -445px;
}
Ok so it's absolute positioning of an image, obviously.
*
*top is like padding fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Auto-indent spaces with C in vim? I've been somewhat spoiled using Eclipse and java. I started using vim to do C coding in a linux environment, is there a way to have vim automatically do the proper spacing for blocks?
So after typing a { the next line will have 2 spaces indented in, and a return on that line wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Using an ASP.NET SiteMap for a Page with multiple paths I have a certain page (we'll call it MyPage) that can be accessed from three different pages. In the Web.sitemap file, I tried to stuff the XML for this page under the three separate nodes like this:
< Page 1 >
< MyPage / >
...
< /Page 1 >
< Page 2 >
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/97732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.