text stringlengths 8 267k | meta dict |
|---|---|
Q: Can a web service return a stream? I've been writing a little application that will let people upload & download files to me. I've added a web service to this applciation to provide the upload/download functionality that way but I'm not too sure on how well my implementation is going to cope with large files.
At th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to achieve const-correctness in C#?
Possible Duplicate:
“const correctness” in C#
I have programmed C++ for many years but am fairly new to C#. While learning C# I found that the use of the const keyword is much more limited than in C++. AFAIK, there is, for example, no way to declare arguments to a function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Maven dependency exclusion for War file, but inclusion for tests I have a maven POM file for a web service. For one of the dependencies I have to specify several exclusions for jar files that are already kept at a higher-level in the web-application server (accessible to all web-applications, not just this particula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Exception handling using an HttpModule We're reviewing one of the company's system's exception handling and found a couple of interesting things.
Most of the code blocks (if not all of them) are inside a try/catch block, and inside the catch block a new BaseApplicationException is being thrown - which seems to be co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Show a ContextMenuStrip without it showing in the taskbar I have found that when I execute the show() method for a contextmenustrip (a right click menu), if the position is outside that of the form it belongs to, it shows up on the taskbar also.
I am trying to create a right click menu for when clicking on the notif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you retrieve a list of logged-in/connected users in .NET? Here's the scenario:
You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session.
Please note that this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Adding ListItems to a DropDownList from a generic list I have a this aspx-code: (sample)
<asp:DropDownList runat="server" ID="ddList1"></asp:DropDownList>
With this codebehind:
List<System.Web.UI.WebControls.ListItem> colors = new List<System.Web.UI.WebControls.ListItem>();
colors.Add(new ListItem("Select Value"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the difference between overflow:hidden and display:none What is the difference between overflow:hidden and display:none?
A: display: none removes the element from the page, and the flow of the page acts as if it's not there at all.
overflow: hidden:
The CSS overflow: hidden property can be used to reveal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I disable #pragma warnings? While developing a C++ application, I had to use a third-party library which produced a huge amount of warnings related with a harmless #pragma directive being used.
../File.hpp:1: warning: ignoring #pragma ident
In file included from ../File2.hpp:47,
from ../File... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Font size in CSS - % or em? When setting the size of fonts in CSS, should I be using a percent value (%) or em? Can you explain the advantage?
A: There's a really good article on web typography on A List Apart.
Their conclusion:
Sizing text and line-height in ems,
with a percentage specified on the
body (and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: Can "classic" ASP.NET pages and Microsoft MVC coexist in the same web application? I'm thinking about trying out MVC later today for a new app we're starting up, but I'm curious if it's an all or nothing thing or if I can still party like it's 2006 with viewstate and other crutches at the same time...
A: Yes you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: In Visual Studio how to give relative path of a .lib file in project properties I am building a project using Visual Studio. The project has a dependency on a lib file generated by another project. This project is there is the parent directory of the actual project I am building.
To be more clear,
I have a "Parent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PDB files in Visual Studio bin\debug folders I have a Visual Studio (2008) solution consisting of several projects, not all in the same namespace. When I build the solution, all the DLL files used by the top level project, TopProject, are copied into the TopProject\bin\debug folder. However, the corresponding .pdb f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Method 'XYZ' cannot be reflected We have consumed a third party web service and are trying to invoke it from an ASP.NET web application.
However when I instantiate the web service the following System.InvalidOperationException exception is thrown:
Method 'ABC.XYZ' can not be reflected.
System.InvalidOperationExc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Sprint Cumulative Flow Diagram Can anyone give me some tips about how to read a Cumulative Flow Diagram. I'm not sure what kind of things its telling me.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/132724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are delphi variables initialized with a value by default? I'm new to Delphi, and I've been running some tests to see what object variables and stack variables are initialized to by default:
TInstanceVariables = class
fBoolean: boolean; // always starts off as false
fInteger: integer; // always starts off as zero... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Why should I ever use inline code? I'm a C/C++ developer, and here are a couple of questions that always baffled me.
*
*Is there a big difference between "regular" code and inline code?
*Which is the main difference?
*Is inline code simply a "form" of macros?
*What kind of tradeoff must be done when choosing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: jQuery - running a function on a new image I'm a jQuery novice, so the answer to this may be quite simple:
I have an image, and I would like to do several things with it.
When a user clicks on a 'Zoom' icon, I'm running the 'imagetool' plugin (http://code.google.com/p/jquery-imagetool/) to load a larger version of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Different layouts and i18n in JSP application I have a bunch of JSP files and backend in Tomcat. I have 3 different versions of JSP with same logic inside but with different layouts. So if I change some logic I have three JSP file to fix.
What is the proper soution for such a scenario? I thought of some XML and XSLT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I - in ASP.NET save the info from a page when a user leaves the page? In our CMS, we have a place in which we enable users to play around with their site hierarchy - move pages around, add and remove pages, etc.
We use drag & drop to implement moving pages around.
Each move has to saved in th DB, and exporte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I echo a newline in a batch file?
How can you you insert a newline from your batch file output?
I want to do something like:
echo hello\nworld
Which would output:
hello
world
A: You can also do like this,
(for %i in (a b "c d") do @echo %~i)
The output will be,
a
b
c d
Note that when this is put in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "759"
} |
Q: The permissions granted to user ' are insufficient for performing this operation. (rsAccessDenied)"} I created a report model using SSRS (2005) and published to the local server. But when I tried to run the report for the model I published using report builder I get the following error.
Report execution error:The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Deterministic dispose of ThreadStatic objects The ThreadStatic attribute declares a static variable as unique-per-thread.
Do you know an easy pattern to correctly dispose such variables?
What we used before ThreadStatic is a ThreadContextManager. Every thread was allocated a ThreadContext which retained all thread-s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Test automation using batch files: I have the following layout for my test suite:
TestSuite1.cmd:
*
*Run my program
*Check its return result
*If the return result is not 0, convert the error to textual output and abort the script. If it succeeds, write out success.
In my single .cmd file, I call my program a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I add an action to visio (2003) In a visio shapesheet one can add actions. I want to create an action that updates the value of another cell (the position of a control). How can one do that. Does it need a separate macro, or can it be specified directly? And how?
A: You don't need an addon or macro, you can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I have a gem installed but require 'gemname' does not work. Why? The question I'm really asking is why require does not take the name of the gem. Also, In the case that it doesn't, what's the easiest way to find the secret incantation to require the damn thing!?
As an example if I have memcache-client installed then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How to improve your dev team's Joel Test score? Joel Test is a good and famous list checking some requisites every software company should concern about.
They are:
*
*Do you use source control?
*Can you make a build in one step?
*Do you make daily builds?
*Do you have a bug database?
*Do you fix bugs before w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best way to switch configuration between Development/UAT/Prod environments in ASP.NET? I need to switch among 3 different environments when developing my web app - Development, UAT, and Prod. I have different database connections in my configuration files for all 3. I have seen switching these settings done manually... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the best way to generate XML Binding Code from a DTD? Most Java-XML binding frameworks and code generators need XML Schema Defintions. Can you suggest the best way to generate binding code from DTD.
I know that the XJC in JAXB 2 supports DTD but it is considered experimental.
In the spirit of Stack Overflow,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I split the output from mysqldump into smaller files? I need to move entire tables from one MySQL database to another. I don't have full access to the second one, only phpMyAdmin access. I can only upload (compressed) sql files smaller than 2MB. But the compressed output from a mysqldump of the first database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Force Https in Websphere 6.1 I was wondering how i can force a user who has requested a page using Http to use the secure https version?
I am using Websphere 6.1 as my application server and Rad 7 as my development environment
Thanks
Damien
A: One way that you could do this within your application rather than in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does Castle Windsor hold onto transient objects? Recently I noticed my application appears to be eating memory that never gets released. After profiling with CLRProfiler I've found that the Castle Windsor container I'm using is holding onto objects. These objects are declared with the lifestyle="transient" attri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I set a task to run every so often? How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X.
A: Syntax of Cron
You can use cron to schedule tasks.
crontab -e
A job is specified in the following format.
* * * * * command to execute
│ │ │ │ │
│ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: What is the Windows version of cron? A Google search turned up software that performs the same functions as cron, but nothing built into Windows.
I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone.
Is there also a way to invoke this feature (which based... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "295"
} |
Q: How do you force a maven MOJO to be executed only once at the end of a build? I have a MOJO I would like executed once, and once only after the test phase of the last project in the reactor to run.
Using:
if (!getProject().isExecutionRoot()) {
return ;
}
at the start of the execute() method means my mojo ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a difference between "==" and "is"? My Google-fu has failed me.
In Python, are the following two tests for equality equivalent?
n = 5
# Test one.
if n == 5:
print 'Yay!'
# Test two.
if n is 5:
print 'Yay!'
Does this hold true for objects where you would be comparing instances (a list say)?
Okay, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/132988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "628"
} |
Q: Flex HttpService : appending to destination I am using Flex to connect to a Rest service. To access order #32, for instance, I can call the URL http://[service]/orders/32.
The URL must be configured as a destination - since the client will connect to different instances of the service. All of this is using the Blaze... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is Big O notation? Do you use it? What is Big O notation? Do you use it?
I missed this university class I guess :D
Does anyone use it and give some real life examples of where they used it?
See also:
Big-O for Eight Year Olds?
Big O, how do you calculate/approximate it?
Did you apply computational complexity t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How to check if a column exists in a SQL Server table I need to add a specific column if it does not exist. I have something like the following, but it always returns false:
IF EXISTS(SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'myTableName'
AND COLUMN_NAME = '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2126"
} |
Q: Control for tags with auto-completion in Winforms? I am seeking a WinForm control that would provide an autocomplete behavior for multiple space-separated - exactly ala del.icio.us (or stackoverflow.com for that matter).
Does anyone knows how to do that within a .NET 2.0 WinForm application?
A: ComboBox can autocom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the difference between visibility:hidden and display:none? The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?
A: display:none removes the element from the layout flow.
visibility:hidden hides it but leaves the space.
A: There is a big differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1372"
} |
Q: How should I bind a web UI against XML attributes? I want to bind my UI against a collection of XElements and their properties on a webpage. Hypothetically, this could be for any object that represents an XML tree. I'm hoping that there might be a better way of doing this.
Should I use an XPath query to get out th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Most efficient way in SQL Server to get date from date+time? In MS SQL 2000 and 2005, given a datetime such as '2008-09-25 12:34:56' what is the most efficient way to get a datetime containing only '2008-09-25'?
Duplicated here.
A: in SQL server 2012 use
select cast(getdate() as date)
A: Select DateAdd(Day, Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: What's the best to method call a Webservice from ASP? Note: not ASP.NET.
I've read about various methods including using SOAPClient (is this part of the standard Windows 2003 install?), ServerXMLHTTP, and building up the XML from scratch and parsing the result manually.
Has anyone ever done this? What did you use a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you identify duplicate values in a numerical sequence using XPath 2.0? I have an XPath expression which provides me a sequence of values like the one below:
1 2 2 3 4 5 5 6 7
This is easy to convert to a sequence of unique values 1 2 3 4 5 6 7 using distinct-values(). However, what I want to extract is the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Best Practices for Internationalizing a Flex Application? I am looking into internationalizing a Flex application I am working on and I am curious if there are any best practices or recommendations for doing so.
Googling for such information results in a handful of small articles and blog posts, each about doing it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How secure is basic forms authentication in asp.net? Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx. Your site is secured using nothing but ASP.net forms authentication and an ASP.net Login server control on login.aspx. The details are as follows:
*
*The site is configured to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: ASP.Net Medium Trust setup I am trying to configure the IPermission node as part of medium trust. However I am unable to find the valid values list for the PathDiscovery attribute on the node
<IPermission class="FileIOPermission" version="1" Read="$AppDir$" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I carry out math functions in the Ant 'ReplaceRegExp' task? I need to increment a number in a source file from an Ant build script. I can use the ReplaceRegExp task to find the number I want to increment, but how do I then increment that number within the replace attribute?
Heres what I've got so far:
<repla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the list of JConnect error-codes? I have recently changed an application from storing the database username and password in a configuration file (gasp password stored in plain text in a config file).
The application now asks the user to type in her username and password before it can continue.
The new versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change a Window Owner using its handle I want to make a .NET Form as a TopMost Form for another external App (not .NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running.
I Have the handle of the Win32App (provided by the Win32App itself), and I've tried Win32 SetParent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Any other IDEs for Lotus Notes other than Domino Designer? Are there any other IDEs worth my time for Lotus Notes development? We're doing mostly LotusScript development and would kill for features of Eclipse or Visual Studio, like "Show Declaration". I know there's an Eclipse plugin for Java development in Notes, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Eclipse Search Menus disabled randomly I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl+H, I am able to access the search fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application? What is the best way to configure iPlanet/Sun ONE be the HTTP/HTTPS front end to a JBoss/Tomcat application?
Are there any performance considerations?
How would this compare with the native integration betwee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LLBLGen: How can I softdelete a entry I have inherited a project that uses LLBLGen Pro for the DB layer. The DB model requires that when a entry is deleted a flag (DeletedDate is set to the current time). The last programmer ignored this requirement and has used regular deletes throughout the entire application.
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I implement quicksort using a batch file? While normally it's good to always choose the right language for the job, it can sometimes be instructive to try and do something in a language which is wildly inappropriate.
*
*It can help you understand the problem better. Maybe you don't have to solve it the wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Classic ASP and ASP.NET Integration In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well.
However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The decision was made to allow the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Rules for properly organized bugtracker (Mantis et al) On a particular project we're working with a total of 10 team members.
After about a year working on the project (and using Mantis as a bug-/feature-tracker eversince), the bugtracker gets more and more difficult to use, as no standard has been setup that expla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Embedded Outlook View Control I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3 and Internet Explorer 7.
My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control.
I get COM Exception with 'Exception from HRESULT: 0xXXXXXXXX' descri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Perforce, how do I get a list of checked out files? How do I get a list of the files checked out by users (including the usernames) using P4V or P4?
I want to provide a depot location and see a list of any files under that location (including sub folders) that are checked out.
A: In case you want to search for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Is there a typical state machine implementation pattern? We need to implement a simple state machine in C.
Is a standard switch statement the best way to go?
We have a current state (state) and a trigger for the transition.
switch(state)
{
case STATE_1:
state = DoState1(transition);
break;
case STATE_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: ASP.NET/IIS: 404 for all file types I set up 404 handler page in web.config, but it works ONLY when extension of URL is .aspx (or other which is handled by ASP.NET).
I know I can setup static HTML page in website options, but I want to have a page.
Is there any options to assign ASPX handler page for all request ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Eval scripts in server side control property how do i implement an eval script in a sever side control?
eg. <a runat="server" href="?id=<%= Eval("Id") %>">hello world</a>
A: If the server-side control is within a databound control (ListView, GridView, FormView, DetailsView), then the syntax is: <%# Eval("Id") %>.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I discover resources in a Java jar with a wildcard name? I want to discover all xml files that my ClassLoader is aware of using a wildcard pattern. Is there any way to do this?
A: A Spring ApplicationContext can do this trivially:
ApplicationContext context = new ClassPathXmlApplicationContext("applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Building Eclipse plugins and features on the command line I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: ASP.Net Session I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons of each solution?
I have been using Session objects, and using some helper methods to strongly type the objects:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Text from UITextView does not display in UIScrollView I want to have a UIScrollView with a set of subviews where each of these subviews has a UITextView with a different text. For this task, I have modified the PageControl example from the apple "iphone dev center" in order to add it a simple UITextView to the view ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Illustrating usage of the volatile keyword in C# I would like to code a little program which visually illustrates the behavior of the volatile keyword. Ideally, it should be a program which performs concurrent access to a non volatile static field and which gets incorrect behavior because of that.
Adding the volati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Do I have to use Viewstate in ASP.NET I am moving from classic ASP to ASP.NET and have encountered what many of you already know as "viewstate". I might be jumping the gun with my assumption, but it looks highly cumbersome. I have developed many ASP forms in the past and never had issues with keeping state. Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Castle-ActiveRecord Tutorial with .NET 3.5 broken? Has anyone tried the ActiveRecord Intro Sample with C# 3.5?
I somehow have the feeling that the sample is completely wrong or just out of date. The XML configuration is just plain wrong:
<add key="connection.connection_string" value="xxx" />
should be :
<add key="h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any emulator for the JTAPI API? We want test the JTAPI feature of our application. Are there any emulator for JTAPI available? The testing with real hardware is a little diffcult.
A: gjtapi seems to have one.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/133282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Threading when sending emails I have a simple function that sends out emails, how would I go about using threads to speed email delivery?
Sample code would be ideal.
A: Use SendAsync isntead.
A: Check out the following link for a demonstration of the sendAsync method. [MSDN]
http://msdn.microsoft.com/en-ca/library... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Subfolders in CodeIgniter I'm new to CodeIgniter, and I need some help. I'd like to implement the following:
*
*View a user's profile via:
http://localhost/profile/johndoe
*Administrate a user's profile via:
http://localhost/admin/profile/johndoe
*Be able to accomplish even further processing via:
http://local... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request? I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function. It should return false to prevent an item from being created.
I've added an Ajax call into this function using jQuery:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1318"
} |
Q: Good database table design for storing localized versions of data I'm trying to design some tables to store some data, which has to be converted to different languages later. Can anybody provide some "best practices" or guidelines for this?
Thanks
A: Let's say you have a products table that looks like this:
Product... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In Perforce, can you rename a folder to the same name but cased differently? Can I rename a folder in Perforce from //depot/FooBar/ to //depot/Foobar/?
I've tried this by renaming from //depot/FooBar/ to //depot/Temp/ to //Depot/Foobar/ but the end result ends up the same as //depot/FooBar/.
A: Maybe not needed any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Minimize a external application with Delphi Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application?
for example notepad.exe, except the application I want to minimize will only ever have one instance.
A: You can use FindWindow to find the application han... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Develop SharePoint web parts in ASP.NET I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts.
Does anyone know of any r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Programmatically delete emails and SMSs on a Window Mobile device I'm looking for a code snippet that can delete all emails and text messages on a Windows Mobile device. Preferably the code would delete items in the Sent and Draft folders as well as the Inbox.
My platform is Windows Mobile (5.0 SDK) and .net 2.0 co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Subclipse error message "Expected format '3' of repository; found format '5'" I installed subclipse in eclipse, but I get an error message "Expected format '3' of repository; found format '5'" when I try to open a repository.
Here is the sequence of steps that leads to the error message.
Select "Window -> Open Persp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the difference between a "Data Service Layer" and a "Data Access Layer"? I remember reading that one abstracts the low level calls into a data agnostic framework (eg. ExecuteCommand methods etc), and the other usually contains business specific methods (eg. UpdateCustomer).
Is this correct? Which is which?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you find the namespace/module name programmatically in Ruby on Rails? How do I find the name of the namespace or module 'Foo' in the filter below?
class ApplicationController < ActionController::Base
def get_module_name
@module_name = ???
end
end
class Foo::BarController < ApplicationController
be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How do you handle strings in C++? Which is your favorite way to go with strings in C++? A C-style array of chars? Or wchar_t? CString, std::basic_string, std::string, BSTR or CComBSTR?
Certainly each of these has its own area of application, but anyway, which is your favorite and why?
A: std::string !!
There's a re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: .NET: SqlDataReader.Close or .Dispose results in Timeout Expired exception When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with:
String CRLF = "\r\n";
String sql =
"SELECT * " + CRLF +
"FROM (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Elevating process privilege programmatically? I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code:
ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath);
System.Diagnostics.Process.Start (startInfo);
where m_strInstallUtil is the fully ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "165"
} |
Q: Configure db used for ASP.Net Authentication I want to use forms authentication in my asp.net mvc site.
Can I use an already existing sql db (on a remote server) for it? How do I configure the site to use this db for authentication? Which tables do I need/are used for authentication?
A: You can. Check aspnet_regsql... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Password encryption in Delphi I need to store database passwords in a config file. For obvious reasons, I want to encrypt them (preferably with AES). Does anyone know a Delphi implementation that is easy to introduce into an existing project with > 10,000 lines of historically grown (URGH!) source code?
Clarificatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How do I set the Content-type in Joomla? I am developing a Joomla component and one of the views needs to render itself as PDF. In the view, I have tried setting the content-type with the following line, but when I see the response, it is text/html anyways.
header('Content-type: application/pdf');
If I do this in a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is an orthogonal index? A table in my area of responsibility of our product has been criticised as having more than one orthogonal index.
What is an orthogonal index?
Why is it bad?
How can the situation be avoided?
--Update--
The back-end database engine isn't necessarily relevant here as our application is da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you handle small sets of data? With really small sets of data, the policy where I work is generally to stick them into text files, but in my experience this can be a development headache. Data generally comes from the database and when it doesn't, the process involved in setting it/storing it is generally hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: propertyNameFieldSpecified when generating a 2.0 web service proxy from a WCF Service I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the propertyNameFieldSpecified to true for all the fields I want to submit. Failure to do that and values are not passed back t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get access to the HttpServletRequest object when using Java Web Services I'm using Java 6, Tomcat 6, and Metro. I use WebService and WebMethod annotations to expose my web service. I would like to obtain information about the request. I tried the following code, but wsCtxt is always null. What step must I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Can a TCP/IP Stack be killed programmatically? Our server application is listening on a port, and after a period of time it no longer accepts incoming connections. (And while I'd love to solve this issue, it's not what I'm asking about here;)
The strange this is that when our app stops accepting connections on port... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IPSec AES 256 encryption in Windows XP with Service Pack 3? Does IPsec in Windows XP Sp3 support AES-256 encryption?
Update:
*
*Windows IPsec FAQ says that it's not supported in Windows XP, but maybe they changed it in Service Pack 3?
http://www.microsoft.com/technet/network/ipsec/ipsecfaq.mspx
Question: Is Adv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What DNSs have API access? I saw this over on slashdot and realized if I could program in dns control into some of my apps it would make life a lot easier. Someone over there recommended dynect which apparently had a wonderful api. Unfortunately not a lot else was recomended. I don't know anything about managing dns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I remove an element that matches a given criteria from a LinkedList in C#? I have a LinkedList, where Entry has a member called id. I want to remove the Entry from the list where id matches a search value. What's the best way to do this? I don't want to use Remove(), because Entry.Equals will compare other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Check for a valid guid How can you check if a string is a valid GUID in vbscript? Has anyone written an IsGuid method?
A: This function is working in classic ASP:
Function isGUID(byval strGUID)
if isnull(strGUID) then
isGUID = false
exit function
end if
dim regEx
set regEx ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ruby to Actionscript3 Bytecode Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it.
So my Question is ... what tools are available to convert Ruby source into AS3 bytecode
A: I am the lead developer on the Red Su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Autogeneration of a DataContext designer file when using SqlMetal and Visual Studio I am using SqlMetal to general my DataContext.dbml class for my ASP.net application using LinqToSql. When I initially created the DataContext.dbml file, Visual Studio used this to create a related DataContext.designer.cs file. This d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: First impressions of the Fantom programming language? Has anyone here given the Fantom programming language a whirl? (pun intended).
My first impression:
*
*I like the ability to have the code run on either the .NET or Java VM.
*The syntax is nice and clean and does not try anything fancy.
*I have a belief that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/133528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.