text stringlengths 8 267k | meta dict |
|---|---|
Q: VBScript -- Using error handling I want to use VBScript to catch errors and log them (ie on error "log something") then resume the next line of the script.
For example,
On Error Resume Next
'Do Step 1
'Do Step 2
'Do Step 3
When an error occurs on step 1, I want it to log that error (or perform other custom functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Browser Helper Objects (BHO) in Windows Vista only with admin rights? For a university project I programmed a Internet Explorer Browser Helper Object to process web document information while browsing. It were running successful on Windows XP with IE6 and IE7.
Now I have the issue that under Windows Vista the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I determine the running Mac OS X version programmatically? I have a program which needs to behave slightly differently on Tiger than on Leopard. Does anybody know of a system call which will allow me to accurately determine which version of Mac OS X I am running. I have found a number of macro definitions to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Date/time formats for various countries Is there any source on the web where I could find date and time formats used in individual countries in the World? I was checking languages listed in Control panel in Windows, but there are some countries missing (for example countries in Africa etc.).
I found some locale tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Table Column Formatting I'm trying to format a column in a <table/> using a <col/> element. I can set background-color, width, etc., but can't set the font-weight. Why doesn't it work?
<table>
<col style="font-weight:bold; background-color:#CCC;">
<col>
<tr>
<td>1</td>
<td>2</td>
</tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I easily turn a .Net Windows Form app into an Asp.net app using Visual Studio 2005? I have a pretty basic windows form app in .Net. All the code is C#. I'd like to turn it into an Asp.net web app. How can I easily do this?
I think there's an easy way since the controls I drag/drop onto the windows form de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I prevent Firefox XMLSerializer from capitalizing nodes I'm creating an XML Document in JavaScript on the client side, and then transforming it back to a string to send to the server. Mozilla has a handy method to accomplish this: XMLSerializer().serializeToString(), which I'm using. However, there seems to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get the MAX row with a GROUP BY in LINQ query? I am looking for a way in LINQ to match the follow SQL Query.
Select max(uid) as uid, Serial_Number from Table Group BY Serial_Number
Really looking for some help on this one. The above query gets the max uid of each Serial Number because of the Group By Synt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: What's the WPF equivalent of WinForms components? Windows Forms allows you to develop Components, non-visual elements that can have a designer. Built-in components include the BackgroundWorker, Timer, and a lot of ADO .NET objects. It's a nice way to provide easy configuration of a complicated object, and it it en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: GB English, or US English? If you have an API, and you are a UK-based developer with a highly international audience, should your API be
setColour()
or
setColor()
(To take one word as a simple example.)
UK-based engineers are often quite defensive about their 'correct' spellings but it could be argued that US spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: Field default value from query in MS Access I have a field on a table in MS Access, tblMyTable.SomeID, and I want to set the default value as a user preference in tblUserPref.DefaultSomeID. It doesn't appear that I can set the default value to use a query in the table definition of tblMyTable. I have a form where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Looking for MacOS Threaded Networking sample code My code needs to run all networking routines in a separate NSThread.
I have got a library, which I pass a callback routine for communication:
my thread code
library
my callback (networking)
library
my thread code
My callback routine must POST some da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Unfamiliar character in SQL statement This is sort of SQL newbie question, I think, but here goes.
I have a SQL Query (SQL Server 2005) that I've put together based on an example user-defined function:
SELECT
CASEID,
GetNoteText(CASEID)
FROM
(
SELECT
CASEID
FROM
ATTACHMENTS
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How much of a resource hog is Oracle Enterprise Manager? I'm using a medical records system built on an Oracle database. Our vendor just told us that we need to shut down Oracle's Enterprise Manager service when we're not using it, because it uses too much of the system's resources. I know I can get actual numbers b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: obtaining a requestDispatcher What is the benefit of using the servletContext as opposed the request in order to obtain a requestDispatcher?
servletContext.getRequestDispatcher(dispatchPath)
and using
argRequest.getRequestDispatcher(dispatchPath)
A: It's there in the javadocs in black and white
http://java.sun.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Layout, Vis Studio 2005, and AJAX Tab Container In a C# Web app, VS 2005 (I am avoiding 2008 because I find the IDE to be hard to deal with), I am getting into a layout stew.
I am moving from absolute positioning toward CSS relative positioning.
I'd like to divide the screen into four blocks: top (header band), ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do Java listeners need to be removed? (In general) Imagine this sample java class:
class A {
void addListener(Listener obj);
void removeListener(Listener obj);
}
class B {
private A a;
B() {
a = new A();
a.addListener(new Listener() {
void listen() {}
}
}
Do I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Life Cycle Tools Suite I am looking to replace the life cycle tools currently used by my development teams.
Tools that I'm looking for:
*
*Version Control
*Defect/Issue Tracking
*Requirements Tracking
*Test Case Management
*(potentially) Project Management: Project Status, hours entry
I have a new beefy ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rails test hanging - how can I print the test name before execution? I'm having a test hang in our rails app can't figure out which one (since it hangs and doesn't get to the failure report). I found this blog post http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/ which adds a setup ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: ZK ajax framework Can ZK easily be integrated in a struts web application?
A: maybe you can find it interesting:
http://www.zkoss.org/smalltalks/zk-sample/zk-sample.html
moreover, you can browse a bit the zk forum you can find on http://www.zkoss.org/ itself, it is more than easy to find some discussion about that.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Class for URL Querystring Manipulation? I am looking for a well tested class for manipulating URLs in .NET. Specifically I want to be able to add/update querystring values given a url.
I have found various classes on the web that do this but none seem really robust and well tested. I also cannot find anything in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I prepend <%= request.getContextPath() %> to all relative URLs inside a jsp page? The subject says it all, almost. How do I automatically fix jsp pages so that relative URLs are mapped to the context path instead of the server root? That is, given for example
<link rel="stylesheet" type="text/css" href="/css/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In a .net Exception how to get a stacktrace with argument values I am trying to add an unhandled exception handler in .net (c#) that should be as helpfull for the 'user' as possible. The end users are mostly programers so they just need a hint of what object are they manipulating wrong.
I'm developing a windows simi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Creating File Just for the Sake on Unit Test This might be an interesting question. I need to test that if I can successfully upload and fetch the PDF file. This works for the text based files but I just wanted to check for PDF. For this unit test to run I need a PDF file. There are couple of options. I can create a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Customizing PowerShell Prompt - Equivalent to CMD's $M$P$_$+$G? I've started to "play around" with PowerShell and am trying to get it to "behave".
One of the things I'd like to do is to customize the PROMPT to be "similar" to what "$M$P$_$+$G" do on MS-Dos:
A quick rundown of what these do:
Character| Description
$m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does LINQ's ExecuteCommand provide protection from SQL injection attacks? I've got a situation where I need to use LINQ's ExecuteCommand method to run an insert.
Something like (simplified for purposes of this question):
object[] oParams = { Guid.NewGuid(), rec.WebMethodID };
TransLogDataContext.ExecuteCommand (
"I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What's the best way of implementing a thread-safe Dictionary? I was able to implement a thread-safe Dictionary in C# by deriving from IDictionary and defining a private SyncRoot object:
public class SafeDictionary<TKey, TValue>: IDictionary<TKey, TValue>
{
private readonly object syncRoot = new object();
pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Hiding a password in a python script (insecure obfuscation only) I have got a python script which is creating an ODBC connection. The ODBC connection is generated with a connection string. In this connection string I have to include the username and password for this connection.
Is there an easy way to obscure thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: Create ArrayList from array Given an array of type Element[]:
Element[] array = {new Element(1), new Element(2), new Element(3)};
How do I convert this array into an object of type ArrayList<Element>?
ArrayList<Element> arrayList = ???;
A: Given:
Element[] array = new Element[] { new Element(1), new Element(2), n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4039"
} |
Q: What is the latency in an AMD PowerNow state change operation? In low latency trading applications we are very conscious of latency issues. There is some concern that our application may experience increased latency if the server on which it is running changes PowerNow state.
Any kernel developers familiar with cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I make the apple terminal window auto change colour scheme when I ssh to a specific server When I ssh into a remote production server I would like the colour scheme of my terminal window to change to something brigh and scary, preferably red, to warn me that I am touching a live scary server.
How can I make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Aqua Data Studio - Shortcuts for Autocomplete When the autocomplete listbox/dropdown is displayed in Aqua Data Studio, you have to hit enter in order for the current hightlighted item to complete the identifier. Is there a way that I can hit the tab key to autocomplete instead? This is the default behavior for Visua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/157969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the consensus on "Voice-family" Hacks? I just started working for a pretty large company and my group manages all of their public facing websites. I opened the style sheet for the first time today and have seen over 20 instances of the designers using the voice-family hack to fix an IE bug. (I don't know why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I specify IP Ranges (RegEx) for SkipHosts in AWStats config files? I'm updating some old AWStats config files to filter out some specific IP ranges. Here's the pertinent section of the config file:
# Do not include access from clients that match following criteria.
# If your log file contains IP addresses in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use 'find' to search for files created on a specific date? How do I use the UNIX command find to search for files created on a specific date?
A: Use this command to search for files and folders on /home/ add a time period of time according to your needs:
find /home/ -ctime time_period
Examples of time_perio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "294"
} |
Q: Why can't I use Template Toolkit? I am trying to use TemplateToolkit instead of good ole' variable interpolation and my server is giving me a lot of grief. Here are the errors I am getting:
*** 'D:\Inetpub\gic\source\extjs_source.plx' error message at: 2008/09/30 15:27:37 failed to create context: failed to create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to position one element relative to another with jQuery? I have a hidden DIV which contains a toolbar-like menu.
I have a number of DIVs which are enabled to show the menu DIV when the mouse hovers over them.
Is there a built-in function which will move the menu DIV to the top right of the active (mouse hover) D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "360"
} |
Q: DotNetNuke "keepalive" I've got a couple DNN portals I manage and I need a solution to keep them "alive" during slack traffic times. After a given time of inactivity IIS will unload the DNN application from memory which will effect load time for the first client request. DNN has the "KeepAlive.aspx" file that I hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Echo A Link, Get A Trailing Slash? I've discovered that any time I do the following:
echo '<a href="http://" title="bla">huzzah</a>';
I end up with the following being rendered to the browser:
<a href="http:///" title="bla">huzzah</a>
This is particularly annoying when I link to a file with an extension, as it bre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Math.IEEERemainder returns negative results. Why? The .net framework includes Math.IEEERemainder(x, y) in addition to the standard mod operator. What is this function really doing? I dont understand the negative numbers that this produces.
Example:
Math.IEEERemainder(0, 2) = 0
Math.IEEERemainder(1, 2) = 1
Math.IEE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why do SocketChannel writes always complete for the full amount even on non-blocking sockets? Using the Sun Java VM 1.5 or 1.6 on Windows, I connect a non-blocking socket. I then fill a ByteBuffer with a message to output, and attempt to write() to the SocketChannel.
I expect the write to complete only partially if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windows Forms: A modal form that gets opened/closed by the application rather than the user? I have what I believe to be a fairly well structured .NET 3.5 forms application (Unit Tests, Dependency Injection, SoC, the forms simply relay input and display output and don't do any logic, yadda yadda) I am just missing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to count file downloads on a website It's surprising how difficult it is to find a simple, concise answer to this question:
*
*I have a file, foo.zip, on my website
*What can I do to find out how many people have accessed this file?
*I could use Tomcat calls if necessary
A: With the answer "The simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best open-source, cross-platform, compiled, GUI alternative to Visual Basic? I'm about to write a little GUI app that will sit in the system tray, doing a little FTP and ODBC.
I'd like to develop in Linux, if possible.
What would you recommend?
Thanks a bunch!
A: I'll probably be down mod but I think that FreePasc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: When would I use AutoResetEvent and ManualResetEvent instead of Monitor.Wait()/Monitor.Pulse()? They both seem to fulfill the same purpose. When would I chose one over the other?
A: You would use a WaitHandle when you want a thread to send or receive a binary signal without the need for a critical section. Monitor.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: .NET client calling a java webservice -- (how to change the root namespace) Currently we have a java webservice that we are trying to connect to via a .NET client. This is all done over SSL. Are there any well known gotchas as this seems to be a problem that has come up again and again. What are the most well known ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you restrict the size of a file being uploaded with JavaScript (or Java) without transferring the entire file? Is there a way to validate on the client side browser whether the size of a file being uploaded from a JSP page is over a set size limit without forcing the user to upload the entire file only to fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Upgrading SVN 1.4 to 1.5.3 and CC.Net from 1.3 to 1.4 I think this is a multi-part question, so bear with me.
Currently all of our developers use the version of Tortise built for SVN 1.4 and our SVN server is running 1.4. Our build server is running CC.Net and is using SVN 1.4.
We want to upgrade.
I've established ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I save a screenshot directly to a file in Windows? Is there a one button way to save a screenshot directly to a file in Windows?
TheSoftwareJedi accurately answered above question for Windows 8 and 10. Below original extra material remains for posterity.
This is a very important question as the 316K views... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "118"
} |
Q: Design of high volume TCP Client I have a .NET TCP Client that sends high volumes of messages to a (.NET async) TCP server.
I need to keep sending messages to the server but I run out of ports on the client due to TIME_WAIT.
How can a program continually and reliably send messages without using all of the availabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the potential pitfalls of using HTML Frames for templating? We could also include IFrames as well.
A: With standard frames/frameset:
*
*Bookmarking can be difficult to accomplish.
*The Back button can be broken.
*Arrival from search engines could be into an inner frame.
*Printing won't work the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Formatting numbers with significant figures in C# I have some decimal data that I am pushing into a SharePoint list where it is to be viewed. I'd like to restrict the number of significant figures displayed in the result data based on my knowledge of the specific calculation. Sometimes it'll be 3, so 12345 will be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Why would you ever implement finalize()? I've been reading through a lot of the rookie Java questions on finalize() and find it kind of bewildering that no one has really made it plain that finalize() is an unreliable way to clean up resources. I saw someone comment that they use it to clean up Connections, which i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "393"
} |
Q: How do you do relative positioning in WPF? How can you relatively position elements in WPF?
The standard model is to use layout managers for everything, but what if you want to position elements (on a Canvas, for example) simply based on the position of other elements?
For example, you may want one element (say a bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to trunc a date to seconds in Oracle This page mentions how to trunc a timestamp to minutes/hours/etc. in Oracle.
How would you trunc a timestamp to seconds in the same manner?
A: I am sorry, but all my predecessors seem to be wrong.
select cast(systimestamp as date) from dual
..does not truncate, but rounds ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I set up a mock queue using mockrunner to test an xml filter? I'm using the mockrunner package from http://mockrunner.sourceforge.net/ to set up a mock queue for JUnit testing an XML filter which operates like this:
*
*sets recognized properties for an ftp server to put and get xml input and a jms queue se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Bit Twiddle to perform this conversion curious if anyone might have some insight in how I would do the following to a binary number:
convert
01+0 -> 10+1 (+ as in regular expressions, one or more)
01 -> 10
10 -> 01
so,
10101000010100011100
01010100101010100010
and to clarify that this isn't a simp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Project dependencies across multiple Visual Studio versions I have 3 .net projects.
Project1.dll is generated by a VS2008 project.
Project2.dll is generated by a VS2005 project that references Project1.dll.
Project3.dll is generated by a VS2008 project that references both Project1.dll and Project2.dll.
Right no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What would cause the current directory of an executing app to change? I have a C# application that includes the following code:
string file = "relativePath.txt";
//Time elapses...
string contents = File.ReadAllText(file);
This works fine, most of the time. The file is read relative to the directory that the app ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you compile OpenSSL for x64? After following the instructions in INSTALL.W64 I have two problems:
*
*The code is still written to the "out32" folder. I need to be able to link to both 32-bit and 64-bit versions of the library on my workstation, so I don't want the 64-bit versions to clobber the 32-bit libs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string What I want to do is to remove all accents and umlauts from a string, turning "lärm" into "larm" or "andré" into "andre". What I tried to do was to utf8_decode the string and then use strtr on it, but since my source file is saved as UTF-8 f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: What is the best free, Ajax.NET (System.Web.Extensions 3.5) compatible Rich Text Box control? I'm looking for a good ASP.NET RichTextBox component that integrates fairly easily with .NET Framework 3.5 Ajax, specifically one that can easily provide its values from inside an UpdatePanel.
I got burned by RicherComponen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WebRequest from localhost to localhost : why is it being denied? My app uses a WebRequest at certain points to get pages from itself.
This shouldn't be a problem. It actually works fine on the server, which is a "shared" hosting package with Medium trust. Locally, I use a custom security policy based on Medium tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python module dependency Ok I have two modules, each containing a class, the problem is their classes reference each other.
Lets say for example I had a room module and a person module containing CRoom and CPerson.
The CRoom class contains infomation about the room, and a CPerson list of every one in the room.
The C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Can't see subreport in the Report Manager I've been following this tutorial (lesson 6) in order to build and deploy a sample report with an embedded subreport which reads its parameters' values from the parent report. This subreport is embedded in one of the group rows of the report's table, and both share the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with Silverlight B2 and RC0 I've been reading about the new developer-only RC0 for Silverlight, and the fact that it is supposed to be used only by developers to solve any breaking changes when upgrading from beta 2, so that when the actual S2 is released, migration is smoother.
My question is, since you are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I install MySQL modules within PHP? I've updated php.ini and moved php_mysql.dll as explained in steps 6 and 8 here.
I get this error…
Fatal error: Call to undefined function mysql_connect() in C:\inetpub...
MySQL doesn't show up in my phpinfo; report.
I've updated the c:\Windows\php.ini file from
; Director... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is DirectSound the best audio abstraction layer for Windows? Is DirectSound the best audio abstraction layer for Windows?
Switching my app from a very bad sound implementation, built to a specific chipset, to an abstration layer.
App is native Winform, .net 3.5. DirectX/DirectSound is the likely choice, but a littl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IE7 detected as IE6 on Vista...Why? I have two vista Business machines. I have IE 7 installed on both. On my first machine (Computer1) if I go to this site (http://www.quirksmode.org/js/detect.html), it says I am using "Explorer 6 on Windows". If I use Computer2 with Vista Business and IE7, it says I am using "Ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tool for translation of Oracle PL/SQL into Postgresql PL/pgSQL Is there a tool (preferably free) which will translate Oracle's PL/SQL stored procedure language into Postgresql's PL/pgSQL stored procedure language?
A: There is a tool available at http://ora2pg.darold.net/ which can be used to transalate Oracle Schem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a cross-browser onload event when clicking the back button? For all major browsers (except IE), the JavaScript onload event doesn’t fire when the page loads as a result of a back button operation — it only fires when the page is first loaded.
Can someone point me at some sample cross-browser code (Firefox, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "198"
} |
Q: RoR: Creating/Updating: Showing validation errors while preserving previous values I have a basic model in which i have specified some of the fields to validate the presence of. in the create action in the controller i do the standard:
@obj = SomeObject.new(params[:some_obj])
if @obj.save
flash[:notice] = "ok"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would I go about creating a mod_rewrite that redirects to launch.php?i=/the/url/that/they/want? So if the user types mydomain.com/dashboard, the document the server actually sends them is /launch.php?i=/dashboard.
The one caveat is that I would like to leave requests for
*
*/flags
*/people
*/posters
*/css
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: http/AJAX (GWT) vs Eclipse gui for thin client deployment I am starting a project for which we will have a thin client, sending requests and getting responses from a server.
We are still in the planning stages, so we have a choice to settle on either an Eclipse based GUI (Eclipse plugin) or using GWT as a fromtend f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to run a method/class only on Tomcat/Wildfly/Glassfish startup? I need to remove temp files on Tomcat startup, the pass to a folder which contains temp files is in applicationContext.xml.
Is there a way to run a method/class only on Tomcat startup?
A: You could write a ServletContextListener which ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Is there a way to make SQL Management Studio never generate USE [database-name] in scripts? Is there a way to turn this 'feature' off?
A: Awesome, I just found it:
Tools -> Options -> Sql Server Object Explorer -> General Scripting Options
Script USE <database> -> False
A: Tools -> Options -> Sql Server Object Ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Remote clients Can't open XLS file using ASP.NET/ADO I'm trying to do the following:
*
*User goes to web page, uploads XLS file
*use ADO .NET to open XLS file using JET engine connection to locally uploaded file on web server
This all works fine locally (my machine as the client and the web server) - and in fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In PowerShell, how can I determine if the current drive is a networked drive or not? I need to know, from within Powershell, if the current drive is a mapped drive or not.
Unfortunately, Get-PSDrive is not working "as expected":
PS:24 H:\temp
>get-psdrive h
Name Provider Root CurrentLocation
---- ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Possible to detect the *type of mobile device* via javascript or HTTP Headers? I've got a request from a customer to automatically detect the type of mobile device (not the browser, the type. ex: Moto Q, Blackjack II, etc.) and automatically select the device from a drop down with a list of supported devices.
So far... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error 1053: the service did not respond to the start or control request in a timely fashion I have recently inherited a couple of applications that run as windows services, and I am having problems providing a gui (accessible from a context menu in system tray) with both of them.
The reason why we need a gui for a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: How do I build a WPF application where I can drag and drop a user control between windows? I'm building a simple Todo List application where I want to be able to have multiple lists floating around my desktop that I can label and manage tasks in.
The relevant UIElements in my app are:
Window1 (Window)
TodoList (User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Clear the JavaScript sent to Firebug console I want to clear the Firebug console of the JavaScript already sent.
Does something like console.clear() exist and work?
A: If you want to see all the available methods under console:
for(var i in console) {
console.log(i);
}
A: Just a call to the clear function fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Performance Testing MSMQ Server Has anyone done any sort of performance tests against MSMQ?
We have a solution in prod environment where errors are added to a MSMQ for distribution to databases or event monitors.
We need to test the capacity of this system but not sure how to start.
Anyone know any tools or have any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open an ANSI file and Save a a Unicode file using Delphi For some reason, lately the *.UDL files on many of my client systems are no longer compatible as they were once saved as ANSI files, which is no longer compatible with the expected UNICODE file format. The end result is an error dialog which states "the file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What happens first? .htaccess or php code? If I use mod_rewrite to control all my 301 redirects, does this happen before my page is served? so if I also have a bunch of redirect rules in a php script that runs on my page, will the .htaccess kick in first?
A: Yes, the .htaccess file is parsed before your script is s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Citrix - how to keep smartclient apps from re-downloading every time they are launched Our company uses Citrix to remote into a terminal server for remote users to launch smart client apps within a virtual window on their machine.
The problem is that smartclient apps are being downloaded each time the user launches ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I make a program start up automatically in OSX? I have a little program that I want to make open automatically when my mac is started up.
Because this program accepts command line arguments, its not as simple as just going to System Prefs/Accounts/Login items and adding it there...
From google, I read that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Primary Key versus Unique Constraint? I'm currently designing a brand new database. In school, we always learned to put a primary key in each table.
I read a lot of articles/discussions/newsgroups posts saying that it's better to use unique constraint (aka unique index for some db) instead of PK.
What's your point o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What is the best way to separate UI (designer/editor) logic from the Package framework (like Visual Studio Package) I want to separate concerns here. Create and embed all the UI logic for the Custom XML designer, object model, validations etc in to a separate assembly. Then the Package framework should only register... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Selecting Office 2003/2007 COM Object (Correct One) in Winforms Application We are creating a Windows Form application (C# or VB.NET) that needs to reference an Office 2003 or Office 2007 COM object, depending on the version of office installed. What is the best way to handle this scenario and reference the correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Reporting Services 2005 - How to Handle Empty Reports I was wondering if it is possible to not attach Excel sheet if it is empty, and maybe write a different comment in the email if empty.
When I go to report delivery options, there's no such configuration.
Edit: I'm running SQL Server Reporting Services ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problems running ASP.NET application with IIS I have written a small ASP.NET application. It runs fine when running it with the small IIS installation that comes with Visual Studio 2005, but not when trying with IIS. I created the virtual directory in IIS where the application is located (done it though both IIS and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE7 form not prompted for remember password when submitted through javascript I have a website where we use Javascript to submit the login form. On Firefox it prompts the user to remember their password, when they login, but on IE7 it doesn't.
After doing some research it looks like the user is only prompted in IE7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Daemon logging in Linux So I have a daemon running on a Linux system, and I want to have a record of its activities: a log. The question is, what is the "best" way to accomplish this?
My first idea is to simply open a file and write to it.
FILE* log = fopen("logfile.log", "w");
/* daemon works...needs to write to lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Search file in directory using complex pattern I am looking for a C# library for getting files or directory from a directory using a complex pattern like the one used in Ant:
*
*dir1/dir2/**/SVN/* --> Matches all files in SVN directories that are located anywhere in the directory tree under dir1/dir2
***/test/**... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to obtain longitude and latitude for a street address programmatically (and legally) Supposedly, it is possible to get this from Google Maps or some such service. (US addresses only is not good enough.)
A: You could also try the OpenStreetMap NameFinder, which contains open source, wiki-like street data for (po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Programmatically recognize text from scans in a PDF File I have a PDF file, which contains data that we need to import into a database. The files seem to be pdf scans of printed alphanumeric text. Looks like 10 pt. Times New Roman.
Are there any tools or components that can will allow me to recognize and parse t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Inject data members to an object This question is based on another question of mine(thankfully answered).
So if in a model I have this:
def self.find_extended
person = Person.find(:first)
complete_name = person.firstname + ', ' + person.lastname
return person
end
How can I inject complete name in the pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c# network login How do I perform a network login, to access a shared driver for instance, programmatically in c#? The same can be achieved by either attempting to open a share through the explorer, or by the net use shell command.
A: P/Invoke call to WNetAddConnection2 will do the trick. Look here for more info.
[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to use JQuery UI datepicker with bgIframe on IE 6 I am trying to use the JQuery UI datepicker (latest stable version 1.5.2) on an IE6 website. But I am having the usual problems with combo boxes (selects) on IE6 where they float above other controls. I have tried adding the bgIframe plugin after declaring the da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/158502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.