text stringlengths 8 267k | meta dict |
|---|---|
Q: Windows wallpaper: not just BMPs? I've read in a couple of places that the desktop wallpaper can be set to an HTML document. Has anyone had any success changing it programmatically?
The following snippet of VB6 helps me set things up for BMPs but when I try to use it for HTML, I get a nice blue background and nothi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I preview a url using ajax? How do I preview a url using ajax? I have seen this done with search engine plug ins and would like to learn how to do this. Specifically, I would like to be able to mouse over a link and see the preview of the webpage using ajax.
A: There's the easy solution, the hard solution, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you convert 00:00:00 to hours, minutes, seconds in PHP? I have video durations stored in HH:MM:SS format. I'd like to display it as HH hours, MM minutes, SS seconds. It shouldn't display hours if it's less than 1.
What would be the best approach?
A: Something like this?
$vals = explode(':', $duration);
if (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Poppler programming Poppler is a classic example of something without documentation that you would prefer be documented. This question is language agnostic, just asking about the general idea..
In short, how do you make a PDF viewer control with poppler?
From what I can tell, you'd need to use poppler to render it t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Server 2008 Reporting Services Report Definition Customization Extensions I've been looking into report definition customization extensions (RDCE) in SQL2K8 recently and I've been at a loss to find much documentation or even chatter on the internet about it.
MSDN has a brief overview: http://msdn.microsoft.com/e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best OS App for Outbound SMTP Packet Capture? Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PubSub lib for c# Is there a c# library which provides similar functionality to the Python PubSub library? I think it's kind of an Observer Pattern which allows me to subscribe for messages of a given topic instead of using events.
A: These may be a bit heavy for you depending on your needs but:
http://www.nservice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In C++, can you have a function that modifies a tuple of variable length? In C++0x I would like to write a function like this:
template <typename... Types>
void fun(typename std::tuple<Types...> my_tuple) {
//Put things into the tuple
}
I first tried to use a for loop on int i and then do:
get<i>(my_tuple);
An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP debugging on OS X - hopeless? I have tried:
*
*Xdebug and Eclipse. Eclipse launches a web browser, but the browser tries to access a non-existent file in Eclipse's .app bundle.
*Xdebug and NetBeans. It does a little bit better; a browser opens a page in /tmp which says "Launching. Please wait…" but nothing h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How to match all occurrences of a regular expression in Ruby Is there a quick way to find every match of a regular expression in Ruby? I've looked through the Regex object in the Ruby STL and searched on Google to no avail.
A: Using scan should do the trick:
string.scan(/regex/)
A: To find all the matching string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "645"
} |
Q: How do you get the asp:Menu to follow the url provided in the Web.sitemap? I have a simple asp:menu-item that uses the Web.sitemap to get the menu items. The page will postback but fails to get the page associated to the clicked item. I will mention that the navigation bar code is within the masterpage file.
<div>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Reparenting a Window as a Tab in a GTK Notebook I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows:
MyWindow myWindow = new MyWindow();
myWindow.Children[0].Reparent(myNotebook)
Should I be doing thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WPF Data Triggers and Story Boards I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" storyboard when the IsBusy property is tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: What constitutes 'real time' I am having trouble deciding on whether to classify my application as 'real time' or 'near real time', or perhaps even something else.
The software receives data immediately as it is generated from the source, then based on certain rules, raises an alert when certain conditions are met. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Perl Regex Match and Removal I have a string which starts with //#... goes upto the newline characater. I have figured out the regex for the which is this ..#([^\n]*).
My question is how do you remove this line from a file if the following condition matches
A: To filter out all the lines in a file that match a cert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Overriding "find" in ActiveRecord the DRY way I have a few models that need to have custom find conditions placed on them. For example, if I have a Contact model, every time Contact.find is called, I want to restrict the contacts returned that only belong to the Account in use.
I found this via Google (which I've c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to iterate through a string and check the byte value of every character? Code I have:
cell_val = CStr(Nz(fld.value, ""))
Dim iter As Long
For iter = 0 To Len(cell_val) - 1 Step 1
If Asc(Mid(cell_val, iter, 1)) > 127 Then
addlog "Export contains ascii character > 127"
End If
Next iter
This code d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are futures? What are futures? It's something to do with lazy evaluation.
A: There is a Wikipedia article about futures. In short, it's a way to use a value that is not yet known. The value can then be calculated on demand (lazy evaluation) and, optionally, concurrently with the main calculation.
C++ example f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Best technology for developing an app that runs on DESKTOP and in BROWSER? Microsoft WPF? Adobe AIR/Flex? Adobe Flash? Curl programming language?
How does AJAX fit in?
Given a server written in C++ .NET.
A: The answer does depend really on what your application actually does and your platform requirements.
If its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance of an large directory structure, networked application I'm trying to find out what the performance of a large directory structure would be if deep directories were to be accessed on a shared, nfs filesystem. The structure would be excessively large, with 4 levels of nested directories, each level contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I concatenate two arrays in Java? I need to concatenate two String arrays in Java.
void f(String[] first, String[] second) {
String[] both = ???
}
Which is the easiest way to do this?
A: This should be one-liner.
public String [] concatenate (final String array1[], final String array2[])
{
return S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1557"
} |
Q: How do you turn on Code Coverage in Builds within TFS? I need to know how to turn on Code Coverage when running TFS builds on a solution with a .testrunconfig file.
There is an option in the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results.
I am running m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Reading Unformatted Data In C, using the standard Windows API, what is the best way to read an unformatted disk? Specifically, I have an MMC or SD card with data, but no file system (not FAT16, not FAT32, just raw data). If there was a simple way to open the entire card for byte by byte binary access, that would be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the location of OpenOffice.org templates in Linux? I'd like to install some presentation templates, but don't know where to put them...
Thanks a lot
A: Choose Tools > Options > OpenOffice.org > Paths and select the Templates line. There you can click "edit" and see the paths that it uses to search for templ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What happens when the stylus "lifts" on a tablet PC? I am working on a legacy project in VC++/Win32/MFC. Recently it became a requirement that the application work on a tablet pc, and this ushered in a host of new issues.
I have been able to work with, and around these issues, but am left with one wherein I could u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Given two dates what is the best way of finding the number of weekdays in PHP? The title is pretty much self explanatory. Given two dates what is the best way of finding the number of week days using PHP? Week days being Monday to Friday.
For instance, how would I find out that there are 10 week days in between 31/0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any good tool for working on Database apart from Toad which requires license and DBVisualiser not supportive Is there any good tool for working on Dabtabase apart from Toad which requires license and DBVisualiser not supportive
A: i'd recommend oracle SQLdeveloper. it has all the functionality you need for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transmitfile, download with weird behaviour I am using httpresponse.Transmitfile to download files. If I, in the file download dialog, choose to save in a different folder than the suggested one, the download rate drops down to 10 - 20 kb. If I cancel, or always choose to download in the same folder, then transfer r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Provisioning Issue using CrmDeploymentService i've been working on Provision of an organization for quite a few days , and had faced few issues which i was successful in resolving them.Let me explain abt the issues i faced, the MSCrmServices is a process that is running under the Network Service.
When I call the 'E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File storing strategies for a web hosting website I am going to hosting for files that user submits. I need to grab some data from the file and then move it to some directory.
There two points of interest for the lifetime of this file. The first is when the data is being abstracted and the second is when the file is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there an alternative to gdb for Linux systems? Please consider both commercial and free debuggers. Would like to see also the pros and cons for each.
A: I really like EDB (Evan's Debugger).
It has a nice 'OllyDBG feel', which was great because I used it quite a deal when I was still working on the windows platfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Visual Studio: How to trigger an alarm when a breakpoint is hit? Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm using Visual Studio 2005/2008.
A: Windows XP
Control Panel -> Sounds and Audio... -> Program Events - Microsoft Developer -> Breakpoint Hit
Windows 7
Control Panel -> All Cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Method Local Inner Class public class Test {
public static void main(String[] args) {
}
}
class Outer {
void aMethod() {
class MethodLocalInner {
void bMethod() {
System.out.println("Inside method-local bMethod");
}
}
}
}
Can someone tell me ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Enabling embedded controls in a FlowDocument I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons.
The problem is, if I put this FlowDocument inside anything except a FlowDocumentPageViewer the hyperlinks and buttons are disabled ("grayed out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: scanf() (and cin) statements skipped when using gcc When multiple scanf() statements are encountered in the code, then, except the first scanf() statement, all others are skipped, that is, there is no prompt for input for those scanf() statements when the code is run.
I have a tried a few suggestions. For eg, use of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merge XML documents I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have document1:
<mapping>
<key value="assigned">
<a/>
</key>
<whatever attribute="x">
<k/>
<j/>
</whatever>
</mapping>
and document2:
<mapping>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Best practices for holding passwords in shell / Perl scripts? I've recently had to dust off my Perl and shell script skills to help out some colleagues. The colleagues in question have been tasked with providing some reports from an internal application with a large Oracle database backend, and they simply don't hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Asynchronous Programming in Python Twisted I'm having trouble developing a reverse proxy in Twisted. It works, but it seems overly complex and convoluted. So much of it feels like voodoo.
Are there any simple, solid examples of asynchronous program structure on the web or in books? A sort of best practices guide? Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: 'Helper' functions in C++ While refactoring some old code I have stripped out a number of public methods that should actually of been statics as they a) don't operate on any member data or call any other member functions and b) because they might prove useful elsewhere.
This led me to think about the best way to gro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Are tags useful for navigation (on Stack Overflow or otherwise)? I've done some research on using tags from social bookmarking sites for web search, but I'd like to learn more about other ways in which users might use tags for information retrieval.
Do you use the tags on sites like Stack Overflow for navigation? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to re-open the Java Console in Firefox 3 after I've closed it I'm using firefox3 to run a Java Applet (on Linux). normally, when the JVM launches the Java Console window opens so I can see output from the Applet (stack traces etc.).
However, if I close the console there appears to be no way of getting it back sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to make events asynchronous in C# Events are synchronous in C#. I have this application where my main form starts a thread with a loop in it that listens to a stream. When something comes along on the stream an event is fired from the loop to the main form.
If the main form is slow or shows a messagebox or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ? What is the difference between == and ===?
*
*How exactly does the loosely == comparison work?
*How exactly does the strict === comparison work?
What would be some useful examples?
A: It's all about data typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "570"
} |
Q: How do I register a custom URL protocol in Windows? How do I register a custom protocol with Windows so that when clicking a link in an email or on a web page my application is opened and the parameters from the URL are passed to it?
A: There is an npm module for this purpose.
link :https://www.npmjs.com/package/pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: SmtpClient.SendAsync bug in ASP.NET 2.0 I may be wrong, but if you are working with SmtpClient.SendAsync in ASP.NET
2.0 and it throws an exception, the thread processing the request waits
indefinitely for the operation to complete.
To reproduce this problem, simply use an invalid SMTP address for the host
that co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to program call divert settings on Windows Mobile? Does anyone know how to get/set the call divert settings in codes running on Windows mobile 5/6? I am new to windows mobile development and wonder if there is anyway to do it using C# and .NET CF?
A: I assume you mean call forwarding? In general terms, the Tel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exchange drop support for SMTP? I want to send email with Exchange by using telnet to port 25. Until two week ago I was able to, but now a "security fix" from Microsoft has removed this possibility.
When I try, I get this message:
421 4.3.2 Service not available, closing transmission channel
What can I do?
A: I use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: makefiles CFLAGS In the process of learning TinyOS I have discovered that I am totally clueless about makefiles.
There are many optional compile time features that can be used by way of declaring preprocessor variables.
To use them you have to do things like:
CFLAGS="-DPACKET_LINK" this enables a certain feat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is the difference between and in vim? One of the best tips for using vim that I have learned so far has been that one can press Ctrl+C or Ctrl+[ instead of the Esc key. However I use a dvorak keyboard so Ctrl+[ is a little out of reach for me as well so I mostly use Ctrl+C. Now I've read somewhere that these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Phantom Referenced Objects Phantom References serve for post-mortem operations.
The Java specification states that a phantom referenced object will not be deallocated until the phantom-reference itself is cleaned.
My question is: What purpose does this feature (object not deallocated) serve?
(The only idea i came up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Orthogonal variables code duplication problem I've started refactoring some legacy code recently and came across two functions for drawing a coordinate grid, the problem is that these functions differ only in orthogonal variables they treat, something like that
void DrawScaleX(HDC dc, int step, int x0, int x1, int y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java logger that automatically determines caller's class name public static Logger getLogger() {
final Throwable t = new Throwable();
final StackTraceElement methodCaller = t.getStackTrace()[1];
final Logger logger = Logger.getLogger(methodCaller.getClassName());
logger.setLevel(ResourceManager.LOGLE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: What type of application/utilization is YAML best suited for? Why would one choose YAML over XML or any other formats?
A: I agree with Sergio; YAML provides a format which is easily editable by humans, but also a good way to cleanly represent data structures.
YAML tends to be much more human-readable, IMO.
YAML is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Hibernate Tools and the ever changing database I am currently using Hibernate Tools 3.1; I customized naming convention and DAO templates. The database (SQL Server 2005) in early development phase and I'm in charge of rebuilding the mappings, entities, DAOs, configuration, whatever. Each time I have to reverse-engin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Query to find nᵗʰ max value of a column I want to find 2nd, 3rd, ... nth maximum value of a column.
A: Again you may need to fix for your database, but if you want the top 2nd value in a dataset that potentially has the value duplicated, you'll want to do a group as well:
SELECT column
FROM table
WHERE column IS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: servlet not in root application's servlet context I have a war file that I have to deploy as root on glassfish. Deploying the application with "/" as its context root happens successfully. But when I try to run that application by http://localhost/, it throws a 503 saying the requested service() is not currently ava... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to sync a database that exists in various (not networked) SQL Server 2005 instances I am working on a database application that runs on various independent servers.
Each server runs an Instance of SQL Server 2005 with the same database. We would have a Master Server where that would be the definitive source of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem installing warbler gem on linux > jruby -S gem install warbler
JRuby limited openssl loaded. gem install jruby-openssl for full support.
Successfully installed warbler-0.9.11
1 gem installed
Installing ri documentation for warbler-0.9.11...
Installing RDoc documentation for warbler-0.9.11...
> jruby -S warbl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows Server 2003 - Share current Desktop via RDP like in Windows XP? Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due to memory constraints of Windows XP.
In Windows XP, when you connect via Remote Desktop the current session I am logged in is instantly shared on the Remote Desktop. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert Typed DataSet Scheme when one of the types was changed? I got a typed (not connected) dataset, and many records (binary seriliazed) created with this dataset.
I've added a property to one of the types, and I want to convert the old records with the new data set.
I know how to load them: providing cust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How XQuery is actually used? I have been reading a lot of XQuery tutorials on the website. Almost all of them are teaching me XQuery syntax. Let's say I have understood the XQuery syntax, how am I going to actually implement XQuery on my website?
For example, I have book.xml:
<?xml version="1.0" encoding="iso-8859-1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best approach to write/read binary data in Little or Big Endian with C#? Ok, if i've got a binary file encoded either in little endian or big endian under .NET, what is the best way to read / write to it?
In the .NET framework i've only managed to found BinaryWritters / BinaryReaders which use little endian as defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Active threads in ExecutorService Any ideas how to determine the number of active threads currently running in an ExecutorService?
A: Use a ThreadPoolExecutor implementation and call getActiveCount() on it:
int getActiveCount()
// Returns the approximate number of threads that are actively executing tasks.
The Ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Fatal Error C1083 - Cannot open include file: "windows.h": No such file or directory I'm trying to get IKVM to build (see this question) but now have encountered a problem not having to do with IKVM so I'm opening up a new question:
When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: JAX-RS Frameworks I've been doing some work with the JAX-RS reference implementation (Jersey).
I know of at least two other frameworks (Restlet & Apache CXF).
My question is: Has anyone done some comparison between those frameworks and if so, which framework would you recommend and why?
A: My team and I use Restlet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can I merge many SQLite databases? If I have a large number of SQLite databases, all with the same schema, what is the best way to merge them together in order to perform a query on all databases?
I know it is possible to use ATTACH to do this but it has a limit of 32 and 64 databases depending on the memory sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Does use of anonymous functions affect performance? I've been wondering, is there a performance difference between using named functions and anonymous functions in Javascript?
for (var i = 0; i < 1000; ++i) {
myObjects[i].onMyEvent = function() {
// do something
};
}
vs
function myEventHandler() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: How to: Pass an ampersand in a lousy filename to a flash object on a webpage Argghh. I have a site that offers audio previews of songs hosted elsewhere. Some file names have an ampersand in them - see below where it passes "soundFile." Anytime there's an ampersand, Flash can't get the file - I think it drops the fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OpenFileDialog. How about "Specify Directory Dialog"? On a file path field, I want to capture the directory path like:
textbox1.Text = directory path
Anyone?
A: Well I am using VS 2008 SP1. This all I need:
private void button1_Click(object sender, EventArgs e)
{
FolderBrowserDialog profilePath = new FolderBro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to find out the distinguished name of the information store to feed to IExchangeManageStore::GetMailboxTable? There is a Microsoft knowledge base article with sample code to open all mailboxes in a given information store. It works so far (requires a bit of copy & pasting on compilers newer than VC++ 6.0).
At on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rebind Access combo box I have an Access 2007 form that is searchable by a combobox. When I add a new record, I need to update the combobox to include the newly added item.
I assume that something needs to be done in AfterInsert event of the form but I can't figure out what.
How can I rebind the combobox after i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nuking huge file in svn repository As the local subversion czar i explain to everyone to keep only source code and non-huge text files in the repository, not huge binary data files. Smaller binary files that are parts of tests, maybe.
Unfortunately i work with humans! Someone is likely to someday accidentally ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Is there another way to do screen scraping apart from regular expressions? I'm doing a personal, just for fun, project that is using screen scraping to give me a System Tray notification in case another line on an HTML table is added, modified or deleted.
Having done this before I thought: well let's go with the reg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use LogParser to find out the LENGTH of a field in an IIS Log? I'm trying to find LONG UserAgent strings with LogParser.exe in my IIS logs. This example searches for entries with the string 'poo' in them.
LogParser.exe -i:IISW3C
"SELECT COUNT(cs(User-Agent)) AS Client
FROM *.log WHERE cs(User-Agent) LIKE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Zend Framework Select Operator Precedence I am trying to use Zend_Db_Select to write a select query that looks somewhat like this:
SELECT * FROM bar WHERE a = 1 AND (b = 2 OR b = 3)
However, when using a combination of where() and orWhere(), it seems impossible to use condition grouping like the above.
Are there an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Visual Studio 2008, how can I make control+click do a "Go To Definition"? In the Delphi IDE, you can hold control and click on a method to jump to its definition. In VS2008, you have to right-click and select "Go To Definition".
I use this function quite often, so I'd really like to get VS to behave like Delphi i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to execute direct SQL code on a different database in Rails I'm writing a Rails application which will monitor data quality over some specific databases. In order to do that, I need to be able to execute direct SQL queries over these databases - which of course are not the same as the one used to drive the Rails... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to handle errors loading with the Flex Sound class I am seeing strange behaviour with the flash.media.Sound class in Flex 3.
var sound:Sound = new Sound();
try{
sound.load(new URLRequest("directory/file.mp3"))
} catch(e:IOError){
...
}
However this isn't helping. I'm getting a stream error, and it actually see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the Unix command to create a hardlink to a directory in OS X? How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command "ln target destination" but that only works when the target is a file. I know that Mac OS, unlike other Unix en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Dynamic contact information data/design pattern: Is this in any way feasible? I'm currently working on a web business application that has many entities (people,organizations) with lots of contact information ie. multiple postal addresses, email addresses, phone numbers etc.
At the moment the database schema is suc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Methods: One vs Many getEmployeeNameByBatchId(int batchID)
getEmployeeNameBySSN(Object SSN)
getEmployeeNameByEmailId(String emailID)
getEmployeeNameBySalaryAccount(SalaryAccount salaryAccount)
or
getEmployeeName(int typeOfIdentifier, byte[] identifier) -> In this methods the typeOfIdentifier tells if identifier ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: .Net 2.0: How to subscribe to a event publisher on a remote computer using transient subscriptions? My problem is that I want to have a server application (on a remote computer) to publish certain events to several client computers. The server and client communicate using .Net-Remoting so currently I am using remote... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mtom serving word doc has anyone been able to serve a word doc using metro (webservices) as a mtom stream? Does anyone have example, or know where there is example code please for client and server?
A: The Large Attachments and Binary Attachments (MTOM) examples might help.
A: Dont know why folks at sun write ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding my own application events in Control Panel -> Sounds I have just read this question and I really loved this answer to the question. Naturally, an interesting question popped in my head...
How to add my own events (of my own applications) in the Control Panel -> Sounds and Audio Devices -> Sounds -> Program Ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to find header dependencies for large scale projects on linux I'm working an a very large scale projects, where the compilation time is very long. What tools can I use (preferably open source) on Linux, to find the most heavily included files and that optimize their useages?
Just to be clearer, I need a tool whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is anyone using XForms in their web applications? A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms.
As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today?
I'm not really intere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to store a knowledge base of business rules for helpdesk? Does anyone know of any software or a good way for developers to build up a knowledge base of business rules that are built in to the software for help desk to use?
We already have a helpdesk software but we are not looking to replace thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Processing Javascript RegEx submatches I am trying to write some JavaScript RegEx to replace user inputed tags with real html tags, so [b] will become <b> and so forth. the RegEx I am using looks like so
var exptags = /\[(b|u|i|s|center|code){1}]((.){1,}?)\[\/(\1){1}]/ig;
with the following JavaScript
s.replace(exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get VMWARE ESX 3i Image from infrastructure client using script I've download the SDK to try to copy the image to my PC from the server but no cmdlet for copy just get info moving etc
any help?
A: You may have problems running the image locally, you'll want to use VMWare converter to transfer the image in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating/modifying images in JavaScript Is it possible to dynamically create and modify images on a per pixel level in JavaScript (on client side)? Or has this to be done with server based languaged, such as PHP?
My use case is as follows:
*
*The user opens webpage and loads locally stored image
*A preview of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to skip sys.exitfunc when unhandled exceptions occur As you can see, even after the program should have died it speaks from the grave. Is there a way to "deregister" the exitfunction in case of exceptions?
import atexit
def helloworld():
print("Hello World!")
atexit.register(helloworld)
raise Exception("G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which factors determine the success of an open source project? We have a series of closed source applications and libraries, for which we think it would make sense opening up the source code.
What has been blocking us, so far, is the effort needed to clean up the code base and documenting the source before opening u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/80997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible, by any stable method, to enable ReadyBoost on Windows Server 2008? I know the standard answer is No. However hear out the reasons for wanting it, and then we'll go for whether it is possible to achieve the same effect as ReadyBoost via either enabling (and installing) ReadyBoost or using third party ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spelling Alternatives based on a Database? I'm looking for an efficient way (using PHP with a Mysql Database) to suggest alternative spelling for a query.
I know I can use services such as Yahoo's Spelling Suggestion but I want the suggestions to be based on what is currently available in the database.
For example:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to autocomplete at the KornShell command line with the vi editor In the KornShell (ksh) on AIX UNIX Version 5.3 with the editor mode set to vi using:
set -o vi
What are the key-strokes at the shell command line to autocomplete a file or directory name?
A: Extending the other answers: <ESC>* will list all match... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: When should a class member be declared virtual (C#)/Overridable (VB.NET)? Why wouldn't I choose abstract? What are the limitations to declaring a class member virtual? Can only methods be declared virtual?
A: You would use abstract if you do not want to define any implementation in the base class and want to force ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MDB2 disconnects and forgets charset setting when reconnecting We recently debugged a strange bug. A solution was found, but the solution is not entirely satisfactory.
We use IntSmarty to localize our website, and store the localized strings in a database using our own wrapper. In its destructor, IntSmarty saves an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Garbage collection Libraries in C++ What free and commercial garbage collection libraries are available for C++, and what are the pros and cons of each?
I am interested in hard-won lessons from actual use in the field, not marketing or promotional blurb.
There is no need to elaborate on the usual trade offs associat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Is there a more efficient text spooler than TextWriter/StringBuilder For a situation like capturing text incrementally, for example if you were receiving all of the output.write calls when a page was rendering, and those were being appended into a textwriter over a stringbuilder.
Is there a more efficient way to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Access denied error when building solution in Visual Studio 2005 I get the following error in Visual Studio 2005 when doing a build:
Error 9 Cannot register assembly
"E:\CSharp\project\Some.Assembly.dll"
- access denied. Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED)) project
It hap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.