text stringlengths 8 267k | meta dict |
|---|---|
Q: Multijoin queries in Django What's the best and/or fastest method of doing multijoin queries in Django using the ORM and QuerySet API?
A: If you are trying to join across tables linked by ForeignKeys or ManyToManyField relationships then you can use the double underscore syntax. For example if you have the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can you use CMFCVisualManager with a dialog based application? Can you use CMFCVisualManager with a dialog based application to change the applications appearance? If so how is it done?
The idea is to change the shape, colour etc. of controls such as push buttons using the MFC Feature Pack released with MSVC 2008.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Making a C#/Winform application cross-platform - should I use AIR, Mono, or something else? I have an app that I've written in C#/WinForms (my little app). To make it cross-platform, I'm thinking of redoing it in Adobe AIR. Are there any arguments in favor of WinForms as a cross-platform app? Is there a cross-platfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Temp tables and SQL SELECT performance Why does the use of temp tables with a SELECT statement improve the logical I/O count? Wouldn't it increase the amount of hits to a database instead of decreasing it. Is this because the 'problem' is broken down into sections? I'd like to know what's going on behind the scenes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I invoke an exe that is an embedded resource in a .Net assembly? I have a non-.Net executable file that is included in my .net assembly as an embedded resource. Is there a way to run this executable that does not involve writing it out to disk and launching it?
This is .Net 2.0.
A: You might try injecting y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Embed data in a C++ program I've got a C++ program that uses SQLite. I want to store the SQL queries in a separate file -- a plain-text file, not a source code file -- but embed that file in the executable file like a resource.
(This has to run on Linux, so I can't store it as an actual resource as far as I know, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: SharePoint Content Query Web Part I have a content query web part that queries by content type against a site collection. I have grouped it by content type so I have:
-- Agenda (Content Type)
----Agenda #1
----Agenda #2
-- Report (Content Type)
----Report #1
----Report #2
I would like to show a second grouping for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Could not find file" when using Isolated Storage I save stuff in an Isolated Storage file (using class IsolatedStorageFile). It works well, and I can retrieve the saved values when calling the saving and retrieving methods in my DAL layer from my GUI layer. However, when I try to retrieve the same settings from ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to process all versions of MS Excel spreadsheets with php on a non-Windows machine I am importing data from MS Excel spreadsheets into a php/mySQL application. Several different parties are supplying the spreadsheets and they are in formats ranging from Excel 4.0 to Excel 2007.
The trouble is f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use a state machine or a sequence workflow in WF? I have a repeatable business process that I execute every week as part of my configuration management responsibilities. The process does not change: I download change details into Excel, open the spreadsheet and copy out details based on a macro, create a Wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create batch file in Windows using "start" with a path and command with spaces I need to create a batch file which starts multiple console applications in a Windows .cmd file. This can be done using the start command.
However, the command has a path in it. I also need to pass paramaters which have spaces as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Is there an inverse function of *SysUtils.Format* in Delphi Has anyone written an 'UnFormat' routine for Delphi?
What I'm imagining is the inverse of SysUtils.Format and looks something like this
UnFormat('a number %n and another %n',[float1, float2]);
So you could unpack a string into a series of variables usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to remove these kind of symbols (junk) from string? Imagine I have String in C#: "I Don’t see ya.."
I want to remove (replace to nothing or etc.) these "’" symbols.
How do I do this?
A: "I Don’t see ya..".Replace( "’", string.Empty);
How did that junk get in there the first place? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a name for this anti-pattern/code smell? Let me start by saying that I do not advocate this approach, but I saw it recently and I was wondering if there was a name for it I could use to point the guilty party to. So here goes.
Now you have a method, and you want to return a value. You also want to return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Which is generally best to use — StringComparison.OrdinalIgnoreCase or StringComparison.InvariantCultureIgnoreCase? I have some code like this:
If key.Equals("search", StringComparison.OrdinalIgnoreCase) Then
DoSomething()
End If
I don't care about the case. Should I use OrdinalIgnoreCase, InvariantCultureIgnor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "199"
} |
Q: Is it better to join two fields together, or to compare them each to the same constant? For example which is better:
select * from t1, t2 where t1.country='US' and t2.country=t1.country and t1.id=t2.id
or
select * from t1, t2 where t1.country'US' and t2.country='US' and t1.id=t2.id
better as in less work for the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can a SVN repository include/link-to an external git repository? I have a svn repository, R, that depends on a library, l, in another repository.
The goal is that when someone checks out R, they also check out l. We want l to still be in its own repository so that l can be updated without dependence on R.
I don't kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get TextMate style quotes in Emacs? In textmate, when there's a current selection, I hit the " key and the selection gets surrounded by quotes. The same thing happens with other balanced characters like (, {, [ and '.
Am I missing something obvious in Emacs configuration that would enable similar behaviour ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you detect Credit card type based on number? I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this?
A: In javascript:
function detectCardType(number) {
var re = {
electron: /^(4026|417500|4405|4508|48... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "586"
} |
Q: Static libraries with managed code issue Problem (simplified to make things clearer):
*
1. there is one statically-linked static.lib that has a function that increments:
extern int CallCount = 0;
int TheFunction()
{
void *p = &CallCount;
printf("Function called");
return CallC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating SharePoint 2007 list items via the Web Dav interface SharePoint 2007 (both Moss and Wss) exposes document libraries via web dav, allowing you to create documents via essentially file system level activities (e.g. saving documents to a location).
SharePoint also seems to expose lists via the same web dav int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change app icon in Visual Studio 2005? I'd like to use a different icon for the demo version of my game, and I'm building the demo with a different build config than I do for the full verison, using a preprocessor define to lockout some content, use different graphics, etc. Is there a way that I can make Visual Stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Trigger update on DataTable bound to DataGridView In my .NET/Forms app I have a DataGridView which is bound to a DataTable. The user selects a row of the DataGridView by double-clicking and does some interaction with the app. After that the content of the row is updated programmatically.
When the user selects a new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Qt or Delphi... If you were to choose one over the other? If you had a differential of either venturing into Delphi land or Qt land which would you choose? I know they are not totally comparable. I for one have Windows development experience with Builder C++ (almost Delphi) and MFC (almost Qt), with a bit more time ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: WSDL Generation Tools Can anyone recommend a good (preferably open source) tool for creating WSDL files for some soap web services?
I've tried playing around with some of the eclipse plug ins available and was less than impressed with what I found.
A: As mentioned above, probably the easiest thing to do is use Apac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I capitalize first letter of first name and last name in C#? Is there an easy way to capitalize the first letter of a string and lower the rest of it? Is there a built in method or do I need to make my own?
A: Mc and Mac are common surname prefixes throughout the US, and there are others. TextInfo.ToTitleCa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "142"
} |
Q: Can I suppress FX Cop code analysis violations globally? When you use Visual Studio's code analysic (FxCop), and want to suppress a message there are 3 options.
*
*Suppress a violation in code.
*Suppress a violation in a GlobalSupression.cs file.
*Disable the violation check in the project file (via Project -> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to do relative imports in Python? Imagine this directory structure:
app/
__init__.py
sub1/
__init__.py
mod1.py
sub2/
__init__.py
mod2.py
I'm coding mod1, and I need to import something from mod2. How should I do it?
I tried from ..sub2 import mod2 but I'm getting an "Attempted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "602"
} |
Q: How to backup a VPS server? And restore it in an emergency too? I have a VPS host running 3 sites using Ubuntu Hardy. I've spent much time setting it up. That includes all the installation + configuration and stuff. What ways are there to do backup + restore for VPS?
A: Backups alone aren't enough. You should be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.Net Redirect Response to a IFrame How can I redirect the response to an IFrame?
A: Do you mean from the server-side? - You can't!
You'll have to do it on the client side.
Say, use a javascript that sends an AJAX request and then embed your response information in the AJAX response. And have the javascript read ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Refactoring in Ruby Are there any programs or IDEs that support refactoring for Ruby or RoR?
A: The best refactoring tool is good test coverage. If your tests cover your code and they all past you can just make whatever changes you want and the tests will find any dependencies you have broken. This is the main reas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is Async Messaging (In particular pub/sub style messaging) viable as a domain service architecture or only in an SOA-focused environment? I have been researching asynchronous messaging, and I like the way it elegantly deals with some problems within certain domains and how it makes domain concepts more explicit. But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I sort a list of dictionaries by a value of the dictionary? How do I sort a list of dictionaries by a specific key's value? Given:
[{'name': 'Homer', 'age': 39}, {'name': 'Bart', 'age': 10}]
When sorted by name, it should become:
[{'name': 'Bart', 'age': 10}, {'name': 'Homer', 'age': 39}]
A: If you want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2672"
} |
Q: Is it possible to advance an enumerator and get its value in a lambda? If I have an IEnumerator variable is it possible to have a lambda function that takes it, advances it with MoveNext() and returns the Current value every single time its called?
A: e => e.MoveNext() ? e.Current : null
This will advance the enum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can you find all the IP addresses in a selected block of text with a javascript bookmarklet? I am just starting to learn javascript, so I don't have the skills to figure out what I assume is a trivial problem.
I'm working with a Wordpress blog that serves as a FAQ for our community and I am trying to pull togeth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best alternative to C++ for real-time graphics programming? C++ just sucks too much of my time by making me micro-manage my own memory, making me type far too much (hello std::vector<Thingy>::const_iterator it = lotsOfThingys.begin()), and boring me with long compile times. What's the single best alterna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: can't delete directory under linux due to broken files
kt@rails-ubuntu:~/rails/ledger/releases/20080820144914/.git/hooks$ ls -al
ls: cannot access post-commit: No such file or directory
ls: cannot access update: No such file or directory
ls: cannot access post-update: No such file or directory
ls: cannot access com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Possible to set tab focus in IE7 from JavaScript Is it possible to launch a new window in JavaScript using the window.Open function, then set the focus to that tab?
Here's what I'm doing today:
var winRef = window.open(outUrl,wName,'left='+ wX +',top=' + wY + ',height=' + wH + ',width=' + wW + args);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a triple-join table with Django Using Django's built in models, how would one create a triple-join between three models.
For example:
*
*Users, Roles, and Events are the models.
*Users have many Roles, and Roles many Users. (ManyToMany)
*Events have many Users, and Users many Events. (ManyToMany)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to get reliable HTTP messages via Firefox XPCOM in Javascript I am trying to program a small server+client in Javascript on Firefox, using XPCOM.
To get the HTTP message in Javascript, I am using the nsIScriptableInputStream interface.
This f**ing component through the read() method randomly cut the message and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The log file for database is full So our SQL Server 2000 is giving me the error, "The log file for database is full. Back up the transaction log for the database to free up some log space."
How do I go about fixing this without deleting the log like some other sites have mentioned?
Additional Info: Enable AutoGrowt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Which logging library is better? I was wondering; which logging libraries for Delphi do you prefer?
*
*CodeSite
*SmartInspect
*Log4Delphi
*TraceFormat
Please try to add a reasoning why you prefer one over the other if you've used more than one.
I'll add suggestions to this question to keep things readable.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: .NET Windows Forms Transparent Control I want to simulate a 'Web 2.0' Lightbox style UI technique in a Windows Forms application. That is, to draw attention to some foreground control by 'dimming' all other content in the client area of a window.
The obvious solution is to create a control that is simply a partiall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Join multiple XML files with xinclude tags into single file I am creating an installer in IzPack. It is quite large, and I have broken up my XML files appropriately using <xinclude> and <xfragment> tags. Unfortunately, IzPack does not combine them together when you build your installer. This requires you to package ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Modal dialogs in IE gets hidden behind IE if user clicks on IE pane I have to write an applet that brings up a password dialog. The problem is that dialog is set to be always on top but when user clicks on IE window dialog gets hidden behind IE window nevertheless. And since dialog is modal and holds all IE threads ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How much data can/should you store in a users session object? We have several wizard style form applications on our website where we capture information from the user on each page and then submit to a backend process using a web service.
Unfortunately we can't submit the information in chunks during each form submis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: CodeFile vs CodeBehind What is the difference between CodeFile="file.ascx.cs" and CodeBehind="file.ascx.cs" in the declaration of a ASP.NET user control?
Is one newer or recommended? Or do they have specific usage?
A: I'm working with an Application Project in Visual Studio Express 2012 For Web and using .NET 4.0.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: What is this delegate call doing in this line of code (C#)? This is from an example accompanying the agsXMPP .Net assembly. I've read up on delegates, but am not sure how that fits in with this line of code (which waits for the logon to occur, and then sends a message. I guess what I'm looking for is an understand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Embedded Jetty serving static content with form authentication I try to use the Forms-Based authentication within an embedded Jetty 6.1.7 project.
That's why I need to serve servlets and html (login.html) under the same context
to make authentication work. I don't want to secure the hole application since
different ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I sort by multiple conditions with different orders? I'd really like to handle this without monkey-patching but I haven't been able to find another option yet.
I have an array (in Ruby) that I need to sort by multiple conditions. I know how to use the sort method and I've used the trick on sorting using an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What's the best approach to embed RegEx in Oracle or SQL Server 2005 SQL? This is a 3 part question regarding embedded RegEx into SQL statements.
*
*How do you embed a RegEx expression into an Oracle PL/SQL
select statement that will parse out
the “DELINQUENT” string in the text
string shown below?
*What is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to handle long running process in an ASP.Net application? In my web application there is a process that queries data from all over the web, filters it, and saves it to the database. As you can imagine this process takes some time. My current solution is to increase the page timeout and give an AJ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to organize code? I'm not talking about how to indent here. I'm looking for suggestions about the best way of organizing the chunks of code in a source file.
Do you arrange methods alphabetically? In the order you wrote them? Thematically? In some kind of 'didactic' order?
What organizing princip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to retrieve error when launching sqlcmd from C#? I need to run a stored procedure from a C# application.
I use the following code to do so:
Process sqlcmdCall = new Process();
sqlcmdCall.StartInfo.FileName = "sqlcmd.exe";
sqlcmdCall.StartInfo.Arguments = "-S localhost\\SQLEXPRESS -d some_db -Q \":EXIT(sp_test)\"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I add Debug Breakpoints to lines displayed in a "Find Results" window in Visual Studio In Visual Studio 2005-2015 it is possible to find all lines containing certain references and display them in a "Find Results" window.
Now that these result lines are displayed, is there any keyboard shortcut that would all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Report templates for Team Foundation Server 2008 Does anybody have links to site or pre built report running on the SQL Analysis Service provided by TFS2008?
Creating a meaningful Excel report or a new report sometime is a very boring and difficult taks, maybe finding a way to share reports could be a good idea?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does one unit test sections of code that are procedural or event-based I'm convinced from this presentation and other commentary here on the site that I need to learn to Unit Test. I also realize that there have been many questions about what unit testing is here. Each time I go to consider how it should be do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Three column web design with variable sides I've been trying to come up with a way to create a 3 column web design where the center column has a constant width and is always centered. The columns to the left and right are variable. This is trivial in tables, but not correct semantically.
I haven't been able to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: X/Gnome: How to measure the geometry of an open window Is there a standard X / Gnome program that will display the X,Y width and depth in pixels of a window that I select? Something similar to the way an xterm shows you the width and depth of the window (in lines) as you resize it.
I'm running on Red Hat Enterprise... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to implement a simple auto-complete functionality? I'd like to implement a simple class (in Java) that would allow me to register and deregister strings, and on the basis of the current set of strings auto-complete a given string. So, the interface would be:
*
*void add(String)
*void remove(String)
*String ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to fix MySQL Data Truncation Error when inserting a lot of data? I'm working with a fairly simple database, from a Java application. We're trying to insert about 200k of text at a time, using the standard JDBC mysql adapter. We intermittently get a com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I show scrollbars on a System.Windows.Forms.TextBox only when the text doesn't fit? For a System.Windows.Forms.TextBox with Multiline=True, I'd like to only show the scrollbars when the text doesn't fit.
This is a readonly textbox used only for display. It's a TextBox so that users can copy the text out. Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Making a game in C++ using parallel processing I wanted to "emulate" a popular flash game, Chrontron, in C++ and needed some help getting started. (NOTE: Not for release, just practicing for myself)
Basics:
Player has a time machine. On each iteration of using the time machine, a parallel state
is created, co-exist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to use .htaccess to send six digit number URLs to a script but handle all other invalid URLs as 404s? Is it possible to use .htaccess to process all six digit URLs by sending them to a script, but handle every other invalid URL as an error 404?
For example:
http://mywebsite.com/132483
would be sent t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: FileSystemWatcher Dispose call hangs We just started running in to an odd problem with a FileSystemWatcher where the call to Dispose() appears to be hanging. This is code that has been working without any problems for a while but we just upgraded to .NET3.5 SP1 so I'm trying to find out if anyone else has seen this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Will this C++ code cause a memory leak (casting array new) I have been working on some legacy C++ code that uses variable length structures (TAPI), where the structure size will depend on variable length strings. The structures are allocated by casting array new thus:
STRUCT* pStruct = (STRUCT*)new BYTE[sizeof(STRUC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best way to switch between multiple versions of the Flash player for easier testing? Are there any utilities or browser plugins that let you easily switch the version of the Flash player that is being used?
A: For Firefox 3.x on Window XP, Ubutntu Linux, and Mac OS X (Tiger and Leopard), Flash Switcher works well.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to make the taskbar blink my application like Messenger does when a new message arrive? Is there an API call in .NET or a native DLL that I can use to create similar behaviour as Windows Live Messenger when a response comes from someone I chat with?
A: HWND hHandle = FindWindow(NULL,"YourApplicationName");
FLAS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Saving HTML tables to a Database I am trying to scrape an html table and save its data in a database. What strategies/solutions have you found to be helpful in approaching this program.
I'm most comfortable with Java and PHP but really a solution in any language would be helpful.
EDIT: For more detail, the UTA (Salt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I create a custom font for a blackberry application I want to use a specific foreign language font for a Blackberry application. How is such a font created and loaded onto the Blackberry device?
For example: ਪੰਜਾਬੀ
A: for Blackberry OS 5 or above, you can use class FontFamily to load your custom font into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Does Listening to a Multicast Hurt Me? I'm receiving a recovery feed from an exchange for recovering data missed from their primary feed.
The exchange strongly recommends listening to the recovery feed only when data is needed, and leaving the multicast once I have recovered the data I need.
My question is, if I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When using Linq to SQL with stored procedures, must char(1) columns be returned as c# chars? When using Linq to SQL and stored procedures, the class generated to describe the proc's result set uses char properties to represent char(1) columns in the SQL proc. I'd rather these be strings - is there any easy way to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I exclude the bin folder from sourcesafe in a Visual Studio 2008 web application? How can I exclude the bin folder from SourceSafe in a Visual Studio 2008 web application? I want to be able to check in everything recursively from the solution node without picking up anything in the bin folder.
A: *
*Right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the difference between lambdas and delegates in the .NET Framework? I get asked this question a lot and I thought I'd solicit some input on how to best describe the difference.
A: A delegate is a function signature; something like
delegate string MyDelegate(int param1);
The delegate does not implement a b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: Firefox, saved passwords, and the change password dialogue If a user saves the password on the login form, ff3 is putting the saved password in the change password dialoge on the profile page, even though its not the same input name as the login. how can I prevent this?
A: Try using autocomplete="off" as an attribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is your choice for a Time Managment Solution? I've come across a few different applications that monitor my usage while on the computer, but what have you used, and like? whether it be writing down your activities in a composition notbook or install an app that reports silently to a server? what do you like?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Best practice for passing parameters in Microsoft Visual Studio Tools for Office (VSTO) 3 (C#) Many of the parameters for interacting with the Office Object model in VSTO require object parameters that are passed by reference, even when the notional type of the parameter is an int or string.
*
*I suppose that thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Capturing cout in Visual Studio 2005 output window? I created a C++ console app and just want to capture the cout/cerr statements in the Output Window within the Visual Studio 2005 IDE. I'm sure this is just a setting that I'm missing. Can anyone point me in the right direction?
A: You can capture the output of cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Access USB with Java, in order to find thumbdrive manufacturer's serial#/unique-ID Looking for a way to read the unique ID / serial# of a USB thumb drive;
please note that
- I am looking for the value of the manufacturer, not the one Windows allocates for it.
- I need to support multiple OS (Windows, Unix, Mac), thu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do we create an installer than doesn't require administrator permissions? When creating a setup/MSI with Visual Studio is it possible to make a setup for a simple application that doesn't require administrator permissions to install? If its not possible under Windows XP is it possible under Vista?
For example a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: True timeout on LWP::UserAgent request method I am trying to implement a request to an unreliable server. The request is a nice to have, but not 100% required for my perl script to successfully complete. The problem is that the server will occasionally deadlock (we're trying to figure out why) and the request will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How you disable the processor cache on a PowerPC processor? In our embedded system (using a PowerPC processor), we want to disable the processor cache. What steps do we need to take?
To clarify a bit, the application in question must have as constant a speed of execution as we can make it.
Variability in executing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQLGetData issues using C++ and SQL Native Client I have a C++ application that uses SQL Native Client to connect to a MS SQL Server 2000.
I am trying to retrieve a result from a TEXT column containing more data than the buffer initially allocated to it provides. To clarify my issue, I'll outline what I'm doing (co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to duplicate a whole line in Vim? How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/ Resharper or Ctrl+Alt+↑/↓ in Eclipse?
A: I know I'm late to the party, but whatever; I have this in my .vimrc:
nnoremap <C-d> :copy .<CR>
vnoremap <C-d> :copy '><CR>
the :copy command just copi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1916"
} |
Q: How to set the header sort glyph in a .NET ListView? How do I set the column which has the header sort glyph, and its direction, in a .NET 2.0 WinForms ListView?
Bump
The listview is .net is not a managed control, it is a very thin wrapper around the Win32 ListView common control. It's not even a very good wrapper -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I save some JavaScript state information back to my server onUnload? I have an ExtJS grid on a web page and I'd like to save some of its state information back to the server when the users leaves the page.
Can I do this with an Ajax request onUnload?
If not, what's a better solution?
A: You can use an Aja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Introspection VS Reflection What is the difference between Introspection and Reflection in .NET
A: Introspection was introduced with FxCop in 2004 as an alternative to Reflection :
What's new in FxCop 1.30 is that it
now performs analysis through a
technique called Introspection. The
use of the Introspe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you read JavaDoc? What tools/websites do you use to read JavaDocs?
I currently use Firefox with 20+ tabs open when working on a J2EE project to have all the documentation available which is not very usable, is eating too much memory and is not searchable.
What I would expect from such a tool/website:
*
*A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to gracefully deal with ViewState errors? I'm running some c# .net pages with various gridviews. If I ever leave any of them alone in a web browser for an extended period of time (usually overnight), I get the following error when I click any element on the page.
I'm not really sure where to start dealing with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asp.net Convert CSV string to string[] Is there an easy way to convert a string from csv format into a string[] or list?
I can guarantee that there are no commas in the data.
A: If you want robust CSV handling, check out FileHelpers
A: string[] splitString = origString.Split(',');
(Following comment not added by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I transfer my domains from my existing registrar/hosting service to something like GoDaddy? Will I have to pay again? I have about 9 months left before renewal but my current provider doesn't offer many options / control panels.
Update: thanks for everyone's help - I've finally completed this now.
I had to:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does a caching-nameserver usually cache the negative DNS response SERVFAIL Does a caching-nameserver usually cache the negative DNS response SERVFAIL?
EDIT:
To clarify the question, I can see the caching nameserver caching negative responses NXDOMAIN, NODATA. But it does not do this for SERVFAIL responses. Is this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: HashBytes() Function T-SQL What's the most efficient way to convert the output of this function from a varbinary() to a a varchar()?
A: How about this:
master.sys.fn_varbintohexstr(@binvalue)
A: For SQL Server 2008 use
CONVERT(varchar, @binary, 1)
1 - style 0x060D,
2 - 060D
http://msdn.microsoft.com/en-gb/librar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: asp.net dropDownBox selectedIndex not being maintained I have a weird problem with a dropdownbox selectedIndex always being set to 0 upon postback. I'm not accidentally rebinding it in my code. In fact I've placed a breakpoint at the very first line of the page_load event and the value is already set to zero. The dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to tell if a method is a property from within Policy Injection? I've got a custom handler applied to a class (using the Policy Injection Application Block in entlib 4) and I would like to know whether the input method is a property when Invoke is called. Following is what my handler looks like.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Non-blocking pthread_join I'm coding the shutdown of a multithreaded server.If everything goes as it should all the threads exit by their own, but there's a small chance that a thread gets stuck.In this case it would be convenient to have a non-blocking join so I could do.
Is there a way of doing a non-blocking pthr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How can I highlight the current cell in a DataGridView when SelectionMode=FullRowSelect I have an editable DataGridView with SelectionMode set to FullRowSelect (so the whole row is highlighted when the user clicks on any cell). However I would like the cell that currently has focus to be highlighted with a different... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Not able to delete directory I am having a frequent problems with my web hosting (its shared)
I am not able to delete or change permission for a particular directory. The response is,
Cannot delete. Directory may not be empty
I checked the permissions and it looks OK. There are 100's of files in this folder which I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I encode arbitrary data to XML using Java 1.4 and SAX? We use SAX to parse XML because it does not require the entire XML document to be read into memory in order to parse a single value. I read many articles that insisted SAX can only be used to parse/decode XML and not create it. Is this true?
A: No, it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to 'bind' Text property of a label in markup Basically I would like to find a way to ddo something like:
<asp:Label ID="lID" runat="server" AssociatedControlID="txtId" Text="<%# MyProperty %>"></asp:Label>
I know I could set it from code behind (writing lId.Text = MyProperty), but I'd prefer doing it in the mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.