text stringlengths 8 267k | meta dict |
|---|---|
Q: Display a tooltip over a button using Windows Forms How can I display a tooltip over a button using Windows Forms?
A: For default tooltip this can be used -
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
ToolTip1.SetToolTip(this.textBox1, "Hello world");
A customized tooltip can also b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "244"
} |
Q: RESTifying URLs At work here, we have a box serving XML feeds to business partners. Requests for our feeds are customized by specifying query string parameters and values. Some of these parameters are required, but many are not.
For example, we've require all requests to specify a GUID to identify the partner, and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Python - How do I convert "an OS-level handle to an open file" to a file object? tempfile.mkstemp() returns:
a tuple containing an OS-level handle to an open file (as would be returned by os.open()) and the absolute pathname of that file, in that order.
How do I convert that OS-level handle to a file object?
The d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Best Practices for Performing Sequential Operations What is the best way to perform a couple of tasks together and if one task fails then the next tasks should not be completed? I know if it were the database operations then I should have used Transactions but I am talking about different types of operations like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Call Web Services Using Ajax or Silverlight? Which performs best? I'm building an ASP.NET AJAX application that uses JavaScript to call web services to get its data, and also uses Silverlights Isolated Storage to cache the data on the client machine. Ultimately once the data is downloaded it is passed to JavaScript ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I concatenate files in a subdirectory with Unix find execute and cat into a single file? I can do this:
$ find .
.
./b
./b/foo
./c
./c/foo
And this:
$ find . -type f -exec cat {} \;
This is in b.
This is in c.
But not this:
$ find . -type f -exec cat > out.txt {} \;
Why not?
A: Hmm... find seems to be rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Framework to host web services on a basic hosted web server Can anyone recommend a framework or basic technology to use to host a web service on a basic hosted web server?
I have data in a mySQL database that will be accessed by the web service.
A: You can create them very easily in C#
| {
"language": "en",
"url": "https://stackoverflow.com/questions/168592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bad habits of your Scrum Master Scrum is quite popular dev.process these days and often Project Manager suddenly gets new title (Scrum Master). However it should be not just a new title, but new habits and new paradigm. What are the bad habits of your Scrum master?
A: *
*Micromanaging the team with hyper activity
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is the command line syntax to delete files in Perforce? I am creating some build scripts that interact with Perforce and I would like to mark for delete a few files. What exactly is the P4 syntax using the command line?
A: p4 delete filename
(output of p4 help delete)
delete -- Open an existing file to delete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programmatically triggering events in Javascript for IE using jQuery When an Event is triggered by a user in IE, it is set to the window.event object. The only way to see what triggered the event is by accessing the window.event object (as far as I know)
This causes a problem in ASP.NET validators if an event is tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can you get a Windows (AD) username in PHP? I have a PHP web application on an intranet that can extract the IP and host name of the current user on that page, but I was wondering if there is a way to get/extract their Active Directory/Windows username as well. Is this possible?
A: Check the AUTH_USER request varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: PHP mode for Emacs I'm having trouble with my php code not indenting correctly...
I would like my code to look like this
if (foo)
{
print "i am indented";
}
but it always looks like this:
if (foo)
{
print "i am not indented correctly";
}
I tired googling for similar things and tried adding the followin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Escaping a String from getting regex parsed in Java In Java, suppose I have a String variable S, and I want to search for it inside of another String T, like so:
if (T.matches(S)) ...
(note: the above line was T.contains() until a few posts pointed out that that method does not use regexes. My bad.)
But now sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What are the best steps to start programming with TDD with C#? I want to start working with TDD but I don't know really where to start. We coding with .NET (C#/ASP.NET).
A: See the questions Why should I practice Test Driven Development and how should I start?, Moving existing code to Test Driven Development, What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Getting the currently logged-in windows user I found this via google: http://www.mvps.org/access/api/api0008.htm
'******************** Code Start **************************
' This code was originally written by Dev Ashish.
' It is not to be altered or distributed,
' except as part of an application.
' You are free t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: JavaScript Table Manipulation I have a table with one column and about ten rows. The first column has rows with text as row headers, "header 1", "header 2". The second column contains fields for the user to type data (textboxes and checkboxes).
I want to have a button at the top labelled "Add New...", and have i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to script a table's data (temp tables too) in MS SQL 2000? Given a table or a temp table, I'd like to run a procedure that will output a SQL script (i.e. a bunch of INSERT statements) that would populate the table. Is this possible in MS SQL Server 2000?
A: You can create a script to do it using a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write acceptance tests How would you go about introducing acceptance tests into a team using the .NET framework? What tools are available for this purpose?
Thanks!
A: You might want to take a look at FitNesse, which is meant to be a way for Acceptance tests to look like a wiki document (so that they can be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get back a 2 digit representation of a number in SQL 2000 I have a table on SQL2000 with a numeric column and I need the select to return a 01, 02, 03...
It currently returns 1,2,3,...10,11...
Thanks.
A: Does this work?
SELECT REPLACE(STR(mycolumn, 2), ' ', '0')
From http://foxtricks.blogspot.com/2007/07/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recommended books on Desktop Application development using MVC I'm looking for recommendations on books about MVC on the desktop. If they use Java, that is a bonus.
Some background:
I'm writing a desktop application in Java. It's an audio application that has a number of views and a central model called a Library ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Add/Remove for my application showing up in roaming user account I've built an installer for my application by hand (don't ask why). And I set up the registry keys for its entry in the add/remove control panel under HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall. And it works fine. I need it to be under H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Time Travel functions in postgresql Can anyone recommend for/against the time-travel functions in postgresql's contrib/spi module? Is there an example available anywhere?
Tnx
A: The argument for time-travel would be being able to look at tables that are updated often at an earlier insertion/deletion point. Say a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Populating a PHP array: check for index first? If I'm deep in a nest of loops I'm wondering which of these is more efficient:
if (!isset($array[$key])) $array[$key] = $val;
or
$array[$key] = $val;
The second form is much more desirable as far as readable code goes. In reality the names are longer and the array is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you measure all the queries that flow through your software? In one of his blog articles, the proprietor of this web site posed this question to the reader, "You're automatically measuring all the queries that flow through your software, right?"
How do you do this? Every line of code that makes a query again... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you specify a particular JRE for a Browser applet? I have an third-party applet that requires JRE v1.5_12 to work correctly. THe user is installing JRE v1.6.07 or better. It used to be with 1.5 and below, that I could have multiple JRE's on the machine and specify which one to use - but with 1.6 that apepar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Questions when moving from MbUnit to MsTest Our team is looking to switch from using mbunit to mstest, but there appears to be some disconnect between the two.
Does anyone know how to simulate the CombinatorialTest and Factory attributes from mbunit when using mstest?
I think that is our only stumbling block before ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Generate table relationship diagram from existing schema (SQL Server) Is there a way to produce a diagram showing existing tables and their relationships given a connection to a database?
This is for SQL Server 2008 Express Edition.
A: For SQL statements you can try reverse snowflakes. You can join at sourceforge o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "203"
} |
Q: What are some string encapsulation classes which specify both meaning and behavior for their contents? .NET has System.Uri for Uris and System.IO.FileInfo for file paths. I am looking for classes which are traditionally object oriented in that they specify both meaning and behavior for the string which is used in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you set a default value for a MySQL Datetime column? How do you set a default value for a MySQL Datetime column?
In SQL Server it's getdate(). What is the equivalant for MySQL? I'm using MySQL 5.x if that is a factor.
A: IMPORTANT EDIT:
It is now possible to achieve this with DATETIME fields since MySQL 5.6.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1019"
} |
Q: Rendering order in Firefox I am building the diagram component in JavaScript. It has two layers rendered separately: foreground and background.
To determine the required size of the background:
*
*render the foreground
*measure the height of the result
*render the foreground and the
background together
In c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a ColdFusion web service client that uses WS-Security? I've exposed several web services in our product using Java and WS-Security. One of our customers wants to consume the web service using ColdFusion. Does ColdFusion support WS-Security? Can I get around it by writing a Java client and using that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where can I find a tutorial to get started learning jQuery? Where is a good place to get started learning how to use jQuery? It seems to be all the rage nowadays. I know some basics of JavaScript but I'm by no means an expert.
A: Here's a 4 part (so far) series on Jquery Basics.
A: JQuery web site has some nice ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do you access ViewState collection from PreviousPage on cross-page postback? In ASP.net 2.0, the PreviousPage property of a web page does not have a ViewState collection. I want to use this collection to transfer information between pages.
A: Use HttpContext.Current.Items instead...ViewState is only good for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What to use for membership in ASP.NET I'm not very experienced at using ASP.NET, but I've used built in membership providers for simple WebForms application, and I found them PITA when trying to extend the way they work (add/remove few fields and redo controls accordingly).
Now I'm preparing for MVC (ASP.NET MVC or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using Database entries to dynamically create a visio diagram Is this possible?
We have a Configuration Management Database that stores information such as our servers, what datacentre they're stored in, applications that reside on them, as well as interfaces that send data from one application to another.
We would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Database Design: A proper table design for large number of column values I wish to perform an experiment many different times. After every trial, I am left with a "large" set of output statistics -- let's say, 1000. I would like to store the outputs of my experiments in a table, but what's the best way...?
Option ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How should I convert Java code to C# code? I'm porting a Java library to C#. I'm using Visual Studio 2008, so I don't have the discontinued Microsoft Java Language Conversion Assistant program (JLCA).
My approach is to create a new solution with a similar project structure to the Java library, and to then copy the j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Color scaling function I am trying to visualize some values on a form. They range from 0 to 200 and I would like the ones around 0 be green and turn bright red as they go to 200.
Basically the function should return color based on the value inputted. Any ideas ?
A: red = (float)val / 200 * 255;
green = (float)(20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is there a universally accepted value for no value? I've seen N/A (always caps) used most often but I don't know if there is a standard. My data will be seen on Google so I would like to use the most recognized value.
A: It all depends on what you are trying to tell the user when there is no value.
For example, d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to get 'Next Page' link with Scrubyt I'm trying to use Scrubyt to get the details from this page http://www.nuffieldtheatre.co.uk/cn/events/event_listings.php?section=events. I've managed to get the titles and detail URLs from the list, but I can't use next_page to get the scraper to go to the next page. I assum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Obfuscate / Mask / Scramble personal information I'm looking for a homegrown way to scramble production data for use in development and test. I've built a couple of scripts that make random social security numbers, shift birth dates, scramble emails, etc. But I've come up against a wall trying to scramble customer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is it faster to sort a list after inserting items or adding them to a sorted list If I have a sorted list (say quicksort to sort), if I have a lot of values to add, is it better to suspend sorting, and add them to the end, then sort, or use binary chop to place the items correctly while adding them. Does it make a d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How can I add SqlParameters without knowing the name / type? I am creating a DB wrapper and am in the need of adding SQL paramters to my stament however I do not know the parameter names or type, how can this be done? I have seen many other libraries do this...
I just want the order of values to be mapped to the sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's better in regards to performance? type[,] or type[][]? Is it more performant to have a bidimensional array (type[,]) or an array of arrays (type[][]) in C#?
Particularly for initial allocation and item access
A: Of course, if all else fails... test it! Following gives (in "Release", at the console):
Size 100... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Count the items from a IEnumerable without iterating? private IEnumerable<string> Tables
{
get
{
yield return "Foo";
yield return "Bar";
}
}
Let's say I want iterate on those and write something like processing #n of #m.
Is there a way I can find out the value of m without iterating bef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "361"
} |
Q: Show Only One Element with JQuery I need to show only one element at a time when a link is clicked on. Right now I'm cheating by hiding everything again and then toggling the element clicked on. This works, unless i want EVERYTHING to disappear again. Short of adding a "Hide All" button/link what can i do? I would l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to render contextual difference between two timestamps in JavaScript? Let's say I've got two strings in JavaScript:
var date1 = '2008-10-03T20:24Z'
var date2 = '2008-10-04T12:24Z'
How would I come to a result like so:
'4 weeks ago'
or
'in about 15 minutes'
(should support past and future).
There are solutions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does anyone know of a php framework that would handle progressive enhancement for Flash/Flex content? Ok, I'm using the term "Progressive Enhancement" kind of loosely here but basically I have a Flash-based website that supports deep linking and loads content dynamically - what I'd like to do is provide alternate co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unit testing the app.config file with NUnit When you guys are unit testing an application that relies on values from an app.config file? How do you test that those values are read in correctly and how your program reacts to incorrect values entered into a config file?
It would be ridiculous to have to modify the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: How do I include IBM XLC template *.c files in the make dependency file? For the XLC compiler, templated code goes in a *.c file. Then when your program is compiled that uses the template functions, the compiler finds the template definisions in the .c file and instantiates them.
The problem is that these .c files ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIS Returning Old User Names to my application Here's my scenario. I created an application which uses Integrated Windows Authentication in order to work. In Application_AuthenticateRequest(), I use HttpContext.Current.User.Identity to get the current WindowsPrincipal of the user of my website.
Now here's the funn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Parallel HTTP requests in PHP using PECL HTTP classes [Answer: HttpRequestPool class]
The HttpRequestPool class provides a solution. Many thanks to those who pointed this out.
A brief tutorial can be found at: http://www.phptutorial.info/?HttpRequestPool-construct
Problem
I'd like to make concurrent/parallel/simu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Yahoo Username Regex I need a (php) regex to match Yahoo's username rules:
Use 4 to 32 characters and start with a letter. You may use letters, numbers, underscores, and one dot (.).
A: /[a-zA-Z][a-zA-Z0-9_]*\.?[a-zA-Z0-9_]*/
And check if strlen($username) >= 4 and <= 32.
A: A one dot limit? That's tricky.
I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Does a pom.xml.template tell me everything I need to know to use the project as a dependency I'm trying to add the lucene sandbox contribution called term-highlighter to my pom.xml.
I'm not really that familiar with Maven, but the code has a pom.xml.template which
seems to imply if I add a dependency that looks lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stop jQuery .load response from being cached I have the following code making a GET request on a URL:
$('#searchButton').click(function() {
$('#inquiry').load('/portal/?f=searchBilling&pid=' + $('#query').val());
});
But the returned result is not always reflected. For example, I made a change in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "246"
} |
Q: Static and dynamic library linking In C++, static library A is linked into dynamic libraries B and C. If a class, Foo, is used in A which is defined in B, will C link if it doesn't use Foo?
I thought the answer was yes, but I am now running into a problem with xlc_r7 where library C says Foo is an undefined symbol, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Restoring UI settings in C# WinForms - which event to respond to? When is the proper time to restore the UI layout settings of a System.Windows.Forms.Control?
I tried this:
FooBarGadget control = new FooBarGadget();
parent.Controls.Add(control);
control.FobnicatorWidth = lastLayoutSettings.FobWidth;
No cigar. Reaso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get effect of sorted database view? I'd like to be able to (effectively) sort a database view - I know that conceptually order in a db view is invalid, but I have the following scenario to deal with:
*
*a third-party legacy application, that reads data from database tables using a select(*) from tablename ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Make tag the same maximum width regardless of capitalization of text within I'm trying to display a series of titles varying from 60 characters to 160 or so and the capitalization varies, some of it all caps, some half caps. When it's mostly lowercase the whole 160 characters of text fits in the width I want, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/168992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Regex for parsing directory and filename I'm trying to write a regex that will parse out the directory and filename of a fully qualified path using matching groups.
so...
/var/log/xyz/10032008.log
would recognize group 1 to be "/var/log/xyz" and group 2 to be "10032008.log"
Seems simple but I can't get the matching... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Pseudocode Programming Process vs. Test Driven Development For those who haven't read Code Complete 2, the Pseudocode Programming Process is basically a way to design a routine by describing it in plain English first, then gradually revise it to more detailed pseudocode, and finally to code. The main benefit of this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Memory leaking with [NSKeyedUnarchiver decodeObjectForKey] Every time I call this method my NSMutableData is leaking and I cannot figure out how to plug it. theData's retain count is upped by one after the decoder is allocated and initialized and I have no idea why. I am stuck with a retain count of 2 at the end of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to compile classes to JDK1.5 when ant is running in JDK1.6 My development environment is running in JDK1.6, and I need to compile some classes so they are compatible with a client running JDK1.5. How would I do this with the 'javac' ant target?
A: Command line : javac -target 1.5 sourcefiles
Ant: < javac srcd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Memory leak detection while running unit tests I've got a Win32 C++ app with a suite of unit tests. After the unit tests have finished running, I'd like a human-readable report on any unfreed memory to be automatically generated. Ideally, the report will have a stack with files & line number info for each unfreed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I write a decorator that restores the cwd? How do I write a decorator that restores the current working directory to what it was before the decorated function was called? In other words, if I use the decorator on a function that does an os.chdir(), the cwd will not be changed after the function is called.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Designing a GUI How would you, as a developer with little (or no) artistic inclination, design a GUI for an application? In particular, I'm thinking about desktop apps but anything that relates to Web apps is welcome as well.
I find it extremely hard to design something that both I and potential users find pleasing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is there a way to change something in Tool->Options via a macro? I'd like to be able to toggle easily between two values for "maximum number of parallel project builds" in Visual Studio 2008 (in Tools->Options->Projects and Solutions->Build and Run). (When I'm planning on doing concurrent work I'd like to reduce it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Suggestions for replication of data from MS Sql 2005 and MySql My company currently has a transactional db running on Sql Server 2005. We are going to add a MySql (running on linux) reporting db. We'll need to get replication running from the MS-Sql db to the MySql db. It doesn't have to be real time but should be w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How big is too big for XP/SCRUM? In the earliest stages of planning the development of a new system, which development model to follow seems paramount. I've always held onto the belief that a classic waterfall (or hybrid waterfall/iterative prototyping) is the best approach for medium to large projects. It seems t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a "poor man's" alternative to RedGate for scripting out entire database schema? I'm in a situation where I would to generate a script for a database that I could run on another server and get a database identical to the original one, but without any of the data. In essence, I want to end up with a big crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to create enum object from its type and name of the value? I have a type (System.Type) of an enum and a string containing enumeration value to set.
E.g. given:
enum MyEnum { A, B, C };
I have typeof(MyEnum) and "B".
How do I create MyEnum object set to MyEnum.B?
A: I assume you don't have access to MyEnum, on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Binding a socket to port 80 in ansi c When I try to bind port 80 to a socket in c, i always get the error, that I don't have permission to use this port. is there an easy way to get this permission?
A: You will find this tutorial very helpful on network programming with C/C++.
And, by the way, ANSI C has no way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Factoring web services? What are some guidelines for factoring of web services? On one extreme you have different procedures for every operation, and expose all types through WSDL. This seems to result in the WS interface changing as often as the business logic. On the other, a generic interface where the types a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the right way to display emoticons? In your own application that is.
[edit]
Alright, so I agree completely -- more than you know -- without equivocation that graphical emoticons are an abomination.
But! That doesn't help me when the project owners tell me that we must support graphical emoticons.
[/edit]
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: unexpected T_CONCAT_EQUAL I'm getting an unexpected T_CONCAT_EQUAL error on a line of the following form:
$arg1 .= "arg2".$arg3."arg4";
I'm using PHP5. I could simply go an do the following:
$arg1 = $arg1."arg2".$arg3."arg4";
but I'd like to know whats going wrong in the first place. Any ideas?
Thanks,
sweeney
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Set server or workstation GC How can I configure an application, or even an entire machine, to use either the server or workstation flavor of the CLR's garbage collection?
A: Have a look here.
I recommend giving the entire series of blog posts a good read - very informative.
A: I should mention that I found the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SetCursor reverts after a mouse move I am using SetCursor to set the system cursor to my own image. The code looks something like this:
// member on some class
HCURSOR _cursor;
// at init time
_cursor = LoadCursorFromFile("somefilename.cur");
// in some function
SetCursor(_cursor);
When I do this the cursor does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I disable the "smart insert" function that is bound to the Tab key in the Visual Studio emacs mode? In both the Visual Studio emacs mode and the default mode the tab key is bound to Edit.InsertTab. However, in the emacs mode the tab button jumps to where it expects the next line to start instead of inserting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should I convert from MooTools to jQuery? I have a fairly large codebase that depends on MooTools v1.11 and am about to convert to version 1.2. Since this is a pretty major overhaul, I've toyed with the idea of converting to jQuery.
Anyone have advice on whether to update to jQuery or just stick with MooTools?
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: what is the best way to do keep alive socket checking in .NET? I am looking for a way to do a keep alive check in .NET. The scenario is for both UDP and TCP.
Currently in TCP what I do is that one side connects and when there is no data to send it sends a keep alive every X seconds.
I want the other side to check fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Asp.Net 2 Custom Server Controls Properties I am having a very hard time finding a standard pattern / best practice that deals with rendering child controls inside a composite based on a property value.
Here is a basic scenario. I have a Composite Control that has two child controls, a textbox and a dropdown. Lets s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scroll of a texbox always on bottom There is a way to keep the scroll on bottom for a multi line textbox?
Something like in the vb6
txtfoo.selstart=len(txtfoo.text)
I'm trying with txtfoo.selectionstart=txtfoo.text.length without success.
Regards.
A: Ok, I found that the solution was to use
txtfoo.AppendText
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to communicate with an Arduino over its serial interface in C++ on Linux? I have an RFID reader connected to an Arduino board. I'd like to connect to it over its serial interface, and whenever the RFID reader omits a signal ( when it has read an (RF)ID ), I'd like to retrieve it in my C++ program.
I already have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does Scrum alone = agile? I'm hearing about a lot of companies that act like they're agile but the only agile thing they do is the Scrum process. Is this enough to be considered agile? Using Scrum alone seems like the perfect excuse for a bad manager to get more meetings more often. Should I be weary of such comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: ActionScript 3.0 + Calculate timespan between two dates? In ActionScript 3.0, is there an automatic way to calculate the number of days, hours, minutes and seconds between two specified dates?
Basicly, what I need is the ActionScript equivalent of the .NET Timespan class.
Any idea?
A: for some a single function lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Server-side Report in Crystal 2008? I am looking to integrate Crystal Reports 2008 into a Windows Forms application. I would like to avoid direct connections from my client application to the database, while giving the user the "complete" report experience. Is it possible to for Crystal Reports 2008 to execute a rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If you are using getters and setters, how should you name the private member variables? As kind of a follow up to this question about prefixes, I agree with most people on the thread that prefixes are bad. But what about if you are using getters and setters? Then you need to differeniate the publicly accessible gett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# equivalent of the IsNull() function in SQL Server In SQL Server you can use the IsNull() function to check if a value is null, and if it is, return another value. Now I am wondering if there is anything similar in C#.
For example, I want to do something like:
myNewValue = IsNull(myValue, new MyValue());
instead ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "123"
} |
Q: Initializing C# auto-properties I'm used to writing classes like this:
public class foo {
private string mBar = "bar";
public string Bar {
get { return mBar; }
set { mBar = value; }
}
//... other methods, no constructor ...
}
Converting Bar to an auto-property seems convenient and concise, but how c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: How do you get a System.Web.HttpWebRequest object to use SSL 2.0? I don't know if I have all the information needed to phrase this question well, so bear with me.
I have a local web page (local meaning 192.168.*) that is protected with a self-signed SSL cert. I'm trying to access this page using a System.Net.HttpWeb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: MySQL: Conditionally selecting next and previous rows http://thedailywtf.com/Articles/The-Hot-Room.aspx
You see how at the bottom there're links to the next and previous articles ("Unprepared For Divide_By_Zero" and "A Completely Different Game")? How do I do that, but selecting the next and previous non-private art... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Merging Rails databases I have two databases with the same structure. The tables have an integer as a primary key as used in Rails.
If I have a patients table, I will have one patient using primary key 123 in one database and another patient using the same primary key in the other database.
What would you suggest fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is Http Streaming Comet possible in Safari? By HTTP Streaming Comet, I mean the "forever iframe" / "forever xhr" variations that don't close the connection after data has been pushed from the server, as opposed to standard polling and long polling which close and resend a new request for every server push event.
I l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What coding projects are used to create art and beauty? Today the blinkenlights stereoscope project starts as part of the nuit blanche art event in Toronto. The Toronto city hall is transferred into a giant matrix display. There are tools to create custom animations and an iphone application to view the live stream.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is this an acceptable way to make a simple "scheduler" in C#? I'm making a simple scheduler with C# in .Net. All it does is execute a simple select statement on a table in a SQL Server DB once per minute (this does not need to scale or anything... the db does not have a high load). Here is my proposed implementati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ReSharper-- Unstable for anybody else? I have seen Jetbrain's ReSharper tool on many "must-have" tool lists. I've installed it on a few occasions over the last few years and it's turned my Visual Studio sluggish and erratic. I generally uninstall it after a week or two because it make VS flaky, I want to like it, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is the #region directive really useful in .NET? After maintaining lots of code littered with #region (in both C# and VB.NET), it seems to me that this construct is just a bunch of "make work" for the programmer. It's work to PUT the dang things into the code, and then they make searching and reading code very annoyi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Can I use Collections.EMPTY_LIST wihout an UncheckedException? Is there a Generics Friendly way of using Collection.EMPTY_LIST in my Java Program.
I know I could just declare one myself, but I'm just curious to know if there's a way in the JDK to do this.
Something like users = Collections<User>.EMPTY_LIST;
A: By d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I get modrewrite to not apply rules to a specific folder? How do I get modrewrite to ENTIRELY ignore the /vip/ directory so that all requests pass directly to the folder?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^vip/.$ - [PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUES... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Understanding dlls and how they work in Visual Studio Does anyone have a good resource on dlls and how they are used / generated in Visual Studio? A few questions I'm rather hazy on specifically are:
*
*How refresh files work
*How dll version numbers are generated
*The difference between adding a reference by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/169287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.