text stringlengths 8 267k | meta dict |
|---|---|
Q: Disabling interstitial graphic when using cfdiv binding Is there a way to keep the "Loading..." graphic from appearing when cfdiv refreshes? I'd like to prevent the flicker of loading the graphic then loading the new html.
A: By adding these lines at the bottom of the header, it overwrites the "Loading..." html an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the difference between Application and Cache in ASP.NET? What the difference between Application("some-object") and Cache("some-object") in ASP.NET?
A: Application is an application wide, no timeout (except when the pool restarts) dictionary. The cache is a temporary repository for common cache storage.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Duplicate Data over One-to-Many self relation (Tsql) Sorry if the title is poorly descriptive, but I can't do better right now =(
So, I have this master-detail scheme, with the detail being a tree structure (one to many self relation) with n levels (on SQLServer 2005)
I need to copy a detail structure from one maste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I test a TCP connection to a server with C# given the server's IP address and port? How can I programmatically determine if I have access to a server (TCP) with a given IP address and port using C#?
A: You could use the Ping class (.NET 2.0 and above)
Ping x = new Ping();
PingReply reply = x.Send(I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I programmatically force an onchange event on an input? How do I programmatically force an onchange event on an input?
I've tried something like this:
var code = ele.getAttribute('onchange');
eval(code);
But my end goal is to fire any listener functions, and that doesn't seem to work. Neither does just upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "174"
} |
Q: How do I get a selection model to work with a proxy model? I have a model and two views set up like this:
Model ---> OSortFilterProxyModel ---> OListView
Model ------------------------------> OTableView
When the user selects something in one of the views, I want the other view to mirror that selection. So I thought... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What does AllowLocation="true" do in System.Web section of Web.Config? We have a .NET 2.0 application which we normally run on IIS6, and used to run fine on IIS7, but recently after installing SP1 for Vista IIS7 seems to be choking on a line in the Web.Config file:
<system.web AllowLocation="true">
Is it safe to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I compare multiple .resx files? How can I compare the content of two (or more) large .resx files? With hundreds of Name/Value pairs in each file, it'd be very helpful to view a combined version. I'm especially interested in Name/Value pairs which are present in the neutral culture but are not also specified ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: PHP regex to remove multiple ?-marks I'm having trouble coming up with the correct regex string to remove a sequence of multiple ? characters. I want to replace more than one sequential ? with a single ?, but which characters to escape...is escaping me.
Example input:
Is this thing on??? or what???
Desired output:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programmatically logging to the Sharepoint ULS I'd like to log stuff in my Sharepoint Web Parts, but I want it to go into the ULS. Most examples that I've found log into the Event Log or some other file, but I did not really find one yet for logging into the ULS.
Annoyingly, Microsoft.SharePoint.Diagnostics Classes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reasons to NOT run a business-critical C# console application via the debugger? I'm looking for a few talking points I could use to convince coworkers that it's NOT OK to run a 24/7 production application by simply opening Visual Studio and running the app in debug mode.
What's different about running a compiled con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to disable Javascript in mshtml.HTMLDocument (.NET) I've got a code like this :
Dim Document As New mshtml.HTMLDocument
Dim iDoc As mshtml.IHTMLDocument2 = CType(Document, mshtml.IHTMLDocument2)
iDoc.write(html)
iDoc.close()
However when I load an HTML like this it executes all Javascripts in it as well as doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I use a Hashtable in a unified EL expression on a c:forEach tag using JSF 1.2 with JSP 2.1? I have a Hashtable<Integer, Sport> called sportMap and a list of sportIds (List<Integer> sportIds) from my backing bean. The Sport object has a List<String> equipmentList. Can I do the following using the unified EL to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a one-liner to read in a file to a string in C++? I need a quick easy way to get a string from a file in standard C++. I can write my own, but just want to know if there is already a standard way, in C++.
Equivalent of this if you know Cocoa:
NSString *string = [NSString stringWithContentsOfFile:file];
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What port number should I use when testing connections in my local intranet in .NET? I want to test a connection to a machine in my local intranet. I know the IP address.
What port number should I use? 555? BTW: I'm using .NET.
A: You can use any but avoid the 'well known' port numbers
More details on such ports... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Means of SAP R/3 standard code modification? I'm trying to determine how to modify SAP R/3 package code of an installed system. Can anyone suggest the module/tool for that?
A: SAP has provided various customer plug-ins in order to enable customers to modify and adapt standard code:
*
*User exits (Transactions SM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why doesn't a 's margin collapse with an adjacent ? From my understanding of the CSS spec, a table above or below a paragraph should collapse vertical margins with it. However, that's not happening here:
table {
margin: 100px;
border: solid red 2px;
}
p {
margin: 100px
}
<table>
<tr>
<td>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Key Presses in Python Is it possible to make it appear to a system that a key was pressed, for example I need to make A key be pressed thousands of times, and it is much to time consuming to do it manually, I would like to write something to do it for me, and the only thing I know well enough is Python.
A better wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Python language API I'm starting with Python coming from java.
I was wondering if there exists something similar to JavaDoc API where I can find the class, its methods and and example of how to use it.
I've found very helpul to use help( thing ) from the Python ( command line )
I have found this also:
http://docs.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you make StackWalk64() work successfully on x64? I have a C++ tool that walks the call stack at one point. In the code, it first gets a copy of the live CPU registers (via RtlCaptureContext()), then uses a few "#ifdef ..." blocks to save the CPU-specific register names into stackframe.AddrPC.Offset, ...AddrS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Structured UAT approaches As a developer I often release different versions of applications that I want tested by users to identify bugs and to confirm requirements are being met.
I give the users a rough idea of what I have changed or new features that need testing, but this seems a bit slap-dash and not very well ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check for null values before doing .AddDays() in SSRS? I have the following as the value for my textbox in SSRS report:
=iif(IsNothing(Fields!MyDate.Value), "", Format(Fields!MyDate.Value.AddDays(30), "MMMM dd, yyyy"))
It gives me an "#Error" every time MyDate is null.
How do i work around this?
UPDATE:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Server Agent Job - Exists then Drop? How can I drop sql server agent jobs, if (and only if) it exists?
This is a well functioning script for stored procedures. How can I do the same to sql server agent jobs?
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[storedproc]') and OBJECTPROPERTY(id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Why do modal dialogs that are opened through a menu item's click event process all window messages? So for the past day or so I have been fixing a bug that is caused by a modal dialog. I work on an application which communicates with the server through the Windows message pump. When I use ShowDialog() to show a mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Convert from MySQL datetime to another format with PHP I have a datetime column in MySQL.
How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP?
A: This should format a field in an SQL query:
SELECT DATE_FORMAT( `fieldname` , '%d-%m-%Y' ) FROM tablename
A: To correctly format a DateTime object in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "473"
} |
Q: How do you make Python / PostgreSQL faster? Right now I have a log parser reading through 515mb of plain-text files (a file for each day over the past 4 years). My code currently stands as this: http://gist.github.com/12978. I've used psyco (as seen in the code) and I'm also compiling it and using the compiled versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a "do ... while" loop in Ruby? I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name):
people = []
info = 'a' # must fill variable with something, otherwise loop won't execute
while not info.empty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "480"
} |
Q: Is it ethical to monitor users? I didn't know I would be getting too many replies so fast. I can provide more details. It is definitely for use within the company. I was looking for some info on whether I should be more careful or anything to watch out for...
My boss is asking me to put some tracking info on what us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What can cause mutated Flash display like this? I'm having a weird cross-browser flash problem. Please see the screenshot below. I have seen this behaviour before, but I cannot recall what the cause was. Can someone please tell me why this happens, and possible actions I can take to fix it?
A: Definately need more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reference .NET Assembly from a SQL Server Stored procedure or function Is it possible to reference a .NET Assembly from a SQL Server Stored procedure or function, or otherwise access the clr code from SQL Server?
EDIT Whilst this solution will require to be somewhat generic, I am fairly confident expecting SQL 2005... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to solve this error: The permissions granted to user 'COMPUTERNAME\\ASPNET' are insufficient for performing this operation. (rsAccessDenied) I am trying to integrate the SSRS report to my web page.
The code is as follows:
ReportViewer1.ProcessingMode = rocessingMode.Remote;
ReportViewer1.ServerReport.ReportServe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you check if a variable is used in a project programmatically? In VB.NET (or C#) how can I determine programmatically if a public variable in class helper.vb is used anywhere within a project?
A: Find all References is your friend.
A: From MSDN
The Find object allows you to search for and replace text in pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is a cross platform way to select a random seed in Java? After reading this answer:
best way to pick a random subset from a collection?
It got me wondering, how does one pick a random seed in Java?
And don't say use System.currentTimeMillis() or System.nanoTime(). Read the article to see why not.
That's a hard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# Array initialization - with non-default value What is the slickest way to initialize an array of dynamic size in C# that you know of?
This is the best I could come up with
private bool[] GetPageNumbersToLink(IPagedResult result)
{
if (result.TotalPages <= 9)
return new bool[result.TotalPages + 1].Select(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do I make sure a user is only logged in once? A few years ago I developed a web app for which we wanted to make sure the users weren't sharing credentials.
One of the things we decided to to, was only allow the user to be logged in from one computer at a time. The way I did this, was to have a little iframe ping... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Are you using BizTalk? If so, how are you using it? At my last place of employment, I used BTS quite a bit. However, I've noticed that managers often want to use it for the wrong things, and developers are hesitant to adopt it.
So, I'm just wondering, how's BTS being used? Please post experiences, not theories.
Than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Sell me const-correctness So why exactly is it that it's always recommended to use const as often as possible? It seems to me that using const can be more of a pain than a help in C++. But then again, I'm coming at this from the python perspective: if you don't want something to be changed, don't change it. So w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: How do I simultaneously (1) keep a from taking up all available width and (2) make it collapse margins with its neighbors? Is it possible to have a <div> simultaneously (1) not take up all available width and (2) collapse margins with its neighbors?
I learned recently that setting a div to display:table will stop i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Suppress error with @ operator in PHP In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error?
If so, in what circumstances would you use this?
Code examples are welcome.
Edit: Note to repliers. I'm not looking to turn error reporting off, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Best way for a dll to get configuration information? We have developed a number of custom dll's which are called by third-party Windows applications. These dlls are loaded / unloaded as required.
Most of the dlls call web services and these need to have urls, timeouts, etc configured.
Because the dll is not permanen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: With DojoX Layout, is it possible to replace the content of a layout? I have a div in which a page is loaded with the DojoX Layout capability:
<div dojoType="dojox.layout.ContentPane"
adjustPaths="true"
renderStyles="true"
executeScripts="true"
href... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to catch the back button event in javascript? Is there a way to respond to the back button being hit (or backspace being pressed) in javascript when only the location hash changes? That is to say when the browser is not communicating with the server or reloading the page.
A: I did a fun hack to solv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Difference between Enum and Define Statements What's the difference between using a define statement and an enum statement in C/C++ (and is there any difference when using them with either C or C++)?
For example, when should one use
enum {BUFFER = 1234};
over
#define BUFFER 1234
A: Define is a preprocessor co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Launching a registered mime helper application I used to be able to launch a locally installed helper application by registering a given mime-type in the Windows registry. This enabled me to allow users to be able to click once on a link to the current install of our internal browser application. This worked fine in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In jQuery Form, 'success' is being called before 'beforeSubmit' is finished I'm using the jQuery Form plugin to upload an image. I've assigned a fade animation to happen the beforeSubmit callback, but as I'm running locally, it doesn't have time to finish before the success function is called.
I am using a callback... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Has an event handler already been added? Is there a way to tell if an event handler has been added to an object? I'm serializing a list of objects into/out of session state so we can use SQL based session state... When an object in the list has a property changed it needs to be flagged, which the event handler took... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: Bulk updating a table from rows from another table 2 tables:
Employees
- EmployeeID
- LeadCount
Leads
- leadID
- employeeID
I want to update the Employees.LeadCount column by counting the # of leads in the Leads table that have the same EmployeeID.
Note: There may be more than 1 lead with the same employeeID, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/136986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Auto-Hide taskbar not appearing when my application is maximized My application draws all its own window borders and decorations. It works fine with Windows taskbars that are set to auto-hide, except when my application window is maximized. The taskbar won't "roll up". It will behave normally if I have the applica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Redefine Class Methods or Class Is there any way to redefine a class or some of its methods without using typical inheritance? For example:
class third_party_library {
function buggy_function() {
return 'bad result';
}
function other_functions(){
return 'blah';
}
}
What can I do to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Why don't I see a significant speed-up when using the MATLAB compiler? I have a lot of nice MATLAB code that runs too slowly and would be a pain to write over in C. The MATLAB compiler for C does not seem to help much, if at all. Should it be speeding execution up more? Am I screwed?
A: First, I second all the abov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PHP Object as XML Document What is the best way to take a given PHP object and serialize it as XML? I am looking at simple_xml and I have used it to parse XML into objects, but it isn't clear to me how it works the other way around.
A: Use a dom function to do it:
http://www.php.net/manual/en/function.dom-import-si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can I programmatically determine if I have write privileges using C# in .Net? How can I determine if I have write permission on a remote machine in my intranet using C# in .Net?
A: The simple answer would be to try it and see. The Windows security APIs are not for the faint of heart, and may be possible you ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you get assembler output from C/C++ source in GCC? How does one do this?
If I want to analyze how something is getting compiled, how would I get the emitted assembly code?
A: As everyone has pointed out, use the -S option to GCC. I would also like to add that the results may vary (wildly!) depending on whet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "514"
} |
Q: What's the best way to read and parse a large text file over the network? I have a problem which requires me to parse several log files from a remote machine.
There are a few complications:
1) The file may be in use
2) The files can be quite large (100mb+)
3) Each entry may be multi-line
To solve the in-use issue, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can emacs re-indent a big blob of HTML for me? When editing HTML in emacs, is there a way to automatically pretty-format a blob of markup, changing something like this:
<table>
<tr>
<td>blah</td></tr></table>
...into this:
<table>
<tr>
<td>
blah
</td>
</tr>
</table>
A: In emacs 25, which I'm currentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: How to validate ASPNET AJAX installation How can I validate that my ASPNET AJAX installation is correct.
I have Visual Studio 2008 and had never previously installed any AJAX version.
My UpdatePanel is nto working within IIS6, although it works ok within Visual Studio's web server. The behaviour I get is as if the U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Too many "pattern suffixes" - design smell? I just found myself creating a class called "InstructionBuilderFactoryMapFactory". That's 4 "pattern suffixes" on one class. It immediately reminded me of this:
http://www.jroller.com/landers/entry/the_design_pattern_facade_pattern
Is this a design smell? Should I impose... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Don't have exclusive access to database and so cannot save changes I'm working on a MS Access database. I've made some changes to one of the modules. I want to go out for lunch, but when I try closing the database, I get the following message:
"You do not have exclusive access to the database. Your design changes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Boost::signal memory access error I'm trying to use boost::signal to implement a callback mechanism, and I'm getting a memory access assert in the boost::signal code on even the most trivial usage of the library. I have simplified it down to this code:
#include <boost/signal.hpp>
typedef boost::signal<void (void)> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting days since epoch to seconds since epoch At my new workplace, they represent a lot of dates as "days since epoch" (which I will hereafter call DSE). I'm running into issues in JavaScript converting from DSE to seconds since epoch (UNIX timestamps). Here's my function to do the conversion:
function daysToTi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alternatives to using delays when automatically testing an AJAX web UI I will soon be working on AJAX driven web pages that have a lot of content generated from a Web Service (WCF).
I've tested this sort of thing in the past (and found it easy) but not with this level of dynamic content.
I'm developing in .NET 3.5 u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What's the difference between the open source licences I read all the licenses, and frankly I am kindda baffled by the many choices available. I know some relax the limitation of the license so that open source stuff can be used in commercial applications.
But other than that, why are there so many licenses out ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What's the best visual merge tool for Git? What's the best tool for viewing and editing a merge in Git? I'd like to get a 3-way merge view, with "mine", "theirs" and "ancestor" in separate panels, and a fourth "output" panel.
Also, instructions for invoking said tool would be great. (I still haven't figure out how t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "699"
} |
Q: Rounding in MS Access Whats the best way to round in VBA Access?
My current method utilizes the Excel method
Excel.WorksheetFunction.Round(...
But I am looking for a means that does not rely on Excel.
A: In Switzerland and in particulat in the insurance industry, we have to use several rounding rules, depending if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using comparison operators outside of conditionals For example
int f(int a) {
...
return a > 10;
}
is that considered acceptable (not legal, I mean is it ``good code''), or should it always be in a conditional, like this
int f(int a) {
...
if (a > 10)
return 1;
else
return 0;
}
A: The f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a way to add a Subversion section to the right click menu for TextMate? I'd like to be able to click on a file to revert it, or check in a directory, etc. It would be much more convenient to have these available from the right click menu.
A: Have you seen this?
ProjectPlus
ProjectPlus is a plug-in for Tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there something like ZenTest/Autotest for Java and JUnit I've used ZenTest and autotest to work on Ruby projects before, and I used to using them for test-driven development a la this configuration. I have a project that I'm currently working on in Java, and I was wondering if there is something similar in the Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: finding apache build options I need to rebuild an apache server, but the original source is no longer available. Is there any way ( command line switch to httpd? ) to get the build options which were originally used?
A: Try -V which "Print the version and build parameters of httpd, and then exit."
httpd -V
Also, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to launch Windows' RegEdit with certain path? How do I launch Windows' RegEdit with certain path located, like "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0", so I don't have to do the clicking?
What's the command line argument to do this? Or is there a place to find the explanation of RegEdit's switche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: How to deal with a slow SecureRandom generator? If you want a cryptographically strong random numbers in Java, you use SecureRandom. Unfortunately, SecureRandom can be very slow. If it uses /dev/random on Linux, it can block waiting for sufficient entropy to build up. How do you avoid the performance penalty?
Has an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "185"
} |
Q: Automatically mounting NTFS partition on FreeBSD at boot time I am looking for the way to mount NTFS hard disk on FreeBSD 6.2 in read/write mode.
searching google, I found that NTFS-3G can be a help.
Using NTFS-3G, there is no problem when I try to mount/unmount NTFS manually:
mount: ntfs-3g /dev/ad1s1 /home/admin/d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where can I find an AutoComplete TextBox code sample for Silverlight? I've searched around for a while today, but I haven't been able to come up with an AutoComplete TextBox code sample for Silverlight 2 Beta 2. The most promising reference was found on nikhilk.net but the online demo doesn't currently render and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you optimize tables for specific queries?
*
*What are the patterns you use to determine the frequent queries?
*How do you select the optimization factors?
*What are the types of changes one can make?
A: This is a nice question, if rather broad (and none the worse for that).
If I understand you, then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: List all types declared by module in Ruby How can I list all the types that are declared by a module in Ruby?
A: Not sure if this is what you mean, but you can grab an array of the names of all constants and classes defined in a module by doing
ModuleName.constants
A: Use the constants method defined in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: MSBuild doesn't pick up references of the referenced project I bumped into a strange situation with MSBuild just now. There's a solution which has three projects: LibX, LibY and Exe. Exe references LibX. LibX in its turn references LibY, has some content files, and also references to a third-party library (several p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Lazy Registration on the Web: Best Practices I first encountered the concept of lazy registration the Ajax Patterns site, where they define it as accumulating "bits of information about the user as they interact, with formal registration occurring later on." I'm looking at doing something similar for my website, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Code run by Hudson can't find executable on the command line I'm setting up my first job in Hudson, and I'm running into some problems. The job monitors two repositories, one containing our DB setup files, the other a bit of code that validates and tests the DB setup files.
Part of the code that runs will throw the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to impersonate a user without logging him on? Is it possible to impersonate a user without supplying user name/password? Basically, I'd like to get the CSIDL_LOCAL_APPDATA for a user (not the current one) using the ShGetFolderPath() function. All I currently have is a SID for that user.
A: You can im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I determine if a remote drive has enough space to write a file using C#? How can I determine if a remote drive has enough space for me to upload a given file using C# in .Net?
A: Use WMI
using System.Management;
// Get all the network drives (drivetype=4)
SelectQuery query = new SelectQuery("select Name, V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: std::map iteration - order differences between Debug and Release builds Here's a common code pattern I have to work with:
class foo {
public:
void InitMap();
void InvokeMethodsInMap();
static void abcMethod();
static void defMethod();
private:
typedef std::map<const char*, pMethod> TMyMap;
TM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the dangers of making a method virtual? I've been doing some mocking with RhinoMocks and it requires that mocked methods be made virtual. This is fine except we have a custom framework which contains the methods that I want to mock which are currently not marked as virtual.
I can't forsee any problem with m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Running Apache Archiva standalone in Gentoo? I have a server running Gentoo 2.6.12 r6 and I want to run Apache Archiva as a standalone server at startup. Does anyone have a working init.d script to accomplish this? Thanks!
A: Assuming that you have created a user account called archiva and Archiva is installed at /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I avoid the Diamond of Death when using multiple inheritance? http://en.wikipedia.org/wiki/Diamond_problem
I know what it means, but what steps can I take to avoid it?
A: A practical example:
class A {};
class B : public A {};
class C : public A {};
class D : public B, public C {};
Notice how class D inher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: What is the best way to read GetResponseStream()? What is the best way to read an HTTP response from GetResponseStream ?
Currently I'm using the following approach.
Using SReader As StreamReader = New StreamReader(HttpRes.GetResponseStream)
SourceCode = SReader.ReadToEnd()
End Using
I'm not quite sure if this is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What is the best tool to inspect the state and size of a user's session state in a ASP.Net 2.0 application We'd like to inspect the state of a user's session state and predefined points during the flow of a legacy web application. We'd like to see which objects are currently present and what the total size is.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to truncate STDIN line length? I've been parsing through some log files and I've found that some of the lines are too long to display on one line so Terminal.app kindly wraps them onto the next line. However, I've been looking for a way to truncate a line after a certain number of characters so that Terminal doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Three table model relationship in CakePHP I've got a CAkePHP 1.2 site. I've got three related Models/tables:
A Comment has exactly one Touch, a Touch has exactly one Touchtype.
In each model, I have a belongs to, so I have
Comments belongs to Touch, Touch belongs to Touchtype.
I'm trying to get a list of comments th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to embed a SWF file in an HTML page? How do you embed a SWF file in an HTML page?
A: If you are using one of those js libraries to insert Flash, I suggest adding plain object embed tag inside of <noscript/>.
A: <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/VhtIydTmOVU&hl=en&am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "179"
} |
Q: How do I prevent using the incorrect type in PHP? PHP, as we all know is very loosely typed. The language does not require you to specify any kind of type for function parameters or class variables. This can be a powerful feature.
Sometimes though, it can make debugging your script a painful experience. For example,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Could a truly random number be generated using pings to pseudo-randomly selected IP addresses? The question posed came about during a 2nd Year Comp Science lecture while discussing the impossibility of generating numbers in a deterministic computational device.
This was the only suggestion which didn't depend on non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Excel CSV - Number cell format I produce a report as an CSV file.
When I try to open the file in Excel, it makes an assumption about the data type based on the contents of the cell, and reformats it accordingly.
For example, if the CSV file contains
...,005,...
Then Excel shows it as 5.
Is there a way to override t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: Is there any way in .NET to programmatically listen to HTTP traffic? I'm using browser automation for testing web sites but I need to verify HTTP requests from the browser (i.e., images, external scripts, XmlHttpRequest objects). Is there a way to programmatically instantiate a proxy for the browser to use in order ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What should I do to keep a tiny Open Source project active and sustainable? A couple of months ago I've coded a tiny tool that we needed at work for a specific task, and I've decided to share it on CodePlex. It's written in C# and honestly it's not big deal but since it's the first project I've ever built from scrat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Process to pass from problem to code. How did you learn? I'm teaching/helping a student to program.
I remember the following process always helped me when I started; It looks pretty intuitive and I wonder if someone else have had a similar approach.
*
*Read the problem and understand it ( of course ) .
*Identify... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: NLP: Building (small) corpora, or "Where to get lots of not-too-specialized English-language text files?" Does anyone have a suggestion for where to find archives or collections of everyday English text for use in a small corpus? I have been using Gutenberg Project books for a working prototype, and would like to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I obtain the size of a folder? I'm converting an old app that records folder sizes on a daily basis. The legacy app uses the Scripting.FileSystemObject library:
Set fso = CreateObject("Scripting.FileSystemObject")
Set folderObject = fso.GetFolder(folder)
size = folderObject.Size
There isn't an equivalent mec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I do a conditional compile based on compiler version? I am maintaining .net 1.1 and .net 3.5 c# code at once. For this purpose I created two csproject files, one for .net 1.1 and another for .net 3.5.
Now, in my source code I am adding new features that are only available in .net 3.5 version, but I also want the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Password composition algorithm I'm sick of remembering all the passwords for different logins. Lately I found the interesting tool password composer which lets you generate passwords base on the hostname and a secret master password. But I don't want to use a website or installing software to generate my passwords.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Null set to Zero for adding I have a SQL query (MS Access) and I need to add two columns, either of which may be null. For instance:
SELECT Column1, Column2, Column3+Column4 AS [Added Values]
FROM Table
where Column3 or Column4 may be null. In this case, I want null to be considered zero (so 4 + null = 4, null ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Unit Testing without Assertions Occasionally I come accross a unit test that doesn't Assert anything. The particular example I came across this morning was testing that a log file got written to when a condition was met. The assumption was that if no error was thrown the test passed.
I personally don't have a proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.