text stringlengths 8 267k | meta dict |
|---|---|
Q: SQL Query Help: Selecting Rows That Appear A Certain Number Of Times I have a table with a "Date" column. Each Date may appear multiple times. How do I select only the dates that appear < k number of times?
A: SELECT * FROM [MyTable] WHERE [Date] IN
(
SELECT [Date]
FROM [MyTable]
GROUP By [Date]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/104971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ReSharper giving C# 3.0 Code Inspection Warnings to .NET 2.0 Projects When I am working in .NET 2.0 projects with the newest version of ReSharper (4.1) I am getting warnings about using the var keyword and lambadas etc.. Any idea how I can disable this only for .NET 2.0 projects?
A: Indeed, you can use C# 3.0 compi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/104978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is "thread local storage" in Python, and why do I need it? In Python specifically, how do variables get shared between threads?
Although I have used threading.Thread before I never really understood or saw examples of how variables got shared. Are they shared between the main thread and the children or only am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/104983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "128"
} |
Q: How should a blog be structured to easily extract its data? I'm currently using Wordpress to run my website. However, with each new release I become more concerned with software bloat and the convoluted table structures used to store my data. Maybe this is a fruitless pursuit. Features are always added to bloggin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I test private methods or only public ones? I have read this post about how to test private methods. I usually do not test them, because I always thought it's faster to test only public methods that will be called from outside the object. Do you test private methods? Should I always test them?
A: I do not li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "396"
} |
Q: Does the 'mutable' keyword have any purpose other than allowing the variable to be modified by a const function? A while ago I came across some code that marked a member variable of a class with the mutable keyword. As far as I can see it simply allows you to modify a variable in a const method:
class Foo
{
pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "606"
} |
Q: How do you resolve crashing Windbg Logger on Vista? I would like to use the Logger tool that ships with the Microsoft Debugging Tools for Windows. However, on Vista it crashes even with built-in Vista applications:
> logger calc
or
> logger notepad
The issue occurs if I run the tool from a command prompt with or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSI installer: Adding multiple properties to SecureCustomProperties I'm looking for a way to add multiple properties to the SecureCustomProperties value in my .msi installer's property table. I've tried comma delimiting, semi-colon delimiting, and even space delimiters. None of the above seem to work.
Hints?
A: O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you get total amount of RAM the computer has? Using C#, I want to get the total amount of RAM that my computer has.
With the PerformanceCounter I can get the amount of Available ram, by setting:
counter.CategoryName = "Memory";
counter.Countername = "Available MBytes";
But I can't seem to find a way to get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How do I create a GUID / UUID? How do I create GUIDs (globally-unique identifiers) in JavaScript? The GUID / UUID should be at least 32 characters and should stay in the ASCII range to avoid trouble when passing them around.
I'm not sure what routines are available on all browsers, how "random" and seeded the built-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5158"
} |
Q: How can I associate .sh files with Cygwin? I'd like to run a long rsync command in Cygwin by double clicking on a .sh file in Windows. It must start in the file's containing directory (e.g. /cygdrive/c/scripts/) so that relative paths work. Anyone gotten this to work?
Note: I've just found here, a Cygwin package t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: What are some good techniques to convert an Ms Access application to a .Net Application? We have a 12-year-old Ms Access app that we use for our core inventory warehousing and invoicing system. It IS already running on an SQL Server backend, but all the "logic", forms and reports are in Access. After experiencing th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are locks unnecessary in multi-threaded Python code because of the GIL? If you are relying on an implementation of Python that has a Global Interpreter Lock (i.e. CPython) and writing multithreaded code, do you really need locks at all?
If the GIL doesn't allow multiple instructions to be executed in parallel, would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: CSS: Display Properties differences What is the difference between display:block and display:inline
A: Block elements will typically stack vertically whereas inline elements will line up horizontally.
Two Divs will stack on top of each other, but if you set them to display:inline, they will be next to each other h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the most interesting design pattern you've ever met? Most of us have already used the casual patterns such as MVC, strategy, etc.
But there must be some unusual solutions to unusual problems, and I'd like to hear about it.
A: It's more of an anti-pattern, but I've seen what I call the "Keep it all in one pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Production Logging in Flex Is there any way to capture the trace statements of your Flex app while not running in debug mode?
Or is there any other way to output logging information when not running a debugger?
Currently I'm trying to fix a bug that only presents itself in very specific deployment scenario, but I co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there an easy way to get Apache Tomcat to reboot automatically after a deployment? Our project uses Cruise Control to both build and hot deploy a web application to a remote server (via FTP) running Tomcat in the form of a .war file. Unfortunately, "hot" deploys don't appear to work properly, causing us to reboo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why use WinDbg vs the Visual Studio (VS) debugger? What are the major reasons for using WinDbg vs the Visual Studio debugger?
And is it commonly used as a complete replacement for the Visual Studio debugger, or more for when the need arises.
A: If you are wondering why you should use windbg over Visual Studio, then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How can I check to make sure a window is being actively used, and if not alert the end user that they are about to be logged out? Working on a new back end system for my company, and one of their requests is for a window to become locked down and for the user to be sent to the login screen if they leave it idle for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you deal with configuration management of Database Tables? How do you deal with source control management and automated deployment (configuration management) of database tables. I work in a SQL Server environment and it's pretty easy to script out drop and create files for stored procedures/triggers/function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ruby Soap4R Web Service, .NET Consumer How do I generate WSDL from a Web Service in Ruby using Soap4R (SOAP::RPC::StandaloneServer) that would be consumed from .NET?
A: There's not a way to do this through SOAP4R, unfortunately. SOAP4R is more for interacting with SOAP endpoints, or generating your own through a WS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Locking in C# I'm still a little unclear and when to wrap a lock around some code. My general rule-of-thumb is to wrap an operation in a lock when it reads or writes to a static variable. But when a static variable is ONLY read (e.g. it's a readonly that is set during type initialization), accessing it doesn't need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Recursively list all files in a directory including files in symlink directories Suppose I have a directory /dir inside which there are 3 symlinks to other directories
/dir/dir11, /dir/dir12, and /dir/dir13. I want to list all the files in dir including the ones in dir11, dir12 and dir13.
To be more generic, I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "186"
} |
Q: What opensource CMS: generates clean xhtml, is skinable with css, and has a lightweight markup content editor? See title. By lightweight markup I mean something like markdown or wikitext.
A: Well, silverstripe http://www.silverstripe.com/ is thought to be a good option for people who care about web standards , as i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I convert between big-endian and little-endian values in C++? How do I convert between big-endian and little-endian values in C++?
For clarity, I have to translate binary data (double-precision floating point values and 32-bit and 64-bit integers) from one CPU architecture to another. This doesn't involve ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "253"
} |
Q: How to create a custom template for WCSF (.NET 2.0)? I'm new to the WCSF and can't seem to find anything related to "building a custom template" for creating the views/presenters/code-behinds/etc with your own flavor ...
Can anyone point me in the right direction?
A: you can find useful information about how to mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Thinking of learning Maven I have a side project I do = in Java. It's a pretty straight-forward webapp. It runs in Tomcat on a Linux Server and uses a MySQL database. The majority of the code was written with the Spring Framework. It has a lot of Unit Tests in place. When I'm coding it's in Eclipse. When I deploy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I use mod_rewrite to change the path and filename of a URL I want to take the url:
http://www.mydomain.com/signup-12345
And actually give them:
http://www.mydomain.com/signup/?aff=12345
I have NO history with mod_rewrite, HELP!
A: Try this :
RewriteRule ^/signup-(\d+)/$ /signup/?aff=$1 [I]
A: Something tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where'd my generic ActionLink go? Moved from preview 2 to preview 5 and now my Html.ActionLink calls are all failing. It appears that the generic version has been replaced with a non-type safe version.
// used to work
<li>
<%= Html.ActionLink<HomeController>(c => c.Index(), "Home")%>
</li>
// what appears I can o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are table-driven methods? What is a "table-driven method"?
As mentioned by Bill Gates in the second Windows Vista commercial at 1:05.
A: The referenced video has Bill Gates reading from the book Code Complete by Steve McConnell. Jeff Atwood mentioned this in his blog (the YouTube links match up).
From Code Com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Gsoap Error in C++ I am using gsoap to create a soap server in C++. Messages are routed through a bus written in Java. Both the server and the bus are multithreaded. Everything works well sending one message at a time through the system. If I start 3 clients each sending messages as fast as possible everything is fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automated way to detect tests that can't fail, checked in to get by minmum code coverage? I have a dev, that will get around our code coverage by writing tests that never fail.
The code is just atrocious, but the tests never catch it because they assert(true).
I code review, but I can't do everyones work for them, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a Java-based ray tracing model that can be adapted for use in underwater acoustics? I am looking for an open-source Java-based raytracing system suitable for use in modeling underwater ray-based acoustics. Such a package might be similar to the Comprehensive Acoustic System Simulation (CASS) with the Gauss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Bash prompt in OS X terminal broken I am using bash in os X Terminal app, and my custom $PS1 breaks when I scroll through my history.
PS1="${BLUE}\u${CYAN}@${RED}\h${BLUE}\w\n\[${red}\$${NC}\]"
also tried
PS1="${BLUE}\u${CYAN}@${RED}\h${BLUE}\w\r\n[${red}\$${NC}]"
The problem seems to be in the newline. I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to enumerate an enum? How can you enumerate an enum in C#?
E.g. the following code does not compile:
public enum Suit
{
Spades,
Hearts,
Clubs,
Diamonds
}
public void EnumerateAllSuitsDemoMethod()
{
foreach (Suit suit in Suit)
{
DoSomething(suit);
}
}
And it gives the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4304"
} |
Q: How do you store/share online your personal documents? For photos, I use Flickr. But for other documents...Which web based online application (hosted or to install on your personal web site) do you use for PDF or word files ? If there is a user management it would be also great (for example you decide that some pers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are indexes and how can I use them to optimize queries in my database? I am maintaining a pretty sizable application and database and am noticing some poor database performance in a few of our stored procedures.
I always hear that "adding an index" can be done to help performance. I am certainly no DBA, and I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: 3rd party controls for MS SQL 2005 Reporting Services Can anyone recommend a good 3rd party control(s) for MS SQL 2005 Reporting Services. If you know some open library or implementation of such controls that could be very useful too.
A: Dundas do great RS add-ins if you have the budget:
http://www.dundas.com/index... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What port is a given program using? I want to be able to figure out what port a particular program is using. Are there any programs available online or that come with windows that will tell me which processes are using which ports on my computer?
PS - before you downmod this for not being a programming question, I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: Malloc inside a function call appears to be getting freed on return? I think I've got it down to the most basic case:
int main(int argc, char ** argv) {
int * arr;
foo(arr);
printf("car[3]=%d\n",arr[3]);
free (arr);
return 1;
}
void foo(int * arr) {
arr = (int*) malloc( sizeof(int)*25 );
arr[3] = 69;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do you maintain separate webservices for dev/stage/production We want to maintain 3 webservices for the different steps of deployment, but how do we define in our application which service to use? Do we just maintain 3 web references and ifdef the uses of them somehow?
A: As others have mentioned you'll want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I stop Blend 2.5 June Preview replacing Canvas.ZIndex with Panel.ZIndex on SL1.0 XAML? I have a Silverlight 1.0 application that I edit with Blend 2.5. Whenever I touch a UIElement in the designer that has a Canvas attribute such as Canvas.ZIndex="1", when it updates the XAML, it changes the Canvas prefix to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set proxy with credentials to generated WCF client? I have a problem to connect to my WCF service if customer is using proxy with credentials. I'm unable to find the way to set credential to generated client proxy.
If I use the web service, then it is possible to set proxy.
A: I'm not entirely sure if this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is there any performance benefit with "chaining" statements in .NET? When retrieving a lookup code value from a table, some folks do this...
Dim dtLookupCode As New LookupCodeDataTable()
Dim taLookupCode AS New LookupCodeTableAdapter()
Dim strDescription As String
dtLookupCode = taLookupCode.GetDataByCodeAndValue("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: F# and Enterprise Software Being a C# developer since version 1.0, F# has captured my free time for the past few weeks. Computers are now sold with 2, 4 .. Cores and multi-threading is not always simple to accomplish.
At the moment I see that F# has great potential for complicated and or heavy workloads.
Do you thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Compartment items not displayed in DSL diagram OK, so things have progressed significantly with my DSL since I asked this question a few days ago.
As soon as I've refactored my code, I'll post my own answer to that one, but for now, I'm having another problem.
I'm dynamically generating sub-diagrams from a DSL-creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VmWare Primary HDD Expansion I have a VmWare virtual machine that is coming dangerously close to it's primarry HDD's limit and I need to extend it. How do I do this? I'm working with VmWare Workstation 6.0.5
A: This link gives two approaches that should help.
It looks like this is the most straightforward method:
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best features of EJB 3 The scenario
*
*You have developed a webapp using EJBs version 3.
*The system is deployed, delivered and is used by the customer.
If you would have to rewrite the system from scratch, would you use EJBs again?
No: Don't answer this question, answer this one instead.
Yes: Provide one impo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: XAMPP and WAMP in the LAMP, what's the best? We have got loads of options for php + MySQL + Apache combo... Which is the best pack among these ?
Lets confine our ideas to WAMP vs XAMPP, is there a better option to go for?
I created an online programming contest web app called CodeFire on XAMPP, later I had to switch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: What causes java.io.CharConversionException with EOF or isHexDigit messages in Tomcat? This exception peppers our production catalina logs on a simple 'getParameter()' call.
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: EOF
at org.apache.tomcat.util.buf.UDe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Automatically Generating SQL Schema from XML We are attempting to use a SQL Server 2003 database for our test records and want a quick way to take NUnit and NAnt output and produce SQL schema and data. Is there a simple way to generate SQL Schema using the XSD file describing these XML documents?
A: You could use X... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to build following SQL query The original query looks like this (MySQL):
SELECT *
FROM books
WHERE title LIKE "%text%" OR description LIKE "%text%"
ORDER BY date
Would it be possible to rewrite it (without unions or procedures), so that result will look like this:
*
*list of books where title m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What RTOS is best for working on the same PC with Windows? What RTOS is best for working on the same PC with Windows?
I know about RTX and INtime, but have not used them. Are there any others? Which one is your favorite and why?
A: I would try eCos. It is runs on the i386, is free, has great tool support, and inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A script to change all tables and fields to the utf-8-bin collation in MYSQL Is there a SQL or PHP script that I can run that will change the default collation in all tables and fields in a database?
I can write one myself, but I think that this should be something that readily available at a site like this. If I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Need refactoring ideas for Arrow Anti-Pattern I have inherited a monster.
It is masquerading as a .NET 1.1 application processes text files that conform to Healthcare Claim Payment (ANSI 835) standards, but it's a monster. The information being processed relates to healthcare claims, EOBs, and reimbursements. Thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can I revoke some database privileges from MediaWiki after installation? I've just installed MediaWiki on a web server. Obviously it needs lots of privileges during installation to set up its database correctly. Now that it's installed can I safely revoke some privileges (e.g. create table, drop table?) Or might ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I Extend Blogengine.Net to collect statistics of visitors? I love BlogEngine. But from what I can se it does not collect the standard information about the visitors I would like to see (referrer, browser-type and so on).
When I log in as Admin I have a menu item named "Referrer". I can choose a weekday and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I need a helper method to compare a char Enum and a char boxed to an object I have an enum that looks as follows:
public enum TransactionStatus { Open = 'O', Closed = 'C'};
and I'm pulling data from the database with a single character indicating - you guessed it - whether 'O' the transaction is open or 'C' the tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VSTO Excel 2007 PivotTable, having a PivotField in more than one column I am using VSTO with Excel 2007 to generate PivotTables and PivotCharts dynamically.
I am having a problem when I need to have a PivotField in more than one column.
To accomplish this I create a PivotTable in Excel and serialize its properties ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can XPath return only nodes that have a child of X? Is it possible to use XPath to select only the nodes that have a particular child elements? For example, from this XML I only want the elements in pets that have a child of 'bar'. So the resulting dataset would contain the lizard and pig elements from this exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Connection Timeout exception for a query using ADO.Net Update: Looks like the query does not throw any timeout. The connection is timing out.
This is a sample code for executing a query. Sometimes, while executing time consuming queries, it throws a timeout exception.
I cannot use any of these techniques:
1) Increas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Injecting a user account into mySQL Tackling a strange scenario here.
We use a proprietary workstation management application which uses mySQL to store its data. Within the application they provide number of reports, such as which user logged into which machine at what time, all the software products installed on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to print wstring in gdb How can I print wstring in gdb?
A: call printf %ls only works sometimes, but to get it to work at all in gdb 6.3 you need the void cast and linefeed \n shown here:
call (void)printf("\"%ls\"\n",str.c_str())
here is a more reliable command you can put in your .gdbinit that also shows non-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: int matrix with pointers in C - memory allocation confusion I'm having some issues with producing an int matrix without creating memory leaks. I want to be able to make a given (global) matrix into any size dynamically via read_matrix(). But then i want to be able to free the memory later on. So in my main method th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can one grab a stack trace in C? I know there's no standard C function to do this. I was wondering what are the techniques to to this on Windows and *nix? (Windows XP is my most important OS to do this on right now.)
A: glibc provides backtrace() function.
http://www.gnu.org/software/libc/manual/html_node/Bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: (any == System.DBNull.Value) vs (any is System.DBNull) Does any one have a preference on how to check if a value is DBNull? I've found these two statements give me the results I want, but just wondering if there's a preference?
if (any is System.DBNull)
same as:
if (any == System.DBNull.Value)
Thanks!
A: is does n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Get a list of all computers on a network w/o DNS Greetings,
I need a way (either via C# or in a .bat file) to get a list of all the computers on a given network. Normally, I use "net view", but this tends to work (from my understanding) only within your domain. I need the names (or at least the IP Addresses) of al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TCP send queue depth How do I discover how many bytes have been sent to a TCP socket but have not yet been put on the wire?
Looking at the diagram here:
I would like to know the total of Categories 2, 3, and 4 or the total of 3 and 4. This is in C(++) and on both Windows and Linux. Ideally there is a ioctl that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What XML do I send for a field thats declared as nillable? I have an application with a REST style interface that takes XML documents via POST from clients. This application is written in Java and uses XML beans to process the posted message.
The XML schema definition for a field in the message looks like this:
<xs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way to enable the mousewheel (for scrolling) in Java apps? Ideally I'd like a way to enable the mouse wheel for scrolling in old compiled java runtime apps, but java code to explicitly utilise it for an individual app would suffice.
A: You shouldn't have to recompile against 1.5 or 1.6 to get mousewhe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Making a beta code for a public django site I'm about to put a beta version of the site I'm working on up on the web. It needs to have a beta code to restrict access. The site is written in django.
I don't want to change the fundamental Auth system to accommodate a beta code, and I don't care particularly that the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Web designer for simple reports Users of my web app need to edit and "save as" their reports and then execute and export them to PDF or Excel files.
I need to know if there is a designer (web) for simple reports (open source would be better). Reports are not complex: just data fields, master-detail, labels, simple f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some excellent examples of user sign-up forms on the web? I'm trying to get a sampling of what people think are the best sign-up forms. Good design, usability. Smart engineering. Helpful feedback.
A: One of my all-time fave sign-up forms was the original Vox one, which has since been changed; there was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I move to end of line in Vim? I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on?
A: Or there's the obvious answer: use the End key to go to the end of the line.
A: The main question - end of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1387"
} |
Q: Can't figure out what this SubString.PadLeft is doing In this code I am debugging, I have this code snipit:
ddlExpYear.SelectedItem.Value.Substring(2).PadLeft(2, '0');
What does this return? I really can't run this too much as it is part of a live credit card application. The DropDownList as you could imagine from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write a self reproducing code (prints the source on exec)? I have seen a lot of C/C++ based solutions to this problem where we have to write a program that upon execution prints its own source.
some solutions --
http://www.cprogramming.com/challenges/solutions/self_print.html
Quine Page solution in many lang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do I use the softkeys with a CDialog based application in windows mobile 6 via MFC? How do I use the softkeys with a CDialog based application in windows mobile 6 via MFC?
I have a CDialog based Windows Mobile 6 (touchscreen) Professional app that I am workign on.
The default behavior of a CDialog based app in W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best practices for configuring Apache / Tomcat We are currently using Apache 2.2.3 and Tomcat 5 (Embedded in JBoss 4.2.2) using mod_proxy_jk as the connector.
Can someone shed some light on the the correct way to calculate / configure the values below (as well as anything else that may be relevant). Both Apache and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: .NET String.Format() to add commas in thousands place for a number I want to add a comma in the thousands place for a number.
Would String.Format() be the correct path to take? What format would I use?
A: Standard formats, with their related outputs,
Console.WriteLine("Standard Numeric Format Specifiers");
String s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1003"
} |
Q: Detecting when ChucK child shred has finished Is it possible to determine when a ChucK child shred has finished executing if you have a reference to the child shred? For example, in this code:
// define function go()
fun void go()
{
// insert code
}
// spork another, store reference to new shred in offspring
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I restore a dump file from mysqldump? I was given a MySQL database file that I need to restore as a database on my Windows Server 2008 machine.
I tried using MySQL Administrator, but I got the following error:
The selected file was generated by
mysqldump and cannot be restored by
this application.
How d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "643"
} |
Q: Why won't an Ajax Script Work Locally? I've an issue with the same piece of code running fine on my live website but not on my local development server.
I've an Ajax function that updates a div. The following code works on the live site:
self.xmlHttpReq.open("POST", PageURL, true);
self.xmlHttpReq.setRequestHeader("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the ultimate program to make a drawing of a database model? One of the first things I do when I'm on a new project is design a database model. To visualize the model I use a 7 year old version of Smartdraw. Maybe it's time for something new. What is the ultimate program to make a drawing of a database model.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: good postgresql client for windows? coming back to postgresql after several years of oracle ...
what are the state-of-the art postgresql administrative/ddl generating/data inserting frontends on windows? it would be nice if it had integration for postgis as well. it should be standalone or alternatively a plugin fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: How do I get a string type of a hex value that represents an upper ascii value character Part of our app parses RTF documents and we've come across a special character that is not translating well. When viewed in Word the character is an elipsis (...), and it's encoded in the RTF as ('85).
In our vb code we convert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I access a char ** through ffi in plt-scheme? I'm mocking about with plt-scheme's ffi and I have a C-function that returns a char ** (array of strings). If I declare my function as (_fun _pointer -> _pointer), how do I convert the result to a list of strings in scheme?
Here are the relevant C-declarations:
ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SEO and hard links with dynamic URLs With ASP.NET MVC (or using HttpHandlers) you can dynamically generate URLs, like the one in this question, which includes the title.
What happens if the title changes (for example, editing it) and there's a link pointing to the page from another site, or Google's Pagerank was cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does the JVM prevent tail call optimizations? I saw this quote on the question: What is a good functional language on which to build a web service?
Scala in particular doesn't support tail-call elimination except in self-recursive functions, which limits the kinds of composition you can do (this is a fundamental li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: Perl JOIN-like behavior in Oracle? I have two tables, let's call them PERSON and NAME.
PERSON
person_id
dob
NAME
name_id
person_id
name
And let's say that the NAME table has data like:
name_id person_id name
1 1 Joe
2 1 Fred
3 1 Sam
4 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Real-world examples of recursion What are real-world problems where a recursive approach is the natural solution besides depth-first search (DFS)?
(I don't consider Tower of Hanoi, Fibonacci number, or factorial real-world problems. They are a bit contrived in my mind.)
A: Disabling/setting read-only for all child... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: Conditional logging with minimal cyclomatic complexity After reading "What’s your/a good limit for cyclomatic complexity?", I realize many of my colleagues were quite annoyed with this new QA policy on our project: no more 10 cyclomatic complexity per function.
Meaning: no more than 10 'if', 'else', 'try', 'catch' a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Running an MVC application through IIS results in "Directory listing denied" I have an .Net MVC application which runs fine if I use the build in Visual Studio Webserver. If I use the projects property pages to switch to IIS as the webserver and create a virtual directory for my project, any request I send to the se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Implementing IntelliSense-like behavior in custom editors for domain-specific languages I'm creating a DSL with a template-like editor, much like the rule systems in Alice. Users will be able to select relationships from a list as well as the objects to apply the relation to. These two lists should be filtered bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to record window position in Windows Forms application settings It seems like a standard requirement: next time the user launches the application, open the window in the same position and state as it was before. Here's my wish list:
*
*Window position same as it was
*
*Unless the screen has resized and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Most efficient way to see if an item is or is not in a listbox control This request is based in MS Access VBA. I would like to know what the most efficient way is, to see if an item exists in a listbox control.
A: Here is a sample function that might be adapted to suit.
Function CheckForItem(strItem, ListB As ListB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple VB.NET using Google Search API? Can anyone point me to a good, simple, example of a Google API (AJAX Search API I suppose?) that can be implemented in VB.net (2008)? I have tried to sign up for a Google API key but it wants a URL from which the search will be executed from. I dont have a URL for this examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I set the default database in Sql Server from code? I can't seem to figure out how to set the default database in Sql Server from code. This can be either .Net code or T-Sql (T-Sql would be nice since it would be easy to use in any language). I searched Google and could only find how to do it in Sql Server Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What's a Good Resource for Learning XNA? I've been considering experimenting with game development and XNA. I'm already an expert C/C++ programmer. I read through some C# books, but haven't done any development in C# yet.
What's a good resource for learning XNA, from the point of view of someone who's already an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I pass an arbitrary block of commands to a bash function? I am working on a bash script where I need to conditionally execute some things if a particular file exists. This is happening multiple times, so I abstracted the following function:
function conditional-do {
if [ -f $1 ]
then
echo "Doing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In OOP, In what cases do you act on an object instead of letting the object act? In what cases,or for what kind of algorithms, do you start using your objects as data structure with methodes outside of the objects (ie : Tree Walking, etc...).
What scheme do you use ? (Visitor ? pattern-matching ?)
Or do you think a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105988",
"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.