text string | meta dict |
|---|---|
Q: DataGridView combo-boxes and primary keys What's the best practise way to handle a primary key in an unbound datagrid view combo-box column?
I want to display a meaningful value but store only the primary key (much like Access combo-boxes). I achieve this with a regular combo-box by adding an object with two proper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Escape a string in SQL Server so that it is safe to use in LIKE expression How do I escape a string in SQL Server's stored procedure so that it is safe to use in LIKE expression.
Suppose I have an NVARCHAR variable like so:
declare @myString NVARCHAR(100);
And I want to use it in a LIKE expression:
... WHERE ... LI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Serialize in a human readable text format Is there a way in .NET 2.0 (C#) to serialize object like you do using XmlSerializer in a simple / customizable human readable format thats for instance looks like PXLS or JSON?
Also I know that XML is human readable, I'm looking for something with less annoying redundancy, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Django: Overriding verbose_name for AutoField without dropping the model I am using 0.97-pre-SVN-unknown release of Django.
I have a model for which I have not given any primary_key. Django, consequently, automatically provides an AutoField that is called "id". Everything's fine with that. But now, I have to change ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IE6 Bullets on lists My link is here:
Example Page
I'm using list-style-image: to give my horizontal lists ( very top and bottom ) seperators. I have a class of .first to remove the image from the first li in each list.
Lo and behold in IE6, it doesn't work. What happens is that the bullet images are not being displ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to find out if a lazy relation isn't loaded yet, with SQLAlchemy? With SQLAlchemy, is there a way to know beforehand whether a relation would be lazy-loaded?
For example, given a lazy parent->children relation and an instance X of "parent", I'd like to know if "X.children" is already loaded, without triggering t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Best packing strategy for js during continuous integration? I need to pack all my js, but need to edit it going into source control.
is there a nice easy plugin for ccnet, or nant, that will allow me to pack my js, and store them in the same files on the way out to production.
Not really looking for file combining, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to parse a month name (string) to an integer for comparison in C#? I need to be able to compare some month names I have in an array.
It would be nice if there were some direct way like:
Month.toInt("January") > Month.toInt("May")
My Google searching seems to suggest the only way is to write your own method, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Techniques to remove dependencies? Scenario:
An event is raised in class A that needs to be handled by a method in class B. (currently via a delegate)
The data that gets passed from the event to the method is currently wrapped in class C.
This obviously requires class B to be dependent on class C.
Is there any tech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Portable Ruby on Rails environment I got myself a new 8 gig USB key and I'm looking for a decent solution to have a portable RoR environment to learn on. I did the google on it and found a few possibilities, but I'm curious to hear some real life experiences and opinions. Thanks!
A: I like InstantRails, very easy t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Server query against two linked databases using different collations I've got 2 remote databases as part of a query
select p.ID,p.ProjectCode_VC,p.Name_VC,v.*
FROM [serverB].Projects.dbo.Projects_T p
LEFT JOIN [serverA].SOCON.dbo.vw_PROJECT v on
p.ProjectCode_VC = v.PROJ_CODE
The problem is that serverA uses c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to show/hide UserControls within a Silverlight XAP file from JavaScript? I've created a Silverlight project that produces [something].xap file to package a few silverlight UserControls. I would like to manipulate that .xap file through the use of javascript in the browser to show and hide user contro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF - Binding IsMouseOver to Visibility I have a window which overrides a RadioButton's ControlTemplate to show a custom control inside of it. Inside the custom control, I have a button's visibility tied to IsMouseOver, which works correctly in showing the button only when the mouse is hovering over the control. How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How should I get started learning about ADO.NET Entity Framework? So here I am just about to start a big project using LINQ to SQL and then I read this:
Is LINQ to SQL Truly Dead? by Jonathan Allen for InfoQ.com
Well, I don't want to be supporting LINQ to SQL indefinitely if it's a dead end. So, how should I get st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Ajax requests from xul not working in firefox 2 I'm working on a firefox extension and have been developing it in Firefox 3, I went to test it on Firefox 2 and for some reason, none of my HTTP requests is firing. The format of the requests are below (using prototype):
theResponse = function(response){
//some cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set Identity of Thread In C#, how do I set the Identity of a Thread?
For example, if I have Thread MyThread, which is already started, can I change MyThread's Identity?
Or is this not possible?
A: Update for the accepted answer [apply ONLY on .NET framework 4.5 and above]
In .NET 4.5 the property IsAuthenticated ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to add forms inputs in an unordered list element I'm dynamically generating an asp form, and I would like to add the label and input elements inside a list.
For example, I would like to end up with something like:
<ul>
<li><label for="input"/><input id=input"/></li>
</ul>
To do this, I create a Label object and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When an Expression is compiled, is it implicitly cached? When an Expression<T> is compiled, is the resultant code implicitly cached by the framework? I'm thinking along the lines of the static Regex methods where the framework implicitly compiles and caches the last few regexes.
If compiled Expression<T> objects are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to use find algorithm with a vector of pointers to objects in c++? I want to find in a vector of Object pointers for a matching object. Here's a sample code to illustrate my problem:
class A {
public:
A(string a):_a(a) {}
bool operator==(const A& p) {
return p._a == _a;
}
private:
stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Hosting the .NET runtime in a Delphi Program I was looking into using some .NET code from within a Delphi program, I will need to make my program extensible using .net assemblies and predefined functions (I already support regular DLLs).
After a lot of searching online, I found Managed-VCL, but I'm not ready to pay... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: load a user control programmatically in to a html text writer I am trying to render a user control into a string. The application is set up to enable user to use tokens and user controls are rendered where the tokens are found.
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlText... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio colors not loaded correctly I use a custom color scheme in Visual Studio (black background, gray text, etc.). There a few settings that refuse to change, however. For example, when cursoring through the markup for an aspx page, the current tag defaults to black text, which doesn't work well on my black... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I need a TCP option (ioctl) to send data immediately I've got an unusual situation: I'm using a Linux system in an embedded situation (Intel box, currently using a 2.6.20 kernel.) which has to communicate with an embedded system that has a partially broken TCP implementation. As near as I can tell right now they exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java Network Events I am creating a java mobile application and I want to be aware as to when the device obtain an IP address to then be able to send messages to a backend system.
Do any API exists? I guess if an API existed it would have to use system dependant calls thru JNI?
Thank you,
Julien.
A: OK, I'm not 100... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine number of screens and screen relative location without WinForms I want to save and restore the window position of my WPF application. I want to make the code robust to use with multiple monitors who's number and relative location can change (I want to avoid opening my application off-screen when the monito... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Foundations of Network Security (IIS, SQL, RDP, etc) for a Developer Not sure if anyone listened to Hanselminutes episodes 134 and 135, but at the end of show 135 Scott Hanselman had a lot of great advice on how to setup a baseline secure environment for a web application. As a developer, most of my time is focused... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WYSIWYG Control for Winform I am looking for a free WYSIWYG editor control to be used in a Winform application. The applications primary language is VB but using C# is also an option. To clarify I need a rich text editor control that has a formatting bar. I have looked all over the web and the only options I can fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What CAPTCHA system is compatible with ASP.NET MVC? What CAPTCHA system is compatible with ASP.NET MVC? Are there any good examples out there?
A: Try this post
Source code can be found here if you don't have the patience to read the article: zip file
A: Stack Overflow, which is written using ASP.NET MVC, uses reCA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How does the Sun JVM map Java threads to Windows threads? My application uses loads of Java threads. I am looking for a reliable understanding how the JVM (version 5 and 6) maps the Java threads to underlying Windows threads. I know there is a document for mapping to Solaris threads, but not Windows.
Why doesn't Sun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to find amount of parameters in a constructor I'm trying to find a way to determine how many parameters a constructor has.
Now I've built one constructor with no parameters and 1 constructor with 4 parameters.
Is there, in C#, a way to find out how many parameters a used or given constructor has?
Thing is, I'm u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DebuggerDisplay on generic class I have a problem applying the DebuggerDisplay attribute on a generic class:
[DebuggerDisplay("--foo--")]
class Foo
{
}
[DebuggerDisplay("Bar: {t}")]
class Bar<T>
{
public T t;
}
When inspecting an object of type Bar<Foo> I would expect it to show as Bar: --foo--, but I get Bar:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: COMException: The data area passed to a system call is too small The message defined in the title of this post, along with the HResult 0x8007007A occasionally occurs while creating an instance of a Windows Workflow Foundation Runtime.
The error text is pretty self explanitory, and using Reflector over the Workflow F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can Ctrl+Backspace be made to work in VS2008's Solution Explorer? I'm working in an ASP.NET MVC Beta 1 project, and I've noticed that if I want to rename a file in the Solution Explorer pane, Ctrl+Backspace does not do what it should (delete the closest "word"), and I get a silly box character and annoyed.
I'm doing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java: Out with the Old, In with the New Java is nearing version 7. It occurs to me that there must be plenty of textbooks and training manuals kicking around that teach methods based on older versions of Java, where the methods taught, would have far better solutions now.
What are some boilerplate code situations, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: How to serialize an object to XML without getting xmlns="..."? Is there a way for me to serialize an object in .NET without the XML Namespaces automatically serializing also? It seems that by default .NET believes the XSI and XSD namespaces should be included, but I don't want them there.
A: If you are unable to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: How do I determine the optimal number of connections that can be open on my SQL Server 2000 DB? What is the optimal number of connections that can be open on a SQL Server 2000 DB. I know in the previous company I was working for, on a tru 64 box with Oracle 8i, 8 processor machine we'd figured out that 8*12= 96 conn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MFC Event Handlers Just wondering what the difference between MFC control messages prefixed with the following is:
LVN (e.g. LVN_ITEMCHANGED)
HDN (e.g. HDN_TRACK)
NM (e.g. NM_HOVER)
Also, I am using a ListControl and trapping when the user clicks on an item using the NM_CLICK message. I also want to trap when a use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I avoid automatically attaching to T-SQL for debugging in Visual Studio 2008? When debugging web sites that I'm working on, I tend to use Attach to Process rather than F5 to start debugging (since the site's already on in Firefox). However, occasionally when doing so, I'll get the following error:
EXECUTE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: COM/Interop - Supporting Multiple Versions I've written a .NET console app that wraps CuteFTP's Transfer Engine - a COM object (ftpte). The version I wrapped is CuteFTP 7.0. I'd like to also support the 8.0 version, as some of the clients I integrate with have that version.
I have a reference in my Visual Studio p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Will the dynamic keyword in C#4 support extension methods? I'm listening to a talk about C#4's dynamic keyword and I'm wondering... Will this feature be orthogonal to other .NET features, for example will it support extension methods?
public static class StrExtension {
public static string twice(this string str)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: .NET cryptography for licence keys? I want to create a license key, which cryptography algorithm would you recommend?
Basically the inputs would be:
company name
major version number
date created
expirey date
has feature1:
has feature2:
has feature3:
e.g. Acme Inc 5.0 20081102 20081102 0 1 0
Related: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/258994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Phone number normalization: Any pre-existing libraries? I have a system which is using phone numbers as unique identifiers. For this reason, I want to format all phone numbers as they come in using a normalized format. Because I have no control over my source data, I need to parse out these numbers myself and format... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Handling WCF Deserialization of DateTime objects We've got a scheduling application running that calls a WCF service to run nightly jobs. A large number of these include information about the current business date. For business reasons the scheduling server is set to GMT, but our service is running on servers set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is this a decent Event Driven approach for a windows service? I'm reading up on event-driven design. I am having trouble getting my head around some of it in practice. I'm considering using this for a windows service that monitors, parses, and handles information coming from a 3rd party TCP stream. Is the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can every float be expressed exactly as a double? Can every possible value of a float variable can be represented exactly in a double variable?
In other words, for all possible values X will the following be successful:
float f1 = X;
double d = f1;
float f2 = (float)d;
if(f1 == f2)
System.out.println("Success!");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: C# NullReference Exception and ReSharper suggestion This is what I have written:
if ((lstProperty[i].PropertyIdentifier as string).CompareTo("Name") == 0)
Resharper put me an error (I am new with ReSharper... I am trying it) and it suggests me :
if (((string) lstProperty[i].PropertyIdentifier).CompareTo("Name") =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why would I choose Powershell over WMI to develop management interfaces? We are discussing development of an improved management infrastructure for our distributed system.
We use COM, web services and .NET components. Since we're based on Microsoft Windows Server XP/2003, I guess, we basically have two options:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I use WScript.Shell SendKeys to send Number Pad key strokes? I am trying to use WScript.Shell SendKeys method to emulate sending a key press from the Number Pad.
I have an application that I am writing automated testing for using QTP. It is a Web Browser based application and the input is into a Java App wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get SQL Server Connection info from app without debugging? We are troubleshooting a SQL Server 2005 connection issue on a closed-source third-party ASP.NET application. The application is a .NET application and the developing company is using a custom formatted configuration file that stores the SQL Server authenti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why Doesn't C# Allow Static Methods to Implement an Interface? Why was C# designed this way?
As I understand it, an interface only describes behaviour, and serves the purpose of describing a contractual obligation for classes implementing the interface that certain behaviour is implemented.
If classes wish to implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "470"
} |
Q: How does SQL Server locking work in this scenario? Consider that I have a transaction:
BEGIN TRANSACTION
DECLARE MONEY @amount
SELECT Amount AS @amount
FROM Deposits
WHERE UserId = 123
UPDATE Deposits
SET Amount = @amount + 100.0
WHERE UserId = 123
COMMIT
And it gets executed on 2 threads, in the order:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Deploying an application to Windows Mobile Pocket PC Iv been encountering problems with disk space when deploying my app to a pocket pc emulator.
So what Iv done is set up a shared directory on my pc to simulate a SD card, Iv copied the program there manually and then run it from the emulator, with this approach I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why do I get "Unable to start debugging on web server" when running asp.net? I am trying to debug a web application through IIS that has a virtual directory other than localhost. It compiles fine but gets the above message anytime that I try to start debugging. I have compilation debug="true".
A: Right click your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting .Net Font information? Is there a wrapper around the Win32 API for getting font information without actually instantiating an instance of the .NET Font class?
For example, some fonts do not have a regular style so I need to determine what styles are valid for a font without actually creating an instance of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: rtsp over http over a proxy I am trying to fetch an RTSP stream over HTTP using a proxy. The behavior of the Real client seems to be a bit hectic: it tries all the possible ports, methods and protocols at once. The only thing that should work is HTTP GET over port 80. Such a request is indeed issued, and is received... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Getting counts for a paged SQL search stored procedure I've written a paged search stored procedure using SQL Server 2005. It takes a number of parameters and the search criteria is moderately complex.
Due to the front-end architecture I need to be able to return the number of results that would come back without ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF HiercharchicalDataTemplate.DataType: How to react on interfaces? Problem
I've got a collection of IThings and I'd like to create a HierarchicalDataTemplate for a TreeView. The straightforward DataType={x:Type local:IThing} of course doesn't work, probably because the WPF creators didn't want to handle the possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which is faster for PHP to deal with/easier to work with in PHP; XML or JSON, and file_get_contents or cURL? Is there any reason why I should pick JSON over XML, or vice-versa if both are available? Tips for optimizing performance when dealing with data feeds are also appreciated!
A: When it comes to PHP the one re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to parse a search term into the various question types? I am writing an internal application where we let users to do a few different types of queries.
The application allows users to search a database by either of the following keys:
*
*employeeId
*name (first or last)
*companyId
*status (workingFullTime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where can I obtain dictionary files for use in checking spelling? I thought this was asked before, but 15 minutes of searching on Google and the site search didn't turn anything up...so:
Where can I obtain free (as in beer and/or as in speech) dictionary files? I'm mainly interested in English, but if you know of an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does anyone know a way to "share" a datasource without causing multiple postbacks? For instance, I have a SqlDataSource that loads a list of items. On my form, I've got 3 dropdown boxes that both should contain that same list of values, and then the user can select a different value for each and save.
By hooking up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I scrape an HTML table to CSV? The Problem
I use a tool at work that lets me do queries and get back HTML tables of info. I do not have any kind of back-end access to it.
A lot of this info would be much more useful if I could put it into a spreadsheet for sorting, averaging, etc. How can I screen-scrape thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: WPF ListBox bind to index of the item It's easy to bind something to the SelectedIndex of the ListBox,
but I want every item in the ListBox be able to bind to it's index in the list.
Might sound weird, so here's what I'm trying to do:
<DataTemplate x:Key="ScenarioItemTemplate">
<Border
Margin="8,2,8,2"
Backg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can you make the footer axapta reporting tool print at the bottom of the page? I am trying to print something at the bottom of a report. I am using a section Pagefooter.
I thought that if you used Pagefooter that it would print at the bottom on the report.
A: Yes you can use Pagefooter section to display foote... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing form data from masterpage to other pages ASP.NET I have asked a similar question before, but I didn't have a firm grasp on what the problem I was encountering was. My problem is I cannot get the data from a TextBox residing on the master when the page changes. Here is what happens:
*
*MasterPage with Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ambient Occlusion Shader Effect in WPF? I guess this is a multi-part question.
I can import a 3D model into my WPF application but how do I apply an ambient occlusion shader effect to it?
I know with .NET 3.5 SP1 you can do custom effects but that's limited to pixel shaders and doesn't include vertex shaders.
I thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tools and methods for live-monitoring ASP.NET web applications? I think many developers know that uncomfortable feeling when users tell them that "The application is slow (again)."
In a complex web application there can be many possible reasons for a degradation in (perceived) performance: slow database response, ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Drb and "is recycled object" exception I'm running in a strange issue.
My controller calls a drb object
@request_handler = DRbObject.new(nil, url)
availability_result = @request_handler.fetch_availability(request, @reservation_search, params[:selected_room_rates])
and this Drb object is making some searches.
but s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I safely populate with data and Refresh() a DataGridView in a multi-threaded application? My app has a DataGridView object and a List of type MousePos. MousePos is a custom class that holds mouse X,Y coordinates (of type "Point") and a running count of this position. I have a thread (System.Timers.Timer) that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can you change the width of a scroll bar (scrolling DIV) in IE7 Is there any way to change the entire width of the horizontal scroll bar on a scrolling div (including the nudge arrows and the handle).
EDIT: I only need an IE7 solution - it's for a scrolling DIV on a touch screen terminal
Thanks
Matt
A: Actually, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Capturing session for remote control from a linux host Use case:
*
*A does something on his box and gots stuck. He asks B (remote) for support.
*B logs into the session of A, sees all windows, A was seeing and is able to manipulate the GUI.
If A uses Windows it is very convenient to log into a running session ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scanning Java annotations at runtime How do I search the whole classpath for an annotated class?
I'm doing a library and I want to allow the users to annotate their classes, so when the Web application starts I need to scan the whole classpath for certain annotation.
I'm thinking about something like the new functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "288"
} |
Q: What is the difference between <%# Bind("") %> and <%# Eval("") %> in ASP.NET? I have seen bind and eval used interchangeably especially in ASP.NET GridViews. What is the difference?
A: Bind() is used for two-way databinding. So when used with the proper type of datasource, it will pull the altered values out of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How do I determine if an asp.net url has been "rewritten"? I'm using http://urlrewriter.net/ to rewrite urls at my website. For example, I'm rewriting:
http://www.example.com/schedule.aspx?state=ca
to
http://www.example.com/california.aspx
What I'm trying to do (for SEO purposes) to to dynamically add the meta t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to cut out a part from a stream in Delphi7 I have an incoming soap message wich form is TStream (Delphi7), server that send this soap is in development mode and adds a html header to the message for debugging purposes. Now i need to cut out the html header part from it before i can pass it to soap converter. It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Image sequence animation with Core Animation I'm currently using a UIImageView with an array of images to create a small looping animation sequence with about 20 images in there (at 320x480). Whilst this works okay for 20 - 30 images, any more and the app quits on the iphone. There is nothing else in my test app at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to host a Silverlight app in a Sharepoint 2007 Web Part There has been a flurry of updates released to Microsoft's Silverlight over the past couple of months (Silverlight 2 beta 2 runtime + dev tools, RC0 + dev tools which broke beta 2 apps), and recently Microsoft has released the RTM.
I have been trying (unsuc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Good free FTP Client Library (for Windows C++ commercial apps)? I'm looking for a good open source Windows FTP client library with a public domain or BSD-type license. Something that I have access to the source code and I can use it from C++ for Windows applications in a commercial app.
We have used Wininet for yea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Wrapping a web login page I have a web login page with the standard username password and login button controls. I would like to write a wrapper page that will render and auto fill the username and login form text boxes with a constant and force the onclick event for login button. Any suggestions how to accomplish t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is tomcat looking for JSF classes? I am trying to get my development environment up and running, and I am having trouble with Tomcat trying to load JSF classes for some reason. My application does not use JSF; in fact, I haven't even deployed my application to tomcat yet. I am getting a number of stack traces ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delay with touch events We have an app in AppStore Bust~A~Spook we had an issue with. When you tap the screen we use CALayer to find the position of all the views during their animation and if you hit one we start a die sequence. However, there is a noticeable delay, it appears as if the touches are buffered and w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Counting, reversed bit pattern I am trying to find an algorithm to count from 0 to 2n-1 but their bit pattern reversed. I care about only n LSB of a word. As you may have guessed I failed.
For n=3:
000 -> 0
100 -> 4
010 -> 2
110 -> 6
001 -> 1
101 -> 5
011 -> 3
111 -> 7
You get the idea.
Answers in pseudo-code is g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: User-Defined Form Creation We have a custom written on-line job application... application. HR is requesting a "skill sheet" added to the application. While we have yet to work with them to determine what all this could entail, I am starting to research if this is even feasible.
At this point I am envisioning somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I reject all changes in a Linq to SQL's DataContext? On Linq to SQL's DataContext I am able to call SubmitChanges() to submit all changes.
What I want is to somehow reject all changes in the datacontext and rollback all changes (preferable without going to the database).
Is this possible?
A: As Haacked said... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Email servers for windows servers? currently I have only seen products from smartertools for email servers that run on windows boxes.
what are you guys running? Is there any other options?
It gets expensive when you have multiple servers requiring their software.
A: Imail Server works well for small organizations... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python, functions running from a list and adding to a list through functions How do I run a function on a loop so all the results go straight into a list and is there a way to run a function which acts on all the values in a list?
A: Theres a couple ways to run a function on a loop like that - You can either use a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iterator adapter to iterate just the values in a map? I'm just getting back into C++ after a couple of years of doing a lot of C#, and recently Objective C.
One thing I've done before is to roll my own iterator adapter for std::map that will deref to just the value part, rather than the key-value pair. This is quite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to test the current version of GCC at compile time? I would like to include a different file depending on the version of GCC. More precisely I want to write:
#if GCC_VERSION >= 4.2
# include <unordered_map>
# define EXT std
#elif GCC_VERSION >= 4
# include <tr1/unordered_map>
# define EXT std
#else
# includ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How do I copy a file or folder that is locked under windows programmatically? What are the API calls to copy a file that is currently locked. I'm hoping to be able to use .Net, but Win32 calls would be fine as well.
Please feel free to chime in about the same functionality on Unix, or any other OS.
A: Almost the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: std::getline() returns I have a loop that reads each line in a file using getline():
istream is;
string line;
while (!getline(is, line).eof())
{
// ...
}
I noticed that calling getline() like this also seems to work:
while (getline(is, line))
What's going on here? getline() returns a stream reference. Is it be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: New vb.net enhancements? I've been hearing/reading a lot about the new language enhancements for C# 4. I'm a little curious if these same enhancements are also going to be applied to VB as well, or what. Does anyone know where I can get some insight here? With all the new changes happening to C#, it seems like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Disappearing bullet points http://biochrom.fivesite.co.uk/catalogue4.asp
On the page above there is an image floated to the left. To the right of it is a list, titled "features". The list items have a background image, however, it isn't appearing. List 2 shows how the background image looks.
Does anyone know how I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should I Keep Business Objects Separate from the UI in WPF? WPF's view model oriented way of doing things makes it very tempting to just use business objects in the UI. Have you seen any issues with this? Why or why wouldn't you do this?
A: The guidance from Microsoft's product teams (e.g., that's what the Blend te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you copy the contents of an array to a std::vector in C++ without looping? I have an array of values that is passed to my function from a different part of the program that I need to store for later processing. Since I don't know how many times my function will be called before it is time to process the data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: Grouping columns under a single header in JSF Is there a way using JSF to group two or more columns under a single parent column in JSF? I have a dataTableEx with hx:columnEx columns inside of it. What I want is something like this:
[MAIN HEADER FOR COL1+2 ][Header for Col 3+4]
[ COL1 Header][COL2 Header][COL3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Configuration Manager only shows Debug I am working in Visual Studio 2008 on an ASP.NET application, which has been deployed to a test server. I would like to make a build without debug information to place in production, but the configuration manager only shows "Debug" in the configuration dropdown for my project.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: exceptions.AttributeError : SMTP instance has no attribute 'login' : Hey I have a windows server running python CGI scripts and I'm having a little trouble with smtplib. The server is running python 2.1 (unfortunately and I can not upgrade it). Anyway I have the following code:
session = smtplib.SMTP("smtp-auth.our... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display image in grails GSP? I'm still learning Grails and seem to have hit a stumbling block.
Here are the 2 domain classes:
class Photo {
byte[] file
static belongsTo = Profile
}
class Profile {
String fullName
Set photos
static hasMany = [photos:Photo]
}
The relevant controll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there any way to fake an ID column in NHibernate? Say I'm mapping a simple object to a table that contains duplicate records and I want to allow duplicates in my code. I don't need to update/insert/delete on this table, only display the records.
Is there a way that I can put a fake (generated) ID column in my ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What do you use to test the handheld css on your website? I've been adding css support for handheld to my website but haven't been able to find a good tool for testing.
I tried using the webdeveloper plugin for Firefox but it doesn't work for me. Maybe that is because all my css is in the html and not a seperate cs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |