text stringlengths 8 267k | meta dict |
|---|---|
Q: Insert Parameterized Query ASP.NET MS SQL Here is my SQLCommand object:
oCommand.CommandText =
"INSERT INTO hits (id,client_id,client_ip,page,vars) VALUES _
(@@IDENTITY,@client_id,@ip,@page,@vars)"
oCommand.Parameters.Count = 4
>> oCommand.Parameters.Item(0).ParameterName = "@client_id"
>> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Securly download file inside browser with correct filename I am doing some work on a web site that has a secure area which is available to users only after they have logged in. In this area there is a page with links to pdf documents which can be downloaded. The physical documents are outside of the web site's root ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What resources would you recommend for RPG36 code conversion? The question really asks it all. We have a bunch of really old S/36 programs that need to be moderized. I am more looking for articles or sites that explain what the old method does and how to convert it to RPGLE.
A: There is no syntactic difference betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC reminds me of old Classic ASP spaghetti code I just went through some MVC tutorials after checking this site out for a while. Is it just me, or does MVC View pages bring back HORRIBLE flashbacks of Classic ASP spaghetti code with all the jumping in and out of HTML and ASP.NET with yellow delimiters ever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: (PHP) Object of class SoapClient could not be converted to string This code works fine:
$result = $client->__call("optionalInfo", array(
new SoapParam("...", "client"),
new SoapParam("...", "add_code"))
);
When I try abstracting it a bit to make the script re-usable, I get this error:
Catchable fatal error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: GUI design: Merge 'Save' and 'Save as' I am working on a GUI (OpenG Builder). How can I merge the Save and Save As button into one button?
My thoughts go to a 'hot spot' for 'save as' on the right side of the button, indicated by a glyph.
How can I implement this feature in an intuitive way (GUI Screenshots, hints)?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does GetMovieAudioVolumeLevels() support more than two channels of audio? I have some code that uses GetMovieAudioVolumeLevels() to get levels of a QuickTime movie during playback.
I have an 8 audio channel QuickTime movie, but using the GetMovieAudioVolumeLevels() call it only ever returns 2 channels. I am using kQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Free resource editor for Windows .rc files? Microsoft Visual C++ Express does not include the built-in resource editor that comes with the professional versions. Are there any good, free, alternatives out there that let you visually edit those .rc files?
Note: I am talking about the resource script source files used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What's the VB.NET equivalent of this C# 'for' loop? After two years of C#, my VB.NET is a bit rusty. I have two Lists. Let's call them originalList and targetList. Here is my C# code:
for(int i = 0; i<originalList.Count; i++)
{
bool isMatch = false;
foreach (string t in targetList)
{
if(String.Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I redirect output to stderr in groovy? I'm looking for a way to redirect output in a groovy script to stderr:
catch(Exception e) {
println "Want this to go to stderr"
}
A: Just off the top of my head couldn't you do a bit of self-wiring:
def printErr = System.err.&println
printErr("AHHH")
but that is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to create a web-based Email Client in .NET? I am creating a web based email client in .NET using a 3rd party component.
I just want to make sure I have the right idea:
*
*I will first pull the emails in using POP
*I will then parse each individual message that I got from POP using the MIME component right?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: New jQuery plugin - What is the best way to get input and feedback? I had a need for a certain functionality on my web apps and I use jQuery a lot, so I thought I would write a jQuery plugin. Since this is my first attempt to write a jQuery plugin, I would really like to get feedback from people, or maybe even get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a difference between $str == '' and strlen($str) == 0 in PHP? As the title says: Is there a difference between $str == '' and strlen($str) == 0 in PHP? Is there any real speed difference and is one better to use than the other?
A: I performed a simple benchmark. (I've never done one so this may be complet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I fix Firefox trying to "Save image as" .htm? We've recently implemented Amazon S3 in our site which led us to change the way we handled images. We used to call a controller /fotos.php that would read the file from disk, record some statistics, set headers and return the contents of the file as image/jpeg.
Al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: java Best Debugging Options I am trying to analyze a JVM crash that is occuring inconsistently. I get a hs_err_pid312.log file when it happens.
i've added Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler(), but i'm not sure that will catch the error.
What other things can i do so the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get precision and scale from a DataSet in c#? I have data sets with schema defined from xml schemas. Scale and Precision are in the XML schemas, but I don't seem to be able to pull them from the columns of the data tables in the data set. I'm writing the data out to ESRI shape files and need the scale and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Play an mp3 on a Pocket PC with VSC++ code Does anyone know of some mp3 playing code for the pocket PC.
I have 3 mp3s that I want to play when my application loads up, depending on how you log in.
I've used VS2005 C++ to code what I've got now.
I think code to play mp3 for the desk might do the job. But I might n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I make C# talk to PHP session I have a C# web-app that I want to integrate with a PHP shopping cart, it this possible?
A: It's not possible unless it is in a database and you write a (de)serialization algorithm that works between both languages. If it's supposed to be a read-only access, I'd make a user wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you tell if a WPF Window is closed? I'm working on an application that displays some child windows which can either be closed by the user or are automatically closed. While debugging some exceptions that were being thrown, I discovered I was trying to call methods like Hide() on a window that had already bee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Key-Value coding and its scripting capability I have an object which straight forward instance variables. Some are NSString, some are unsigned ints, etc. I was under the impression Key-Value coding was scriptable in that I could write code such as the following:
id key, value;
key = [[attributes objectAtI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Handling multiple Change Events in FileSystemWatcher I have the following sub:
Private Sub Watcher_Changed(ByVal sender As System.Object, ByVal e As FileSystemEventArgs)
If Path.GetExtension(e.Name) = ".p2p" Then
Exit Sub
Else
Try
' multiple change events can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: crystal reports 11: won't negate a number value in totext Using crystal reports 11, I'm trying to get a subtotal amount to force it to show a negative number when a database field has a value "Credit Memo".
I've tried negating the value in the totext function as you can see in the commented out lined below the if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help with ActiveRecord exception "Failed to lazily initialize a collection - no session" I am writing a web app using Castle ActiveRecord, and I keep getting this exception whenever I try to access a lazy loaded list of related objects. Here is my code:
using(new SessionScope())
{
foreac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to create RESTful complex queries? What's the best way retrieve complex queries from a REST service?
Suppose I want to get X collections, apply filters and equations to each one, combine the collections using some other operation and return one result, everything in one request.
It is just too c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to inspect Sequential Workflow in Windows Workflow? A state machine workflow has the StateMachineWorkflowInstance class that you can use to inspect the current state of the workflow, get legal transitions, etc...
Is there something like that for sequential workflows? I would like to have an easy way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: software that store data in flat file, what are common encoding/file format techniques I have been spoiled by either using sql server to store data, or using xml files.
What are common techniques for storing data in flat files other than xml and CSV.
I know many times when I open files that data is all jumbled up, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/381988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should we always favor polymorphism over enums? After watching: The Clean Code Talks -- Inheritance, Polymorphism, & Testing
I checked my code and noticed a few switch statements can be refactored into polymorphism, but I also noticed I only used switch statements with enums. Does this mean enums are "evil" in OO-d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Visual Studio 2008 Fatal Execution Engine Error (7A2E0F92) Visual Studio 2008 will suddenly quit when I'm manipulating the WebBrowser control in my WPF application.
This is in the Event Log:
.NET Runtime version 2.0.50727.3053 -
Unrecoverable system error.
.NET Runtime version 2.0.50727.3053 -
Fatal Execution E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF ListView Inactive Selection Color I'm creating a WPF application where several ListView selections are made in a row (similar to the iTunes browser). The problem is that the default inactive selection color is too light. (see below)
How can I change this color so my inactive listview looks like this? (see below... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Should I put my timer to sleep when my main method is running in a windows service In my .net windows service, when my timer elapses and my main method is called, is it best practice to put the timer in sleep mode?
This is in case my main method runs for too long, and the timer elapses before the previous calls main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to notify search engines that my site is down for some time? My site will be down for next few days. Is there any way to so that search engines knows about this and don't do any -ve action towards reputation and pagerank of website.
A: I believe that you should return a status of 503 (Service Temporarily Unavai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Who is responsible for writing Use Cases? Who is responsible for writing Use Cases?
A: Someone who
*
*Communicates clearly.
*Understands the business value. This means either business knowledge or good interviewing skills.
*Can understand who the actors are, and what interactions with a system will create tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Overriding property accessor names in Objective-C with @synthesize I'm trying to find documentation on how I can override a property name in Objective-C with @synthesize. If I have an instance variable name of 'foo', I want to write it's accessor as 'bar'.
Doing something such as
@synthesize foo = bar;
gives a com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: AJAX Asp.net AutoCompleteExtender interpreting string 0010 as octal I'm using the MS AJAX AutoCompleteExtender on a textbox. It's working fine, except when the web service returns strings like "0010" -- in which case, it displays "8".
I eventually realised it was interpreting the string "0010" as an octal number (an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a good design pattern to implement a dynamic data importer tool? We are planning to build a dynamic data import tool. Basically taking information on one end in a specified format (access, excel, csv) and upload it into an web service.
The situation is that we do not know the export field names, so the app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Do you prefer functioning or including within one php file? How do you manage your php codes? Do you prefer functioning within one php file or including larger blocks of "raw code"?
Edit: In fact, my code is pretty nasty, as I don't use any namespaces and classes - only functions and including. I shall look the clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When would you ever use In-Proc WCF Components? I'm studying Juval Lowy's excellent Programming WCF Services and I've just created a really simple in-proc component using his InProcFactory class that comes along with his ServiceModelEx library.
Why would you do this instead of using just regular classes in your proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Script SQL constraint for a number to fall within a Range? How to script a constraint on a field in a table, for an acceptable range of values is between 0 and 100?
A: Try:
ALTER TABLE myTableName
ADD CONSTRAINT myTableName_myColumnName_valZeroToOneHundred
CHECK (myColumnName BETWEEN 0 AND 100)
This check would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Browser Add-On/Extension and Browser Form data Can someone point me to an article (or discuss here) that explains how an add-on/extension can read what a user has completed in a form in a browser so you can present data to them based on the search parameters?
An example would be the Sidestep extension that opens a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: generate CPU load in Java I am conducting some throughput testing. My application has to
*
*read from JMS
*do some processing
*write to JMS
My goal here is to simulate #2, 'some processing'. That is, introduce a delay and occupy the CPU for a given time (e.g. 500ms) before forwarding the event.
The naive appr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: javafx and javadoc I have generally been underwhelmed by JavaFX, but at least their API documentation is a big improvement over javadoc which has not gone through any substantial improvement in a decade. Is it possible to use JavaFX technology to generate more attractive javadoc for regular Java files?
A: There are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can someone explain DBCC DROPCLEANBUFFERS? Can someone explain the use of DBCC DROPCLEANBUFFERS together with the CHECKPOINT operator and provide an example?
I understand it is useful to test performances running before your queries but I don't fully grasp it. Also I have no clue about the use in combination with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How Pass some parameter to MVC User Control that is not in ViewData I want to pass some parameters to my MVC UserControl like ShowTitle(bool) and the ViewData.Model.Row . How I define my usercontrol and pass them to it?
Tanx
A: You can use the RenderAction HtmlHelper, found in the MVC futures dll available at codep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Controlling where (x,y) of a newly opened window in Delphi 2006 I'm trying to control the coordinates of where my program opens a new window because currently they're opening ontop of each other. Does anyone have a working example of how to do this?
A: You can always set the .Top and .Left properties manually, lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to repeat a command with substitution in Vim? In Unix the ^ allows you to repeat a command with some text substituted for new text. For example:
csh% grep "stuff" file1 >> Results
grep "stuff" file1
csh% ^file1^file2^
grep "stuff" file2
csh%
Is there a Vim equivalent? There are a lot of times I find myself edit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: smart pointers + "this" considered harmful? In a C++ project that uses smart pointers, such as boost::shared_ptr, what is a good design philosophy regarding use of "this"?
Consider that:
*
*It's dangerous to store the raw pointer contained in any smart pointer for later use. You've given up control of object del... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Use Javascript to change which submit is activated on enter key press I have a form on an HTML page with multiple submit buttons that perform different actions. However, when the user is typing a value into a text input and hit enters, the browsers generally act as though the next submit button sequentially was acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What are alternative ways to suspend and resume a thread? The two methods Thread.Suspend() and Thread.Resume() are obsolete since .NET 2.0. Why? What are other alternatives and any examples?
A: This is the best tutorial ever for Thread (for C#): http://www.albahari.com/threading/
For wait you need to use .Join() on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to Change Netbeans Fonts and Colors Preview Document? Within the Netbeans 6.5's Tools -> Options -> Fonts & Colors -> Syntax dialog, you have the ability to change the look and feel of the Netbeans text editor. When you select a language, you are presented with a preview of your font/color scheme. However, when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tutorials For Database-Driven Routing in Zend Framework? I am working on a project that needs to use a database driven MVC scheme where the route to the controllers and views are controlled through a single database table. However, I haven't been able to find any tutorials that demonstrate this with a current versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fitting polynomials to data Is there a way, given a set of values (x,f(x)), to find the polynomial of a given degree that best fits the data?
I know polynomial interpolation, which is for finding a polynomial of degree n given n+1 data points, but here there are a large number of values and we want to find a low-de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Do I still need to learn about managing memory now that Objective-C/Cocoa has Garbage collection? So I finally dusted off my Objective-C/Cocoa books.. turns out they are nearly 7 years old! With Objective-C 2.0 now having garbage collection, how important are the chapters on Memory Management?
How much of a differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Somewhat strange .NET error involving datetime I am getting this error on a remote server, but the same code executes fine locally. Please refrain from saying it sucks, or giving me your rant on dynamic sql, I didn't write it, just trying to figure out why it's throwing an exception. The highlighted error is line 56... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting back on track after disruptions Over the past few weeks it seems like I've been interrupted by maintenance tasks from old projects quite a bit in addition to a taking a training class. I feel like I've lost all forward momentum on my current project. It's difficult to even start coding because I'm not sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to delete items that exist in one table from another? I have tables A and B. Items of table B might exist also in table A, and I want to delete those items. What would the SQL statements to do this look like?
A: this is an option
delete from a
where a.key in (select key from b)
A: Either:
DELETE a
WHERE a.som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's better, ANTLR or JavaCC? Concerns are documentation/learnability, eclipse integration, tooling, community support and performance (in roughly that order).
A: A concrete advantage ANTLR has over JavaCC is that it has generators for languages other than Java. This might make porting your language to other pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What would be the sql to enter thousands of records into Oracle db with C#? What would be the sql to enter thousands of records into Oracle db with C#?
A: Use ODP.NET and array binding:
class Record {
public int Value1 { get; set; }
public int Value2 { get; set; }
}
Record[] records = GetRecords();
const stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enums vs Const vs Class Const in Delphi programming I have an integer field in a ClientDataSet and I need to compare to some values, something like this:
I can use const
const
mvValue1 = 1;
mvValue2 = 2;
if ClientDataSet_Field.AsInteger = mvValue1 then
or enums
TMyValues = (mvValue1 = 1, mvValue2 = 2);
if Cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Third-party Uniform Type Identifier implementations? The madness of file extensions and MIME types and creator codes and magic numbers to determine file types is a huge mess. Coming from a background of Cocoa programming, I supposed I'm spoiled: in Tiger, OS X added a system called Uniform Type Identifiers (UTIs) th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: LinkButtons not working in ASP.net/C# app production deployment Hi all I'm running into a situation where link buttons are not responding on a gridview control in one of my apps deployed on a production machine. Not sure exactly what's going on.
The problem is very similar to this one although I've examined the out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove the mouseover highlight and selected row highlight in a Silverlight datagrid I've got a datagrid with one button in each row (xaml shown below). I'm trying to get rid of the blue highlighting functionality where it highlights the selected row, and the
row with the mouse over it. I'm trying to seit it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Crystal Reports - Default Parameters In Crystal reports, you can define default values for the report parameters.
For example, I might have a date range and set a default start of 12/01/2008 and a default end of 12/31/2008.
Is it possible to modify these defaults at runtime? For example:
1 - Default to the first an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Code/Algorithm to Search Text for Terms We have 5mb of typical text (just plain words). We have 1000 words/phrases to use as terms to search for in this text.
What's the most efficient way to do this in .NET (ideally C#)?
Our ideas include regex's (a single one, lots of them) plus even the String.Contains stuff.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Performance benefits of upgrading Richfaces to newer version I have a client that's running an application based on JBoss 4.0.5, Seam 1.2 and RichFaces 3.0.1. Their system is having performance problems due to the fact that a lot of data is coming back from the server to be displayed on screen and it seems like the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Safe to use the compiler generated assignment operator? I'm using the CPoint class from MFC. There is no explicitly defined assignment operator or copy constructor (AFAIK). Yet, this works:
CPoint p1(1, 2), p2;
p2 = p1; // p2 now is equal to p1
I'm assuming this is working automagically because of a compiler gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get xp_pcre to run on a 64 bit system? For many years we have been using xp_pcre for regular expressions in sql server:
xp_pcre - Regular Expressions in T-SQL
I've just migrated to a new 64 bit vista development machine and have installed xp pcre. Unfortunately when i try to use the sprocs I get the followin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Integrate with the Windows Shell OK,
I want to create a windows shell extention that sits in the file menu much like the "Tortorise SVN" menu.
Does anyone know where I'd begin, a good article, or what interfaces to implement?
Thanks!
A: It's pretty straight forward actually. It's about a 3-4 step process. You didn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Convert a wma to wav programatically with Windows Media Encoder Has anyone converted a WMA to a WAV using Windows Media Encoder? If so, do you have a short code snippet of how you did it? All samples I've seen have been for WAV to WMA, not the other way around.
A: The reason that all of the samples you've seen ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Jquery Accordion Close then Open I've set up a number of accordions on a page using the jquery accordion plugin so I can implement expand all and collapse all functionality.
Each ID element is it's own accordion and the code below works to close them all no matter which ones are already open:
$("#contact, #address, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is it about this Javascript code that causes it to correctly generate a table in IE? What is it about this source code that causes it to actually generate a table in IE instead of just doing nothing.
function generateATable()
{
tableContainer = document.getElementById("tableDiv");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How important are constraints like NOT NULL and FOREIGN KEY if I'll always control my database input with PHP? I am trying to create a column in a table that's a foreign key, but in MySQL that's more difficult than it should be. It would require me to go back and make certain changes to an already-in-use table. So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: java web start JAVA_HOME I have an application that starts a Swing gui using java web start. The user has 4 versions of java 1.6 installed (1.6.0.3, 1.6.0.5, 1.6.0.7. 1.6.0.11)
Webstart is selecting java version 1.6.0.11 but JAVA_HOME is set to java version 1.6.0.3. Could this cause any potential problems for web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: log4net and system.data.sqlite Does anyone know of a good example on how to set up log4net to use the system.data.sqlite provider?
I've been playing around with it lately and I thought I had it all working. It makes a successful connection to the database and "writes" it out. However, when I look at the table da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Do I need to lock "read only" services when using threading? I have a service that I am rewriting to use threading. I understand that state from one thread should not be accessed by another, but I'm a little confused by what constitutes 'state'. Does that mean any field/property/method outside of the method scope?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I set up Eclipse to use ssh-agent for cvs? Several ways to ask this question:
*
*How can I get eclipse to use my ssh-config?
*How can I get eclipse to use /usr/bin/ssh instead of the internal implementation? (I am not completely sure it does, but it does not read Host-entries in .ssh/config)
This is w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Reasonable to hold an HttpUrlConnection open indefinitely to a remote REST endpoint? I am looking to optimize a process that runs continually and makes frequent calls (> 1 per second on average) to an external API via a simple REST style HTTP post. One thing I've noticed is that currently, the HttpUrlConnection is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access a user control in a masterpage from a content page? Lets say that I have a header user control in a master page, and want to change a property of the user control depending on what content page is loaded inside of the master page. How might I go about this?
Thanks!
A: first find the user control in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to handle HUGE SQL strings in the source code I am working on a project currently where there are SQL strings in the code that are around 3000 lines.
The project is a java project, but this question could probably apply for any language.
Anyway, this is the first time I have ever seen something this bad.
The cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are the tuning parameters available for Oracle BPEL PM Are there any tuning knobs that one can apply for Oracle BPEL Process Manager?
A: There is no single GUI from where you can tune Oracle BPEL PM. While the Administration and configuration tabs allow you to tune a few parameters, most are in XML config file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find out user clicked 3 times through my website with Javascript Is there any way in JavaScript how to find out user clicked through the same domain 2 or more times?
I need to popup a window after user clicked anywhere on the site for 3 times. I know how to do it after one click - with document.referrer or a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Impersonation and SQL Server Trusted Connection Calls I am working on an ASP.NET page that we, in code impersonate the requesting user. We are using the following code to start impersonating.
Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext
Dim currentWindowsIdentity As Syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to find out if a web service has security? I've got a web service:
http://machine001/Services/conversionService.asmx
This web service has one method in it called convert(string pInput).
I am trying to find out if there is a way to figure out, without logging into machine001 and without actually callin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web Deployment Project builds files that are no longer part of the project This is the error I get:
Error 101 Could not load type
'control'. /Test.vbproj/x.ascx 1 1
WebDeployProject
This is a left over file that was part of the project last week, but one of the developers deleted it from the project. I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I report on completed work for a given week in TFS 2008? We're on Team Foundation Server 2008 and I'm trying to find a way to report on the change in completed work from week to week at the task level. The MDX query below works pretty well, but I'd like to get rid of need to hard code last week's date. I've t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: flash menu with submenu and gradient colors? I'm new to flash, and would like to create a flash menu with submenus. Also, the background colors for the menu elements need to be gradient images as well.
Any suggestions where I could find some tutorials?
am lookin for something similar to
this
A: You may want to giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Documentation about Roles some time ago I found an article (Roles: Composable Units of Object Behavior) describing the pros of using Roles versus Interfaces or other ways of dealing with behavior requirements. Does any of you knows where I can find more literature about that, or knows more about Roles?
I know that t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: YUI Button misalignment Im using YUI and am having alignment problems with YUI buttons inline with text input fields. The rendering problem is occuring in FF3 and is even present on YUI's own site.
http://developer.yahoo.com/yui/examples/button/btn_example09.html
As you can see the button sits higher than the text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can I see my website even though it's down? I'm wondering if anyone knows how this happens? My website is down, but every computer on my internet connection/router can see it. I've cleared my cache etc, but another computer in the house shouldn't be seeing a site that's offline. How weird?
It's hosted remotely, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Good APIs for scope analyzers I'm working on some code generation tools, and a lot of complexity comes from doing scope analysis.
I frequently find myself wanting to know things like
*
*What are the free variables of a function or block?
*Where is this symbol declared?
*What does this declaration mask?
*Does t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In what circumstances should I use a Singleton class? Closed as exact duplicate of this question. But reopened, as the other Singleton questions are for general use and not use for DB access
I was thinking of making an internal data access class a Singleton but couldn't convince myself on the choice mainly because t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: HttpPostedFile.FileName - Different from IE When I upload a file to a site using the ASP:File control the FileName property is different in IE and Firefox. In Firefox, it just provides the name of the file, but IE provides the full path to the file.
I have worked around this by adding the code:
Dim FileName As Stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Comparing massive lists of dictionaries in python I never actually thought I'd run into speed-issues with python, but I have. I'm trying to compare really big lists of dictionaries to each other based on the dictionary values. I compare two lists, with the first like so
biglist1=[{'transaction':'somevalue', 'id':'so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: The name of the Everyone group in non-english OSs We have an issue with the way we are creating a Mutex. The problem line is:
MutexAccessRule rule = new MutexAccessRule("Everyone", MutexRights.FullControl, AccessControlType.Allow);
The hardcoded "Everyone" string only works on English OSes, how do we change this l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I fake OpenID login in RSpec user story/Cucumber when using open_id_authentication plugin I'm trying to write a Cucumber scenario that requires me to have a logged in user - that would normally be quite simple but I'm only using OpenID authentication (curtosy of the authentication plugin). However after diggi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JDE for Emacs for JDK 6.10 Is there a version of JDE for emacs that supports the JDK 6.10? I haven't been able to find any information on this. While it runs, every time I attempt to compile files the JDE says that it doesn't recognize my JDK version and reverts to assuming it is a Java5 version.
A: I've made f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Passing optional arguments to a COM function in VC++ I have an MFC wrapper over a COM object. There is a function that takes a large number of options, which are mostly optional. How do I pass some arguments but not others?
For what it's worth, the optional arguments are listed as VARIANT*.
Below is the code
CCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can threads be avoided? I've read a lot recently about how writing multi-threaded apps is a huge pain in the neck, and have learned enough about the topic to understand, at least at some level, why it is so.
I've read that using functional programming techniques can help alleviate some of this pain, but I've n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I disable log4net status messages to the console? I am using log4net in my .NET 3.5 console application and would like the log messages I generate to be seen in both the console standard out and the RollingFileAppender. The file output is working like a charm, but I am seeing a stream of status messages flowi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C++ experts: is the offset of a member variable to its class constant under these conditions? Given a variable foo of type FooClass* and a member variable in that class named bar, is the distance between foo and &(foo->bar) the same in any situation with some constraints:
*
*FooClass is a non-POD type.
*We know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: best practices for using the sql server 2005 database project in visual studio 2008 what are the best practices for using the 'sqlserver 2005 database project' in visual studio 2008?
I have created a project file.
How to create the scripts for stored procedures, views and Tables?
How would I generate scripts to po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/382482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.