text stringlengths 8 267k | meta dict |
|---|---|
Q: Source code control policy I'm looking for an overview over different source code control policies. I only came across the Main-Line policy and would like to better know others before committing to one with the team.
Can someone provide a link to an overview or even give me some names of policies so I can launch goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How well does Python's whitespace dependency interact with source control with regards to merging? I'm wondering if the need to alter the indentation of code to adjust the nesting has any adverse effects on merging changes in a system like SVN.
A: I've used python with SVN and Mercurial, and have no hassles merging... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: time length of an mp3 file What is the simplest way to determine the length (in seconds) of a given mp3 file, without using outside libraries? (python source highly appreciated)
A:
Simple, parse MP3 binary blob to calculate something, in Python
That sounds like a pretty tall order. I don't know Python, but here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How would you unittest a memory allocator? There's a lot of people today who sell unittesting as bread-and-butter of development. That might even work for strongly algorithmically-oriented routines. However, how would you unit-test, for example, a memory allocator (think malloc()/realloc()/free()). It's not hard t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Jar file naming conventions Are there any industry standard conventions for naming jar files?
A: I have been using
*Informative*-*name*-*M*.*m*.*b*.jar
Where:
M = major version number (changed when backward compatibility is not necessarily maintained)
m = minor version number (feature additions etc)
b = build nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Logging Clientside JavaScript Errors on Server Im running a ASP.NET Site where I have problems to find some JavaScript Errors just with manual testing.
Is there a possibility to catch all JavaScript Errors on the Clientside and log them on the Server i.e. in the EventLog (via Webservice or something like that)?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: Highlight a word with jQuery I basically need to highlight a particular word in a block of text. For example, pretend I wanted to highlight the word "dolor" in this text:
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
</p>
<p>
Quisque bibendum sem ut lacus. Integer dolor ullamcorper libero.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: Locking binary files using git version control system For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: How do you make the background of a video or picture clear in Quartz Composer? I'd like to remove all of the black from a picture attached to a sprite so that it becomes transparent.
A: I'll copy and paste in case that link dies:
" I used a 'Color Matrix' patch, setting 'Alpha Vector (W)' and 'Bias Vector(X,Y,Z)' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you structure your URL routes? Is there a specific pattern that developers generally follow? I never really gave it much thought before in my web applications, but the ASP.NET MVC routing engine pretty much forces you to at least take it into consideration.
So far I've liked the controller/action/index struc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is it possible to create full screen color overlay effects in windows? I remember my old Radeon graphics drivers which had a number of overlay effects or color filters (whatever they are called) that would render the screen in e.g. sepia tones or negative colors. My current NVIDIA card does not seem to have such a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Server 2005 / XML Stored Proc - Unicode to ascii? (Exception 0xc00ce508) I have an MSSQL2005 stored procedure here, which is supposed to take an XML message as input, and store it's content into a table.
The table fields are varchars, because our delphi backend application could not handle unicode.
Now, the mess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Security Headers into a WCF service with custom message/formatter in .NET 3.0 We've inherited a WCF web service that has a custom MessageFormatter that constructs a custom Message subclass in the SerializeReply Method.
class OurMessageFormatter : MessageFormatter
{
public Message SerializeReply(MessageVers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between Visual C++ 2008 and 2005 I couldn't find any useful information on Microsoft's site, so here is the question: has the compiler in Visual C++ 2008 been improved significantly since the 2005 version? I'm especially looking for better optimization.
A: Straight from the horses mouth....
http://msdn.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Virtual member call in a constructor I'm getting a warning from ReSharper about a call to a virtual member from my objects constructor.
Why would this be something not to do?
A: Reasons of the warning are already described, but how would you fix the warning? You have to seal either class or virtual member.
clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1451"
} |
Q: Is it possible to determine the current user from within a global keyboard hook in .NET I want to create a keyboard and mouse hook which will be started as a windows service. I want to monitor the activity of the various users who use the system throughout the day. i.e. which users are active at what times.
Is is po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Business Logic: Database or Application Layer The age old question. Where should you put your business logic, in the database as stored procedures ( or packages ), or in the application/middle tier? And more importantly, Why?
Assume database independence is not a goal.
A: While there is no one right answer - it dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Issue writing to single file in Web service in .NET I have created a webservice in .net 2.0, C#. I need to log some information to a file whenever different methods are called by the web service clients.
The problem comes when one user process is writing to a file and another process tries to write to it. I get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I want to log the Poison message that my wcf service is dropping using MSMQ 3.0 and windows 2003 I want to log the Poison message that my wcf service is dropping using MSMQ 3.0 and windows 2003
A: You can implement a custom IErrorHandler and associate it with your service using a custom behavior. In your implementa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you start building an ASP.NET web app? Say for example you're getting a web app project that interacts with a database.
How do you start your development? Do you start by designing your database, drawing simple ERD and writting a create scripts? Do you start by designing the look of your of web app, maybe us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determine the number of lines within a text file Is there an easy way to programmatically determine the number of lines within a text file?
A: This would use less memory, but probably take longer
int count = 0;
string line;
TextReader reader = new StreamReader("file.txt");
while ((line = reader.ReadLine()) != null... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "231"
} |
Q: Best practice to make a multi language application in C#/WinForms? I've been looking into making applications suitable for multiple languages in C# since I need to work on a small project where this is the case. I have found basically two ways to do this:
Set a form's Localizable property to true, set the Language p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: Disabling Warnings generated via _CRT_SECURE_NO_DEPRECATE What is the best way to disable the warnings generated via _CRT_SECURE_NO_DEPRECATE that allows them to be reinstated with ease and will work across Visual Studio versions?
A: i work on a multi platform project, so i can't use _s function and i don't want po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: ASP MVC Preview 5 and IIS 6 Windows Authentication I've just built a basic ASP MVC web site for deployment on our intranet. It expects users to be on the same domain as the IIS box and if you're not an authenticated Windows User, you should not get access.
I've just deployed this to IIS6 running on Server 2003 R2 SP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to route in linux I have 20 ips from my isp. I have them bound to a router box running centos. What commands, and in what order, do I set up so that the other boxes on my lan, based either on their mac addresses or 192 ips can I have them route out my box on specific ips. For example I want mac addy xxx:xxx:xxx0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where is a good place to brush up on some math? Math skills are becoming more and more essential, and I wonder where is a good place to brush up on some basics before moving on to some more CompSci specific stuff?
A site with lots of video's as well as practice exercises would be a double win but I can't seem to fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Storing xml data in a cookie I'm trying to store an xml serialized object in a cookie, but i get an error like this:
A potentially dangerous Request.Cookies value was detected from the client (KundeContextCookie="<?xml version="1.0" ...")
I know the problem from similiar cases when you try to store something that l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running scripts inside C# I want to run javascript/Python/Ruby inside my application.
I have an application that creates process automatically based on user's definition. The process is generated in C#. I want to enable advanced users to inject script in predefined locations. Those scripts should be run from the C#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: British English to American English (and vice versa) Converter Does anyone know of a library or bit of code that converts British English to American English and vice versa?
I don't imagine there's too many differences (some examples that come to mind are doughnut/donut, colour/color, grey/gray, localised/localized)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Find matching sequences in two binary files Let me start off with a bit of background.
This morning one of our users reported that Testuff's setup file has been reported as infected with a virus by the CA antivirus. Confident that this was a false positive, I looked on the web and found that users of another program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Connectivity of Winform Applications/ASP.NET application with SAP databases How can I fetch data in a Winforms application or ASP.NET form from a SAP database? The .NET framework used is 2.0. , language is C# and SAP version is 7.10.
A: Not sure if this will work for you, but there's a C library, which can probabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: List of Stored Procedure from Table I have a huge database with 100's of tables and stored procedures. Using SQL Server 2005, how can I get a list of stored procedures that are doing an insert or update operation on a given table.
A: Use sys.dm_sql_referencing_entities
Note that sp_depends is obsoleted.
MSDN Refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Converting audio to code and vice-versa Having just witnessed Sound Load technology on the Nintendo DS game Bangai-O Spritis. I was curious as to how this technology works? Does anyone have any links, documentation or sample code on implementing such a feature, that would allow the state of an application to be save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Replacing strings inside SWF We've got dozens of versions of an SWF modified for different customers of a big Flash project, and now would have to replace some strings embedded in scripts in each copy. The FLA file for some of these is very difficult to locate or even missing (I inherited this mess and refactoring i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Vista skin look and feel Is there anywhere on the web free vista look and feel theme pack for java?
A: I'm guessing that what you want is to use the system look and feel regardless on whatever platform your application is started. This can be done with
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get my own code's module handle?
Possible Duplicate:
How do I get the HMODULE for the currently executing code?
I'm trying to find a resource in my own module. If this module is an executable, that's trivial - GetModuleHandle(NULL) returns the handle of the "main" module.
My module, however, is a DLL that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the biggest drawback of ? We all have our favourite database. If you look objectively at your chosen database, what drawbacks does it have and what could be improved?
The rules:
*
*One reply per drawback with;
*a short description of the limitation, followed by;
*a more detailed description, an explanat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it worth the development time to output valid HTML? Developing websites are time-consuming. To improve productivity, I would code a prototype to show to our clients. I don't worry about making the prototype comform to the standard. Most of the time, our clients would approve the prototype and give an unreasonable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: In continuous integration what is the best way to deal with external application dependencies In using our TeamCity Continuous Integration server we have uncovered some issues that we are unsure as to the best way to handle. Namely how to reference external applications that our application requires on the CI server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I sort a VARCHAR column in SQL server that contains numbers? I have a VARCHAR column in a SQL Server 2000 database that can contain either letters or numbers. It depends on how the application is configured on the front-end for the customer.
When it does contain numbers, I want it to be sorted numerically, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: How to initialize Hibernate entities fetched by a remote method call? When calling a remote service (e.g. over RMI) to load a list of entities from a database using Hibernate, how do you manage it to initialize all the fields and references the client needs?
Example: The client calls a remote method to load all cust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Manualy choose an interface on TCP to send data I have a TCP server that is listening on a particular interface only. I want that after the accept() call if the incoming connection was from xxx.xxx.xxx.0 subnet then the data should go through intf1 otherwise the data should be sent through intf2 which is where my se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems with IronPython Studio and PictureBox Right, so I'm having a go at Iron Python Studio as I'm quite familiar with VS2005 and want to try Python with an integrated GUI designer. But as soon as I add a PictureBox I'm in trouble. When running the project I get complaints about BeginInit and soon enough the form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Approximate Nearest Neighbour the fastest feature matching in Computer Vision? When using feature descriptors [like SIFT, SURF] - is Approximate Nearest Neighbour the fastest method to do matching between images?
A: You should check out pyramid match kernel, which is one of the most successful algorithms for ima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any IIS equivalent to Tomcat? I want to test ASP.NET applications to get the feel for the MVC extension and compare that to what I can do today with Grails or Rails.
The trouble is that being in a corporate environment, I can't install IIS on my workstation, neither on my DEV server. And - you guessed it - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I am losing periods in an email sent using Java Mail I am sending newsletters from a Java server and one of the hyperlinks is arriving missing a period, rendering it useless:
Please print your <a href=3D"http://xxxxxxx.xxx.xx.edu=
au//newsletter2/3/InnovExpoInviteVIP.pdf"> VIP invitation</a> for future re=
ference a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: NHibernate transaction and race condition I've got an ASP.NET app using NHibernate to transactionally update a few tables upon a user action. There is a date range involved whereby only one entry to a table 'Booking' can be made such that exclusive dates are specified.
My problem is how to prevent a race condition w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Schema reference for IIS programmatic administration Where can I find the IIS object schema? All I found from MSDN was a picture of the class hierarchy.
To be clear, I want to configure IIS through either WMI or ADSI and I'm looking for something like the Active Directory schema, only for IIS. I want a list of all t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compare files with same names in two different directories using a shell script Before moving on to use SVN, I used to manage my project by simply keeping a /develop/ directory and editing and testing files there, then moving them to the /main/ directory. When I decided to move to SVN, I needed to be sure tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Subversion Berkeley DB broken, recovery failed I've got a Subversion repository, backed by the berkeley DB. Occasionally it breaks down due to some locks and such not being released, but this morning it was impossible to recover it using the 'svnadmin recover' command. Instead it failed with the following error:
svn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using **kwargs with SimpleXMLRPCServer in python I have a class that I wish to expose as a remote service using pythons SimpleXMLRPCServer. The server startup looks like this:
server = SimpleXMLRPCServer((serverSettings.LISTEN_IP,serverSettings.LISTEN_PORT))
service = Service()
server.register_instance(service)
se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Transform .HBM model to annotated pojos We have our domain model declared in rusty old hbm files, we wish to move to POJOs annotated with the javax.persistence.* annotations.
Has anyone had experience doing so?
Are there tools that we could employ?
A: You could use hbm2java ant task from hibernate-tools.jar. Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Antivirus and file access conflict : good programming practices? Sometimes, we experiment "access denied" errors due to the antivirus which handles the file at the same time our program wants to write/rename/copy it.
This happens rarely but makes me upset because I don't find the good way to deal with: technically o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dynamic Client Script I need to write a java script. This is supposed to validate if the checkbox is selected in the page or not. The problem here is that the check box is inside a grid and is generated dynamically. The reason being the number of check box that need to be rendered is not know at design time. So the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to override Ctrl+V in TinyMCE I need to cleanup the HTML of pasted text into TinyMCE by passing it to a webservice and then getting it back into the textarea.
So I need to override the Ctrl+V in TinyMCE to caputre the text, do a background request, and on return continue with whatever the paste handler was for T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GUI apps in javascript without a browser? I would like to use javascript to develop general-purpose GUI applications. Initially these are to run on Windows, but I would like them to ultimately be cross-platform.
Is there a way to do this without having to make the application run in a browser?
A: Check out Adob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to default the working directory for JUnit launch configurations in Eclipse? Our Java code (not the test code) reads files from the current directory, which means the working directory needs to be set properly whenever we run the code.
When launching a JUnit test from within Eclipse, a launch configuration autom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to learn Java Webservices Please suggest some good resources to start writing Java Web services.
A: If you're using the Spring Framework, I suggest Spring-WS.
There is a very helpful reference guide which should get you started.
A: The standard way in Java to write a web service is to use Apache Axis.
If you a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Which Design Pattern is best for Iterative development? Is there such a thing as having the most prefered design pattern for building applications in TDD or the iterative mode?
A: I think the question could be rewritten so it makes more sense in these words:
"Which architectural patterns and strategies are useful i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you read an image in Java when Toolkit.getDefaultToolkit() throws an AWTError? I am reading image files in Java using
java.awt.Image img = Toolkit.getDefaultToolkit().createImage(filePath);
On some systems this doesn't work, it instead throws an AWTError complaining about sun/awt/motif/MToolkit.
How else can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Shortcut to switch between markup and code Using Visual Studio 2008 Team Edition, is it possible to assign a shortcut key that switches between markup and code? If not, is it possible to assign a shortcut key that goes from code to markup?
A: The following is a macro taken from a comment by Lozza on https://blog.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to improve the program coding I am a C# developer. Still learning. I had not learn all the features of C# 2.0 and now the new version of c# is being released. how do we cope up with this.what is the best option to cope up with the latest programming skills.
A: As Steve M said: Read. But don't stop there. You al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSMQ samples in C++? Can someone give me some working examples of how you can create, add messages, read from, and destroy a private message queue from C++ APIs? I tried the MSDN pieces of code but i can't make them work properly.
Thanks
A: Actualy this is the code i was interested in:
#include "windows.h"
#include... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are the values of pi and e available in the .Net framework? Without calculating them, I mean?
A: System.Math.PI;
System.Math.E;
| {
"language": "en",
"url": "https://stackoverflow.com/questions/119885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Performance improvements moving from g++/gcc 3.2.3 to 4.2.4 We have been looking at g++ versions 3.2.3 and 4.2.4. With 4.2.4, the performance improvements on some of our code base is significant.
I've tried searching the gcc buzilla database to find hints as to what bugs may have had such a dramatic improvement but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Duplicate result I am writing a query in SQL server2005. This is returning me a duplicate rows in the result. Can i eliminate this duplication with a particular column as the key?
A: You can eliminate complete duplicate rows using the DISTINCT keyword. If there is some key column that is a duplicate but the rest of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: j_security_check and JAAS I have been given the task of implementing a login handler. The only detail the handler captures is username and password. Initially I was going to use a JSP that posted to a servlet. Where the servlet carried out a db lookup and also validated the user credentials. Upon successful logi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Different framerate for loaded SWF file in Flex? Using The loader class of Adobe Flex, I load an external SWF file. However, the loaded SWF file has a different frameRate than my application.
Is it possible to have both the parent app and the loaded child app playing at different framerates? If so, how?
A: It's not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing SAS data (including table structure) in a single flat file I need to convert SAS data tables into flat files (or "ASCII files" as they were called once, as opposed to binary files). And only one flat file for each original SAS table.
The challenging thing is that I want the flat file to contain some structur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically create variables inside function I want to create variables inside a function from a dictionary.
Let's say I have a dictionary, bar:
bar = {
'a': 1,
'b': 2,
'c': 3
}
That goes to:
def foo():
a = 1
b = 2
c = 3
I want to make new variables with the variable names as bar's keys ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Flash Component SWC file in Flex I am accessing custom UIComponent via SWC file from Flex 3.
This component works OK in Flash CS3, but using it from Flex gives A weird error in draw().
I have added swc component inside Sprite (with addchild) and its in LIB path.
TypeError: Error #1010: A term is undefined an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: When to use test scripts over unit testing? I am currently working on a project that has been in production for over two years. The project makes extensive use of unit testing and scripted UI tests. Initialy unit tests covered the system framework, business rules and state transitions (or workflow). Test scripts are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to export fonts and colors from VS2008 to VS2005? I have been forced to work in Visual Studio 2005 and would like to export my fonts and colors from Visual Studio 2008. However, VS2005 complains about wrong export document version. Is there any good way to do this besides manually changing each color and font?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set tag's size attribute through css? Normally you can do this:
<select size="3">
<option>blah</option>
<option>blah</option>
<option>blah</option>
</select>
And it would render as a selectionbox where all three options are visible (without dropping down)
I'm looking for a way to set this size attribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: JavaScript Chart Library Would anyone recommend a particular JavaScript charting library - specifically one that doesn't use flash at all?
A: If you're using jQuery I've found flot to be very good - try out the examples to see if they suit your needs, but I've found them to do most of what I need for my current pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "223"
} |
Q: Selenium RC against a Cassini webserver I'm trying to run Selenium RC against my ASP.NET code running on a Cassini webserver.
The web application works when i browse it directly but when running through Selenium I get
HTTP ERROR: 403
Forbidden for Proxy
Running Selenium i interactive mode I start a new session wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect via javascript whether Silverlight is installed Is there a javascript function I can use to detect whether a specific silverlight version is installed in the current browser?
I'm particularly interested in the Silverlight 2 Beta 2 version. I don't want to use the default method of having an image behind the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Should an index be optimised after incremental indexes in Lucene? We run full re-indexes every 7 days (i.e. creating the index from scratch) on our Lucene index and incremental indexes every 2 hours or so. Our index has around 700,000 documents and a full index takes around 17 hours (which isn't a problem).
When we ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to setup a shared ccache How can I setup a shared ccache without falling into a permissions problem?
I would like to run a nightly or CI build with latest changes and share all created binaries throughout the R&D using a large ccache repository.
A: The easiest solution: create a new group (e.g. "devel"), and ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can you get more information about processes when Linux runs out of memory? I had recently a problem with oom-killer starting to kill processes after some time. I could see that the memory was consumed, but by the time I got to the server it wasn't clear anymore what consumed it. Is there a good non-obvious plac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Load Excel data sheet to Oracle database I am looking for a free tool to load Excel data sheet into an Oracle database. I tried the Oracle SQL developer, but it keeps throwing a NullPointerException. Any ideas?
A: Another way to do Excel -> CSV -> Oracle is using External Tables, first introduced in 9i. External t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Multiple Session Factories under Spring/Hibernate I have been given a requirement where I need to support multiple databases in the same instance, to support multi-tenancy. Each DB has an identical schema. The user logs into a specific database by choosing from a list, and all subsequent calls will go to that DB unt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Retrieving CDATA contents from XML using PHP and simplexml I have the following XML structure:
<?xml version="1.0" ?>
<course xml:lang="nl">
<body>
<item id="787900813228567" view="12000" title="0x|Beschrijving" engtitle="0x|Description"><![CDATA[Dit college leert studenten hoe ze een onderzoek kunn$
<item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tool to monitor HTTP, TCP, etc. Web Service traffic What's the best tool that you use to monitor Web Service, SOAP, WCF, etc. traffic that's coming and going on the wire? I have seen some tools that made with Java but they seem to be a little crappy. What I want is a tool that sits in the middle as a proxy and does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Does WPF have equivalent controls for all Winforms controls? Just found this out the hard way. I wanted to pop up a FontDialog to allow the user to choose a font.. one of those familiar dialogs..
A: Not all of them have equivalents.
The FontDialog for instance doesnt.. (grumble grumble). This page has the complete ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Any workarounds for non-static member array initialization? In C++, it's not possible to initialize array members in the initialization list, thus member objects should have default constructors and they should be properly initialized in the constructor. Is there any (reasonable) workaround for this apart from not u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: SQLplus script to format text as numeric I am selecting rows from a table, but some of the columns are a text type, but they always have numeric data in them. How can I format them as numbers?
e.g. column quantity heading 'Quantity' format 999,999
However, since the column in the table is text, the numeric formatti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Releasing a database build consistently via isql I am releasing a database build to SQL Server 2000 via a batch file using isql. The batch file is used so multiple files are released consistently to different SQL Servers (development, test, live).
The SQL Server uses ANSI code page 1252 (from sp_helpsort) but isql i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fetch a Wikipedia article with Python I try to fetch a Wikipedia article with Python's urllib:
f = urllib.urlopen("http://en.wikipedia.org/w/index.php?title=Albert_Einstein&printable=yes")
s = f.read()
f.close()
However instead of the html page I get the following response: Error - Wikimedia Foundation:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Mnesia table replication/sharing Assume that we have N erlang nodes, running same application. I want
to share an mnesia table T1 with all N nodes, which I see no problem.
However, I want to share another mnesia table T2 with pairs of nodes.
I mean the contents of T2 will be identical and replicated to/with
only sha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Doing readback from Direct3D textures and surfaces I need to figure out how to get the data from D3D textures and surfaces back to system memory. What's the fastest way to do such things and how?
Also if I only need one subrect, how can one read back only that portion without having to read back the entire thing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I find the first occurrence of a pattern in a string from some starting position? I have a string of arbitrary length, and starting at position p0, I need to find the first occurrence of one of three 3-letter patterns.
Assume the string contain only letters. I need to find the count of triplets starting at p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Problem with Asp.Net RequireFieldValidator and Javascript WYSIWYG I am using the open source Javascript WYSIWYG from OpenWebWare and Asp.Net RequiredFieldValidator on the TextBox which I am calling the WYSIWYG for. Everything works fine, but the first time I try to submit the form, I get the server-side RFV ErrorMe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stopping looped notifications with VetoableChangeListener I have a problem with the design of a VetoableChangeListener. I implement the VetoableChangeListener interface to listen changes of a property in a model class, so when the model fires
vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
…I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I alter the precision of a decimal column in Microsoft SQL Server? Is there a way to alter the precision of an existing decimal column in Microsoft SQL Server?
A: ALTER TABLE Testing ALTER COLUMN TestDec decimal(16,1)
Just put decimal(precision, scale), replacing the precision and scale with your desired va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: performance of accessing a mono server application via remoting This is my setting: I have written a .NET application for local client machines, which implements a feature that could also be used on a webpage. To keep this example simple, assume that the client installs a software into which he can enter some data a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stored Procedure Syntax My stored procedure is called as below from an SQL instegartion package within SQL Server 2005
EXEC ? = Validation.PopulateFaultsFileDetails ? , 0
Though i'm not sure what the ? means
A: The ? stands fora variable, to be precise, a parameter. The first ? is the return value of the stored prc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Guidelines for email newsletter service I'm implementing a email newsletter sender service using .NET and Windows Server technologies. Are there comprehensive guidelines which could help avoiding emails being trapped by spam filters and other mechanisms?
They should cover all aspects of (legal) bulk mail sending: SM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Retrieve catalog, metadata or schema information from MS Access database when connecting with PHP I am using following PHP code to connect to MS Access database:
$odb_conn = new COM("ADODB.Connection");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". $db_path.";";
$odb_conn->open($connstr);
How can I r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Encryption libraries? I have been tasked with implementing a PKI library in C# for a company project, and have been unable to find a good implementation of it. There appear to be multiple libraries, and many broken links pointing to MSDN libraries that have been removed. I've seen people using Crypt32.dll, people bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/120116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.