name (17,941)


unit testing - How to use combinations of sets as test data

unit testing - How to use combinations of sets as test data

I would like to test a function with a tuple from a set of fringe cases and normal values. For example, while testing a function which returns true whenever given three lengths that form a valid tria…


python - cx_Oracle: How do I iterate over a result set?

There are several ways to iterate over a result set. What are the tradeoff of each?…


Python and MySQL

I can get Python to work with Postgresql but I cannot get it to work with MySQL. The main problem is that on the shared hosting account I have I do not have the ability to install things such as Djan…


python - What OS am I running on?

What do I need to look at to see whether I'm on Windows or Unix, etc?…


Have you ever encountered a query that SQL Server could not execute because it referenced too many tables?

Have you ever seen any of there error messages?-- SQL Server 2000 Could not allocate ancillary table for view or function resolution. The maximum number of tables in a query(256) was exceeded.-…


python - Calling a function of a module by using its name(a string)

What is the best way to go about calling a function given a string with the function's name in a Python program. For example, let's say that I have a module foo,and I have a string whose content is "b…


How can I make the browser see CSS and Javascript changes?

CSS and Javascript files don't change very often, so I want them to be cached by the web browser. But I also want the web browser to see changes made to these files without requiring the user to clear…


sql server - How do I Transform Sql Columns into Rows?

I have a very simple problem which requires a very quick and simple solution in SQL Server 2005. I have a table with x Columns. I want to be able to select one row from the table and then transform t…


How do I Concatenate entire result sets in MySQL?

I'm trying out the following query: SELECT A,B,C FROM table WHERE field LIKE 'query%' UNION SELECT A,B,C FROM table WHERE field LIKE '%query' UNION SELECT A,B,C FROM table WHERE field LIKE '%query%'…


Is there any trick that allows to use Management Studio's(ver. 2008) IntelliSense feature with earlier versions of SQL Server?

New version of Management Studio(i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2008 instances.…


c# - How to make a button appear as if it is pressed?

Using VS2008, C#,.Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. ToolStripButton has the Checked property, but the regular Button does no…


How can I dynamically center an image in a MS Reporting Services report?

Out of the box, in MS Reporting Services, the image element does not allow for the centering of the image itself, when the dimensions are unknown at design time. In other words, the image(if smaller…



WPF Databinding

Can anyone point me to a good resource(or throw me a clue) to show me how to do DataBinding to controls(ComboBox, ListBox, etc.) in WPF? I'm at a bit of a loss when all my WinForms niceities are t…


How do I debug JavaScript in Visual Studio 2005?

I just saw this mentioned in Stack Overflow question Best WYSIWYG CSS editor and didn't know it could be done. I'm a Visual Studio newbie, so how do you do it? Is there a separate debugger for JavaSc…




get how from with not example file the class value