text stringlengths 8 267k | meta dict |
|---|---|
Q: How to handle functions deprecation in library? I'm working on a Java library and would like to remove some functions from it. My reasons for this is public API and design cleanup. Some objects have setters, but should be immutable, some functionality has been implemented better/cleaner in different methods, etc.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: D (and Tango) on PowerPC Linux It's hard to search for D using Google, so I wasn't able to find a good answer:
I have an old iBook G3 and I'd like to install Linux on it and use it to compile (and test) D programs written using Tango on it. Is this possible? Or hasn't anybody tried it, yet? After all the Mac port of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using database resources in Axiom Safe Request I would like to know how to make use of an Axiom database resource inside a Safe function.
Right now I'm just handling the connection manually but I know it would be better to use the already defined resources.
A: I found how.
if ever need to do it, you can do it like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Boost Range Library: Traversing Two Ranges Sequentially Boost range library (http://www.boost.org/doc/libs/1_35_0/libs/range/index.html) allows us to abstract a pair of iterators into a range. Now I want to combine two ranges into one, viz:
given two ranges r1 and r2, define r which traverses [r1.begin(), r1.end()[ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Looking for a regular expression including alphanumeric + "&" and ";" Here's the problem:
split=re.compile('\\W*')
This regular expression works fine when dealing with regular words, but there are occasions where I need the expression to include words like käyttäj&aml;auml;.
What should I add to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I distribute a WCF Peer to Peer application over the Internet? Can someone point me in the right direction? I wish to distribute a WCF peer to peer cloud over the internet. So far I've seen examples of how it works on the same subnet. I wish to push it a little further.
A: I believe you'll need to look into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby on rails (based on Mephisto) - Unable to contact server I am completely new to ruby and I inherited a ruby system for a product catalogue. Most of my users are able to view everything as they should but overseas users (specifically Mexico) cannot contact the server once logged in. They are an active user. I'm s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a good tool for writing a user manual (help file), which integrates with version control The people writing the user manual are not necessarily programmers, and they need a visual editor. A major issue is the internal format of the authoring tool; it should be readable text/html, so it's easy to compare vers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Transaction encapsulation of multi-process writes I have a database scenario (I'm using Oracle) in which several processes make inserts into a table and a single process selects from it. The table is basically used as intermediate storage, to which multiple processes (in the following called the Writers) write log ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I use HTTP Basic Authentication with Django? We have a website running on Apache, access to which has a number of static pages protected via HTTP Basic authentication.
I've written a new part of the site with Django using Django's built in support for user management.
The problem I have is that users have to log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Get class property name I have my winform application gathering data using databinding. Everything looks fine except that I have to link the property with the textedit using a string:
Me.TextEdit4.DataBindings.Add(New System.Windows.Forms.Binding("EditValue", Me.MyClassBindingSource, "MyClassProperty", True))
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What's the best way to search a MySQL database with PHP? Say if I had a table of books in a MySQL database and I wanted to search the 'title' field for keywords (input by the user in a search field); what's the best way of doing this in PHP? Is the MySQL LIKE command the most efficient way to search?
A: Yes, the mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: tStringList passing in C# to Delphi DLL I have a Delphi DLL with a function defined as:
function SubmitJobStringList(joblist: tStringList; var jobno: Integer): Integer;
I am calling this from C#. How do I declare the first parameter as a tStringList does not exist in C#. I currently have the declaration as:
[DllImpo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: middle click (new tabs) and javascript links I am in charge of a website at work and recently I have added ajaxy requests to make it faster and more responsive. But it has raised an issue.
On my pages, there is an index table on the left, like a menu. Once you have clicked on it, it makes a request that fills the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object I have report on my asp page and every time I change a filter and click view report, I get this error:
Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object
I tried change the EnablePartialRend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Loading UTF-8 encoded dump into MySQL I've been pulling my hear out over this problem for a few hours yesterday:
I've a database on MySQL 4.1.22 server with encoding set to "UTF-8 Unicode (utf8)" (as reported by phpMyAdmin). Tables in this database have default charset set to latin2. But, the web application (CMS Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: svn + repository location I am about to set up a subversion server to be accessed via svn+ssh. I was wondering, where the default repository location is (on a unix box).
Do you put it in
/opt/svn
or
/home/svn
or
/usr/subversion
or even
/svn
or somewhere else?
I am looking for the place, most people put it. Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What happened to NUnit? Why isn't this project maintained anymore? I love this app, however not updating it seems like a crime against all .Net developers. There are several items that I would love to add to it given the chance of a future release.
Can anyone share something I don't know?
A: The NUnit 2.5 Alpha ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google 404 and .NET Custom Error Pages I've got an ASP.NET 2.0 website with a custom 404 page. When content is not found the site serves the custom 404 page with a query string addition of aspxerrorpath=/mauro.aspx. The 404 page itself is served with an HTTP status of 200. To try to resolve this I've added
prote... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: XML Attributes vs Elements When should you use XML attributes and when should you use XML elements?
e.g.
<customData>
<records>
<record name="foo" description="bar" />
</records>
</customData>
or
<customData>
<records>
<record>
<name>foo</name>
<description>bar</description>
</record>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: How to capture the "Print" button from the menu bar in a macro I have a sheet with a custom button on it from where I control the printing process.
Now the user clicks on the menu bar's print icon and this produces an "undefined" output.
How can I intercept this menu bar button?
*
*Thanks
A: Handle the Workbook... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Learning C++ Templates Can anyone recommend any good resources for learning C++ Templates?
Many thanks.
A: This is a more advanced, but very useful, book on templates and template use.
Modern C++ Design
A: Bruce Eckel's Thinking in C++ is how I learned about templates. The first volume has an introductory chapter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: VBA array sort function? I'm looking for a decent sort implementation for arrays in VBA. A Quicksort would be preferred. Or any other sort algorithm other than bubble or merge would suffice.
Please note that this is to work with MS Project 2003, so should avoid any of the Excel native functions and anything .net rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "97"
} |
Q: Send mail from a Windows script I would like to send mail from a script on a Windows Server 2003 Standard Edition. I think the server setup is pretty much out of the box.
The mail server is an Exchange one, and when you're on the internal network you can use plain old SMTP. I have done it from my machine with Perl, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do you structure your SVN repository? What is better?
A:
server:1080/repo/projectA/trunk/...
branches/branch1
branches/branch2
branches/branch3
tags/tag1/...
tags/tag2/...
server:1080... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: GetProcessesByName() and Windows Server 2003 scheduled task Does anybody know what user privileges are needed for the following code needs to successfully execute as a scheduled task on Windows Server 2003:
System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName)
When NOT running as sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF Unit Test How to unit test WCF services? Any 3rd Party tools available?
A: If one really wants to test WCF services, it's best to go with integration tests that actually exercise the client-server connectivity part of it.
A: If you want to test the actual running service then SoapUI is free and has some excel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: In Java, do I need to declare my collection synchronized if it's read-only? I fill a collection one single time when my J2EE webapp starts.
Then, several thread may access it at same time but only to read it.
I know using a synchronized collection is mandatory for parallels write but do I still need it for parallels... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: NSWindow launched from statusItem menuItem does not appear as active window I have a statusItem application written in PyObjC. The statusItem has a menuItem which is supposed to launch a new window when it is clicked:
# Create statusItem
statusItem = NSStatusBar.systemStatusBar().statusItemWithLength_(NSVariableStat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically setting background colour of a Silverlight control (Listbox) How do I set the background colour of items in a list box dynamically? i.e. there is some property on my business object that I'm binding too, so based on some business rules I want the background colour to be different?
<ListBox Backgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Credential Caching Fail on SVN 1.5.2 via HTTP We recently installed SVN 1.5.2 (with VisualSVN/Apache) on some of our servers / virtual machines, and now when I send a commandline command with username/password they don't get cached anymore.
Before, we were running SVN 1.5.0 installed with CollabNet, on svn://, and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Define a one-to-one relationship with LinqToSQL I'm playing around with LinqToSQL using an existing multi-lingual database, but I'm running into issues mapping a fairly important one-to-one relationship, so I suspect I am using the feature incorrectly for my database design.
Assume two tables, Category and CategoryD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What technologies do C++ programmers need to know? C++ was the first programming language I really got into, but the majority of my work on it was academic or for game programming. Most of the programming jobs where I live require Java or .NET programmers and I have a fairly good idea of what technologies they requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How do I merge TMainMenu's that use separate imagelists and retain the correct images by each menu item? I have a program with two TForm classes and have added a TMainMenu to them each. I am then trying to merge them dynamically at run-time.
My problem is that when they merge the menu items in the merged in TMainMen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you write a (simple) variable "toggle"? Given the following idioms:
1)
variable = value1
if condition
variable = value2
2)
variable = value2
if not condition
variable = value1
3)
if condition
variable = value2
else
variable = value1
4)
if not condition
variable = value1
else
variable = value2
Whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to sign custom Soap Header? I've added a custom soap header <MyApp:FOO> element to the <soap:Header> element and the requirments states that i must sign this element , how would one do that?
<MyApp:FOO> contains a number of things (username, preferences, etc) that identifies a user on higher level.
I've succesfu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Caching the sessionfactory As far as I've gathered (read: measured), building the configuration and the sessionfactory by far takes the most time in executing a query using nhibernate. Is there anything against making the sessionfactory static, so it will only be configured once per appDomain?
I know there are locki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Code coverage for PL/SQL Does anyone have tools or experience with code coverage for PL/SQL. I believe this is possible using DBMS_PROFILER?
A: http://www.toadworld.com/BLOGS/tabid/67/EntryID/267/Default.aspx has info about checking code coverage using the PL/SQL profiler.
Some helpful info about profiling on 9i o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Do you recommend Native C++ to C++\CLI shift? I have been working as a native C++ programmer for last few years. Now we are starting a new project from the scratch. So what is your thoughts on shifting to C++\CLI at the cost of losing platform independent code. Are there are any special advantages that one can gain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: LDAP entire subtree copy I am actually new to this forum and I kept trying for a few days to find an easy way to copy an entire LDAP subtree to another tree. Since I couldn't find anything useful, i thought of dropping a question here as well. Does anybody know how to do this programatically ?
For normal operations ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unit testing for PL/SQL Anyone have any experience or tools for unit testing PL/SQL. The best looking tool I've seen for this seems to be Quests Code Tester, but i'm not sure how well that would integration with continuous integration tools or command line testing?
A: I use utPLSQL as the framework and OUnit as the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: SQL-Server: Is there a SQL script that I can use to determine the progress of a SQL Server backup or restore process? When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: What is the difference between a port and a socket? This was a question raised by one of the software engineers in my organisation. I'm interested in the broadest definition.
A: The port was the easiest part, it is just a unique identifier for a socket. A socket is something processes can use to establish connecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1105"
} |
Q: Running a J6SE app on an NT box I need to run a Java application, which we are trying to port to Java 6, on an NT box.
I manage to run java 5 on it (although not officially supported), but when I try to run java 6 I get the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best way to change a user-password remotely in Unix? What is the best way to change a user-password remotely in Unix?
This must be performed by the user, in a Web-app or Windows-App, without using SSH or any direct connection between the user and the server (direct command line not allowed).
Thanks
Webm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET user login best practices I want to make a login system using ASP.NET (MVC).
On the internet, I found some bad examples that involved SQL in Click events. Other information pointed to the ASP.NET built-in membership provider.
However, I want to roll my own. I don't want to use the built-in membership provide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a way to print all methods of an object? Is there a way to print all methods of an object in JavaScript?
A: Here is an ES6 sample.
// Get the Object's methods names:
function getMethodsNames(obj = this) {
return Object.keys(obj)
.filter((key) => typeof obj[key] === 'function');
}
// Get the Ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: MSBuild: How to obtain number of warnings raised? There is a MSBuild script, that includes number if Delphi and C# projects, unit tests etc.
The problem is: how to mark build failed if warnings were raised (for testing purposes, not for release builds)? Using LogError instead of LogWarning in custom tasks seems to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does this do? tasklist /m "mscor*" Saw this question here : What Great .NET Developers Ought To Know (More .NET Interview Questions)
A: This is a very useful command line tool in windows that shows you a list of all running processes. Passing in a command line parameter of /m "mscor*" lists out all of the proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I rename all folders and files to lowercase on Linux? I have to rename a complete folder tree recursively so that no uppercase letter appears anywhere (it's C++ source code, but that shouldn't matter).
Bonus points for ignoring CVS and Subversion version control files/folders. The preferred way would be a she... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "234"
} |
Q: Are there guidelines for updating C++Builder applications for C++Builder 2009? I have a range of Win32 VCL applications developed with C++Builder from BCB5 onwards, and want to port them to ECB2009 or whatever it's now called.
Some of my applications use the old TNT/TMS unicode components, so I have a good mix of An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to select string fields based on character ranges? I need to add the ability for users of my software to select records by character ranges.
How can I write a query that returns all widgets from a table whose name falls in the range Ba-Bi for example?
Currently I'm using greater than and less th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Stored procedure bit parameter activating additional where clause to check for null I have a stored procedure that looks like:
CREATE PROCEDURE dbo.usp_TestFilter
@AdditionalFilter BIT = 1
AS
SELECT *
FROM dbo.SomeTable T
WHERE
T.Column1 IS NOT NULL
AND CASE WHEN @AdditionalFilter = 1 THEN
T.Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: *.h or *.hpp for your class definitions I've always used a *.h file for my class definitions, but after reading some boost library code, I realised they all use *.hpp. I've always had an aversion to that file extension, I think mainly because I'm not used to it.
What are the advantages and disadvantages of using *.h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "737"
} |
Q: How do you handle TDD in the continuous integration? Imagine you are implementing the user story containing various new features and adding complexity to the code base. The existing code is quite well covered and you have just decided upon interfaces. You are starting to implement the functionality starting with tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the canonical way to check for type in Python? How do I check if an object is of a given type, or if it inherits from a given type?
How do I check if the object o is of type str?
Beginners often wrongly expect the string to already be "a number" - either expecting Python 3.x input to convert type, or expecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1777"
} |
Q: Is this a reasonable "Application entry point"? I have recently come across a situation where code is dynamically loading some libraries, wiring them up, then calling what is termed the "application entry point" (one of the libraries must implement IApplication.Run()).
Is this a valid "Appliation entry point"?
I wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Identify GET and POST parameters in Ruby on Rails What is the simplest way to identify and separate GET and POST parameters from a controller in Ruby on Rails, which will be equivalent to $_GET and $_POST variables in PHP?
A: There is a difference between GET and POST params. A POST HTTP request can still have GET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to initialize ConnectionStrings collection in NUnit I want to test ASP.NET application using NUnit, but it seems WebConfigurationManager.ConnectionStrings collection is empty when running from NUnit GUI.
Could you tell me how to initialize this collection (probably in [SetUp] function of [TestFixture])? Should I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: F# style - prefer () or <| Which of theese two alternatives do you find yourself using most often, and which is more "idiomatic"?
*
*f arg (obj.DoStuff())
*f arg <| obj.DoStuff()
A: Overall, I don't know that one or the other is more idiomatic.
Personally, the only time I use <| is with "raise":
raise <| new F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#: Getting maximum and minimum values of arbitrary properties of all items in a list I have a specialized list that holds items of type IThing:
public class ThingList : IList<IThing>
{...}
public interface IThing
{
Decimal Weight { get; set; }
Decimal Velocity { get; set; }
Decimal Distance { get; set;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I know on the client side when the HTTP handler is done processing? Probably a long question for a simple solution, but here goes...
I have a custom made silverlight control for selecting multiple files and sending them to the server. It sends files to a general handler (FileReciever.ashx) using the OpenWrit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wordpress Site Monitoring software / service What do you use to monitor the uptime / performance of your websites, specifically those based on a PHP/MySQL platform like Wordpress?
I'm looking for something that alerts me if the site is down, or performing too slowly, and has some useful (not volumeous!) charts showi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Idiomatic C++ for reading from a const map For an std::map<std::string, std::string> variables, I'd like to do this:
BOOST_CHECK_EQUAL(variables["a"], "b");
The only problem is, in this context variables is const, so operator[] won't work :(
Now, there are several workarounds to this; casting away the const, using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Different item template for each item in a WPF List? I have many items inside a list control. I want each item to have a different item template depending on the type of the item. So the first item in the list is a ObjectA type and so I want it to be rendered with ItemTemplateA. Second item is a ObjectB type and so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to prevent Windows Installer from running each time Access 2003 and 2007 start when there are installed on the same machine? Is it possible to prevent the Windows Installer from running every time Access 2003 and Access 2007 are started, when they are both installed on the same machine at the same time..?
Like m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataReader within try block causing potential null reference error There is probably is simple fix for this but I currently have code similar to
dim dr as dbDataReader
try
dr = connection.getDataReader(sql_str)
Catch ex as sqlClientException
log.error(ex)
finally
if not IsNothing(dr) then
dr.clo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForms printing: how can I access the progress dialog? When printing in Windows forms, or doing a print preview, a dialog is displayed with text like
Page [P] of [DOC]
where [P] is page number and [DOC] is the name of the document. The dialog also contains a button to allow the user to cancel the print job.
How c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Eclipse the best IDE for Java? Is Eclipse the best IDE for Java?
If not, is there something better?
I want to know and possibly try it out. Thanks.
A: I used IntelliJ for almost 5+ years (from v1.5 to v7) and around 8 months ago I migrated to IBM RAD (which is built on top of old eclipse platform) and around ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: How can you scan an image with X++ Does anyone know how to scan an image with X++?
A: There's no way to do it directly, but you should be able to call the Windows Image Acquisition API via COM
| {
"language": "en",
"url": "https://stackoverflow.com/questions/152692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Avoid throwing a new exception I have an if condition which checks for value and the it throws new NumberFormatException
Is there any other way to code this
if (foo)
{
throw new NumberFormatException
}
// ..
catch (NumberFormatException exc)
{
// some msg...
}
A: If you are doing something such as this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: CruiseControl.net : Using SvnLabeller / SvnRevisionLabeller I'm setting up a new project using CruiseControl.net 1.4.
I see from ccnet contributions
that there are two options for a subversion repository number labeller - a
feature that I would really like to make use of.
1) SVNLabeller available from jcxsoftware
an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open the default browser in Ruby In Python, you can do this:
import webbrowser
webbrowser.open_new("http://example.com/")
It will open the passed in url in the default browser
Is there a ruby equivalent?
A: Cross-platform solution:
First, install the Launchy gem:
$ gem install launchy
Then, you can run this:
requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: How can I search for a multiline pattern in a file? I needed to find all the files that contained a specific string pattern. The first solution that comes to mind is using find piped with xargs grep:
find . -iname '*.py' | xargs grep -e 'YOUR_PATTERN'
But if I need to find patterns that spans on more than one line,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: Could I get in legal trouble for copying a website's stylesheet? I like the simplistic look and design of some of the Microsoft blogs. Alas, I can't join the Microsoft dev party and create my own development blog on the blogs.msdn.com page because I don't work at Microsoft, and I already have my own wordpress blog.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Multiple correct results with Hamcrest (is there an or-matcher?) I am relatively new to matchers. I am toying around with hamcrest in combination with JUnit and I kinda like it.
Is there a way, to state that one of multiple choices is correct?
Something like
assertThat( result, is( either( 1, or( 2, or( 3 ) ) ) ) ) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: What online resources are there to learn about VxWorks? What are some of the online resources you have found useful to learn about VxWorks?
A: Tornado II/VxWorks FAQ is a good source of basic information, related to the 5.x version of VxWorks.
VxWorks Cookbook also has some good stuff
VxWorks Usenet Group is good t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: GDI+ / C#: How to save an image as EMF? If you use Image.Save Method to save an image to a EMF/WMF, you get an exception (http://msdn.microsoft.com/en-us/library/ktx83wah.aspx)
Is there another way to save the image to an EMF/WMF?
Are there any encoders available?
A: A metafile is a file which records a sequence of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Should a client handling process be added to the supervisor tree? in Erlang I have a supervisor-tree of processes, containing one that accepts tcp/ip connections. For each incoming connection I spawn a new process. Should this process be added to the supervisor tree or not?
Regards,
Steve
A: Yes, you should add th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Optimising C++ 2-D arrays I need a way to represent a 2-D array (a dense matrix) of doubles in C++, with absolute minimum accessing overhead.
I've done some timing on various linux/unix machines and gcc versions. An STL vector of vectors, declared as:
vector<vector<double> > matrix(n,vector<double>(n));
and access... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is java object serialization compatible between 1.5 and 1.6 I am wondering whether it is safe to mix jdk 1.5 and 1.6 (Java 6) object serialization (biderctional communication). I searched for an explicit statement from sun concerning this question but did not succeed. So, besides the technical feasability I am searc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Which are the differences between dialog|main/child/mdi windows? I need to understand the differences between windows main/mdi/child/dialogs.... how win32 messages should be propagated... why some messages are present in one type and not other...
A: There is reference information available here on the MSDN website.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transpose a set of rows as columns in SQL Server 2000 Is there any facility of transposing rows to columns in SQL Server (it is possible in MS-Access)?
I was befuddled because this facility is available in MS-Access but not in SQL Server. Is it by design that this feature has not been included in SQL Server?
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a better way to trim a DateTime to a specific precision? What's the best way to trim a DateTime object to a specific precision? For instance, if I have a DateTime with a value of '2008-09-29 09:41:43', but I only want it's precision to be to the minute, is there any better way to do it than this?
private s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: What is wrong with this _popen / select example? UPDATE: i updated the code and problem description to reflect my changes.
I know now that i'm trying a Socket operation on nonsocket. or that my fd_set is not valid since:
select returns -1 and
WSAGetLastError()returns 10038.
But i can't seem to figure out what it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to get data from a DataReader into a Farpoint Spreadsheet? I need to move data from a datareader into a Farpoint Spreadsheet component in a Windows form. The DataSource of an fps sheet can't be set to a datareader. I don't want to change my app to use ADO just for this purpose.
Right now I'm looping throu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Class does not support automation" error when i call Request.ServerVariables("remote_host") I'm in the process of writing a basic cookie for an ecommerce site which is going to store the user's IP among other details.
We'll then record the pages they view in the database and pull out a list of recently viewed pages... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to declare a user-defined function returning node-set? I want something like this:
<msxsl:script language="C#">
??? getNodes() { ... return ... }
</msxsl:script>
<xsl:for-each select="user:getNodes()">
...
</xsl:for-each>
What return type should i use for getNodes() and what should i put in it's body?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .htaccess files, PHP, includes directories, and windows XAMPP configuration nightmare XAMPP makes configuring a local LAMP stack for windows a breeze. So it's quite disappointing that enabling .htaccess files is such a nightmare.
My problem:
I've got a PHP application that requires apache/php to search for an /inclu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to analyse 'noisiness' of an array of points Have done fft (see earlier posting if you are interested!) and got a result, which helps me. Would like to analyse the noisiness / spikiness of an array (actually a vb.nre collection of single). Um, how to explain ...
When signal is good, fft power results is 512 data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Default port for SQL Server I need to know the default port settings for the following services
*
*SQL Server
*SQL Browser
*SQL Reporting services
*SQL Analysis services
I need to know the port settings for these services for different versions of SQL Server (2000,2005,2008)
Also let me know whether the defau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How to insert a string which contains an "&" How can I write an insert statement which includes the & character? For example, if I wanted to insert "J&J Construction" into a column in the database.
I'm not sure if it makes a difference, but I'm using Oracle 9i.
A: The correct syntax is
set def off;
insert into tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: What features distinguish Flex from DHTML? I just got started using Adobe Flex SDK. I was very excited because it's the first time I've found a good, free way to create Flash applications. But then I noticed something: Flex doesn't seem to be much about making animations or designs. It seems more like an applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can you use "external" configuration files (i.e. with configSource) with an MSTest unit test project? For simplicity, I generally split a lot of my configuration (i.e. the contents of app.config and web.config) out into separate .config files, and then reference them from the main config file using the 'configSo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Using jQuery to Highlight Selected ASP.NET DataGrid Row It is easy to highlight a selected datagrid row, by for example using toggleClass in the tr's click event. But how best to later remove the highlight after a different row has been selected? Iterating over all the rows to unhighlight them could become expens... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Isn't resource-oriented really object-oriented? When you think about it, doesn't the REST paradigm of being resource-oriented boil down to being object-oriented (with constrained functionality, leveraging HTTP as much as possible)?
I'm not necessarily saying it's a bad thing, but rather that if they are essentially ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I resolve a merge conflict with SVN properties? This has been bugging me for a long time -- how do I properly resolve a merge conflict within the SVN properties set on a directory? Say for instance there are two developers working on a project where svn:ignore is set on some directory. If both developers ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: OSI model - What's the presentation and session layer for? So I feel I pretty well understand the application layer, and everything below (and including) the transport layer.
The session and presentation layers, though, I don't fully understand. I've read the simplistic descriptions in Wikipedia, but it doesn't hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How would you design a form with many dynamic fields? We have a form that allows a user to dynamically add inputs for fields. For example if you have a form for tracking projects, you want to dynamically add tasks to that project. Just to clarify my language: you dynamically add inputs for the task field. The proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET XmlDocument LoadXML and Entities When loading XML into an XmlDocument, i.e.
XmlDocument document = new XmlDocument();
document.LoadXml(xmlData);
is there any way to stop the process from replacing entities? I've got a strange problem where I've got a TM symbol (stored as the entity #8482) in the xml being con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/152900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.