text stringlengths 8 267k | meta dict |
|---|---|
Q: Getting selected text in a browser, cross-platform One of the things I'd like to do in my browser-based application is allow the user to select some text (not in a <textarea>, just plain ol' text!), and have my application pop up a small toolbar that then can interact with the next (in my case, add annotations).
I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Unit test execution speed (how many tests per second?) What kind of execution rate do you aim for with your unit tests (# test per second)? How long is too long for an individual unit test?
I'd be interested in knowing if people have any specific thresholds for determining whether their tests are too slow, or is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Oracle - What TNS Names file am I using? Sometimes I get Oracle connection problems because I can't figure out which tnsnames.ora file my database client is using.
What's the best way to figure this out? ++happy for various platform solutions.
A: Oracle provides a utility called tnsping:
R:\>tnsping someconnect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Weird DB2 issue with DBUnit I am having a strange DB2 issue when I run DBUnit tests. My DBUnit tests are highly customized, but I don't think it is the issue. When I run the tests, I get a failure:
SQLCODE: -1084, SQLSTATE: 57019
which translates to
SQL1084C Shared memory segments cannot be allocated.
It sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What do I need to run PHP applications on IIS? Having been a PHP developer on LAMP servers for quite a while, is there anything that I will need to take into consideration while preparing an application for IIS on windows.
A: Make sure you get the FastCGI extension for IIS 6.0 or IIS 7.0. It is the single most imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Expression.Invoke in Entity Framework? The Entity Framework does not support the Expression.Invoke operator. You receive the following exception when trying to use it:
"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities.
Has anyone got a workaround for this missing functionality? I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Using C# with OpenOffice through reflection I'm working on some code to paste into the currently active OpenOffice document directly from C#. I can't include any of the OpenOffice libraries, because we don't want to package them, so we're using reflection to get access to the OpenOffice API.
My question involves us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the preferred way to connect to a postgresql database from PHP? I've been using PHP & MySQL for ages and am about to start using PostgreSQL instead.
What's the preferred method?
Is it via the PDO objects or is there something better?
A: PDO objects are the new hotness. I'd recommend that as long as you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Parsing attributes with regex in Perl Here's a problem I ran into recently. I have attributes strings of the form
"x=1 and y=abc and z=c4g and ..."
Some attributes have numeric values, some have alpha values, some have mixed, some have dates, etc.
Every string is supposed to have "x=someval and y=anotherval" at th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I set up an editor to work with Git on Windows? I'm trying out Git on Windows. I got to the point of trying "git commit" and I got this error:
Terminal is dumb but no VISUAL nor
EDITOR defined. Please supply the
message using either -m or -F option.
So I figured out I need to have an environment variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "642"
} |
Q: What is the difference between Early and Late Binding? What is the difference between early and late binding?
A: Similar but more detailed answer from Herbert Schildt C++ book:-
Early binding refers to events that occur at compile time. In essence, early binding occurs when all information needed to call a function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Small modification to an XML document using StAX I'm currently trying to read in an XML file, make some minor changes (alter the value of some attributes), and write it back out again.
I have intended to use a StAX parser (javax.xml.stream.XMLStreamReader) to read in each event, see if it was one I wanted to change,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I write those cool command line code generators (rails, sproutcore, webgen) I've grokked the code for all the aforementioned apps and I still can't find a straightforward way to create a static directory structure from a single command.
A: Check out rubigen. You can also view a presentation by dr nic.
A: S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web page field validation I need to validate a date/time field on a webpage but want it to do it without reloading the page and would like 'instant' feedback for the users.
What's the best/easiest solution.
BTW: easiest scores 65% of total points
Edit:
What if best was 65% of total points?
A: If you would like to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Automatically measure all SQL queries In Maybe Normalizing Isn't Normal Jeff Atwood says, "You're automatically measuring all the queries that flow through your software, right?" I'm not but I'd like to.
Some features of the application in question:
*
*ASP.NET
*a data access layer which depends on the MS Ente... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Pre-built regular expression patterns or Regex Libraries? Does anyone use have a good regex library that they like to use? Most of the regexes that you find online either contain bugs or are so focused on the edge cases that it turns into a competition to validate whatever spec 100%. Of course you can write your own... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Differences between MySQL and SQL Server I'm an ASP.NET developer who has used Microsoft SQL Server for all my database needs (both at work and for personal projects).
I am considering trying out the LAMP stack for some of my personal projects.
What are some of the main differences between MySQL and SQL Server? Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: Should I switch from nant to msbuild? I currently use nant, ccnet (cruise control), svn, mbunit. I use msbuild to do my sln build just because it was simpler to shell out.
Are there any merits to switching my whole build script to MSBuild? I need to be able to run tests, watir style tests, xcopy deploy. Is this eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Why are my PowerShell scripts not running? I wrote a simple batch file as a PowerShell script, and I am getting errors when they run.
It's in a scripts directory in my path. This is the error I get:
Cannot be loaded because the execution of scripts is disabled on this system.
Please see "get-help about-signing"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: Any decent C# profilers out there? I need a C# profiler.
Although I'm not averse to paying for one, something which is free or at least with a trial version would be ideal since it takes time to raise a purchase order.
Any recommendations?
A: We use Ants profiler where I work. It gives very detailed information in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: Creating iCal Files in c# I'm looking for a good method of generating an iCalendar file (*.ics) in c# (asp.net). I've found a couple resources, but one thing that has been lacking is their support for quoted-printable fields - fields that have carriage returns and line feeds.
For example, if the description field i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Does the OutputCacheFilter in the Microsoft MVC Preview 4 actually save on action invocations? We deployed a live, fresh, swanky site using preview 3 including rigorous stress testing.
Page Output caching was our saviour and afforded us the ability to meet our performance contractual requirements.
My question is, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reading Other Process' Memory in OS X? I've been trying to understand how to read the memory of other processes on Mac OS X, but I'm not having much luck. I've seen many examples online using ptrace with PEEKDATA and such, however it doesn't have that option on BSD [man ptrace].
int pid = fork();
if (pid > 0) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Asynchronous Remoting calls We have a remoting singleton server running in a separate windows service (let's call her RemotingService). The clients of the RemotingService are ASP.NET instances (many many).
Currently, the clients remoting call RemotingService and blocks while the RemotingService call is serviced. How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a difference between the on_exit() and atexit() functions? Is there any difference between
int on_exit(void (*function)(int , void *), void *arg);
and
int atexit(void (*function)(void));
other than the fact that the function used by on_exit gets the exit status?
That is, if I don't care about the ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is a "reasonable" length of time to keep a SQL cursor open? In your applications, what's a "long time" to keep a transaction open before committing or rolling back? Minutes? Seconds? Hours?
and on which database?
A: I'm probably going to get flamed for this, but you really should try and avoid using cursors... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to store a database password in a startup script / config file? So our web server apps need to connect to the database, and some other apps have startup scripts that execute at boot time.
What's the best way to store the name/password for these applications, in terms of
*
*security, e.g. perhaps we don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the difference between integration and unit tests? I know the so-called textbook definition of unit tests and integration tests. What I am curious about is when it is time to write unit tests... I will write them to cover as many sets of classes as possible.
For example, if I have a Word class, I will write... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "347"
} |
Q: Convert an asp.net application to IIS7 integrated mode What steps I need to perform in order to convert asp.net 2 application from IIS7 classic to integrated mode?
A: Here is a process:
Rick Strahl's blog
A: Nothing really. ASP.NET 2.0 applications will run just as they have in IIS 6.0. If you want to take advan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Catching unhandled exceptions in ASP.NET UserControls I'm dynamically loading user controls adding them to the Controls collection of the web form.
I'd like to hide user controls if they cause a unhandled exception while rendering.
So, I tried hooking to the Error event of each UserControl but it seems that this eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET Web Site or Web Project When creating a new ASP.NET project in Visual Studio should I chose create: website or project?
I understand that web application project was the way to do it back in the day with VS 2003 but is it still applicable today? What are some of the caveats using one over the other?
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Ruby mixins and calling super methods Ok, so I've been refactoring my code in my little Rails app in an effort to remove duplication, and in general make my life easier (as I like an easy life). Part of this refactoring, has been to move code that's common to two of my models to a module that I can include where I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Why do I get the error "Unable to update the password" when calling AzMan? I'm doing a authorization check from a WinForms application with the help of the AzMan authorization provider from Enterprise Library and am receiving the the following error:
Unable to update the password. The value provided as the current ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL, Auxiliary table of numbers For certain types of sql queries, an auxiliary table of numbers can be very useful. It may be created as a table with as many rows as you need for a particular task or as a user defined function that returns the number of rows required in each query.
What is the optimal way to create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Fast database access test from .NET What would be a very fast way to determine if your connectionstring lets you connect to a database?
Normally a connection attempt keeps the user waiting a long time before notifying the attempt was futile anyway.
A: Shorten the timeout on the connection string and execute somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Compare a date string to datetime in SQL Server? In SQL Server I have a DATETIME column which includes a time element.
Example:
'14 AUG 2008 14:23:019'
What is the best method to only select the records for a particular day, ignoring the time part?
Example: (Not safe, as it does not match the time part and retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: How to programmatically send SMS on the iPhone? Does anybody know if it's possible, and how, to programmatically send a SMS from the iPhone, with the official SDK / Cocoa Touch?
A: Here is the Swift version of code to send SMS in iOS. Please noted that it only works in real devices. Code tested in iOS 7+. You can r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "541"
} |
Q: LINQ query on a DataTable I'm trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example:
var results = from myRow in myDataTable
where results.Field("RowNo") == 1
select results;
This is not allowed. How do I get so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1133"
} |
Q: Data Layer Best Practices I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application.
One viewpoint is that the data layer should be aware of business objects (our own classes that represent an entity), and be able to work with that object natively.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I "unaccept" a drag in Flex? Once I've called DragManager.acceptDrag is there any way to "unaccept" the drag? Say that I have a view which can accept drag and drop, but only in certain areas. Once the user drags over one of these areas I call DragManager.acceptDrag(this) (from a DragEvent.DRAG_OVER handler),... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to encourage someone to learn programming? I have a friend that has a little bit of a holiday coming up and they want ideas on what they should do during the holiday, I plan to suggest programming to them, what are the pros and cons that I need to mention?
I'll add to the list below as people reply, I apologise ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can you customize the numbers in an ordered list? How can I left-align the numbers in an ordered list?
1. an item
// skip some items for brevity
9. another item
10. notice the 1 is under the 9, and the item contents also line up
Change the character after the number in an ordered list?
1) an item
Also is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Any good advice on using emacs for C++ project? I'm looking for a good article on using emacs as C/C++ IDE.
Something like Steve Yegge's "Effective emacs".
A: Be aware that Emacs' C++ mode is based on only regular expressions, not a grammar. Hence, the syntax highlighting is not based strictly on the syntax of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Best way to connect To Sql Server with MFC Soooo, I am starting this new job soon where most of the code is legacy MFC. The end goal is to convert/rewrite to C#.
I'm a little rusty with MFC so writing some code so I can try and spark my memory.
Anyway, was wondering the best way to connect to a SS2005 database with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to set up a DB2 linked server on a 64-bit SQL Server 2005? I need to create a linked server to a DB2 database on a mainframe. Has anyone done this successfully on a 64-bit version of SQL Server 2005? If so, which provider and settings were used?
It's important that the linked server work whether we are using a W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Future proofing a large UI Application - MFC with 2008 Feature pack, or C# and Winforms? My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. Some of this code is older th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can you use generic forms in C#? You should be able to create a generic form:
public partial class MyGenericForm<T> :
Form where T : class
{
/* form code */
public List<T> TypedList { get; set; }
}
Is valid C#, and compiles. However the designer won't work and the form will throw a runtime exception if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Best way to model Many-To-One Relationships in NHibernate When Dealing With a Legacy DB? Warning - I am very new to NHibernate. I know this question seems simple - and I'm sure there's a simple answer, but I've been spinning my wheels for some time on this one. I am dealing with a legacy db which really can't be alt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you measure SQL Fill Factor value Usually when I'm creating indexes on tables, I generally guess what the Fill Factor should be based on an educated guess of how the table will be used (many reads or many writes).
Is there a more scientific way to determine a more accurate Fill Factor value?
A: I would tend ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Deleting / Replacing A Node in E4X (AS3 - Flex) I'm building a listing/grid control in a Flex application and using it in a .NET web application. To make a really long story short I am getting XML from a webservice of serialized objects. I have a page limit of how many things can be on a page. I've taken a data g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you recommend a good .NET web-based repository browser for SVN? We have an SVN repository running on a Windows server, and I want to link internal documentation, feature changes, bugs and so on to code changes.
We've found WebSVN to be amazingly slow - the repository is too large for it (I think).
The team using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to trace COM objects exceptions? I have a DLL with some COM objects. Sometimes, this objects crashes and register an error event in the Windows Event Log with lots of hexadecimal informations. I have no clue why this crashes happens.
So, How can I trace those COM objects exceptions?
A: The first step is to loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unit tests for deep cloning Let's say I have a complex .NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object - so I write a Clone() method, and implement it with a simple BinaryFormatter serialize/deserialize - or perhaps I do the deep clone using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: IKVM and Licensing I have been looking into IKVMing Apache's FOP project to use with our .NET app. It's a commercial product, and looking into licensing, IKVM runs into some sticky areas because of its use of GNU Classpath. From what I've seen, no one can say for sure if this stuff can be used in a commercial prod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to prevent an object being created on the heap? Does anyone know how I can, in platform-independent C++ code prevent an object from being created on the heap? That is, for a class "Foo", I want to prevent users from doing this:
Foo *ptr = new Foo;
and only allow them to do this:
Foo myfooObject;
Does anyone ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: What are the proper permissions for an upload folder with PHP/Apache? Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups.
I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: MS Team Foundation Server in distributed environments - hints tips tricks needed Is anyone out there using Team Foundation Server within a team that is geographically distributed? We're in the UK, trying work with a team in Australia and we're finding it quite tough.
Our main two issues are:
*
*Things are being ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are the advantages of explicit Join Transitive Closure in SQL? When I'm joining three or more tables together by a common column, I'd write my query like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id = c.id
a colleague recently asked my why I didn't do explicit Join Transitive Closure in my quer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Table Aliases - Good or Bad? What are the pros and cons of using table aliases in SQL? I personally try to avoid them, as I think they make the code less readable (especially when reading through large where/and statements), but I'd be interested in hearing any counter-points to this. When is it generally a go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Refresh Excel VBA Function Results How can I get a user-defined function to re-evaluate itself based on changed data in the spreadsheet?
I tried F9 and Shift+F9.
The only thing that seems to work is editing the cell with the function call and then pressing Enter.
A: Some more information on the F9 keyboard shortcut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: How big would such a database be? I'm trying to figure out how big a certain database would be (it hasn't been created yet). I know how many rows and what the tables will be. Is there a feature in Oracle that will tell me the size of such a theoretical database? Is there a known math formula I can use? I know there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How should I unit test a code-generator? This is a difficult and open-ended question I know, but I thought I'd throw it to the floor and see if anyone had any interesting suggestions.
I have developed a code-generator that takes our python interface to our C++ code (generated via SWIG) and generates code needed to e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How can I determine the type of a blessed reference in Perl? In Perl, an object is just a reference to any of the basic Perl data types that has been blessed into a particular class. When you use the ref() function on an unblessed reference, you are told what data type the reference points to. However, when you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: What is the best way to work around the fact that ALL Java bytes are signed? In Java, there is no such thing as an unsigned byte.
Working with some low level code, occasionally you need to work with bytes that have unsigned values greater than 128, which causes Java to interpret them as a negative number due to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: What is the prefered style for single decision and action statements? In the case of languages that support single decision and action without brackets, such as the following example:
if (var == true)
doSomething();
What is the preferred way of writing this? Should brackets always be used, or should their usage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best Wiki for Mobile Users Most wiki software I've presents lots of "features" on their pages. This is fine for desktop users, but is annoying when using an iPhone or other mobile device. I'd prefer pages that just had the content, along with maybe an Edit button and a Search button. The editors are also often to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In C++/Windows how do I get the network name of the computer I'm on? In a C++ Windows (XP and NT, if it makes a difference) application I'm working on, I need to get the network name associated with the computer the code is executing on, so that I can convert local filenames from C:\filename.ext to \\network_name\C$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to run remote shell scripts from ASP pages? I need to create an ASP page (classic, not ASP.NET) which runs remote shell scripts on a UNIX server, then captures the output into variables in VBScript within the page itself.
I have never done ASP or VBScipt before. I have tried to google this stuff, but all I find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Caching Recently I have been investigating the possibilities of caching in ASP.NET.
I rolled my own "Cache", because I didn't know any better, it looked a bit like this:
public class DataManager
{
private static DataManager s_instance;
public static DataManager GetInstance()
{
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Drawing Library for Ruby I am trying to code a flowchart generator for a language using Ruby.
I wanted to know if there were any libraries that I could use to draw various shapes for the various flowchart elements and write out text to those shapes.
I would really prefer not having to write code for drawing basic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I create a workflow instance reliably based on an external event? a little new to the windows workflow stuff so go easy :)
I wish to design a workflow host environment that has high availability - a minimum of 2 WF runtime hosts on separate hardware both pointing to the same persistance or tracking SQL databa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I conditionally apply a Linq operator? We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add where-clauses?
A: Doing this:
bool lastNameSearch = true/false; // depe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: .NET Framework dependency When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used programming language that software companies use to develop desktop applications?
Is the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: T-Sql date format for seconds since last epoch / formatting for sqlite input I'm guessing it needs to be something like:
CONVERT(CHAR(24), lastModified, 101)
However I'm not sure of the right value for the third parameter.
Thanks!
Well I'm trying to write a script to copy my sql server db to a sqlite file, which g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling REST web services from a classic asp page I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work keep programming in Classic ASP. Ideally, then, for them to benefit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Do you know any patterns for GUI programming? (Not patterns on designing GUIs) I'm looking for patterns that concern coding parts of a GUI. Not as global as MVC, that I'm quite familiar with, but patterns and good ideas and best practices concerning single controls and inputs.
Let say I want to make a control that d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ASP.NET UserControl's and DefaultEvent Outline
OK, I have Google'd this and already expecting a big fat NO!! But I thought I should ask since I know sometimes there can be the odd little gem of knowledge lurking around in peoples heads ^_^
I am working my way through some excercises in a book for study, and this par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Standard Signature a Text in a Message using Exchange Server Anyone know how to do this without using a third party program? If there no way to do it with a add-on someone can recommend one?
EDIT: I need to add this in the server so all users have the same signature.
Thanks
A: You need to create your own exchange ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Automatically incremented revision number doesn't show up in the About Box I have a small VB.NET application that I'm working on using the full version of Visual Studio 2005. In the Publish properties of the project, I have it set to Automatically increment revision with each publish.
The issue is that it's only inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sorting a composite collection So WPF doesn't support standard sorting or filtering behavior for views of CompositeCollections, so what would be a best practice for solving this problem.
There are two or more object collections of different types. You want to combine them into a single sortable and filterable colle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best way to capture key events in NSTextView? I'm slowly learning Objective-C and Cocoa, and the only way I see so far to capture key events in Text Views is to use delegation, but I'm having trouble finding useful documentation and examples on how to implement such a solution. Can anyone point me in the right direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to parse XML using vba I work in VBA, and want to parse a string eg
<PointN xsi:type='typens:PointN'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<X>24.365</X>
<Y>78.63</Y>
</PointN>
and get the X & Y values into two separate integer variables.
I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Formatting text in WinForm Label Is it possible to format certain text in a WinForm Label instead of breaking the text into multiple labels? Please disregard the HTML tags within the label's text; it's only used to get my point out.
For example:
Dim myLabel As New Label
myLabel.Text = "This is <b>bold</b> text. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Simple animation in WinForms Imagine you want to animate some object on a WinForm. You setup a timer to update the state or model, and override the paint event of the Form. But from there, what's the best way to continually repaint the Form for the animation?
*
*Invalidate the Form as soon as you are done drawing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Passing more parameters in C function pointers Let's say I'm creating a chess program. I have a function
void foreachMove( void (*action)(chess_move*), chess_game* game);
which will call the function pointer action on each valid move. This is all well and good, but what if I need to pass more parameters to the act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Getting Java and TWAIN to play together nicely I'm working on building an app to scan directly from TWAIN scanner to a Java applet. I'm already aware of Morena and JTwain, but they cost money. I need free. I could re-invent the wheel with JNI, but it seems like someone has probably already done this as a FOSS tool.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Create PDFs from multipage forms in WebObjects I would like to automatically generate PDF documents from WebObjects based on mulitpage forms. Assuming I have a class which can assemble the related forms (java/wod files) is there a good way to then parse the individual forms into a PDF instead of going to the screen?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XPATHS and Default Namespaces What is the story behind XPath and support for namespaces? Did XPath as a specification precede namespaces? If I have a document where elements have been given a default namespace:
<foo xmlns="uri" />
It appears as though some of the XPath processor libraries won't recognize //foo be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is good server performance monitoring software for Windows? I'm looking for some software to monitor a single server for performance alerts. Preferably free and with a reasonable default configuration.
Edit: To clarify, I would like to run this software on a Windows machine and monitor a remote Windows server f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Making human readable representations of an Integer Here's a coding problem for those that like this kind of thing. Let's see your implementations (in your language of choice, of course) of a function which returns a human readable String representation of a specified Integer. For example:
*
*humanReadable(1) ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GCC issue: using a member of a base class that depends on a template argument The following code doesn't compile with gcc, but does with Visual Studio:
template <typename T> class A {
public:
T foo;
};
template <typename T> class B: public A <T> {
public:
void bar() { cout << foo << endl; }
};
I get the er... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How to host a WPF form in a MFC application I'm looking for any resources on hosting a WPF form within an existing MFC application. Can anyone point me in the right direction on how to do this?
A: From what I understand (haven't tried myself), it's almost as simple as just giving the WPF control the parent's handl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What version of .Net framework ships with SQL Server 2008? Does SQL Server 2008 ship with the .NET 3.5 CLR, so that stored procedures written in CLR can use 3.5 features?
A: I swear this isn't being pedantic, but is an important distinction -- I don't know what specifically you need when you say ".NET 3.5 CLR" -- p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio Setup Project Custom Dialog I have created a custom dialog for Visual Studio Setup Project using the steps described
here
Now I have a combobox in one of my dialogs. I want to populate the combobox with a list of all SQL Server instances running on the local network. It's trivial to get the server list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET Proxy Application Let me try to explain what I need. I have a server that is visible from the internet. What I need is to create a ASP.NET application that get the request of a web Site and send to a internal server, then it gets the response and publish the the info. For the client this should be totally tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sharepoint Wikis Ok, I've seen a few posts that mention a few other posts about not using SP wikis because they suck.
Since we are looking at doing our wiki in SP, I need to know why we shouldn't do it for a group of 6 automation-developers to document the steps in various automated processes and the changes that ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: String To Lower/Upper in C++ What is the best way people have found to do String to Lower case / Upper case in C++?
The issue is complicated by the fact that C++ isn't an English only programming language. Is there a good multilingual method?
A: For copy-pasters hoping to use Nic Strong's answer, note the spelling ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Speeding up an ASP.Net Web Site or Application I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site and the database are out of my control as is the database's schema. In testing on hardware I do control the site performs well however on the client's hardware, there are noticeable delays when r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is it possible to be ambikeyboardrous? I switched to the dvorak keyboard layout about a year ago. I now use dvorak full-time at work and at home.
Recently, I went on vacation to Peru and found myself in quite a conundrum. Internet cafes were qwerty-only (and Spanish qwerty, at that). I was stuck with a hunt-and-peck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Variable Bindings in WPF I’m creating a UserControl for a rich TreeView (one that has context menus for renaming nodes, adding child nodes, etc.). I want to be able to use this control to manage or navigate any hierarchical data structures I will create. I currently have it working for any data structure that implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.