text stringlengths 8 267k | meta dict |
|---|---|
Q: Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView? I'd love to know if there is such a thing as a Gecko.NET ;) I mean, just like we can embed a WebView and that is an "instance" of IE7 inside any Windows Forms application (and tell it to navigateto(fancy_url);). I'd love to use Firefox or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Windows Service Increasing CPU Consumption At my job, I have a clutch of six Windows services that I am responsible for, written in C# 2003. Each of these services contain a timer that fires every minute or so, where the majority of their work happens.
My problem is that, as these services run, they start to consume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Template typedefs - What's your work around? C++ 0x has template aliases (sometimes referred to as template typedefs). See here. Current spec of C++ does not.
What do you like to use as work around ? Container objects or Macros ?
Do you feel its worth it ?
A:
template <typename T>
struct my_string_map : public st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: How does a "stack overflow" occur and how do you prevent it? How does a stack overflow occur and what are the ways to make sure it doesn't happen, or ways to prevent one?
A: Infinite recursion is a common way to get a stack overflow error. To prevent - always make sure there's an exit path that will be hit. :-)
An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Is there a Scheduler/Calendar JS Widget library? I am looking for some JavaScript based component to be used as a course scheduler which would be a cross between Google Calendar and the login time. I do not know if the right term for this is Course Scheduler but I shall describe this in more detail here.
Course Sche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Why is Harvest being purchased at all? Does your work environment use Harvest SCM? I've used this now at two different locations and find it appalling. In one situation I wrote a conversion script so I could use CVS locally and then daily import changes to the Harvest system while I was sleeping. The corp was fanati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: vimdiff and CVS integration I've always wanted to be able to get a reasonably elegant way of getting vimdiff to work with a CVS controlled file. I've found numerous (somewhat hacky) scripts around the internet (best example here) that basically check out the file you are editing from CVS to a temp file, and vimdiff ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Filtering collections in C# I am looking for a very fast way to filter down a collection in C#. I am currently using generic List<object> collections, but am open to using other structures if they perform better.
Currently, I am just creating a new List<object> and looping thru the original list. If the filtering ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "184"
} |
Q: Visio and Forward-Engineering Do you know if I can use Visio to forward-engineer a sequence diagram into code (c#)?
Can it be done with Visio alone or do I need a plugin?
What about other diagrams?
A: You have to get the Visio that for users of Visual Studio. See this link: Visio for Enterprise Architects for more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Revoke shared folders in windows Over the last few months/years, I have shared a folder or two with numerous people on my domain. How do I easily revoke those shares to keep access to my system nice and tidy?
A: Using computer management (an MMC snap-in. See Control Panel Administrative tools) you can see a list of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fastest C# Code to Download a Web Page Given a URL, what would be the most efficient code to download the contents of that web page? I am only considering the HTML, not associated images, JS and CSS.
A: here is my answer ,a method that takes a URL and return a string
public static string downloadWebPage(string theU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Reserved keywords in JavaScript What JavaScript keywords (function names, variables, etc) are reserved?
A: To supplement benc's answer, see Standard ECMA-262. These are the official reserved words, but only a pedant ignores the implementation to respect the standard. For the reserved words of the most popular imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "169"
} |
Q: Asp.net website first start is very slow The first time I load the website in the production web server, it start very slow, subsequent pages load very quickly (included the home page).
I precompiled the site, but nothing changes.
I don't have any code at Application start.
I don't have cached items.
Any ideas? How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Your favourite algorithm and the lesson it taught you What algorithm taught you the most about programming or a specific language feature?
We have all had those moments where all of a sudden we know, just know, we have learned an important lesson for the future based on finally understanding an algorithm written by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How can I play sound in Java? I want to be able to play sound files in my program. Where should I look?
A: For whatever reason, the top answer by wchargin was giving me a null pointer error when I was calling this.getClass().getResourceAsStream().
What worked for me was the following:
void playSound(String soundFil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "190"
} |
Q: Regex to Parse Hyperlinks and Descriptions C#: What is a good Regex to parse hyperlinks and their description?
Please consider case insensitivity, white-space and use of single quotes (instead of double quotes) around the HREF tag.
Please also consider obtaining hyperlinks which have other tags within the <a> tags s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Print a barcode to a Intermec PB20 via the LinePrinter API Does anyone know how to print a barcode to the Intermec PB20 bluetooth printer from a Windows Compact Framework application? We are currently using the Intermec LinePrinter API but have been unable to find a way to print a barcode.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Compact Framework - Is there an MVC framework/library available? I've found an article on this subject by a Microsoft employee, but has anyone implemented a more robust framework for this? Is there a lightweight framework for WinForms that could be ported easily? I'd like to get up to speed fairly quickly and avoid ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using ItemizedOverlay and OverlayItem In Android Beta 0.9 Has anyone managed to use ItemizedOverlays in Android Beta 0.9? I can't get it to work, but I'm not sure if I've done something wrong or if this functionality isn't yet available.
I've been trying to use the ItemizedOverlay and OverlayItem classes. Their int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Beyond design patterns? For the past 10 years or so there have been a smattering of articles and papers referencing Christopher Alexander's newer work "The Nature of Order" and how it can be applied to software.
Unfortunately, the only works I can find are from James Coplien and Richard Gabriel; there is nothing bey... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the best way to store user settings for a .NET application? I have a .NET 2.0 Windows Forms application. Where is the best place the store user settings (considering Windows guidelines)?
Some people pointed to Application.LocalUserAppDataPath. However, that creates a folder structure like:
C:\Documents and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Exception handling: Contract vs Exceptional approach I know two approaches to Exception handling, lets have a look at them.
*
*Contract approach.
When a method does not do what it says it will do in the method header, it will throw an exception. Thus the method "promises" that it will do the operation, and if it f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is a selector engine? I've seen news of John Resig's fast new selector engine named Sizzle pop up in quite a few places, but I don't know what a selector engine is, nor have any of the articles given an explanation of what it is. I know Resig is the creator of jQuery, and that Sizzle is something in Javascript... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Third party Visual Studio snippets Do you know where I could find some useful third party (free) code snippets for VS 2008?
A: http://gotcodesnippets.com/
http://www.codekeep.net/ has a VS add-in for their snippets, too
A: bdukes site has more options, but here are the ones MSDN has published...
http://msdn.micros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Bash One Liner: copy template_*.txt to foo_*.txt? Say I have three files (template_*.txt):
*
*template_x.txt
*template_y.txt
*template_z.txt
I want to copy them to three new files (foo_*.txt).
*
*foo_x.txt
*foo_y.txt
*foo_z.txt
Is there some simple way to do that with one command, e.g.
cp --enableA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hibernate saveOrUpdate with another object in the session Is there any way to save an object using Hibernate if there is already an object using that identifier loaded into the session?
*
*Doing session.contains(obj) seems to only return true if the session contains that exact object, not another object with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio 2005 Shortcuts I'm trying to bind the following shortcut: Ctrl + W to close tabs
How can you customize VS to add/change shortcuts? Also, what are the most useful shortcuts you guys have found?
A: Tools > Options > (Show all settings), then Environment > Keyboard.
Here, rebind the key “File.Close” to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does Design By Contract Work For You? Do you use Design by Contract professionally? Is it something you have to do from the beginning of a project, or can you change gears and start to incorporate it into your software development lifecycle? What have you found to be the pros/cons of the design approach?
I came acro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: IDE for Swing applications development Is there any IDE that simplifies creating Swing applications (ideally something along the lines of Visual Studio)
A: Netbeans has some GUI-building support, and it's one of the most popular Java IDEs on the market. Give it a look.
A: Try Instantiations' Windows Builder Pro. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Incosistency between MS Sql 2k and 2k5 with columns as function arguments I'm having trouble getting the following to work in SQL Server 2k, but it works in 2k5:
--works in 2k5, not in 2k
create view foo as
SELECT usertable.legacyCSVVarcharCol as testvar
FROM usertable
WHERE rsrcID in
( select va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What workshops / user groups / conventions do you attend? I haven't been to enough of these "live" events to really determine which, if any, are worth the time / money. Which ones do you attend and why?
A: For conventions, if you're still in university, and can make it to Montreal, Canada, the Canadian Undergradua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can I add an event listener to a databinding action in Flex? I have a ComboBox that I bind to a standard HTTPService, I would like to add an event listener so that I can run some code after the ComboBox is populated from the data provider.
How can I do this?
A: Flex doesn't have a specific data-binding events in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using MySQLi - which is better for closing queries I have a habit of keeping my variable usage to a bare minimum. So I'm wondering if there is any advantage to be gained by the following:
$query = $mysqli->query('SELECT * FROM `people` ORDER BY `name` ASC LIMIT 0,30');
// Example 1
$query = $query->fetch_assoc();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET Multi Dimensional Array Printing Let's say I have a .NET Array of n number of dimensions. I would like to foreach through the elements and print out something like:
[0, 0, 0] = 2
[0, 0, 1] = 32
And so on. I could write a loop using some the Rank and dimension functions to come up with the indices. Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Active X Control JavaScript My coworker and I have encountered a nasty situation where we have to use an active X control to manipulate a web camera on a page.
Is it possible to assign a javascript event handler to a button in the active x control so that it would fire an action on the page when clicked, or do we h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to detect which blog API Let's say that you want to create a dead simple BlogEditor and, one of your ideas, is to do what Live Writer does and ask only the URL of the persons Blog. How can you detect what type of blog is it?
Basic detection can be done with the URL itself, such as “http://myblog.blogger.com” etc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I pass arguments to a batch file? I need to pass an ID and a password to a batch file at the time of running rather than hardcoding them into the file.
Here's what the command line looks like:
test.cmd admin P@55w0rd > test-log.txt
A:
For to use looping get all arguments and in pure batch:
Obs: For usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1373"
} |
Q: What are the advantages and disadvantages of turning NOCOUNT off in SQL server queries? What are the advantages and disadvantages of turning NOCOUNT off in SQL server queries?
A: And it's not just the network traffic that is reduced. There is a boost internal to SQL Server because ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Any negative impacts when using Mod-Rewrite? I know there are a lot of positive things mod-rewrite accomplishes. But are there any negative? Obviously if you have poorly written rules your going to have problems. But what if you have a high volume site and your constantly using mod-rewrite, is it going to have a si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I set a textbox to multi-line in SSRS? I have a report with many fields that I'm trying to get down to 1 page horizontally (I don't care whether it's 2 or 200 pages vertically... just don't want to have to deal with 2 pages wide by x pages long train-wreck). That said, it deals with contact information.
My i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: sizeof() equivalent for reference types? I'm looking for a way to get the size of an instance of a reference type. sizeof is only for value types. Is this possible?
A: I had a similar question recently and wanted to know the size of Object and LinkedListNode in C#. To solve the problem, I developed a program that w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Previewing HTML in Java What libraries/methods do you know of that can do some basic HTML representation in Swing? Can you comment on your experience?
A: A good pure Java solution is JWebEngine. It render HTML 4 very good.
A: I haven't tried this in a while, but a quick google search shows some possibilities:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any difference between "foo is None" and "foo == None"? Is there any difference between:
if foo is None: pass
and
if foo == None: pass
The convention that I've seen in most Python code (and the code I myself write) is the former, but I recently came across code which uses the latter. None is an instance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: How to set encoding in .getJSON jQuery In my web app, I submit some form fields with jQuery's $.getJSON() method. I am having some problems with the encoding. The character-set of my app is charset=ISO-8859-1, but I think these fields are submitted with UTF-8.
How I can set encoding used in $.getJSON calls?
A: Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: What HTML parsing libraries do you recommend in Java I want to parse some HTML in order to find the values of some attributes/tags etc.
What HTML parsers do you recommend? Any pros and cons?
A: I have tried HTML Parser which is dead simple.
A: NekoHTML, TagSoup, and JTidy will allow you to parse HTML and then proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is there a way to make a TSQL variable constant? Is there a way to make a TSQL variable constant?
A: There is no built-in support for constants in T-SQL. You could use SQLMenace's approach to simulate it (though you can never be sure whether someone else has overwritten the function to return something else…), or p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: What's your favorite profiling tool (for C++) So far, I've only used Rational Quantify. I've heard great things about Intel's VTune, but have never tried it!
Edit: I'm mostly looking for software that will instrument the code, as I guess that's about the only way to get very fine results.
See also:
What are some go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: Why is my PDF footer text invisible? I'm creating PDFs on-demand with ColdFusion's CFDocument tag, like so:
<cfdocument format="PDF" filename="#attributes.fileName#" overwrite="true">
<cfdocumentitem type="footer">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is MVC and what are the advantages of it? I found What are mvp and mvc and what is the difference but it didn't really answer this question.
I've recently started using MVC because it's part of the framework that myself and my work-partner are going to use. We chose it because it looked easy and separated proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What PL/SQL Libraries For Auto-Generating JSON Do You Recommend? Are there any good PL/SQL libraries for JSON that you've worked with and found useful?
In PL/SQL, I'm having to tediously hand code the return of JSON values to JavaScript functions. I found one PL/SQL library for auto-generating JSON, but it doesn't d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: wxpython: How do I examine dragged data in OnDragOver? I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the system whether... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Asp.net Reinstalling a DLL into the GAC I'm trying to re-install a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one.
The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: asp.net mvc - subfolders How does the new Microsoft asp.net mvc implementation handle partitioning your application - for example:
--index.aspx
--about.aspx
--contact.aspx
--/feature1
--/feature1/subfeature/action
--/feature2/subfeature/action
I guess what I am trying to say is that it seems everything has to go in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Internalize Class and Methods in .NET Assembly I have a set of multiple assemblies (one assembly is to be used as an API and it depends on other assemblies). I would like to merge all assemblies into one single assembly but prevent all assemblies except the API one to be visible from the outside.
I will then obfusca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I make sure scrollbars don't overlap content? When creating scrollable user controls with .NET and WinForms I have repeatedly encountered situations where, for example, a vertical scrollbar pops up, overlapping the control's content, causing a horizontal scrollbar to also be needed. Ideally the content woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: java.lang.IllegalArgumentException: Invalid in servlet mapping <servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>workflow.WDispatcher</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>*NEXTEVENT*</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Getting all types that implement an interface Using reflection, how can I get all types that implement an interface with C# 3.0/.NET 3.5 with the least code, and minimizing iterations?
This is what I want to re-write:
foreach (Type t in this.GetType().Assembly.GetTypes())
if (t is IMyInterface)
; //do st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "649"
} |
Q: Proper name space management in .NET XmlWriter I use .NET XML technologies quite extensively on my work. One of the things the I like very much is the XSLT engine, more precisely the extensibility of it. However there one little piece which keeps being a source of annoyance. Nothing major or something we can't live ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: MS SQL Server 2008 "linked server" to Oracle : schema not showing I have a Windows 2008 Server (x64) running Microsoft SQL 2008 (x64) and I'm creating a Linked Server connection to an Oracle server. I'm able to make the connection, but I cannot see any information regarding which schema a table belongs to.
In SQL 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parse string to TimeSpan I have some strings of xxh:yym format where xx is hours and yy is minutes like "05h:30m". What is an elegant way to convert a string of this type to TimeSpan?
A: DateTime.ParseExact or DateTime.TryParseExact lets you specify the exact format of the input. After you get the DateTime, you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Perforce in a Microsoft Shop Our dev shop currently uses Visual SourceSafe. We all know how that could end up (badly), so we're investigating other systems. First up is Perforce. Does anyone have experience with using it and its integration into Visual Studio (2003/2005/2008)? Is it as good as any other, or is it pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Rewarding code projects for *complete* beginners Courses for people who are being introduced to programming very often include a code project, which I think is a nice way to learn. However, such projects often feel too artificial, and are thus not very rewarding to work on.
What are your ideas of rewarding code proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: UITypeEditor and IExtenderProvider I have an extender (IExtenderProvider) which extends certain types of
controls with additional properties. For one of these properties, I have
written a UITypeEditor. So far, all works just fine.
The extender also has a couple of properties itself, which I am trying to
use as a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net: Using System.Web.UI.Control.ResolveUrl() in a shared/static function What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is:
Dim x As New System.Web.UI.Control
x.ResolveUrl("~/someUrl")
Or C#:
System.Web.UI.Control x = new System.Web.UI.Control();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How do you back up your development machine? How do you back up your development machine so that in the event of a catastrophic hardware malfunction, you are up and running in the least amount of time possible?
A: I use Mozy, and rarely think about it. That's one weight off my shoulders that I won't ever miss.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: XPath and Selecting a single node I'm using XPath in .NET to parse an XML document, along the lines of:
XmlNodeList lotsOStuff = doc.SelectNodes("//stuff");
foreach (XmlNode stuff in lotsOStuff) {
XmlNode stuffChild = stuff.SelectSingleNode("//stuffChild");
// ... etc
}
The issue is that the XPath Query for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the best way to deal with DBNull's I frequently have problems dealing with DataRows returned from SqlDataAdapters. When I try to fill in an object using code like this:
DataRow row = ds.Tables[0].Rows[0];
string value = (string)row;
What is the best way to deal with DBNull's in this type of situation.
A: A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to abort threads created with ThreadPool.QueueUserWorkItem is there a way to abort threads created with QueueUserWorkItem?
Or maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically?
A: The threadpool uses background threads. Hence, they will all b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Uncollapsible CollapsiblePanelExtender I have a CollapsiblePanelExtender that will not collapse. I have "collapsed" set to true and all the ControlID set correctly. I try to collapse and it goes through the animation but then expands almost instantly. This is in an User Control with the following structure.
<asp:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Modifying SharePoint System Files What is the general feeling amongst developers regarding the changing of files in the 12 hive.
For example if you were asked to remove the sign is a different user menu item, you would need to modify the relevent user control on the filesystem. Now if you just go and modify it via ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to represent cross-model information in MVC? I have an application, built using MVC, that produces a view which delivers summary information across a number of models. Further to that, some calculations are performed across the different sets of data.
There's no clear single model (that maps to a table at least)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why can't I connect to my CAS server with Perl's AuthCAS? I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the AuthCAS Perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my script ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: New Project : MySQL or SQL 2005 Express I am starting a new client/server project at work and I want to start using some of the newer technologies I've been reading about, LINQ and Generics being the main ones. Up until now I have been developing these types of applications with MySQL as clients were unwilling to p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do you use distributed version control? I'd like to hear from people who are using distributed version control (aka distributed revision control, decentralized version control) and how they are finding it. What are you using, Mercurial, Darcs, Git, Bazaar? Are you still using it? If you've used client/server rcs in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: guid REST URL for ado.net dataservice call? Trying to use a guid as a resource id in a rest url but cant find any resource on how to.
My best right now (not working though) is:
http://localhost:49157/PhotogalleryDS.svc/gallery('1d03beb3-6d63-498b-aad7-fab0b1480996')
(I've tried duouble/single quotes. And also {guid.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the fastest way to determine a full URL from a relative URL (given a base URL) I'm currently using the module URI::URL to generate a full URL from a relative URL; however, it isn't running as fast as I'd like it to be. Does anyone know another way to do this that may be faster?
A: Just happened across this a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you programmatically fill in a form and 'POST' a web page? Using C# and ASP.NET I want to programmatically fill in some values (4 text boxes) on a web page (form) and then 'POST' those values. How do I do this?
Edit: Clarification: There is a service (www.stopforumspam.com) where you can submit ip, username a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Limitations of screen readers I'm a web developer, and I want to make the web sites I develop more accessible to those using screen readers. What limitations do screen readers have that I should be most aware of, and what can I do to avoid hitting these limitations.
This question was sparked by reading another ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I REALLY reset the Visual Studio window layout? I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: Setting up a large Xcode project I have a large exiting C++ project involving:
*
*4 applications
*50+ libraries
*20+ third party libraries
It all builds fine on Windows using VS8, Linux using QMake (project uses Qt a lot). I also build it on OS X using QMake but I was wanting to setup an Xcode project to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Difference between wiring events with and without "new" In C#, what is the difference (if any) between these two lines of code?
tmrMain.Elapsed += new ElapsedEventHandler(tmrMain_Tick);
and
tmrMain.Elapsed += tmrMain_Tick;
Both appear to work exactly the same. Does C# just assume you mean the former when you type ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Browser scrollbar I have a website that is perfectely centered aligned. The CSS code works fine. The problem doesn't really have to do with CSS. I have headers for each page that perfectely match eachother.
However, when the content gets larger, Opera and FireFox show a scrollbar at the left so you can scroll to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Postback with Modified Query String from Dropdown in ASP.NET My asp.net page will render different controls based on which report a user has selected e.g. some reports require 5 drop downs, some two checkboxes and 6 dropdowns).
They can select a report using two methods. With SelectedReport=MyReport in the query str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Recommendations for Javascript Editor on Windows? Are there any good recommendations anyone can provide for a good Javascript editor on Windows?
I currently use combinations of FireBug and TextPad but would hate to miss out on the party if there are better options out there.
Thanks.
A: (This is a cross-answer p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How can you require a constructor with no parameters for types implementing an interface? Is there a way?
I need all types that implement a specific interface to have a parameterless constructor, can it be done?
I am developing the base code for other developers in my company to use in a specific project.
There's a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Getting QMake to generate a proper .app I have a large exiting C++ project involving:
*
*4 applications
*50+ libraries
*20+ third party libraries
The project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS.
I can build in on Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I delete a directory with cc.net / cruiscontrol?
Possible Duplicate:
Pre-build task - deleting the working copy in CruiseControl.NET
I would like to delete my working directory during the cruisecontrol build process...I'm sure this is easy, but I have been unable to find an example of it...
If you know how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement a web scraper in PHP? What built-in PHP functions are useful for web scraping? What are some good resources (web or print) for getting up to speed on web scraping with PHP?
A: Scraping generally encompasses 3 steps:
*
*first you GET or POST your request
to a specified URL
*next you receive
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: NHibernate vs LINQ to SQL As someone who hasn't used either technology on real-world projects I wonder if anyone knows how these two complement each other and how much their functionalities overlap?
A: Fluent NHibernate can generate your mapping files based on simple conventions. No XML-writing and strongly typed.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "117"
} |
Q: What is the general rule of thumbs for creating an Exception in Java? I have been in both situations:
*
*Creating too many custom Exceptions
*Using too many general Exception class
In both cases the project started OK but soon became an overhead to maintain (and refactor).
So what is the best practice regardi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How does one implement FxCop / static analysis on an existing code base What are some of the strategies that are used when implementing FxCop / static analysis on existing code bases with existing violations? How can one most effectively reduce the static analysis violations?
A: Rewrite your code in a passing style... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Single responsiblity principle: granularity of the reason to change When applying the Single Responsibility Principle and looking at a class's reason to change, how do you determine whether that reason too change is too granular, or not granular enough?
A: I don't know that there's a good answer to this one other t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Alternating coloring groups of rows in Excel I have an Excel Spreadsheet like this
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
| even more data for id
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
Now I want to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Best approaches to versioning Mac "bundle" files So you know a lot of Mac apps use "bundles": It looks like a single file to your application, but it's actually a folder with many files inside.
For a version control system to handle this, it needs to:
*
*check out all the files in a directory, so the app can mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Comparing Arrays of Objects in JavaScript I want to compare 2 arrays of objects in JavaScript code. The objects have 8 total properties, but each object will not have a value for each, and the arrays are never going to be any larger than 8 items each, so maybe the brute force method of traversing each and then look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: Javascript: declaring a variable before the conditional result? My JavaScript is pretty nominal, so when I saw this construction, I was kind of baffled:
var shareProxiesPref = document.getElementById("network.proxy.share_proxy_settings");
shareProxiesPref.disabled = proxyTypePref.value != 1;
Isn't it better to do a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I set LANG to ascii? I'm accessing an Ubuntu machine using PuTTY, and using gcc.
The default LANG environment variable on this machine is set to en_NZ.UTF-8, which causes GCC to think PuTTY is capable of displaying UTF-8 text, which it doesn't seem to be.
Maybe it's my font, I don't know - it does this:
foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you deal with the light side and dark side of distributed version control systems? I've had some discussions recently at work about switching from Subversion to a DVCS like bazaar, and I would like to get other people's opinion.
I've managed to crystallize my reluctance to do so into a simple parallel.
Versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tool to read and display Java .class versions Do any of you know of a tool that will search for .class files and then display their compiled versions?
I know you can look at them individually in a hex editor but I have a lot of class files to look over (something in my giant application is compiling to Java6 for som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "128"
} |
Q: Pointer to Pointer Managed C++ I have an old C library with a function that takes a void**:
oldFunction(void** pStuff);
I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):
oldFunction( static_cast<sqlite3**>( &m_pStuff ) );
This gives me the following er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27071",
"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.